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