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_dsp_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/dsp/cpu.c \ 26 third_party/libwebp/dsp/dec.c \ 27 third_party/libwebp/dsp/dec_sse2.c \ 28 third_party/libwebp/dsp/enc.c \ 29 third_party/libwebp/dsp/enc_sse2.c \ 30 third_party/libwebp/dsp/lossless.c \ 31 third_party/libwebp/dsp/upsampling.c \ 32 third_party/libwebp/dsp/upsampling_sse2.c \ 33 third_party/libwebp/dsp/yuv.c 34 35 36 # Flags passed to both C and C++ files. 37 MY_CFLAGS_Debug := \ 38 --param=ssp-buffer-size=4 \ 39 -fno-exceptions \ 40 -fno-strict-aliasing \ 41 -Wno-unused-parameter \ 42 -Wno-missing-field-initializers \ 43 -fvisibility=hidden \ 44 -pipe \ 45 -fPIC \ 46 -Wno-format \ 47 -m32 \ 48 -mmmx \ 49 -march=pentium4 \ 50 -msse2 \ 51 -mfpmath=sse \ 52 -fuse-ld=gold \ 53 -ffunction-sections \ 54 -funwind-tables \ 55 -g \ 56 -fno-short-enums \ 57 -finline-limit=64 \ 58 -Wa,--noexecstack \ 59 -U_FORTIFY_SOURCE \ 60 -Wno-extra \ 61 -Wno-ignored-qualifiers \ 62 -Wno-type-limits \ 63 -fno-stack-protector \ 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-error=c++0x-compat \ 116 -Wno-non-virtual-dtor \ 117 -Wno-sign-promo \ 118 -Wno-non-virtual-dtor 119 120 121 # Flags passed to both C and C++ files. 122 MY_CFLAGS_Release := \ 123 --param=ssp-buffer-size=4 \ 124 -fno-exceptions \ 125 -fno-strict-aliasing \ 126 -Wno-unused-parameter \ 127 -Wno-missing-field-initializers \ 128 -fvisibility=hidden \ 129 -pipe \ 130 -fPIC \ 131 -Wno-format \ 132 -m32 \ 133 -mmmx \ 134 -march=pentium4 \ 135 -msse2 \ 136 -mfpmath=sse \ 137 -fuse-ld=gold \ 138 -ffunction-sections \ 139 -funwind-tables \ 140 -g \ 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 -fno-stack-protector \ 149 -Wno-address \ 150 -Wno-format-security \ 151 -Wno-return-type \ 152 -Wno-sequence-point \ 153 -Os \ 154 -fno-ident \ 155 -fdata-sections \ 156 -ffunction-sections \ 157 -fomit-frame-pointer \ 158 -fno-unwind-tables \ 159 -fno-asynchronous-unwind-tables 160 161 MY_DEFS_Release := \ 162 '-DV8_DEPRECATION_WARNINGS' \ 163 '-D_FILE_OFFSET_BITS=64' \ 164 '-DNO_TCMALLOC' \ 165 '-DDISABLE_NACL' \ 166 '-DCHROMIUM_BUILD' \ 167 '-DUSE_LIBJPEG_TURBO=1' \ 168 '-DUSE_PROPRIETARY_CODECS' \ 169 '-DENABLE_CONFIGURATION_POLICY' \ 170 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 171 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 172 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 173 '-DUSE_OPENSSL=1' \ 174 '-DENABLE_EGLIMAGE=1' \ 175 '-DCLD_VERSION=1' \ 176 '-DENABLE_PRINTING=1' \ 177 '-DENABLE_MANAGED_USERS=1' \ 178 '-DANDROID' \ 179 '-D__GNU_SOURCE=1' \ 180 '-DUSE_STLPORT=1' \ 181 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 182 '-DCHROME_BUILD_ID=""' \ 183 '-DNDEBUG' \ 184 '-DNVALGRIND' \ 185 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 186 187 188 # Include paths placed before CFLAGS/CPPFLAGS 189 LOCAL_C_INCLUDES_Release := \ 190 $(LOCAL_PATH)/third_party/libwebp \ 191 $(PWD)/frameworks/wilhelm/include \ 192 $(PWD)/bionic \ 193 $(PWD)/external/stlport/stlport 194 195 196 # Flags passed to only C++ (and not C) files. 197 LOCAL_CPPFLAGS_Release := \ 198 -fno-rtti \ 199 -fno-threadsafe-statics \ 200 -fvisibility-inlines-hidden \ 201 -Wno-deprecated \ 202 -Wno-error=c++0x-compat \ 203 -Wno-non-virtual-dtor \ 204 -Wno-sign-promo \ 205 -Wno-non-virtual-dtor 206 207 208 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 209 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 210 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 211 ### Rules for final target. 212 213 LOCAL_LDFLAGS_Debug := \ 214 -Wl,-z,now \ 215 -Wl,-z,relro \ 216 -Wl,-z,noexecstack \ 217 -fPIC \ 218 -m32 \ 219 -fuse-ld=gold \ 220 -nostdlib \ 221 -Wl,--no-undefined \ 222 -Wl,--exclude-libs=ALL \ 223 -Wl,--fatal-warnings \ 224 -Wl,--gc-sections \ 225 -Wl,--warn-shared-textrel \ 226 -Wl,-O1 \ 227 -Wl,--as-needed 228 229 230 LOCAL_LDFLAGS_Release := \ 231 -Wl,-z,now \ 232 -Wl,-z,relro \ 233 -Wl,-z,noexecstack \ 234 -fPIC \ 235 -m32 \ 236 -fuse-ld=gold \ 237 -nostdlib \ 238 -Wl,--no-undefined \ 239 -Wl,--exclude-libs=ALL \ 240 -Wl,-O1 \ 241 -Wl,--as-needed \ 242 -Wl,--gc-sections \ 243 -Wl,--fatal-warnings \ 244 -Wl,--warn-shared-textrel 245 246 247 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 248 249 LOCAL_STATIC_LIBRARIES := \ 250 cpufeatures 251 252 # Enable grouping to fix circular references 253 LOCAL_GROUP_STATIC_LIBRARIES := true 254 255 LOCAL_SHARED_LIBRARIES := \ 256 libstlport \ 257 libdl 258 259 # Add target alias to "gyp_all_modules" target. 260 .PHONY: gyp_all_modules 261 gyp_all_modules: third_party_libwebp_libwebp_dsp_gyp 262 263 # Alias gyp target name. 264 .PHONY: libwebp_dsp 265 libwebp_dsp: third_party_libwebp_libwebp_dsp_gyp 266 267 include $(BUILD_STATIC_LIBRARY) 268