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