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 -fstack-protector \ 39 --param=ssp-buffer-size=4 \ 40 \ 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 -EL \ 50 -mhard-float \ 51 -ffunction-sections \ 52 -funwind-tables \ 53 -g \ 54 -fstack-protector \ 55 -fno-short-enums \ 56 -finline-limit=64 \ 57 -Wa,--noexecstack \ 58 -U_FORTIFY_SOURCE \ 59 -Wno-extra \ 60 -Wno-ignored-qualifiers \ 61 -Wno-type-limits \ 62 -Wno-address \ 63 -Wno-format-security \ 64 -Wno-return-type \ 65 -Wno-sequence-point \ 66 -Os \ 67 -g \ 68 -fomit-frame-pointer \ 69 -fdata-sections \ 70 -ffunction-sections 71 72 MY_DEFS_Debug := \ 73 '-DANGLE_DX11' \ 74 '-D_FILE_OFFSET_BITS=64' \ 75 '-DNO_TCMALLOC' \ 76 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 77 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 78 '-DDISABLE_NACL' \ 79 '-DCHROMIUM_BUILD' \ 80 '-DUSE_LIBJPEG_TURBO=1' \ 81 '-DUSE_PROPRIETARY_CODECS' \ 82 '-DENABLE_CONFIGURATION_POLICY' \ 83 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 84 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 85 '-DENABLE_GPU=1' \ 86 '-DUSE_OPENSSL=1' \ 87 '-DENABLE_EGLIMAGE=1' \ 88 '-DENABLE_PRINTING=1' \ 89 '-DANDROID' \ 90 '-D__GNU_SOURCE=1' \ 91 '-DUSE_STLPORT=1' \ 92 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 93 '-DCHROME_BUILD_ID=""' \ 94 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 95 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 96 '-D_DEBUG' 97 98 99 # Include paths placed before CFLAGS/CPPFLAGS 100 LOCAL_C_INCLUDES_Debug := \ 101 $(LOCAL_PATH)/third_party/libwebp \ 102 $(PWD)/frameworks/wilhelm/include \ 103 $(PWD)/bionic \ 104 $(PWD)/external/stlport/stlport 105 106 107 # Flags passed to only C++ (and not C) files. 108 LOCAL_CPPFLAGS_Debug := \ 109 -fno-rtti \ 110 -fno-threadsafe-statics \ 111 -fvisibility-inlines-hidden \ 112 -Wno-deprecated \ 113 -Wno-uninitialized \ 114 -Wno-error=c++0x-compat \ 115 -Wno-non-virtual-dtor \ 116 -Wno-sign-promo \ 117 -Wno-non-virtual-dtor 118 119 120 # Flags passed to both C and C++ files. 121 MY_CFLAGS_Release := \ 122 -fstack-protector \ 123 --param=ssp-buffer-size=4 \ 124 \ 125 -fno-exceptions \ 126 -fno-strict-aliasing \ 127 -Wno-unused-parameter \ 128 -Wno-missing-field-initializers \ 129 -fvisibility=hidden \ 130 -pipe \ 131 -fPIC \ 132 -Wno-format \ 133 -EL \ 134 -mhard-float \ 135 -ffunction-sections \ 136 -funwind-tables \ 137 -g \ 138 -fstack-protector \ 139 -fno-short-enums \ 140 -finline-limit=64 \ 141 -Wa,--noexecstack \ 142 -U_FORTIFY_SOURCE \ 143 -Wno-extra \ 144 -Wno-ignored-qualifiers \ 145 -Wno-type-limits \ 146 -Wno-address \ 147 -Wno-format-security \ 148 -Wno-return-type \ 149 -Wno-sequence-point \ 150 -Os \ 151 -fno-ident \ 152 -fdata-sections \ 153 -ffunction-sections \ 154 -fomit-frame-pointer 155 156 MY_DEFS_Release := \ 157 '-DANGLE_DX11' \ 158 '-D_FILE_OFFSET_BITS=64' \ 159 '-DNO_TCMALLOC' \ 160 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 161 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 162 '-DDISABLE_NACL' \ 163 '-DCHROMIUM_BUILD' \ 164 '-DUSE_LIBJPEG_TURBO=1' \ 165 '-DUSE_PROPRIETARY_CODECS' \ 166 '-DENABLE_CONFIGURATION_POLICY' \ 167 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 168 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 169 '-DENABLE_GPU=1' \ 170 '-DUSE_OPENSSL=1' \ 171 '-DENABLE_EGLIMAGE=1' \ 172 '-DENABLE_PRINTING=1' \ 173 '-DANDROID' \ 174 '-D__GNU_SOURCE=1' \ 175 '-DUSE_STLPORT=1' \ 176 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 177 '-DCHROME_BUILD_ID=""' \ 178 '-DNDEBUG' \ 179 '-DNVALGRIND' \ 180 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 181 182 183 # Include paths placed before CFLAGS/CPPFLAGS 184 LOCAL_C_INCLUDES_Release := \ 185 $(LOCAL_PATH)/third_party/libwebp \ 186 $(PWD)/frameworks/wilhelm/include \ 187 $(PWD)/bionic \ 188 $(PWD)/external/stlport/stlport 189 190 191 # Flags passed to only C++ (and not C) files. 192 LOCAL_CPPFLAGS_Release := \ 193 -fno-rtti \ 194 -fno-threadsafe-statics \ 195 -fvisibility-inlines-hidden \ 196 -Wno-deprecated \ 197 -Wno-uninitialized \ 198 -Wno-error=c++0x-compat \ 199 -Wno-non-virtual-dtor \ 200 -Wno-sign-promo \ 201 -Wno-non-virtual-dtor 202 203 204 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 205 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 206 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 207 ### Rules for final target. 208 209 LOCAL_LDFLAGS_Debug := \ 210 -Wl,-z,now \ 211 -Wl,-z,relro \ 212 -Wl,-z,noexecstack \ 213 -fPIC \ 214 -EL \ 215 -Wl,--no-keep-memory \ 216 -nostdlib \ 217 -Wl,--no-undefined \ 218 -Wl,--exclude-libs=ALL \ 219 -Wl,--fatal-warnings \ 220 -Wl,--gc-sections \ 221 -Wl,--warn-shared-textrel \ 222 -Wl,-O1 \ 223 -Wl,--as-needed 224 225 226 LOCAL_LDFLAGS_Release := \ 227 -Wl,-z,now \ 228 -Wl,-z,relro \ 229 -Wl,-z,noexecstack \ 230 -fPIC \ 231 -EL \ 232 -Wl,--no-keep-memory \ 233 -nostdlib \ 234 -Wl,--no-undefined \ 235 -Wl,--exclude-libs=ALL \ 236 -Wl,-O1 \ 237 -Wl,--as-needed \ 238 -Wl,--gc-sections \ 239 -Wl,--fatal-warnings \ 240 -Wl,--warn-shared-textrel 241 242 243 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 244 245 LOCAL_STATIC_LIBRARIES := \ 246 cpufeatures 247 248 # Enable grouping to fix circular references 249 LOCAL_GROUP_STATIC_LIBRARIES := true 250 251 LOCAL_SHARED_LIBRARIES := \ 252 libstlport \ 253 libdl 254 255 # Add target alias to "gyp_all_modules" target. 256 .PHONY: gyp_all_modules 257 gyp_all_modules: third_party_libwebp_libwebp_dsp_gyp 258 259 # Alias gyp target name. 260 .PHONY: libwebp_dsp 261 libwebp_dsp: third_party_libwebp_libwebp_dsp_gyp 262 263 include $(BUILD_STATIC_LIBRARY) 264