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_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_GENERATED_SOURCES := 22 23 GYP_COPIED_SOURCE_ORIGIN_DIRS := 24 25 LOCAL_SRC_FILES := \ 26 third_party/brotli/src/brotli/dec/bit_reader.c \ 27 third_party/brotli/src/brotli/dec/decode.c \ 28 third_party/brotli/src/brotli/dec/huffman.c \ 29 third_party/brotli/src/brotli/dec/safe_malloc.c \ 30 third_party/brotli/src/brotli/dec/streams.c 31 32 33 # Flags passed to both C and C++ files. 34 MY_CFLAGS_Debug := \ 35 -fstack-protector \ 36 --param=ssp-buffer-size=4 \ 37 -fno-exceptions \ 38 -fno-strict-aliasing \ 39 -Wno-unused-parameter \ 40 -Wno-missing-field-initializers \ 41 -fvisibility=hidden \ 42 -pipe \ 43 -fPIC \ 44 -Wno-unused-local-typedefs \ 45 -Wno-format \ 46 -fno-tree-sra \ 47 -fno-partial-inlining \ 48 -fno-early-inlining \ 49 -fno-tree-copy-prop \ 50 -fno-tree-loop-optimize \ 51 -fno-move-loop-invariants \ 52 -fno-caller-saves \ 53 -Wno-psabi \ 54 -ffunction-sections \ 55 -funwind-tables \ 56 -g \ 57 -fstack-protector \ 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 -Wno-address \ 67 -Wno-format-security \ 68 -Wno-return-type \ 69 -Wno-sequence-point \ 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 '-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-rtti \ 125 -fno-threadsafe-statics \ 126 -fvisibility-inlines-hidden \ 127 -Wno-deprecated \ 128 -Wno-abi \ 129 -Wno-non-virtual-dtor \ 130 -Wno-sign-promo \ 131 -Wno-non-virtual-dtor 132 133 134 LOCAL_FDO_SUPPORT_Debug := false 135 136 # Flags passed to both C and C++ files. 137 MY_CFLAGS_Release := \ 138 -fstack-protector \ 139 --param=ssp-buffer-size=4 \ 140 -fno-exceptions \ 141 -fno-strict-aliasing \ 142 -Wno-unused-parameter \ 143 -Wno-missing-field-initializers \ 144 -fvisibility=hidden \ 145 -pipe \ 146 -fPIC \ 147 -Wno-unused-local-typedefs \ 148 -Wno-format \ 149 -fno-tree-sra \ 150 -fno-partial-inlining \ 151 -fno-early-inlining \ 152 -fno-tree-copy-prop \ 153 -fno-tree-loop-optimize \ 154 -fno-move-loop-invariants \ 155 -fno-caller-saves \ 156 -Wno-psabi \ 157 -ffunction-sections \ 158 -funwind-tables \ 159 -g \ 160 -fstack-protector \ 161 -fno-short-enums \ 162 -finline-limit=64 \ 163 -Wa,--noexecstack \ 164 -U_FORTIFY_SOURCE \ 165 -Wno-extra \ 166 -Wno-ignored-qualifiers \ 167 -Wno-type-limits \ 168 -Wno-unused-but-set-variable \ 169 -Wno-address \ 170 -Wno-format-security \ 171 -Wno-return-type \ 172 -Wno-sequence-point \ 173 -Os \ 174 -fno-ident \ 175 -fdata-sections \ 176 -ffunction-sections \ 177 -fomit-frame-pointer \ 178 -funwind-tables 179 180 MY_DEFS_Release := \ 181 '-DV8_DEPRECATION_WARNINGS' \ 182 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 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="http://proxy-dev.googlezip.net:80/"' \ 200 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 201 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 202 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 203 '-DVIDEO_HOLE=1' \ 204 '-DUSE_OPENSSL=1' \ 205 '-DUSE_OPENSSL_CERTS=1' \ 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 215 216 # Include paths placed before CFLAGS/CPPFLAGS 217 LOCAL_C_INCLUDES_Release := \ 218 $(gyp_shared_intermediate_dir) \ 219 $(LOCAL_PATH)/third_party/brotli/src/brotli/dec \ 220 $(PWD)/frameworks/wilhelm/include \ 221 $(PWD)/bionic \ 222 $(PWD)/external/stlport/stlport 223 224 225 # Flags passed to only C++ (and not C) files. 226 LOCAL_CPPFLAGS_Release := \ 227 -fno-rtti \ 228 -fno-threadsafe-statics \ 229 -fvisibility-inlines-hidden \ 230 -Wno-deprecated \ 231 -Wno-abi \ 232 -Wno-non-virtual-dtor \ 233 -Wno-sign-promo \ 234 -Wno-non-virtual-dtor 235 236 237 LOCAL_FDO_SUPPORT_Release := false 238 239 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 240 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 241 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 242 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 243 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 244 ### Rules for final target. 245 246 LOCAL_LDFLAGS_Debug := \ 247 -Wl,-z,now \ 248 -Wl,-z,relro \ 249 -Wl,--fatal-warnings \ 250 -Wl,-z,noexecstack \ 251 -fPIC \ 252 -Wl,-z,relro \ 253 -Wl,-z,now \ 254 -fuse-ld=gold \ 255 -nostdlib \ 256 -Wl,--no-undefined \ 257 -Wl,--exclude-libs=ALL \ 258 -Wl,--icf=safe \ 259 -Wl,--warn-shared-textrel \ 260 -Wl,-O1 \ 261 -Wl,--as-needed 262 263 264 LOCAL_LDFLAGS_Release := \ 265 -Wl,-z,now \ 266 -Wl,-z,relro \ 267 -Wl,--fatal-warnings \ 268 -Wl,-z,noexecstack \ 269 -fPIC \ 270 -Wl,-z,relro \ 271 -Wl,-z,now \ 272 -fuse-ld=gold \ 273 -nostdlib \ 274 -Wl,--no-undefined \ 275 -Wl,--exclude-libs=ALL \ 276 -Wl,--icf=safe \ 277 -Wl,-O1 \ 278 -Wl,--as-needed \ 279 -Wl,--gc-sections \ 280 -Wl,--warn-shared-textrel 281 282 283 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 284 285 LOCAL_STATIC_LIBRARIES := 286 287 # Enable grouping to fix circular references 288 LOCAL_GROUP_STATIC_LIBRARIES := true 289 290 LOCAL_SHARED_LIBRARIES := \ 291 libstlport \ 292 libdl 293 294 # Add target alias to "gyp_all_modules" target. 295 .PHONY: gyp_all_modules 296 gyp_all_modules: third_party_brotli_brotli_gyp 297 298 # Alias gyp target name. 299 .PHONY: brotli 300 brotli: third_party_brotli_brotli_gyp 301 302 include $(BUILD_STATIC_LIBRARY) 303