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