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 := third_party_brotli_brotli_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_GENERATED_SOURCES := 21 22 GYP_COPIED_SOURCE_ORIGIN_DIRS := 23 24 LOCAL_SRC_FILES := \ 25 third_party/brotli/src/brotli/dec/bit_reader.c \ 26 third_party/brotli/src/brotli/dec/decode.c \ 27 third_party/brotli/src/brotli/dec/huffman.c \ 28 third_party/brotli/src/brotli/dec/safe_malloc.c \ 29 third_party/brotli/src/brotli/dec/streams.c 30 31 32 # Flags passed to both C and C++ files. 33 MY_CFLAGS_Debug := \ 34 -fstack-protector \ 35 --param=ssp-buffer-size=4 \ 36 -fno-strict-aliasing \ 37 -Wno-unused-parameter \ 38 -Wno-missing-field-initializers \ 39 -fvisibility=hidden \ 40 -pipe \ 41 -fPIC \ 42 -Wno-unused-local-typedefs \ 43 -Wno-format \ 44 -fno-tree-sra \ 45 -fno-caller-saves \ 46 -Wno-psabi \ 47 -fno-partial-inlining \ 48 -fno-early-inlining \ 49 -fno-tree-copy-prop \ 50 -fno-tree-loop-optimize \ 51 -fno-move-loop-invariants \ 52 -ffunction-sections \ 53 -funwind-tables \ 54 -g \ 55 -fstack-protector \ 56 -fno-short-enums \ 57 -finline-limit=64 \ 58 -Wa,--noexecstack \ 59 -U_FORTIFY_SOURCE \ 60 -Wno-extra \ 61 -Wno-ignored-qualifiers \ 62 -Wno-type-limits \ 63 -Wno-unused-but-set-variable \ 64 -Wno-address \ 65 -Wno-format-security \ 66 -Wno-return-type \ 67 -Wno-sequence-point \ 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 '-DANDROID' \ 104 '-D__GNU_SOURCE=1' \ 105 '-DUSE_STLPORT=1' \ 106 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 107 '-DCHROME_BUILD_ID=""' \ 108 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 109 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 110 '-D_DEBUG' 111 112 113 # Include paths placed before CFLAGS/CPPFLAGS 114 LOCAL_C_INCLUDES_Debug := \ 115 $(gyp_shared_intermediate_dir) \ 116 $(LOCAL_PATH)/third_party/brotli/src/brotli/dec \ 117 $(PWD)/frameworks/wilhelm/include \ 118 $(PWD)/bionic \ 119 $(PWD)/external/stlport/stlport 120 121 122 # Flags passed to only C++ (and not C) files. 123 LOCAL_CPPFLAGS_Debug := \ 124 -fno-exceptions \ 125 -fno-rtti \ 126 -fno-threadsafe-statics \ 127 -fvisibility-inlines-hidden \ 128 -Wno-deprecated \ 129 -Wno-abi \ 130 -std=gnu++11 \ 131 -Wno-narrowing \ 132 -Wno-literal-suffix \ 133 -Wno-non-virtual-dtor \ 134 -Wno-sign-promo \ 135 -Wno-non-virtual-dtor 136 137 138 # Flags passed to both C and C++ files. 139 MY_CFLAGS_Release := \ 140 -fstack-protector \ 141 --param=ssp-buffer-size=4 \ 142 -fno-strict-aliasing \ 143 -Wno-unused-parameter \ 144 -Wno-missing-field-initializers \ 145 -fvisibility=hidden \ 146 -pipe \ 147 -fPIC \ 148 -Wno-unused-local-typedefs \ 149 -Wno-format \ 150 -fno-tree-sra \ 151 -fno-caller-saves \ 152 -Wno-psabi \ 153 -fno-partial-inlining \ 154 -fno-early-inlining \ 155 -fno-tree-copy-prop \ 156 -fno-tree-loop-optimize \ 157 -fno-move-loop-invariants \ 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 -Wno-address \ 171 -Wno-format-security \ 172 -Wno-return-type \ 173 -Wno-sequence-point \ 174 -Os \ 175 -fno-ident \ 176 -fdata-sections \ 177 -ffunction-sections \ 178 -fomit-frame-pointer \ 179 -funwind-tables 180 181 MY_DEFS_Release := \ 182 '-DV8_DEPRECATION_WARNINGS' \ 183 '-D_FILE_OFFSET_BITS=64' \ 184 '-DNO_TCMALLOC' \ 185 '-DDISABLE_NACL' \ 186 '-DCHROMIUM_BUILD' \ 187 '-DUSE_LIBJPEG_TURBO=1' \ 188 '-DENABLE_WEBRTC=1' \ 189 '-DUSE_PROPRIETARY_CODECS' \ 190 '-DENABLE_BROWSER_CDMS' \ 191 '-DENABLE_CONFIGURATION_POLICY' \ 192 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 193 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 194 '-DENABLE_EGLIMAGE=1' \ 195 '-DCLD_VERSION=1' \ 196 '-DENABLE_PRINTING=1' \ 197 '-DENABLE_MANAGED_USERS=1' \ 198 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 199 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 200 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 201 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 202 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 203 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 204 '-DVIDEO_HOLE=1' \ 205 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 206 '-DUSE_OPENSSL=1' \ 207 '-DUSE_OPENSSL_CERTS=1' \ 208 '-DANDROID' \ 209 '-D__GNU_SOURCE=1' \ 210 '-DUSE_STLPORT=1' \ 211 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 212 '-DCHROME_BUILD_ID=""' \ 213 '-DNDEBUG' \ 214 '-DNVALGRIND' \ 215 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 216 217 218 # Include paths placed before CFLAGS/CPPFLAGS 219 LOCAL_C_INCLUDES_Release := \ 220 $(gyp_shared_intermediate_dir) \ 221 $(LOCAL_PATH)/third_party/brotli/src/brotli/dec \ 222 $(PWD)/frameworks/wilhelm/include \ 223 $(PWD)/bionic \ 224 $(PWD)/external/stlport/stlport 225 226 227 # Flags passed to only C++ (and not C) files. 228 LOCAL_CPPFLAGS_Release := \ 229 -fno-exceptions \ 230 -fno-rtti \ 231 -fno-threadsafe-statics \ 232 -fvisibility-inlines-hidden \ 233 -Wno-deprecated \ 234 -Wno-abi \ 235 -std=gnu++11 \ 236 -Wno-narrowing \ 237 -Wno-literal-suffix \ 238 -Wno-non-virtual-dtor \ 239 -Wno-sign-promo \ 240 -Wno-non-virtual-dtor 241 242 243 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 244 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 245 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 246 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 247 ### Rules for final target. 248 249 LOCAL_SHARED_LIBRARIES := \ 250 libstlport \ 251 libdl 252 253 # Add target alias to "gyp_all_modules" target. 254 .PHONY: gyp_all_modules 255 gyp_all_modules: third_party_brotli_brotli_gyp 256 257 # Alias gyp target name. 258 .PHONY: brotli 259 brotli: third_party_brotli_brotli_gyp 260 261 include $(BUILD_STATIC_LIBRARY) 262