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