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 := sdch_sdch_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_CPP_EXTENSION := .cc 22 LOCAL_GENERATED_SOURCES := 23 24 GYP_COPIED_SOURCE_ORIGIN_DIRS := 25 26 LOCAL_SRC_FILES := \ 27 sdch/open-vcdiff/src/addrcache.cc \ 28 sdch/open-vcdiff/src/blockhash.cc \ 29 sdch/open-vcdiff/src/codetable.cc \ 30 sdch/open-vcdiff/src/decodetable.cc \ 31 sdch/open-vcdiff/src/encodetable.cc \ 32 sdch/open-vcdiff/src/headerparser.cc \ 33 sdch/open-vcdiff/src/instruction_map.cc \ 34 sdch/open-vcdiff/src/varint_bigendian.cc \ 35 sdch/open-vcdiff/src/vcdecoder.cc \ 36 sdch/open-vcdiff/src/vcdiffengine.cc 37 38 39 # Flags passed to both C and C++ files. 40 MY_CFLAGS_Debug := \ 41 --param=ssp-buffer-size=4 \ 42 -Werror \ 43 -fno-exceptions \ 44 -fno-strict-aliasing \ 45 -Wall \ 46 -Wno-unused-parameter \ 47 -Wno-missing-field-initializers \ 48 -fvisibility=hidden \ 49 -pipe \ 50 -fPIC \ 51 -Wno-unused-local-typedefs \ 52 -include \ 53 ./sdch/logging_forward.h \ 54 -Wno-deprecated-declarations \ 55 -msse2 \ 56 -mfpmath=sse \ 57 -mmmx \ 58 -m32 \ 59 -ffunction-sections \ 60 -funwind-tables \ 61 -g \ 62 -fno-short-enums \ 63 -finline-limit=64 \ 64 -Wa,--noexecstack \ 65 -U_FORTIFY_SOURCE \ 66 -Wno-extra \ 67 -Wno-ignored-qualifiers \ 68 -Wno-type-limits \ 69 -Wno-unused-but-set-variable \ 70 -fno-stack-protector \ 71 -Os \ 72 -g \ 73 -fdata-sections \ 74 -ffunction-sections \ 75 -fomit-frame-pointer \ 76 -funwind-tables 77 78 MY_DEFS_Debug := \ 79 '-DV8_DEPRECATION_WARNINGS' \ 80 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 81 '-D_FILE_OFFSET_BITS=64' \ 82 '-DNO_TCMALLOC' \ 83 '-DDISABLE_NACL' \ 84 '-DCHROMIUM_BUILD' \ 85 '-DUSE_LIBJPEG_TURBO=1' \ 86 '-DENABLE_WEBRTC=1' \ 87 '-DUSE_PROPRIETARY_CODECS' \ 88 '-DENABLE_BROWSER_CDMS' \ 89 '-DENABLE_CONFIGURATION_POLICY' \ 90 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 91 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 92 '-DENABLE_EGLIMAGE=1' \ 93 '-DCLD_VERSION=1' \ 94 '-DENABLE_PRINTING=1' \ 95 '-DENABLE_MANAGED_USERS=1' \ 96 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 97 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 98 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 99 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 100 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 101 '-DVIDEO_HOLE=1' \ 102 '-DUSE_OPENSSL=1' \ 103 '-DUSE_OPENSSL_CERTS=1' \ 104 '-D__STDC_CONSTANT_MACROS' \ 105 '-D__STDC_FORMAT_MACROS' \ 106 '-DANDROID' \ 107 '-D__GNU_SOURCE=1' \ 108 '-DUSE_STLPORT=1' \ 109 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 110 '-DCHROME_BUILD_ID=""' \ 111 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 112 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 113 '-D_DEBUG' 114 115 116 # Include paths placed before CFLAGS/CPPFLAGS 117 LOCAL_C_INCLUDES_Debug := \ 118 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 119 $(gyp_shared_intermediate_dir) \ 120 $(LOCAL_PATH)/sdch/open-vcdiff/src \ 121 $(LOCAL_PATH)/sdch/linux \ 122 $(LOCAL_PATH) \ 123 $(LOCAL_PATH)/third_party/zlib \ 124 $(PWD)/frameworks/wilhelm/include \ 125 $(PWD)/bionic \ 126 $(PWD)/external/stlport/stlport 127 128 129 # Flags passed to only C++ (and not C) files. 130 LOCAL_CPPFLAGS_Debug := \ 131 -fno-rtti \ 132 -fno-threadsafe-statics \ 133 -fvisibility-inlines-hidden \ 134 -Wsign-compare \ 135 -Wno-non-virtual-dtor \ 136 -Wno-sign-promo 137 138 139 LOCAL_FDO_SUPPORT_Debug := false 140 141 # Flags passed to both C and C++ files. 142 MY_CFLAGS_Release := \ 143 --param=ssp-buffer-size=4 \ 144 -Werror \ 145 -fno-exceptions \ 146 -fno-strict-aliasing \ 147 -Wall \ 148 -Wno-unused-parameter \ 149 -Wno-missing-field-initializers \ 150 -fvisibility=hidden \ 151 -pipe \ 152 -fPIC \ 153 -Wno-unused-local-typedefs \ 154 -include \ 155 ./sdch/logging_forward.h \ 156 -Wno-deprecated-declarations \ 157 -msse2 \ 158 -mfpmath=sse \ 159 -mmmx \ 160 -m32 \ 161 -ffunction-sections \ 162 -funwind-tables \ 163 -g \ 164 -fno-short-enums \ 165 -finline-limit=64 \ 166 -Wa,--noexecstack \ 167 -U_FORTIFY_SOURCE \ 168 -Wno-extra \ 169 -Wno-ignored-qualifiers \ 170 -Wno-type-limits \ 171 -Wno-unused-but-set-variable \ 172 -fno-stack-protector \ 173 -Os \ 174 -fno-ident \ 175 -fdata-sections \ 176 -ffunction-sections \ 177 -fomit-frame-pointer \ 178 -funwind-tables 179 180 MY_DEFS_Release := \ 181 '-DV8_DEPRECATION_WARNINGS' \ 182 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 183 '-D_FILE_OFFSET_BITS=64' \ 184 '-DNO_TCMALLOC' \ 185 '-DDISABLE_NACL' \ 186 '-DCHROMIUM_BUILD' \ 187 '-DUSE_LIBJPEG_TURBO=1' \ 188 '-DENABLE_WEBRTC=1' \ 189 '-DUSE_PROPRIETARY_CODECS' \ 190 '-DENABLE_BROWSER_CDMS' \ 191 '-DENABLE_CONFIGURATION_POLICY' \ 192 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 193 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 194 '-DENABLE_EGLIMAGE=1' \ 195 '-DCLD_VERSION=1' \ 196 '-DENABLE_PRINTING=1' \ 197 '-DENABLE_MANAGED_USERS=1' \ 198 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 199 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 200 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 201 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 202 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 203 '-DVIDEO_HOLE=1' \ 204 '-DUSE_OPENSSL=1' \ 205 '-DUSE_OPENSSL_CERTS=1' \ 206 '-D__STDC_CONSTANT_MACROS' \ 207 '-D__STDC_FORMAT_MACROS' \ 208 '-DANDROID' \ 209 '-D__GNU_SOURCE=1' \ 210 '-DUSE_STLPORT=1' \ 211 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 212 '-DCHROME_BUILD_ID=""' \ 213 '-DNDEBUG' \ 214 '-DNVALGRIND' \ 215 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 216 '-D_FORTIFY_SOURCE=2' 217 218 219 # Include paths placed before CFLAGS/CPPFLAGS 220 LOCAL_C_INCLUDES_Release := \ 221 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 222 $(gyp_shared_intermediate_dir) \ 223 $(LOCAL_PATH)/sdch/open-vcdiff/src \ 224 $(LOCAL_PATH)/sdch/linux \ 225 $(LOCAL_PATH) \ 226 $(LOCAL_PATH)/third_party/zlib \ 227 $(PWD)/frameworks/wilhelm/include \ 228 $(PWD)/bionic \ 229 $(PWD)/external/stlport/stlport 230 231 232 # Flags passed to only C++ (and not C) files. 233 LOCAL_CPPFLAGS_Release := \ 234 -fno-rtti \ 235 -fno-threadsafe-statics \ 236 -fvisibility-inlines-hidden \ 237 -Wsign-compare \ 238 -Wno-non-virtual-dtor \ 239 -Wno-sign-promo 240 241 242 LOCAL_FDO_SUPPORT_Release := false 243 244 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 245 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 246 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 247 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 248 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 249 ### Rules for final target. 250 251 LOCAL_LDFLAGS_Debug := \ 252 -Wl,-z,now \ 253 -Wl,-z,relro \ 254 -Wl,--fatal-warnings \ 255 -Wl,-z,noexecstack \ 256 -fPIC \ 257 -m32 \ 258 -fuse-ld=gold \ 259 -nostdlib \ 260 -Wl,--no-undefined \ 261 -Wl,--exclude-libs=ALL \ 262 -Wl,--warn-shared-textrel \ 263 -Wl,-O1 \ 264 -Wl,--as-needed 265 266 267 LOCAL_LDFLAGS_Release := \ 268 -Wl,-z,now \ 269 -Wl,-z,relro \ 270 -Wl,--fatal-warnings \ 271 -Wl,-z,noexecstack \ 272 -fPIC \ 273 -m32 \ 274 -fuse-ld=gold \ 275 -nostdlib \ 276 -Wl,--no-undefined \ 277 -Wl,--exclude-libs=ALL \ 278 -Wl,-O1 \ 279 -Wl,--as-needed \ 280 -Wl,--gc-sections \ 281 -Wl,--warn-shared-textrel 282 283 284 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 285 286 LOCAL_STATIC_LIBRARIES := 287 288 # Enable grouping to fix circular references 289 LOCAL_GROUP_STATIC_LIBRARIES := true 290 291 LOCAL_SHARED_LIBRARIES := \ 292 libstlport \ 293 libdl 294 295 # Add target alias to "gyp_all_modules" target. 296 .PHONY: gyp_all_modules 297 gyp_all_modules: sdch_sdch_gyp 298 299 # Alias gyp target name. 300 .PHONY: sdch 301 sdch: sdch_sdch_gyp 302 303 include $(BUILD_STATIC_LIBRARY) 304