1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := components_data_reduction_proxy_common_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_CPP_EXTENSION := .cc 22LOCAL_GENERATED_SOURCES := 23 24GYP_COPIED_SOURCE_ORIGIN_DIRS := 25 26LOCAL_SRC_FILES := \ 27 components/data_reduction_proxy/common/data_reduction_proxy_headers.cc \ 28 components/data_reduction_proxy/common/data_reduction_proxy_pref_names.cc \ 29 components/data_reduction_proxy/common/data_reduction_proxy_switches.cc 30 31 32# Flags passed to both C and C++ files. 33MY_CFLAGS_Debug := \ 34 -fstack-protector \ 35 --param=ssp-buffer-size=4 \ 36 \ 37 -fno-exceptions \ 38 -fno-strict-aliasing \ 39 -Wall \ 40 -Wno-unused-parameter \ 41 -Wno-missing-field-initializers \ 42 -fvisibility=hidden \ 43 -pipe \ 44 -fPIC \ 45 -Wno-unused-local-typedefs \ 46 -EL \ 47 -mhard-float \ 48 -ffunction-sections \ 49 -funwind-tables \ 50 -g \ 51 -fstack-protector \ 52 -fno-short-enums \ 53 -finline-limit=64 \ 54 -Wa,--noexecstack \ 55 -U_FORTIFY_SOURCE \ 56 -Wno-extra \ 57 -Wno-ignored-qualifiers \ 58 -Wno-type-limits \ 59 -Wno-unused-but-set-variable \ 60 -Os \ 61 -g \ 62 -fdata-sections \ 63 -ffunction-sections \ 64 -fomit-frame-pointer \ 65 -funwind-tables 66 67MY_DEFS_Debug := \ 68 '-DV8_DEPRECATION_WARNINGS' \ 69 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 70 '-D_FILE_OFFSET_BITS=64' \ 71 '-DNO_TCMALLOC' \ 72 '-DDISABLE_NACL' \ 73 '-DCHROMIUM_BUILD' \ 74 '-DUSE_LIBJPEG_TURBO=1' \ 75 '-DENABLE_WEBRTC=1' \ 76 '-DUSE_PROPRIETARY_CODECS' \ 77 '-DENABLE_BROWSER_CDMS' \ 78 '-DENABLE_CONFIGURATION_POLICY' \ 79 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 80 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 81 '-DENABLE_EGLIMAGE=1' \ 82 '-DCLD_VERSION=1' \ 83 '-DENABLE_PRINTING=1' \ 84 '-DENABLE_MANAGED_USERS=1' \ 85 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 86 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 87 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 88 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 89 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 90 '-DVIDEO_HOLE=1' \ 91 '-DUSE_OPENSSL=1' \ 92 '-DUSE_OPENSSL_CERTS=1' \ 93 '-D__STDC_CONSTANT_MACROS' \ 94 '-D__STDC_FORMAT_MACROS' \ 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 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 108 $(gyp_shared_intermediate_dir) \ 109 $(LOCAL_PATH) \ 110 $(PWD)/frameworks/wilhelm/include \ 111 $(PWD)/bionic \ 112 $(PWD)/external/stlport/stlport 113 114 115# Flags passed to only C++ (and not C) files. 116LOCAL_CPPFLAGS_Debug := \ 117 -fno-rtti \ 118 -fno-threadsafe-statics \ 119 -fvisibility-inlines-hidden \ 120 -Wsign-compare \ 121 -Wno-uninitialized \ 122 -Wno-non-virtual-dtor \ 123 -Wno-sign-promo 124 125 126LOCAL_FDO_SUPPORT_Debug := false 127 128# Flags passed to both C and C++ files. 129MY_CFLAGS_Release := \ 130 -fstack-protector \ 131 --param=ssp-buffer-size=4 \ 132 \ 133 -fno-exceptions \ 134 -fno-strict-aliasing \ 135 -Wall \ 136 -Wno-unused-parameter \ 137 -Wno-missing-field-initializers \ 138 -fvisibility=hidden \ 139 -pipe \ 140 -fPIC \ 141 -Wno-unused-local-typedefs \ 142 -EL \ 143 -mhard-float \ 144 -ffunction-sections \ 145 -funwind-tables \ 146 -g \ 147 -fstack-protector \ 148 -fno-short-enums \ 149 -finline-limit=64 \ 150 -Wa,--noexecstack \ 151 -U_FORTIFY_SOURCE \ 152 -Wno-extra \ 153 -Wno-ignored-qualifiers \ 154 -Wno-type-limits \ 155 -Wno-unused-but-set-variable \ 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_BROWSER_CDMS' \ 174 '-DENABLE_CONFIGURATION_POLICY' \ 175 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 176 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 177 '-DENABLE_EGLIMAGE=1' \ 178 '-DCLD_VERSION=1' \ 179 '-DENABLE_PRINTING=1' \ 180 '-DENABLE_MANAGED_USERS=1' \ 181 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 182 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 183 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 184 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 185 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 186 '-DVIDEO_HOLE=1' \ 187 '-DUSE_OPENSSL=1' \ 188 '-DUSE_OPENSSL_CERTS=1' \ 189 '-D__STDC_CONSTANT_MACROS' \ 190 '-D__STDC_FORMAT_MACROS' \ 191 '-DANDROID' \ 192 '-D__GNU_SOURCE=1' \ 193 '-DUSE_STLPORT=1' \ 194 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 195 '-DCHROME_BUILD_ID=""' \ 196 '-DNDEBUG' \ 197 '-DNVALGRIND' \ 198 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 199 '-D_FORTIFY_SOURCE=2' 200 201 202# Include paths placed before CFLAGS/CPPFLAGS 203LOCAL_C_INCLUDES_Release := \ 204 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 205 $(gyp_shared_intermediate_dir) \ 206 $(LOCAL_PATH) \ 207 $(PWD)/frameworks/wilhelm/include \ 208 $(PWD)/bionic \ 209 $(PWD)/external/stlport/stlport 210 211 212# Flags passed to only C++ (and not C) files. 213LOCAL_CPPFLAGS_Release := \ 214 -fno-rtti \ 215 -fno-threadsafe-statics \ 216 -fvisibility-inlines-hidden \ 217 -Wsign-compare \ 218 -Wno-uninitialized \ 219 -Wno-non-virtual-dtor \ 220 -Wno-sign-promo 221 222 223LOCAL_FDO_SUPPORT_Release := false 224 225LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 226LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 227LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 228LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 229LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 230### Rules for final target. 231 232LOCAL_LDFLAGS_Debug := \ 233 -Wl,-z,now \ 234 -Wl,-z,relro \ 235 -Wl,--fatal-warnings \ 236 -Wl,-z,noexecstack \ 237 -fPIC \ 238 -EL \ 239 -Wl,--no-keep-memory \ 240 -nostdlib \ 241 -Wl,--no-undefined \ 242 -Wl,--exclude-libs=ALL \ 243 -Wl,--warn-shared-textrel \ 244 -Wl,-O1 \ 245 -Wl,--as-needed 246 247 248LOCAL_LDFLAGS_Release := \ 249 -Wl,-z,now \ 250 -Wl,-z,relro \ 251 -Wl,--fatal-warnings \ 252 -Wl,-z,noexecstack \ 253 -fPIC \ 254 -EL \ 255 -Wl,--no-keep-memory \ 256 -nostdlib \ 257 -Wl,--no-undefined \ 258 -Wl,--exclude-libs=ALL \ 259 -Wl,-O1 \ 260 -Wl,--as-needed \ 261 -Wl,--gc-sections \ 262 -Wl,--warn-shared-textrel 263 264 265LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 266 267LOCAL_STATIC_LIBRARIES := 268 269# Enable grouping to fix circular references 270LOCAL_GROUP_STATIC_LIBRARIES := true 271 272LOCAL_SHARED_LIBRARIES := \ 273 libstlport \ 274 libdl 275 276# Add target alias to "gyp_all_modules" target. 277.PHONY: gyp_all_modules 278gyp_all_modules: components_data_reduction_proxy_common_gyp 279 280# Alias gyp target name. 281.PHONY: data_reduction_proxy_common 282data_reduction_proxy_common: components_data_reduction_proxy_common_gyp 283 284include $(BUILD_STATIC_LIBRARY) 285