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