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