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-linux.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 -fomit-frame-pointer \ 70 -funwind-tables 71 72 MY_DEFS_Debug := \ 73 '-DV8_DEPRECATION_WARNINGS' \ 74 '-D_FILE_OFFSET_BITS=64' \ 75 '-DNO_TCMALLOC' \ 76 '-DDISABLE_NACL' \ 77 '-DCHROMIUM_BUILD' \ 78 '-DUSE_LIBJPEG_TURBO=1' \ 79 '-DENABLE_WEBRTC=1' \ 80 '-DUSE_PROPRIETARY_CODECS' \ 81 '-DENABLE_BROWSER_CDMS' \ 82 '-DENABLE_CONFIGURATION_POLICY' \ 83 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 84 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 85 '-DENABLE_EGLIMAGE=1' \ 86 '-DCLD_VERSION=1' \ 87 '-DENABLE_PRINTING=1' \ 88 '-DENABLE_MANAGED_USERS=1' \ 89 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 90 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 91 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 92 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 93 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 94 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 95 '-DVIDEO_HOLE=1' \ 96 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 97 '-DV8_TARGET_ARCH_X64' \ 98 '-DV8_I18N_SUPPORT' \ 99 '-DUSE_OPENSSL=1' \ 100 '-DUSE_OPENSSL_CERTS=1' \ 101 '-DV8_LIBRT_NOT_AVAILABLE=1' \ 102 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 103 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 104 '-D_DEBUG' \ 105 '-DENABLE_DISASSEMBLER' \ 106 '-DV8_ENABLE_CHECKS' \ 107 '-DOBJECT_PRINT' \ 108 '-DVERIFY_HEAP' \ 109 '-DENABLE_EXTRA_CHECKS' \ 110 '-DENABLE_HANDLE_ZAPPING' 111 112 113 # Include paths placed before CFLAGS/CPPFLAGS 114 LOCAL_C_INCLUDES_Debug := \ 115 $(LOCAL_PATH)/v8 \ 116 $(gyp_shared_intermediate_dir) 117 118 119 # Flags passed to only C++ (and not C) files. 120 LOCAL_CPPFLAGS_Debug := \ 121 -fno-exceptions \ 122 -fno-rtti \ 123 -fno-threadsafe-statics \ 124 -fvisibility-inlines-hidden \ 125 -Wno-deprecated \ 126 -std=gnu++11 127 128 129 # Flags passed to both C and C++ files. 130 MY_CFLAGS_Release := \ 131 -fstack-protector \ 132 --param=ssp-buffer-size=4 \ 133 -pthread \ 134 -fno-strict-aliasing \ 135 -Wno-unused-parameter \ 136 -Wno-missing-field-initializers \ 137 -fvisibility=hidden \ 138 -pipe \ 139 -fPIC \ 140 -Wno-format \ 141 -Wheader-hygiene \ 142 -Wno-char-subscripts \ 143 -Wno-unneeded-internal-declaration \ 144 -Wno-covered-switch-default \ 145 -Wstring-conversion \ 146 -Wno-c++11-narrowing \ 147 -Wno-deprecated-register \ 148 -Wno-unused-local-typedef \ 149 -m64 \ 150 -fno-ident \ 151 -fdata-sections \ 152 -ffunction-sections \ 153 -fomit-frame-pointer \ 154 -funwind-tables \ 155 -fdata-sections \ 156 -ffunction-sections \ 157 -O2 158 159 MY_DEFS_Release := \ 160 '-DV8_DEPRECATION_WARNINGS' \ 161 '-D_FILE_OFFSET_BITS=64' \ 162 '-DNO_TCMALLOC' \ 163 '-DDISABLE_NACL' \ 164 '-DCHROMIUM_BUILD' \ 165 '-DUSE_LIBJPEG_TURBO=1' \ 166 '-DENABLE_WEBRTC=1' \ 167 '-DUSE_PROPRIETARY_CODECS' \ 168 '-DENABLE_BROWSER_CDMS' \ 169 '-DENABLE_CONFIGURATION_POLICY' \ 170 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 171 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 172 '-DENABLE_EGLIMAGE=1' \ 173 '-DCLD_VERSION=1' \ 174 '-DENABLE_PRINTING=1' \ 175 '-DENABLE_MANAGED_USERS=1' \ 176 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 177 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 178 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 179 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 180 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 181 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 182 '-DVIDEO_HOLE=1' \ 183 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 184 '-DV8_TARGET_ARCH_X64' \ 185 '-DV8_I18N_SUPPORT' \ 186 '-DUSE_OPENSSL=1' \ 187 '-DUSE_OPENSSL_CERTS=1' \ 188 '-DV8_LIBRT_NOT_AVAILABLE=1' \ 189 '-DNDEBUG' \ 190 '-DNVALGRIND' \ 191 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 192 193 194 # Include paths placed before CFLAGS/CPPFLAGS 195 LOCAL_C_INCLUDES_Release := \ 196 $(LOCAL_PATH)/v8 \ 197 $(gyp_shared_intermediate_dir) 198 199 200 # Flags passed to only C++ (and not C) files. 201 LOCAL_CPPFLAGS_Release := \ 202 -fno-exceptions \ 203 -fno-rtti \ 204 -fno-threadsafe-statics \ 205 -fvisibility-inlines-hidden \ 206 -Wno-deprecated \ 207 -std=gnu++11 208 209 210 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 211 # Undefine ANDROID for host modules 212 LOCAL_CFLAGS += -UANDROID 213 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 214 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 215 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 216 ### Rules for final target. 217 ### Set directly by aosp_build_settings. 218 LOCAL_CLANG := true 219 220 # Add target alias to "gyp_all_modules" target. 221 .PHONY: gyp_all_modules 222 gyp_all_modules: v8_tools_gyp_v8_libbase_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp 223 224 # Alias gyp target name. 225 .PHONY: v8_libbase 226 v8_libbase: v8_tools_gyp_v8_libbase_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp 227 228 include $(BUILD_HOST_STATIC_LIBRARY) 229