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