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