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 \ 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 -EL \ 57 -mhard-float \ 58 -ffunction-sections \ 59 -funwind-tables \ 60 -g \ 61 -fstack-protector \ 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 -Os \ 71 -g \ 72 -fdata-sections \ 73 -ffunction-sections \ 74 -fomit-frame-pointer \ 75 -funwind-tables 76 77 MY_DEFS_Debug := \ 78 '-DV8_DEPRECATION_WARNINGS' \ 79 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 80 '-D_FILE_OFFSET_BITS=64' \ 81 '-DNO_TCMALLOC' \ 82 '-DDISABLE_NACL' \ 83 '-DCHROMIUM_BUILD' \ 84 '-DUSE_LIBJPEG_TURBO=1' \ 85 '-DENABLE_WEBRTC=1' \ 86 '-DUSE_PROPRIETARY_CODECS' \ 87 '-DENABLE_BROWSER_CDMS' \ 88 '-DENABLE_CONFIGURATION_POLICY' \ 89 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 90 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 91 '-DENABLE_EGLIMAGE=1' \ 92 '-DCLD_VERSION=1' \ 93 '-DENABLE_PRINTING=1' \ 94 '-DENABLE_MANAGED_USERS=1' \ 95 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 96 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 97 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 98 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 99 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 100 '-DVIDEO_HOLE=1' \ 101 '-DUSE_OPENSSL=1' \ 102 '-DUSE_OPENSSL_CERTS=1' \ 103 '-D__STDC_CONSTANT_MACROS' \ 104 '-D__STDC_FORMAT_MACROS' \ 105 '-DANDROID' \ 106 '-D__GNU_SOURCE=1' \ 107 '-DUSE_STLPORT=1' \ 108 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 109 '-DCHROME_BUILD_ID=""' \ 110 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 111 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 112 '-D_DEBUG' 113 114 115 # Include paths placed before CFLAGS/CPPFLAGS 116 LOCAL_C_INCLUDES_Debug := \ 117 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 118 $(gyp_shared_intermediate_dir) \ 119 $(LOCAL_PATH)/sdch/open-vcdiff/src \ 120 $(LOCAL_PATH)/sdch/linux \ 121 $(LOCAL_PATH) \ 122 $(LOCAL_PATH)/third_party/zlib \ 123 $(PWD)/frameworks/wilhelm/include \ 124 $(PWD)/bionic \ 125 $(PWD)/external/stlport/stlport 126 127 128 # Flags passed to only C++ (and not C) files. 129 LOCAL_CPPFLAGS_Debug := \ 130 -fno-rtti \ 131 -fno-threadsafe-statics \ 132 -fvisibility-inlines-hidden \ 133 -Wsign-compare \ 134 -Wno-uninitialized \ 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 -fstack-protector \ 144 --param=ssp-buffer-size=4 \ 145 \ 146 -fno-exceptions \ 147 -fno-strict-aliasing \ 148 -Wall \ 149 -Wno-unused-parameter \ 150 -Wno-missing-field-initializers \ 151 -fvisibility=hidden \ 152 -pipe \ 153 -fPIC \ 154 -Wno-unused-local-typedefs \ 155 -include \ 156 ./sdch/logging_forward.h \ 157 -Wno-deprecated-declarations \ 158 -EL \ 159 -mhard-float \ 160 -ffunction-sections \ 161 -funwind-tables \ 162 -g \ 163 -fstack-protector \ 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 -Os \ 173 -fno-ident \ 174 -fdata-sections \ 175 -ffunction-sections \ 176 -fomit-frame-pointer \ 177 -funwind-tables 178 179 MY_DEFS_Release := \ 180 '-DV8_DEPRECATION_WARNINGS' \ 181 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 182 '-D_FILE_OFFSET_BITS=64' \ 183 '-DNO_TCMALLOC' \ 184 '-DDISABLE_NACL' \ 185 '-DCHROMIUM_BUILD' \ 186 '-DUSE_LIBJPEG_TURBO=1' \ 187 '-DENABLE_WEBRTC=1' \ 188 '-DUSE_PROPRIETARY_CODECS' \ 189 '-DENABLE_BROWSER_CDMS' \ 190 '-DENABLE_CONFIGURATION_POLICY' \ 191 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 192 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 193 '-DENABLE_EGLIMAGE=1' \ 194 '-DCLD_VERSION=1' \ 195 '-DENABLE_PRINTING=1' \ 196 '-DENABLE_MANAGED_USERS=1' \ 197 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 198 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 199 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 200 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 201 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 202 '-DVIDEO_HOLE=1' \ 203 '-DUSE_OPENSSL=1' \ 204 '-DUSE_OPENSSL_CERTS=1' \ 205 '-D__STDC_CONSTANT_MACROS' \ 206 '-D__STDC_FORMAT_MACROS' \ 207 '-DANDROID' \ 208 '-D__GNU_SOURCE=1' \ 209 '-DUSE_STLPORT=1' \ 210 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 211 '-DCHROME_BUILD_ID=""' \ 212 '-DNDEBUG' \ 213 '-DNVALGRIND' \ 214 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 215 '-D_FORTIFY_SOURCE=2' 216 217 218 # Include paths placed before CFLAGS/CPPFLAGS 219 LOCAL_C_INCLUDES_Release := \ 220 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 221 $(gyp_shared_intermediate_dir) \ 222 $(LOCAL_PATH)/sdch/open-vcdiff/src \ 223 $(LOCAL_PATH)/sdch/linux \ 224 $(LOCAL_PATH) \ 225 $(LOCAL_PATH)/third_party/zlib \ 226 $(PWD)/frameworks/wilhelm/include \ 227 $(PWD)/bionic \ 228 $(PWD)/external/stlport/stlport 229 230 231 # Flags passed to only C++ (and not C) files. 232 LOCAL_CPPFLAGS_Release := \ 233 -fno-rtti \ 234 -fno-threadsafe-statics \ 235 -fvisibility-inlines-hidden \ 236 -Wsign-compare \ 237 -Wno-uninitialized \ 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 -EL \ 258 -Wl,--no-keep-memory \ 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 -EL \ 274 -Wl,--no-keep-memory \ 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