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 --param=ssp-buffer-size=4 \ 43 -Werror \ 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 -gdwarf-4 \ 69 -fdata-sections \ 70 -ffunction-sections \ 71 -funwind-tables 72 73 MY_DEFS_Debug := \ 74 '-DV8_DEPRECATION_WARNINGS' \ 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="https://proxy-dev.googlezip.net:443/"' \ 92 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 93 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 94 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 95 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 96 '-DVIDEO_HOLE=1' \ 97 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 98 '-DUSE_OPENSSL=1' \ 99 '-DUSE_OPENSSL_CERTS=1' \ 100 '-D__STDC_CONSTANT_MACROS' \ 101 '-D__STDC_FORMAT_MACROS' \ 102 '-DANDROID' \ 103 '-D__GNU_SOURCE=1' \ 104 '-DUSE_STLPORT=1' \ 105 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 106 '-DCHROME_BUILD_ID=""' \ 107 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 108 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 109 '-D_DEBUG' 110 111 112 # Include paths placed before CFLAGS/CPPFLAGS 113 LOCAL_C_INCLUDES_Debug := \ 114 $(gyp_shared_intermediate_dir) \ 115 $(LOCAL_PATH)/sdch/open-vcdiff/src \ 116 $(LOCAL_PATH)/sdch/linux \ 117 $(LOCAL_PATH) \ 118 $(LOCAL_PATH)/third_party/zlib \ 119 $(PWD)/frameworks/wilhelm/include \ 120 $(PWD)/bionic \ 121 $(PWD)/external/stlport/stlport 122 123 124 # Flags passed to only C++ (and not C) files. 125 LOCAL_CPPFLAGS_Debug := \ 126 -fno-exceptions \ 127 -fno-rtti \ 128 -fno-threadsafe-statics \ 129 -fvisibility-inlines-hidden \ 130 -Wsign-compare \ 131 -std=gnu++11 \ 132 -Wno-narrowing \ 133 -Wno-literal-suffix \ 134 -Wno-non-virtual-dtor \ 135 -Wno-sign-promo 136 137 138 # Flags passed to both C and C++ files. 139 MY_CFLAGS_Release := \ 140 --param=ssp-buffer-size=4 \ 141 -Werror \ 142 -fno-strict-aliasing \ 143 -Wall \ 144 -Wno-unused-parameter \ 145 -Wno-missing-field-initializers \ 146 -fvisibility=hidden \ 147 -pipe \ 148 -fPIC \ 149 -Wno-unused-local-typedefs \ 150 -include \ 151 ./sdch/logging_forward.h \ 152 -Wno-deprecated-declarations \ 153 -ffunction-sections \ 154 -funwind-tables \ 155 -g \ 156 -fno-short-enums \ 157 -finline-limit=64 \ 158 -Wa,--noexecstack \ 159 -U_FORTIFY_SOURCE \ 160 -Wno-extra \ 161 -Wno-ignored-qualifiers \ 162 -Wno-type-limits \ 163 -Wno-unused-but-set-variable \ 164 -Os \ 165 -fno-ident \ 166 -fdata-sections \ 167 -ffunction-sections \ 168 -funwind-tables 169 170 MY_DEFS_Release := \ 171 '-DV8_DEPRECATION_WARNINGS' \ 172 '-D_FILE_OFFSET_BITS=64' \ 173 '-DNO_TCMALLOC' \ 174 '-DDISABLE_NACL' \ 175 '-DCHROMIUM_BUILD' \ 176 '-DUSE_LIBJPEG_TURBO=1' \ 177 '-DENABLE_WEBRTC=1' \ 178 '-DUSE_PROPRIETARY_CODECS' \ 179 '-DENABLE_BROWSER_CDMS' \ 180 '-DENABLE_CONFIGURATION_POLICY' \ 181 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 182 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 183 '-DENABLE_EGLIMAGE=1' \ 184 '-DCLD_VERSION=1' \ 185 '-DENABLE_PRINTING=1' \ 186 '-DENABLE_MANAGED_USERS=1' \ 187 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 188 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 189 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 190 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 191 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 192 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 193 '-DVIDEO_HOLE=1' \ 194 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 195 '-DUSE_OPENSSL=1' \ 196 '-DUSE_OPENSSL_CERTS=1' \ 197 '-D__STDC_CONSTANT_MACROS' \ 198 '-D__STDC_FORMAT_MACROS' \ 199 '-DANDROID' \ 200 '-D__GNU_SOURCE=1' \ 201 '-DUSE_STLPORT=1' \ 202 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 203 '-DCHROME_BUILD_ID=""' \ 204 '-DNDEBUG' \ 205 '-DNVALGRIND' \ 206 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 207 '-D_FORTIFY_SOURCE=2' 208 209 210 # Include paths placed before CFLAGS/CPPFLAGS 211 LOCAL_C_INCLUDES_Release := \ 212 $(gyp_shared_intermediate_dir) \ 213 $(LOCAL_PATH)/sdch/open-vcdiff/src \ 214 $(LOCAL_PATH)/sdch/linux \ 215 $(LOCAL_PATH) \ 216 $(LOCAL_PATH)/third_party/zlib \ 217 $(PWD)/frameworks/wilhelm/include \ 218 $(PWD)/bionic \ 219 $(PWD)/external/stlport/stlport 220 221 222 # Flags passed to only C++ (and not C) files. 223 LOCAL_CPPFLAGS_Release := \ 224 -fno-exceptions \ 225 -fno-rtti \ 226 -fno-threadsafe-statics \ 227 -fvisibility-inlines-hidden \ 228 -Wsign-compare \ 229 -std=gnu++11 \ 230 -Wno-narrowing \ 231 -Wno-literal-suffix \ 232 -Wno-non-virtual-dtor \ 233 -Wno-sign-promo 234 235 236 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 237 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 238 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 239 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 240 ### Rules for final target. 241 242 LOCAL_SHARED_LIBRARIES := \ 243 libstlport \ 244 libdl 245 246 # Add target alias to "gyp_all_modules" target. 247 .PHONY: gyp_all_modules 248 gyp_all_modules: sdch_sdch_gyp 249 250 # Alias gyp target name. 251 .PHONY: sdch 252 sdch: sdch_sdch_gyp 253 254 include $(BUILD_STATIC_LIBRARY) 255