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_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp 7 LOCAL_MODULE_SUFFIX := .a 8 LOCAL_IS_HOST_MODULE := true 9 LOCAL_MULTILIB := $(GYP_HOST_MULTILIB) 10 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_HOST_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_CPP_EXTENSION := .cc 22 LOCAL_GENERATED_SOURCES := 23 24 GYP_COPIED_SOURCE_ORIGIN_DIRS := 25 26 LOCAL_SRC_FILES := \ 27 v8/src/base/atomicops_internals_x86_gcc.cc \ 28 v8/src/base/bits.cc \ 29 v8/src/base/cpu.cc \ 30 v8/src/base/division-by-constant.cc \ 31 v8/src/base/logging.cc \ 32 v8/src/base/once.cc \ 33 v8/src/base/platform/time.cc \ 34 v8/src/base/platform/condition-variable.cc \ 35 v8/src/base/platform/mutex.cc \ 36 v8/src/base/platform/semaphore.cc \ 37 v8/src/base/sys-info.cc \ 38 v8/src/base/utils/random-number-generator.cc \ 39 v8/src/base/platform/platform-posix.cc \ 40 v8/src/base/platform/platform-macos.cc 41 42 43 # Flags passed to both C and C++ files. 44 MY_CFLAGS_Debug := \ 45 -fstack-protector \ 46 --param=ssp-buffer-size=4 \ 47 -pthread \ 48 -fno-strict-aliasing \ 49 -Wno-unused-parameter \ 50 -Wno-missing-field-initializers \ 51 -fvisibility=hidden \ 52 -pipe \ 53 -fPIC \ 54 -Wno-format \ 55 -Wheader-hygiene \ 56 -Wno-char-subscripts \ 57 -Wno-unneeded-internal-declaration \ 58 -Wno-covered-switch-default \ 59 -Wstring-conversion \ 60 -Wno-c++11-narrowing \ 61 -Wno-deprecated-register \ 62 -Wno-unused-local-typedef \ 63 -m64 \ 64 -Os \ 65 -g \ 66 -gdwarf-4 \ 67 -fdata-sections \ 68 -ffunction-sections \ 69 -funwind-tables 70 71 MY_DEFS_Debug := \ 72 '-DV8_DEPRECATION_WARNINGS' \ 73 '-D_FILE_OFFSET_BITS=64' \ 74 '-DNO_TCMALLOC' \ 75 '-DDISABLE_NACL' \ 76 '-DCHROMIUM_BUILD' \ 77 '-DUSE_LIBJPEG_TURBO=1' \ 78 '-DENABLE_WEBRTC=1' \ 79 '-DUSE_PROPRIETARY_CODECS' \ 80 '-DENABLE_BROWSER_CDMS' \ 81 '-DENABLE_CONFIGURATION_POLICY' \ 82 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 83 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 84 '-DENABLE_EGLIMAGE=1' \ 85 '-DCLD_VERSION=1' \ 86 '-DENABLE_PRINTING=1' \ 87 '-DENABLE_MANAGED_USERS=1' \ 88 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 89 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 90 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 91 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 92 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 93 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 94 '-DVIDEO_HOLE=1' \ 95 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 96 '-DV8_TARGET_ARCH_ARM64' \ 97 '-DV8_I18N_SUPPORT' \ 98 '-DUSE_OPENSSL=1' \ 99 '-DUSE_OPENSSL_CERTS=1' \ 100 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 101 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 102 '-D_DEBUG' \ 103 '-DENABLE_DISASSEMBLER' \ 104 '-DV8_ENABLE_CHECKS' \ 105 '-DOBJECT_PRINT' \ 106 '-DVERIFY_HEAP' \ 107 '-DENABLE_EXTRA_CHECKS' \ 108 '-DENABLE_HANDLE_ZAPPING' 109 110 111 # Include paths placed before CFLAGS/CPPFLAGS 112 LOCAL_C_INCLUDES_Debug := \ 113 $(LOCAL_PATH)/v8 \ 114 $(gyp_shared_intermediate_dir) 115 116 117 # Flags passed to only C++ (and not C) files. 118 LOCAL_CPPFLAGS_Debug := \ 119 -fno-exceptions \ 120 -fno-rtti \ 121 -fno-threadsafe-statics \ 122 -fvisibility-inlines-hidden \ 123 -Wno-deprecated \ 124 -std=gnu++11 125 126 127 # Flags passed to both C and C++ files. 128 MY_CFLAGS_Release := \ 129 -fstack-protector \ 130 --param=ssp-buffer-size=4 \ 131 -pthread \ 132 -fno-strict-aliasing \ 133 -Wno-unused-parameter \ 134 -Wno-missing-field-initializers \ 135 -fvisibility=hidden \ 136 -pipe \ 137 -fPIC \ 138 -Wno-format \ 139 -Wheader-hygiene \ 140 -Wno-char-subscripts \ 141 -Wno-unneeded-internal-declaration \ 142 -Wno-covered-switch-default \ 143 -Wstring-conversion \ 144 -Wno-c++11-narrowing \ 145 -Wno-deprecated-register \ 146 -Wno-unused-local-typedef \ 147 -m64 \ 148 -fno-ident \ 149 -fdata-sections \ 150 -ffunction-sections \ 151 -funwind-tables \ 152 -fdata-sections \ 153 -ffunction-sections \ 154 -O2 155 156 MY_DEFS_Release := \ 157 '-DV8_DEPRECATION_WARNINGS' \ 158 '-D_FILE_OFFSET_BITS=64' \ 159 '-DNO_TCMALLOC' \ 160 '-DDISABLE_NACL' \ 161 '-DCHROMIUM_BUILD' \ 162 '-DUSE_LIBJPEG_TURBO=1' \ 163 '-DENABLE_WEBRTC=1' \ 164 '-DUSE_PROPRIETARY_CODECS' \ 165 '-DENABLE_BROWSER_CDMS' \ 166 '-DENABLE_CONFIGURATION_POLICY' \ 167 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 168 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 169 '-DENABLE_EGLIMAGE=1' \ 170 '-DCLD_VERSION=1' \ 171 '-DENABLE_PRINTING=1' \ 172 '-DENABLE_MANAGED_USERS=1' \ 173 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 174 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 175 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 176 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 177 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 178 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 179 '-DVIDEO_HOLE=1' \ 180 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 181 '-DV8_TARGET_ARCH_ARM64' \ 182 '-DV8_I18N_SUPPORT' \ 183 '-DUSE_OPENSSL=1' \ 184 '-DUSE_OPENSSL_CERTS=1' \ 185 '-DNDEBUG' \ 186 '-DNVALGRIND' \ 187 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 188 189 190 # Include paths placed before CFLAGS/CPPFLAGS 191 LOCAL_C_INCLUDES_Release := \ 192 $(LOCAL_PATH)/v8 \ 193 $(gyp_shared_intermediate_dir) 194 195 196 # Flags passed to only C++ (and not C) files. 197 LOCAL_CPPFLAGS_Release := \ 198 -fno-exceptions \ 199 -fno-rtti \ 200 -fno-threadsafe-statics \ 201 -fvisibility-inlines-hidden \ 202 -Wno-deprecated \ 203 -std=gnu++11 204 205 206 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 207 # Undefine ANDROID for host modules 208 LOCAL_CFLAGS += -UANDROID 209 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 210 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 211 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 212 ### Rules for final target. 213 ### Set directly by aosp_build_settings. 214 LOCAL_CLANG := true 215 216 # Add target alias to "gyp_all_modules" target. 217 .PHONY: gyp_all_modules 218 gyp_all_modules: v8_tools_gyp_v8_libbase_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp 219 220 # Alias gyp target name. 221 .PHONY: v8_libbase 222 v8_libbase: v8_tools_gyp_v8_libbase_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp 223 224 include $(BUILD_HOST_STATIC_LIBRARY) 225