1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := v8_tools_gyp_v8_libbase_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 v8/src/base/atomicops_internals_x86_gcc.cc \ 27 v8/src/base/bits.cc \ 28 v8/src/base/cpu.cc \ 29 v8/src/base/division-by-constant.cc \ 30 v8/src/base/logging.cc \ 31 v8/src/base/once.cc \ 32 v8/src/base/platform/time.cc \ 33 v8/src/base/platform/condition-variable.cc \ 34 v8/src/base/platform/mutex.cc \ 35 v8/src/base/platform/semaphore.cc \ 36 v8/src/base/sys-info.cc \ 37 v8/src/base/utils/random-number-generator.cc \ 38 v8/src/base/platform/platform-posix.cc \ 39 v8/src/base/platform/platform-linux.cc 40 41 42# Flags passed to both C and C++ files. 43MY_CFLAGS_Debug := \ 44 --param=ssp-buffer-size=4 \ 45 -fno-strict-aliasing \ 46 -Wno-unused-parameter \ 47 -Wno-missing-field-initializers \ 48 -fvisibility=hidden \ 49 -pipe \ 50 -fPIC \ 51 -Wno-unused-local-typedefs \ 52 -Wno-format \ 53 -msse2 \ 54 -mfpmath=sse \ 55 -mmmx \ 56 -m32 \ 57 -ffunction-sections \ 58 -funwind-tables \ 59 -g \ 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 -fno-stack-protector \ 69 -Wno-address \ 70 -Wno-format-security \ 71 -Wno-return-type \ 72 -Wno-sequence-point \ 73 -m32 \ 74 -Os \ 75 -g \ 76 -gdwarf-4 \ 77 -fdata-sections \ 78 -ffunction-sections \ 79 -fomit-frame-pointer \ 80 -funwind-tables 81 82MY_DEFS_Debug := \ 83 '-DV8_DEPRECATION_WARNINGS' \ 84 '-D_FILE_OFFSET_BITS=64' \ 85 '-DNO_TCMALLOC' \ 86 '-DDISABLE_NACL' \ 87 '-DCHROMIUM_BUILD' \ 88 '-DUSE_LIBJPEG_TURBO=1' \ 89 '-DENABLE_WEBRTC=1' \ 90 '-DUSE_PROPRIETARY_CODECS' \ 91 '-DENABLE_BROWSER_CDMS' \ 92 '-DENABLE_CONFIGURATION_POLICY' \ 93 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 94 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 95 '-DENABLE_EGLIMAGE=1' \ 96 '-DCLD_VERSION=1' \ 97 '-DENABLE_PRINTING=1' \ 98 '-DENABLE_MANAGED_USERS=1' \ 99 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 100 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 101 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 102 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 103 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 104 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 105 '-DVIDEO_HOLE=1' \ 106 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 107 '-DV8_TARGET_ARCH_IA32' \ 108 '-DV8_I18N_SUPPORT' \ 109 '-DUSE_OPENSSL=1' \ 110 '-DUSE_OPENSSL_CERTS=1' \ 111 '-DANDROID' \ 112 '-D__GNU_SOURCE=1' \ 113 '-DUSE_STLPORT=1' \ 114 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 115 '-DCHROME_BUILD_ID=""' \ 116 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 117 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 118 '-D_DEBUG' \ 119 '-DENABLE_DISASSEMBLER' \ 120 '-DV8_ENABLE_CHECKS' \ 121 '-DOBJECT_PRINT' \ 122 '-DVERIFY_HEAP' \ 123 '-DENABLE_EXTRA_CHECKS' \ 124 '-DENABLE_HANDLE_ZAPPING' 125 126 127# Include paths placed before CFLAGS/CPPFLAGS 128LOCAL_C_INCLUDES_Debug := \ 129 $(LOCAL_PATH)/v8 \ 130 $(gyp_shared_intermediate_dir) \ 131 $(PWD)/frameworks/wilhelm/include \ 132 $(PWD)/bionic \ 133 $(PWD)/external/stlport/stlport 134 135 136# Flags passed to only C++ (and not C) files. 137LOCAL_CPPFLAGS_Debug := \ 138 -fno-exceptions \ 139 -fno-rtti \ 140 -fno-threadsafe-statics \ 141 -fvisibility-inlines-hidden \ 142 -Wno-deprecated \ 143 -std=gnu++11 \ 144 -Wno-narrowing \ 145 -Wno-literal-suffix \ 146 -Wno-non-virtual-dtor \ 147 -Wno-sign-promo \ 148 -Wno-non-virtual-dtor 149 150 151# Flags passed to both C and C++ files. 152MY_CFLAGS_Release := \ 153 --param=ssp-buffer-size=4 \ 154 -fno-strict-aliasing \ 155 -Wno-unused-parameter \ 156 -Wno-missing-field-initializers \ 157 -fvisibility=hidden \ 158 -pipe \ 159 -fPIC \ 160 -Wno-unused-local-typedefs \ 161 -Wno-format \ 162 -msse2 \ 163 -mfpmath=sse \ 164 -mmmx \ 165 -m32 \ 166 -ffunction-sections \ 167 -funwind-tables \ 168 -g \ 169 -fno-short-enums \ 170 -finline-limit=64 \ 171 -Wa,--noexecstack \ 172 -U_FORTIFY_SOURCE \ 173 -Wno-extra \ 174 -Wno-ignored-qualifiers \ 175 -Wno-type-limits \ 176 -Wno-unused-but-set-variable \ 177 -fno-stack-protector \ 178 -Wno-address \ 179 -Wno-format-security \ 180 -Wno-return-type \ 181 -Wno-sequence-point \ 182 -m32 \ 183 -fno-ident \ 184 -fdata-sections \ 185 -ffunction-sections \ 186 -fomit-frame-pointer \ 187 -funwind-tables \ 188 -fdata-sections \ 189 -ffunction-sections \ 190 -O2 191 192MY_DEFS_Release := \ 193 '-DV8_DEPRECATION_WARNINGS' \ 194 '-D_FILE_OFFSET_BITS=64' \ 195 '-DNO_TCMALLOC' \ 196 '-DDISABLE_NACL' \ 197 '-DCHROMIUM_BUILD' \ 198 '-DUSE_LIBJPEG_TURBO=1' \ 199 '-DENABLE_WEBRTC=1' \ 200 '-DUSE_PROPRIETARY_CODECS' \ 201 '-DENABLE_BROWSER_CDMS' \ 202 '-DENABLE_CONFIGURATION_POLICY' \ 203 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 204 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 205 '-DENABLE_EGLIMAGE=1' \ 206 '-DCLD_VERSION=1' \ 207 '-DENABLE_PRINTING=1' \ 208 '-DENABLE_MANAGED_USERS=1' \ 209 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 210 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 211 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 212 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 213 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 214 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 215 '-DVIDEO_HOLE=1' \ 216 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 217 '-DV8_TARGET_ARCH_IA32' \ 218 '-DV8_I18N_SUPPORT' \ 219 '-DUSE_OPENSSL=1' \ 220 '-DUSE_OPENSSL_CERTS=1' \ 221 '-DANDROID' \ 222 '-D__GNU_SOURCE=1' \ 223 '-DUSE_STLPORT=1' \ 224 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 225 '-DCHROME_BUILD_ID=""' \ 226 '-DNDEBUG' \ 227 '-DNVALGRIND' \ 228 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 229 230 231# Include paths placed before CFLAGS/CPPFLAGS 232LOCAL_C_INCLUDES_Release := \ 233 $(LOCAL_PATH)/v8 \ 234 $(gyp_shared_intermediate_dir) \ 235 $(PWD)/frameworks/wilhelm/include \ 236 $(PWD)/bionic \ 237 $(PWD)/external/stlport/stlport 238 239 240# Flags passed to only C++ (and not C) files. 241LOCAL_CPPFLAGS_Release := \ 242 -fno-exceptions \ 243 -fno-rtti \ 244 -fno-threadsafe-statics \ 245 -fvisibility-inlines-hidden \ 246 -Wno-deprecated \ 247 -std=gnu++11 \ 248 -Wno-narrowing \ 249 -Wno-literal-suffix \ 250 -Wno-non-virtual-dtor \ 251 -Wno-sign-promo \ 252 -Wno-non-virtual-dtor 253 254 255LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 256LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 257LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 258LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 259### Rules for final target. 260 261LOCAL_SHARED_LIBRARIES := \ 262 libstlport \ 263 libdl 264 265### Set directly by aosp_build_settings. 266LOCAL_FDO_SUPPORT := true 267 268# Add target alias to "gyp_all_modules" target. 269.PHONY: gyp_all_modules 270gyp_all_modules: v8_tools_gyp_v8_libbase_gyp 271 272# Alias gyp target name. 273.PHONY: v8_libbase 274v8_libbase: v8_tools_gyp_v8_libbase_gyp 275 276include $(BUILD_STATIC_LIBRARY) 277