libwebp_dsp.target.darwin-x86.mk revision 0529e5d033099cbfc42635f6f6183833b09dff6e
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_dsp_gyp 7LOCAL_MODULE_SUFFIX := .a 8LOCAL_MODULE_TAGS := optional 9LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 10gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 11gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 12 13# Make sure our deps are built first. 14GYP_TARGET_DEPENDENCIES := 15 16GYP_GENERATED_OUTPUTS := 17 18# Make sure our deps and generated files are built first. 19LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 20 21LOCAL_GENERATED_SOURCES := 22 23GYP_COPIED_SOURCE_ORIGIN_DIRS := 24 25LOCAL_SRC_FILES := \ 26 third_party/libwebp/dsp/cpu.c \ 27 third_party/libwebp/dsp/dec.c \ 28 third_party/libwebp/dsp/dec_sse2.c \ 29 third_party/libwebp/dsp/enc.c \ 30 third_party/libwebp/dsp/enc_sse2.c \ 31 third_party/libwebp/dsp/lossless.c \ 32 third_party/libwebp/dsp/upsampling.c \ 33 third_party/libwebp/dsp/upsampling_sse2.c \ 34 third_party/libwebp/dsp/yuv.c 35 36 37# Flags passed to both C and C++ files. 38MY_CFLAGS_Debug := \ 39 --param=ssp-buffer-size=4 \ 40 -fno-exceptions \ 41 -fno-strict-aliasing \ 42 -Wno-unused-parameter \ 43 -Wno-missing-field-initializers \ 44 -fvisibility=hidden \ 45 -pipe \ 46 -fPIC \ 47 -Wno-format \ 48 -msse2 \ 49 -mfpmath=sse \ 50 -mmmx \ 51 -m32 \ 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 -Wno-unused-but-set-variable \ 64 -fno-stack-protector \ 65 -Wno-address \ 66 -Wno-format-security \ 67 -Wno-return-type \ 68 -Wno-sequence-point \ 69 -Os \ 70 -g \ 71 -fomit-frame-pointer \ 72 -fdata-sections \ 73 -ffunction-sections \ 74 -funwind-tables 75 76MY_DEFS_Debug := \ 77 '-DV8_DEPRECATION_WARNINGS' \ 78 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 79 '-D_FILE_OFFSET_BITS=64' \ 80 '-DNO_TCMALLOC' \ 81 '-DDISABLE_NACL' \ 82 '-DCHROMIUM_BUILD' \ 83 '-DUSE_LIBJPEG_TURBO=1' \ 84 '-DENABLE_WEBRTC=1' \ 85 '-DUSE_PROPRIETARY_CODECS' \ 86 '-DENABLE_CONFIGURATION_POLICY' \ 87 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 88 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 89 '-DENABLE_EGLIMAGE=1' \ 90 '-DCLD_VERSION=1' \ 91 '-DENABLE_PRINTING=1' \ 92 '-DENABLE_MANAGED_USERS=1' \ 93 '-DUSE_OPENSSL=1' \ 94 '-DUSE_OPENSSL_CERTS=1' \ 95 '-DANDROID' \ 96 '-D__GNU_SOURCE=1' \ 97 '-DUSE_STLPORT=1' \ 98 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 99 '-DCHROME_BUILD_ID=""' \ 100 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 101 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 102 '-D_DEBUG' 103 104 105# Include paths placed before CFLAGS/CPPFLAGS 106LOCAL_C_INCLUDES_Debug := \ 107 $(LOCAL_PATH)/third_party/libwebp \ 108 $(PWD)/frameworks/wilhelm/include \ 109 $(PWD)/bionic \ 110 $(PWD)/external/stlport/stlport 111 112 113# Flags passed to only C++ (and not C) files. 114LOCAL_CPPFLAGS_Debug := \ 115 -fno-rtti \ 116 -fno-threadsafe-statics \ 117 -fvisibility-inlines-hidden \ 118 -Wno-deprecated \ 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. 125MY_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 -msse2 \ 136 -mfpmath=sse \ 137 -mmmx \ 138 -m32 \ 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 -Wno-unused-but-set-variable \ 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 -funwind-tables 162 163MY_DEFS_Release := \ 164 '-DV8_DEPRECATION_WARNINGS' \ 165 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 166 '-D_FILE_OFFSET_BITS=64' \ 167 '-DNO_TCMALLOC' \ 168 '-DDISABLE_NACL' \ 169 '-DCHROMIUM_BUILD' \ 170 '-DUSE_LIBJPEG_TURBO=1' \ 171 '-DENABLE_WEBRTC=1' \ 172 '-DUSE_PROPRIETARY_CODECS' \ 173 '-DENABLE_CONFIGURATION_POLICY' \ 174 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 175 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 176 '-DENABLE_EGLIMAGE=1' \ 177 '-DCLD_VERSION=1' \ 178 '-DENABLE_PRINTING=1' \ 179 '-DENABLE_MANAGED_USERS=1' \ 180 '-DUSE_OPENSSL=1' \ 181 '-DUSE_OPENSSL_CERTS=1' \ 182 '-DANDROID' \ 183 '-D__GNU_SOURCE=1' \ 184 '-DUSE_STLPORT=1' \ 185 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 186 '-DCHROME_BUILD_ID=""' \ 187 '-DNDEBUG' \ 188 '-DNVALGRIND' \ 189 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 190 191 192# Include paths placed before CFLAGS/CPPFLAGS 193LOCAL_C_INCLUDES_Release := \ 194 $(LOCAL_PATH)/third_party/libwebp \ 195 $(PWD)/frameworks/wilhelm/include \ 196 $(PWD)/bionic \ 197 $(PWD)/external/stlport/stlport 198 199 200# Flags passed to only C++ (and not C) files. 201LOCAL_CPPFLAGS_Release := \ 202 -fno-rtti \ 203 -fno-threadsafe-statics \ 204 -fvisibility-inlines-hidden \ 205 -Wno-deprecated \ 206 -Wno-non-virtual-dtor \ 207 -Wno-sign-promo \ 208 -Wno-non-virtual-dtor 209 210 211LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 212LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 213LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 214LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 215### Rules for final target. 216 217LOCAL_LDFLAGS_Debug := \ 218 -Wl,-z,now \ 219 -Wl,-z,relro \ 220 -Wl,--fatal-warnings \ 221 -Wl,-z,noexecstack \ 222 -fPIC \ 223 -m32 \ 224 -fuse-ld=gold \ 225 -nostdlib \ 226 -Wl,--no-undefined \ 227 -Wl,--exclude-libs=ALL \ 228 -Wl,--warn-shared-textrel \ 229 -Wl,-O1 \ 230 -Wl,--as-needed 231 232 233LOCAL_LDFLAGS_Release := \ 234 -Wl,-z,now \ 235 -Wl,-z,relro \ 236 -Wl,--fatal-warnings \ 237 -Wl,-z,noexecstack \ 238 -fPIC \ 239 -m32 \ 240 -fuse-ld=gold \ 241 -nostdlib \ 242 -Wl,--no-undefined \ 243 -Wl,--exclude-libs=ALL \ 244 -Wl,-O1 \ 245 -Wl,--as-needed \ 246 -Wl,--gc-sections \ 247 -Wl,--warn-shared-textrel 248 249 250LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 251 252LOCAL_STATIC_LIBRARIES := \ 253 cpufeatures 254 255# Enable grouping to fix circular references 256LOCAL_GROUP_STATIC_LIBRARIES := true 257 258LOCAL_SHARED_LIBRARIES := \ 259 libstlport \ 260 libdl 261 262# Add target alias to "gyp_all_modules" target. 263.PHONY: gyp_all_modules 264gyp_all_modules: third_party_libwebp_libwebp_dsp_gyp 265 266# Alias gyp target name. 267.PHONY: libwebp_dsp 268libwebp_dsp: third_party_libwebp_libwebp_dsp_gyp 269 270include $(BUILD_STATIC_LIBRARY) 271