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_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 9 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 11 12 # Make sure our deps are built first. 13 GYP_TARGET_DEPENDENCIES := 14 15 GYP_GENERATED_OUTPUTS := 16 17 # Make sure our deps and generated files are built first. 18 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 19 20 LOCAL_CPP_EXTENSION := .cc 21 LOCAL_GENERATED_SOURCES := 22 23 GYP_COPIED_SOURCE_ORIGIN_DIRS := 24 25 LOCAL_SRC_FILES := \ 26 sdch/open-vcdiff/src/addrcache.cc \ 27 sdch/open-vcdiff/src/blockhash.cc \ 28 sdch/open-vcdiff/src/codetable.cc \ 29 sdch/open-vcdiff/src/decodetable.cc \ 30 sdch/open-vcdiff/src/encodetable.cc \ 31 sdch/open-vcdiff/src/headerparser.cc \ 32 sdch/open-vcdiff/src/instruction_map.cc \ 33 sdch/open-vcdiff/src/jsonwriter.cc \ 34 sdch/open-vcdiff/src/varint_bigendian.cc \ 35 sdch/open-vcdiff/src/vcdecoder.cc \ 36 sdch/open-vcdiff/src/vcencoder.cc \ 37 sdch/open-vcdiff/src/vcdiffengine.cc 38 39 40 # Flags passed to both C and C++ files. 41 MY_CFLAGS_Debug := \ 42 -fstack-protector \ 43 --param=ssp-buffer-size=4 \ 44 \ 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 -ffunction-sections \ 57 -funwind-tables \ 58 -g \ 59 -fstack-protector \ 60 -fno-short-enums \ 61 -finline-limit=64 \ 62 -Wa,--noexecstack \ 63 -U_FORTIFY_SOURCE \ 64 -Wno-extra \ 65 -Wno-ignored-qualifiers \ 66 -Wno-type-limits \ 67 -Wno-unused-but-set-variable \ 68 -Os \ 69 -g \ 70 -gdwarf-4 \ 71 -fdata-sections \ 72 -ffunction-sections \ 73 -fomit-frame-pointer \ 74 -funwind-tables 75 76 MY_DEFS_Debug := \ 77 '-DV8_DEPRECATION_WARNINGS' \ 78 '-D_FILE_OFFSET_BITS=64' \ 79 '-DNO_TCMALLOC' \ 80 '-DDISABLE_NACL' \ 81 '-DCHROMIUM_BUILD' \ 82 '-DUSE_LIBJPEG_TURBO=1' \ 83 '-DENABLE_WEBRTC=1' \ 84 '-DUSE_PROPRIETARY_CODECS' \ 85 '-DENABLE_BROWSER_CDMS' \ 86 '-DENABLE_CONFIGURATION_POLICY' \ 87 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 88 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 89 '-DENABLE_EGLIMAGE=1' \ 90 '-DCLD_VERSION=1' \ 91 '-DENABLE_PRINTING=1' \ 92 '-DENABLE_MANAGED_USERS=1' \ 93 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 94 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 95 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 96 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 97 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 98 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 99 '-DVIDEO_HOLE=1' \ 100 '-DENABLE_LOAD_COMPLETION_HACKS=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) \ 118 $(LOCAL_PATH)/sdch/open-vcdiff/src \ 119 $(LOCAL_PATH)/sdch/linux \ 120 $(LOCAL_PATH) \ 121 $(LOCAL_PATH)/third_party/zlib \ 122 $(PWD)/frameworks/wilhelm/include \ 123 $(PWD)/bionic \ 124 $(PWD)/external/stlport/stlport 125 126 127 # Flags passed to only C++ (and not C) files. 128 LOCAL_CPPFLAGS_Debug := \ 129 -fno-exceptions \ 130 -fno-rtti \ 131 -fno-threadsafe-statics \ 132 -fvisibility-inlines-hidden \ 133 -Wsign-compare \ 134 -Wno-uninitialized \ 135 -std=gnu++11 \ 136 -Wno-narrowing \ 137 -Wno-literal-suffix \ 138 -Wno-non-virtual-dtor \ 139 -Wno-sign-promo 140 141 142 # Flags passed to both C and C++ files. 143 MY_CFLAGS_Release := \ 144 -fstack-protector \ 145 --param=ssp-buffer-size=4 \ 146 \ 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 -ffunction-sections \ 159 -funwind-tables \ 160 -g \ 161 -fstack-protector \ 162 -fno-short-enums \ 163 -finline-limit=64 \ 164 -Wa,--noexecstack \ 165 -U_FORTIFY_SOURCE \ 166 -Wno-extra \ 167 -Wno-ignored-qualifiers \ 168 -Wno-type-limits \ 169 -Wno-unused-but-set-variable \ 170 -Os \ 171 -fno-ident \ 172 -fdata-sections \ 173 -ffunction-sections \ 174 -fomit-frame-pointer \ 175 -funwind-tables 176 177 MY_DEFS_Release := \ 178 '-DV8_DEPRECATION_WARNINGS' \ 179 '-D_FILE_OFFSET_BITS=64' \ 180 '-DNO_TCMALLOC' \ 181 '-DDISABLE_NACL' \ 182 '-DCHROMIUM_BUILD' \ 183 '-DUSE_LIBJPEG_TURBO=1' \ 184 '-DENABLE_WEBRTC=1' \ 185 '-DUSE_PROPRIETARY_CODECS' \ 186 '-DENABLE_BROWSER_CDMS' \ 187 '-DENABLE_CONFIGURATION_POLICY' \ 188 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 189 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 190 '-DENABLE_EGLIMAGE=1' \ 191 '-DCLD_VERSION=1' \ 192 '-DENABLE_PRINTING=1' \ 193 '-DENABLE_MANAGED_USERS=1' \ 194 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 195 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 196 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 197 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 198 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 199 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 200 '-DVIDEO_HOLE=1' \ 201 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 202 '-DUSE_OPENSSL=1' \ 203 '-DUSE_OPENSSL_CERTS=1' \ 204 '-D__STDC_CONSTANT_MACROS' \ 205 '-D__STDC_FORMAT_MACROS' \ 206 '-DANDROID' \ 207 '-D__GNU_SOURCE=1' \ 208 '-DUSE_STLPORT=1' \ 209 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 210 '-DCHROME_BUILD_ID=""' \ 211 '-DNDEBUG' \ 212 '-DNVALGRIND' \ 213 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 214 '-D_FORTIFY_SOURCE=2' 215 216 217 # Include paths placed before CFLAGS/CPPFLAGS 218 LOCAL_C_INCLUDES_Release := \ 219 $(gyp_shared_intermediate_dir) \ 220 $(LOCAL_PATH)/sdch/open-vcdiff/src \ 221 $(LOCAL_PATH)/sdch/linux \ 222 $(LOCAL_PATH) \ 223 $(LOCAL_PATH)/third_party/zlib \ 224 $(PWD)/frameworks/wilhelm/include \ 225 $(PWD)/bionic \ 226 $(PWD)/external/stlport/stlport 227 228 229 # Flags passed to only C++ (and not C) files. 230 LOCAL_CPPFLAGS_Release := \ 231 -fno-exceptions \ 232 -fno-rtti \ 233 -fno-threadsafe-statics \ 234 -fvisibility-inlines-hidden \ 235 -Wsign-compare \ 236 -Wno-uninitialized \ 237 -std=gnu++11 \ 238 -Wno-narrowing \ 239 -Wno-literal-suffix \ 240 -Wno-non-virtual-dtor \ 241 -Wno-sign-promo 242 243 244 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 245 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 246 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 247 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 248 ### Rules for final target. 249 250 LOCAL_SHARED_LIBRARIES := \ 251 libstlport \ 252 libdl 253 254 # Add target alias to "gyp_all_modules" target. 255 .PHONY: gyp_all_modules 256 gyp_all_modules: sdch_sdch_gyp 257 258 # Alias gyp target name. 259 .PHONY: sdch 260 sdch: sdch_sdch_gyp 261 262 include $(BUILD_STATIC_LIBRARY) 263