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_demux_gyp 7 LOCAL_MODULE_SUFFIX := .a 8 LOCAL_MODULE_TAGS := optional 9 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 10 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 11 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 12 13 # Make sure our deps are built first. 14 GYP_TARGET_DEPENDENCIES := 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/demux/demux.c 27 28 29 # Flags passed to both C and C++ files. 30 MY_CFLAGS_Debug := \ 31 --param=ssp-buffer-size=4 \ 32 -fno-exceptions \ 33 -fno-strict-aliasing \ 34 -Wno-unused-parameter \ 35 -Wno-missing-field-initializers \ 36 -fvisibility=hidden \ 37 -pipe \ 38 -fPIC \ 39 -Wno-unused-local-typedefs \ 40 -Wno-format \ 41 -ffunction-sections \ 42 -funwind-tables \ 43 -g \ 44 -fno-short-enums \ 45 -finline-limit=64 \ 46 -Wa,--noexecstack \ 47 -U_FORTIFY_SOURCE \ 48 -Wno-extra \ 49 -Wno-ignored-qualifiers \ 50 -Wno-type-limits \ 51 -Wno-unused-but-set-variable \ 52 -Wno-address \ 53 -Wno-format-security \ 54 -Wno-return-type \ 55 -Wno-sequence-point \ 56 -Os \ 57 -g \ 58 -fdata-sections \ 59 -ffunction-sections \ 60 -funwind-tables 61 62 MY_DEFS_Debug := \ 63 '-DV8_DEPRECATION_WARNINGS' \ 64 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 65 '-D_FILE_OFFSET_BITS=64' \ 66 '-DNO_TCMALLOC' \ 67 '-DDISABLE_NACL' \ 68 '-DCHROMIUM_BUILD' \ 69 '-DUSE_LIBJPEG_TURBO=1' \ 70 '-DENABLE_WEBRTC=1' \ 71 '-DUSE_PROPRIETARY_CODECS' \ 72 '-DENABLE_BROWSER_CDMS' \ 73 '-DENABLE_CONFIGURATION_POLICY' \ 74 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 75 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 76 '-DENABLE_EGLIMAGE=1' \ 77 '-DCLD_VERSION=1' \ 78 '-DENABLE_PRINTING=1' \ 79 '-DENABLE_MANAGED_USERS=1' \ 80 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 81 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 82 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 83 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 84 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 85 '-DVIDEO_HOLE=1' \ 86 '-DUSE_OPENSSL=1' \ 87 '-DUSE_OPENSSL_CERTS=1' \ 88 '-DANDROID' \ 89 '-D__GNU_SOURCE=1' \ 90 '-DUSE_STLPORT=1' \ 91 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 92 '-DCHROME_BUILD_ID=""' \ 93 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 94 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 95 '-D_DEBUG' 96 97 98 # Include paths placed before CFLAGS/CPPFLAGS 99 LOCAL_C_INCLUDES_Debug := \ 100 $(gyp_shared_intermediate_dir) \ 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-non-virtual-dtor \ 114 -Wno-sign-promo \ 115 -Wno-non-virtual-dtor 116 117 118 LOCAL_FDO_SUPPORT_Debug := false 119 120 # Flags passed to both C and C++ files. 121 MY_CFLAGS_Release := \ 122 --param=ssp-buffer-size=4 \ 123 -fno-exceptions \ 124 -fno-strict-aliasing \ 125 -Wno-unused-parameter \ 126 -Wno-missing-field-initializers \ 127 -fvisibility=hidden \ 128 -pipe \ 129 -fPIC \ 130 -Wno-unused-local-typedefs \ 131 -Wno-format \ 132 -ffunction-sections \ 133 -funwind-tables \ 134 -g \ 135 -fno-short-enums \ 136 -finline-limit=64 \ 137 -Wa,--noexecstack \ 138 -U_FORTIFY_SOURCE \ 139 -Wno-extra \ 140 -Wno-ignored-qualifiers \ 141 -Wno-type-limits \ 142 -Wno-unused-but-set-variable \ 143 -Wno-address \ 144 -Wno-format-security \ 145 -Wno-return-type \ 146 -Wno-sequence-point \ 147 -Os \ 148 -fno-ident \ 149 -fdata-sections \ 150 -ffunction-sections \ 151 -funwind-tables 152 153 MY_DEFS_Release := \ 154 '-DV8_DEPRECATION_WARNINGS' \ 155 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 156 '-D_FILE_OFFSET_BITS=64' \ 157 '-DNO_TCMALLOC' \ 158 '-DDISABLE_NACL' \ 159 '-DCHROMIUM_BUILD' \ 160 '-DUSE_LIBJPEG_TURBO=1' \ 161 '-DENABLE_WEBRTC=1' \ 162 '-DUSE_PROPRIETARY_CODECS' \ 163 '-DENABLE_BROWSER_CDMS' \ 164 '-DENABLE_CONFIGURATION_POLICY' \ 165 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 166 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 167 '-DENABLE_EGLIMAGE=1' \ 168 '-DCLD_VERSION=1' \ 169 '-DENABLE_PRINTING=1' \ 170 '-DENABLE_MANAGED_USERS=1' \ 171 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 172 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 173 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 174 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 175 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 176 '-DVIDEO_HOLE=1' \ 177 '-DUSE_OPENSSL=1' \ 178 '-DUSE_OPENSSL_CERTS=1' \ 179 '-DANDROID' \ 180 '-D__GNU_SOURCE=1' \ 181 '-DUSE_STLPORT=1' \ 182 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 183 '-DCHROME_BUILD_ID=""' \ 184 '-DNDEBUG' \ 185 '-DNVALGRIND' \ 186 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 187 188 189 # Include paths placed before CFLAGS/CPPFLAGS 190 LOCAL_C_INCLUDES_Release := \ 191 $(gyp_shared_intermediate_dir) \ 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. 199 LOCAL_CPPFLAGS_Release := \ 200 -fno-rtti \ 201 -fno-threadsafe-statics \ 202 -fvisibility-inlines-hidden \ 203 -Wno-deprecated \ 204 -Wno-non-virtual-dtor \ 205 -Wno-sign-promo \ 206 -Wno-non-virtual-dtor 207 208 209 LOCAL_FDO_SUPPORT_Release := false 210 211 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 212 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 213 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 214 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 215 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 216 ### Rules for final target. 217 218 LOCAL_LDFLAGS_Debug := \ 219 -Wl,-z,now \ 220 -Wl,-z,relro \ 221 -Wl,--fatal-warnings \ 222 -Wl,-z,noexecstack \ 223 -fPIC \ 224 -nostdlib \ 225 -Wl,--no-undefined \ 226 -Wl,--exclude-libs=ALL \ 227 -Wl,--warn-shared-textrel \ 228 -Wl,-O1 \ 229 -Wl,--as-needed 230 231 232 LOCAL_LDFLAGS_Release := \ 233 -Wl,-z,now \ 234 -Wl,-z,relro \ 235 -Wl,--fatal-warnings \ 236 -Wl,-z,noexecstack \ 237 -fPIC \ 238 -nostdlib \ 239 -Wl,--no-undefined \ 240 -Wl,--exclude-libs=ALL \ 241 -Wl,-O1 \ 242 -Wl,--as-needed \ 243 -Wl,--gc-sections \ 244 -Wl,--warn-shared-textrel 245 246 247 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 248 249 LOCAL_STATIC_LIBRARIES := 250 251 # Enable grouping to fix circular references 252 LOCAL_GROUP_STATIC_LIBRARIES := true 253 254 LOCAL_SHARED_LIBRARIES := \ 255 libstlport \ 256 libdl 257 258 # Add target alias to "gyp_all_modules" target. 259 .PHONY: gyp_all_modules 260 gyp_all_modules: third_party_libwebp_libwebp_demux_gyp 261 262 # Alias gyp target name. 263 .PHONY: libwebp_demux 264 libwebp_demux: third_party_libwebp_libwebp_demux_gyp 265 266 include $(BUILD_STATIC_LIBRARY) 267