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