1 # This file is generated by gyp; do not edit. 2 3 include $(CLEAR_VARS) 4 5 LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6 LOCAL_MODULE := third_party_libwebp_libwebp_utils_gyp 7 LOCAL_MODULE_SUFFIX := .a 8 LOCAL_MODULE_TAGS := optional 9 gyp_intermediate_dir := $(call local-intermediates-dir) 10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) 11 12 # Make sure our deps are built first. 13 GYP_TARGET_DEPENDENCIES := 14 15 GYP_GENERATED_OUTPUTS := 16 17 # Make sure our deps and generated files are built first. 18 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 19 20 LOCAL_GENERATED_SOURCES := 21 22 GYP_COPIED_SOURCE_ORIGIN_DIRS := 23 24 LOCAL_SRC_FILES := \ 25 third_party/libwebp/utils/bit_reader.c \ 26 third_party/libwebp/utils/bit_writer.c \ 27 third_party/libwebp/utils/color_cache.c \ 28 third_party/libwebp/utils/filters.c \ 29 third_party/libwebp/utils/huffman.c \ 30 third_party/libwebp/utils/huffman_encode.c \ 31 third_party/libwebp/utils/quant_levels.c \ 32 third_party/libwebp/utils/quant_levels_dec.c \ 33 third_party/libwebp/utils/rescaler.c \ 34 third_party/libwebp/utils/thread.c \ 35 third_party/libwebp/utils/utils.c 36 37 38 # Flags passed to both C and C++ files. 39 MY_CFLAGS_Debug := \ 40 -fstack-protector \ 41 --param=ssp-buffer-size=4 \ 42 \ 43 -fno-exceptions \ 44 -fno-strict-aliasing \ 45 -Wno-unused-parameter \ 46 -Wno-missing-field-initializers \ 47 -fvisibility=hidden \ 48 -pipe \ 49 -fPIC \ 50 -Wno-format \ 51 -EL \ 52 -mhard-float \ 53 -ffunction-sections \ 54 -funwind-tables \ 55 -g \ 56 -fstack-protector \ 57 -fno-short-enums \ 58 -finline-limit=64 \ 59 -Wa,--noexecstack \ 60 -U_FORTIFY_SOURCE \ 61 -Wno-extra \ 62 -Wno-ignored-qualifiers \ 63 -Wno-type-limits \ 64 -Wno-address \ 65 -Wno-format-security \ 66 -Wno-return-type \ 67 -Wno-sequence-point \ 68 -Os \ 69 -g \ 70 -fomit-frame-pointer \ 71 -fdata-sections \ 72 -ffunction-sections 73 74 MY_DEFS_Debug := \ 75 '-DV8_DEPRECATION_WARNINGS' \ 76 '-D_FILE_OFFSET_BITS=64' \ 77 '-DNO_TCMALLOC' \ 78 '-DDISABLE_NACL' \ 79 '-DCHROMIUM_BUILD' \ 80 '-DUSE_LIBJPEG_TURBO=1' \ 81 '-DUSE_PROPRIETARY_CODECS' \ 82 '-DENABLE_CONFIGURATION_POLICY' \ 83 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 84 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 85 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 86 '-DUSE_OPENSSL=1' \ 87 '-DENABLE_EGLIMAGE=1' \ 88 '-DCLD_VERSION=1' \ 89 '-DENABLE_PRINTING=1' \ 90 '-DENABLE_MANAGED_USERS=1' \ 91 '-DANDROID' \ 92 '-D__GNU_SOURCE=1' \ 93 '-DUSE_STLPORT=1' \ 94 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 95 '-DCHROME_BUILD_ID=""' \ 96 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 97 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 98 '-D_DEBUG' 99 100 101 # Include paths placed before CFLAGS/CPPFLAGS 102 LOCAL_C_INCLUDES_Debug := \ 103 $(LOCAL_PATH)/third_party/libwebp \ 104 $(PWD)/frameworks/wilhelm/include \ 105 $(PWD)/bionic \ 106 $(PWD)/external/stlport/stlport 107 108 109 # Flags passed to only C++ (and not C) files. 110 LOCAL_CPPFLAGS_Debug := \ 111 -fno-rtti \ 112 -fno-threadsafe-statics \ 113 -fvisibility-inlines-hidden \ 114 -Wno-deprecated \ 115 -Wno-uninitialized \ 116 -Wno-error=c++0x-compat \ 117 -Wno-non-virtual-dtor \ 118 -Wno-sign-promo \ 119 -Wno-non-virtual-dtor 120 121 122 # Flags passed to both C and C++ files. 123 MY_CFLAGS_Release := \ 124 -fstack-protector \ 125 --param=ssp-buffer-size=4 \ 126 \ 127 -fno-exceptions \ 128 -fno-strict-aliasing \ 129 -Wno-unused-parameter \ 130 -Wno-missing-field-initializers \ 131 -fvisibility=hidden \ 132 -pipe \ 133 -fPIC \ 134 -Wno-format \ 135 -EL \ 136 -mhard-float \ 137 -ffunction-sections \ 138 -funwind-tables \ 139 -g \ 140 -fstack-protector \ 141 -fno-short-enums \ 142 -finline-limit=64 \ 143 -Wa,--noexecstack \ 144 -U_FORTIFY_SOURCE \ 145 -Wno-extra \ 146 -Wno-ignored-qualifiers \ 147 -Wno-type-limits \ 148 -Wno-address \ 149 -Wno-format-security \ 150 -Wno-return-type \ 151 -Wno-sequence-point \ 152 -Os \ 153 -fno-ident \ 154 -fdata-sections \ 155 -ffunction-sections \ 156 -fomit-frame-pointer 157 158 MY_DEFS_Release := \ 159 '-DV8_DEPRECATION_WARNINGS' \ 160 '-D_FILE_OFFSET_BITS=64' \ 161 '-DNO_TCMALLOC' \ 162 '-DDISABLE_NACL' \ 163 '-DCHROMIUM_BUILD' \ 164 '-DUSE_LIBJPEG_TURBO=1' \ 165 '-DUSE_PROPRIETARY_CODECS' \ 166 '-DENABLE_CONFIGURATION_POLICY' \ 167 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 168 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 169 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 170 '-DUSE_OPENSSL=1' \ 171 '-DENABLE_EGLIMAGE=1' \ 172 '-DCLD_VERSION=1' \ 173 '-DENABLE_PRINTING=1' \ 174 '-DENABLE_MANAGED_USERS=1' \ 175 '-DANDROID' \ 176 '-D__GNU_SOURCE=1' \ 177 '-DUSE_STLPORT=1' \ 178 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 179 '-DCHROME_BUILD_ID=""' \ 180 '-DNDEBUG' \ 181 '-DNVALGRIND' \ 182 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 183 184 185 # Include paths placed before CFLAGS/CPPFLAGS 186 LOCAL_C_INCLUDES_Release := \ 187 $(LOCAL_PATH)/third_party/libwebp \ 188 $(PWD)/frameworks/wilhelm/include \ 189 $(PWD)/bionic \ 190 $(PWD)/external/stlport/stlport 191 192 193 # Flags passed to only C++ (and not C) files. 194 LOCAL_CPPFLAGS_Release := \ 195 -fno-rtti \ 196 -fno-threadsafe-statics \ 197 -fvisibility-inlines-hidden \ 198 -Wno-deprecated \ 199 -Wno-uninitialized \ 200 -Wno-error=c++0x-compat \ 201 -Wno-non-virtual-dtor \ 202 -Wno-sign-promo \ 203 -Wno-non-virtual-dtor 204 205 206 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 207 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 208 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 209 ### Rules for final target. 210 211 LOCAL_LDFLAGS_Debug := \ 212 -Wl,-z,now \ 213 -Wl,-z,relro \ 214 -Wl,-z,noexecstack \ 215 -fPIC \ 216 -EL \ 217 -Wl,--no-keep-memory \ 218 -nostdlib \ 219 -Wl,--no-undefined \ 220 -Wl,--exclude-libs=ALL \ 221 -Wl,--fatal-warnings \ 222 -Wl,--gc-sections \ 223 -Wl,--warn-shared-textrel \ 224 -Wl,-O1 \ 225 -Wl,--as-needed 226 227 228 LOCAL_LDFLAGS_Release := \ 229 -Wl,-z,now \ 230 -Wl,-z,relro \ 231 -Wl,-z,noexecstack \ 232 -fPIC \ 233 -EL \ 234 -Wl,--no-keep-memory \ 235 -nostdlib \ 236 -Wl,--no-undefined \ 237 -Wl,--exclude-libs=ALL \ 238 -Wl,-O1 \ 239 -Wl,--as-needed \ 240 -Wl,--gc-sections \ 241 -Wl,--fatal-warnings \ 242 -Wl,--warn-shared-textrel 243 244 245 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 246 247 LOCAL_STATIC_LIBRARIES := 248 249 # Enable grouping to fix circular references 250 LOCAL_GROUP_STATIC_LIBRARIES := true 251 252 LOCAL_SHARED_LIBRARIES := \ 253 libstlport \ 254 libdl 255 256 # Add target alias to "gyp_all_modules" target. 257 .PHONY: gyp_all_modules 258 gyp_all_modules: third_party_libwebp_libwebp_utils_gyp 259 260 # Alias gyp target name. 261 .PHONY: libwebp_utils 262 libwebp_utils: third_party_libwebp_libwebp_utils_gyp 263 264 include $(BUILD_STATIC_LIBRARY) 265