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