1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := base_base_static_gyp 7LOCAL_MODULE_SUFFIX := .a 8LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 9gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 11 12# Make sure our deps are built first. 13GYP_TARGET_DEPENDENCIES := 14 15GYP_GENERATED_OUTPUTS := 16 17# Make sure our deps and generated files are built first. 18LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 19 20LOCAL_CPP_EXTENSION := .cc 21LOCAL_GENERATED_SOURCES := 22 23GYP_COPIED_SOURCE_ORIGIN_DIRS := 24 25LOCAL_SRC_FILES := \ 26 base/base_switches.cc 27 28 29# Flags passed to both C and C++ files. 30MY_CFLAGS_Debug := \ 31 --param=ssp-buffer-size=4 \ 32 -Werror \ 33 -fno-strict-aliasing \ 34 -Wall \ 35 -Wno-unused-parameter \ 36 -Wno-missing-field-initializers \ 37 -fvisibility=hidden \ 38 -pipe \ 39 -fPIC \ 40 -Wno-unused-local-typedefs \ 41 -ffunction-sections \ 42 -funwind-tables \ 43 -g \ 44 -fno-short-enums \ 45 -finline-limit=64 \ 46 -Wa,--noexecstack \ 47 -U_FORTIFY_SOURCE \ 48 -Wno-extra \ 49 -Wno-ignored-qualifiers \ 50 -Wno-type-limits \ 51 -Wno-unused-but-set-variable \ 52 -Os \ 53 -g \ 54 -gdwarf-4 \ 55 -fdata-sections \ 56 -ffunction-sections \ 57 -funwind-tables 58 59MY_DEFS_Debug := \ 60 '-DV8_DEPRECATION_WARNINGS' \ 61 '-D_FILE_OFFSET_BITS=64' \ 62 '-DNO_TCMALLOC' \ 63 '-DDISABLE_NACL' \ 64 '-DCHROMIUM_BUILD' \ 65 '-DUSE_LIBJPEG_TURBO=1' \ 66 '-DENABLE_WEBRTC=1' \ 67 '-DUSE_PROPRIETARY_CODECS' \ 68 '-DENABLE_BROWSER_CDMS' \ 69 '-DENABLE_CONFIGURATION_POLICY' \ 70 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 71 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 72 '-DENABLE_EGLIMAGE=1' \ 73 '-DCLD_VERSION=1' \ 74 '-DENABLE_PRINTING=1' \ 75 '-DENABLE_MANAGED_USERS=1' \ 76 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 77 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 78 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 79 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 80 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 81 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 82 '-DVIDEO_HOLE=1' \ 83 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 84 '-DUSE_OPENSSL=1' \ 85 '-DUSE_OPENSSL_CERTS=1' \ 86 '-D__STDC_CONSTANT_MACROS' \ 87 '-D__STDC_FORMAT_MACROS' \ 88 '-DANDROID' \ 89 '-D__GNU_SOURCE=1' \ 90 '-DUSE_STLPORT=1' \ 91 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 92 '-DCHROME_BUILD_ID=""' \ 93 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 94 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 95 '-D_DEBUG' 96 97 98# Include paths placed before CFLAGS/CPPFLAGS 99LOCAL_C_INCLUDES_Debug := \ 100 $(gyp_shared_intermediate_dir) \ 101 $(LOCAL_PATH) \ 102 $(PWD)/frameworks/wilhelm/include \ 103 $(PWD)/bionic \ 104 $(PWD)/external/stlport/stlport 105 106 107# Flags passed to only C++ (and not C) files. 108LOCAL_CPPFLAGS_Debug := \ 109 -fno-exceptions \ 110 -fno-rtti \ 111 -fno-threadsafe-statics \ 112 -fvisibility-inlines-hidden \ 113 -Wsign-compare \ 114 -std=gnu++11 \ 115 -Wno-narrowing \ 116 -Wno-literal-suffix \ 117 -Wno-non-virtual-dtor \ 118 -Wno-sign-promo 119 120 121# Flags passed to both C and C++ files. 122MY_CFLAGS_Release := \ 123 --param=ssp-buffer-size=4 \ 124 -Werror \ 125 -fno-strict-aliasing \ 126 -Wall \ 127 -Wno-unused-parameter \ 128 -Wno-missing-field-initializers \ 129 -fvisibility=hidden \ 130 -pipe \ 131 -fPIC \ 132 -Wno-unused-local-typedefs \ 133 -ffunction-sections \ 134 -funwind-tables \ 135 -g \ 136 -fno-short-enums \ 137 -finline-limit=64 \ 138 -Wa,--noexecstack \ 139 -U_FORTIFY_SOURCE \ 140 -Wno-extra \ 141 -Wno-ignored-qualifiers \ 142 -Wno-type-limits \ 143 -Wno-unused-but-set-variable \ 144 -fno-ident \ 145 -fdata-sections \ 146 -ffunction-sections \ 147 -funwind-tables \ 148 -O2 149 150MY_DEFS_Release := \ 151 '-DV8_DEPRECATION_WARNINGS' \ 152 '-D_FILE_OFFSET_BITS=64' \ 153 '-DNO_TCMALLOC' \ 154 '-DDISABLE_NACL' \ 155 '-DCHROMIUM_BUILD' \ 156 '-DUSE_LIBJPEG_TURBO=1' \ 157 '-DENABLE_WEBRTC=1' \ 158 '-DUSE_PROPRIETARY_CODECS' \ 159 '-DENABLE_BROWSER_CDMS' \ 160 '-DENABLE_CONFIGURATION_POLICY' \ 161 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 162 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 163 '-DENABLE_EGLIMAGE=1' \ 164 '-DCLD_VERSION=1' \ 165 '-DENABLE_PRINTING=1' \ 166 '-DENABLE_MANAGED_USERS=1' \ 167 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 168 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 169 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 170 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 171 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 172 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 173 '-DVIDEO_HOLE=1' \ 174 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 175 '-DUSE_OPENSSL=1' \ 176 '-DUSE_OPENSSL_CERTS=1' \ 177 '-D__STDC_CONSTANT_MACROS' \ 178 '-D__STDC_FORMAT_MACROS' \ 179 '-DANDROID' \ 180 '-D__GNU_SOURCE=1' \ 181 '-DUSE_STLPORT=1' \ 182 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 183 '-DCHROME_BUILD_ID=""' \ 184 '-DNDEBUG' \ 185 '-DNVALGRIND' \ 186 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 187 '-D_FORTIFY_SOURCE=2' 188 189 190# Include paths placed before CFLAGS/CPPFLAGS 191LOCAL_C_INCLUDES_Release := \ 192 $(gyp_shared_intermediate_dir) \ 193 $(LOCAL_PATH) \ 194 $(PWD)/frameworks/wilhelm/include \ 195 $(PWD)/bionic \ 196 $(PWD)/external/stlport/stlport 197 198 199# Flags passed to only C++ (and not C) files. 200LOCAL_CPPFLAGS_Release := \ 201 -fno-exceptions \ 202 -fno-rtti \ 203 -fno-threadsafe-statics \ 204 -fvisibility-inlines-hidden \ 205 -Wsign-compare \ 206 -std=gnu++11 \ 207 -Wno-narrowing \ 208 -Wno-literal-suffix \ 209 -Wno-non-virtual-dtor \ 210 -Wno-sign-promo 211 212 213LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 214LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 215LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 216LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 217### Rules for final target. 218 219LOCAL_SHARED_LIBRARIES := \ 220 libstlport \ 221 libdl 222 223# Add target alias to "gyp_all_modules" target. 224.PHONY: gyp_all_modules 225gyp_all_modules: base_base_static_gyp 226 227# Alias gyp target name. 228.PHONY: base_static 229base_static: base_base_static_gyp 230 231include $(BUILD_STATIC_LIBRARY) 232