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