1 # This file is generated by gyp; do not edit. 2 3 include $(CLEAR_VARS) 4 5 LOCAL_MODULE_CLASS := EXECUTABLES 6 LOCAL_MODULE := v8_tools_gyp_mksnapshot_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp 7 LOCAL_MODULE_STEM := mksnapshot 8 LOCAL_MODULE_SUFFIX := 9 LOCAL_IS_HOST_MODULE := true 10 LOCAL_MULTILIB := $(GYP_HOST_MULTILIB) 11 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_HOST_VAR_PREFIX)) 12 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 13 14 # Make sure our deps are built first. 15 GYP_TARGET_DEPENDENCIES := \ 16 $(call intermediates-dir-for,STATIC_LIBRARIES,v8_tools_gyp_v8_base_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp,true,,$(GYP_HOST_VAR_PREFIX))/v8_tools_gyp_v8_base_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp.a \ 17 $(call intermediates-dir-for,STATIC_LIBRARIES,v8_tools_gyp_v8_nosnapshot_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp,true,,$(GYP_HOST_VAR_PREFIX))/v8_tools_gyp_v8_nosnapshot_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp.a \ 18 $(call intermediates-dir-for,STATIC_LIBRARIES,v8_tools_gyp_v8_libplatform_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp,true,,$(GYP_HOST_VAR_PREFIX))/v8_tools_gyp_v8_libplatform_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp.a \ 19 $(call intermediates-dir-for,STATIC_LIBRARIES,v8_tools_gyp_v8_libbase_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp,true,,$(GYP_HOST_VAR_PREFIX))/v8_tools_gyp_v8_libbase_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp.a \ 20 $(call intermediates-dir-for,STATIC_LIBRARIES,third_party_icu_icui18n_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp,true,,$(GYP_HOST_VAR_PREFIX))/third_party_icu_icui18n_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp.a \ 21 $(call intermediates-dir-for,STATIC_LIBRARIES,third_party_icu_icuuc_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp,true,,$(GYP_HOST_VAR_PREFIX))/third_party_icu_icuuc_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp.a \ 22 $(call intermediates-dir-for,STATIC_LIBRARIES,third_party_icu_icudata_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp,true,,$(GYP_HOST_VAR_PREFIX))/third_party_icu_icudata_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp.a \ 23 $(call intermediates-dir-for,GYP,v8_tools_gyp_js2c_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp,true,,$(GYP_HOST_VAR_PREFIX))/js2c.stamp 24 25 GYP_GENERATED_OUTPUTS := 26 27 # Make sure our deps and generated files are built first. 28 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 29 30 LOCAL_CPP_EXTENSION := .cc 31 LOCAL_GENERATED_SOURCES := 32 33 GYP_COPIED_SOURCE_ORIGIN_DIRS := 34 35 LOCAL_SRC_FILES := \ 36 v8/src/mksnapshot.cc 37 38 39 # Flags passed to both C and C++ files. 40 MY_CFLAGS_Debug := \ 41 -fstack-protector \ 42 --param=ssp-buffer-size=4 \ 43 -pthread \ 44 -fno-strict-aliasing \ 45 -Wno-unused-parameter \ 46 -Wno-missing-field-initializers \ 47 -fvisibility=hidden \ 48 -pipe \ 49 -fPIC \ 50 -Wno-format \ 51 -Wheader-hygiene \ 52 -Wno-char-subscripts \ 53 -Wno-unneeded-internal-declaration \ 54 -Wno-covered-switch-default \ 55 -Wstring-conversion \ 56 -Wno-c++11-narrowing \ 57 -Wno-deprecated-register \ 58 -Wno-unused-local-typedef \ 59 -m64 \ 60 -Os \ 61 -g \ 62 -gdwarf-4 \ 63 -fdata-sections \ 64 -ffunction-sections \ 65 -funwind-tables 66 67 MY_DEFS_Debug := \ 68 '-DV8_DEPRECATION_WARNINGS' \ 69 '-D_FILE_OFFSET_BITS=64' \ 70 '-DNO_TCMALLOC' \ 71 '-DDISABLE_NACL' \ 72 '-DCHROMIUM_BUILD' \ 73 '-DUSE_LIBJPEG_TURBO=1' \ 74 '-DENABLE_WEBRTC=1' \ 75 '-DUSE_PROPRIETARY_CODECS' \ 76 '-DENABLE_BROWSER_CDMS' \ 77 '-DENABLE_CONFIGURATION_POLICY' \ 78 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 79 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 80 '-DENABLE_EGLIMAGE=1' \ 81 '-DCLD_VERSION=1' \ 82 '-DENABLE_PRINTING=1' \ 83 '-DENABLE_MANAGED_USERS=1' \ 84 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 85 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 86 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 87 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 88 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 89 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 90 '-DVIDEO_HOLE=1' \ 91 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 92 '-DV8_TARGET_ARCH_ARM64' \ 93 '-DV8_I18N_SUPPORT' \ 94 '-DUSE_OPENSSL=1' \ 95 '-DUSE_OPENSSL_CERTS=1' \ 96 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 97 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 98 '-D_DEBUG' \ 99 '-DENABLE_DISASSEMBLER' \ 100 '-DV8_ENABLE_CHECKS' \ 101 '-DOBJECT_PRINT' \ 102 '-DVERIFY_HEAP' \ 103 '-DENABLE_EXTRA_CHECKS' \ 104 '-DENABLE_HANDLE_ZAPPING' 105 106 107 # Include paths placed before CFLAGS/CPPFLAGS 108 LOCAL_C_INCLUDES_Debug := \ 109 $(LOCAL_PATH)/v8 \ 110 $(gyp_shared_intermediate_dir) 111 112 113 # Flags passed to only C++ (and not C) files. 114 LOCAL_CPPFLAGS_Debug := \ 115 -fno-exceptions \ 116 -fno-rtti \ 117 -fno-threadsafe-statics \ 118 -fvisibility-inlines-hidden \ 119 -Wno-deprecated \ 120 -std=gnu++11 121 122 123 # Flags passed to both C and C++ files. 124 MY_CFLAGS_Release := \ 125 -fstack-protector \ 126 --param=ssp-buffer-size=4 \ 127 -pthread \ 128 -fno-strict-aliasing \ 129 -Wno-unused-parameter \ 130 -Wno-missing-field-initializers \ 131 -fvisibility=hidden \ 132 -pipe \ 133 -fPIC \ 134 -Wno-format \ 135 -Wheader-hygiene \ 136 -Wno-char-subscripts \ 137 -Wno-unneeded-internal-declaration \ 138 -Wno-covered-switch-default \ 139 -Wstring-conversion \ 140 -Wno-c++11-narrowing \ 141 -Wno-deprecated-register \ 142 -Wno-unused-local-typedef \ 143 -m64 \ 144 -fno-ident \ 145 -fdata-sections \ 146 -ffunction-sections \ 147 -funwind-tables \ 148 -fdata-sections \ 149 -ffunction-sections \ 150 -O2 151 152 MY_DEFS_Release := \ 153 '-DV8_DEPRECATION_WARNINGS' \ 154 '-D_FILE_OFFSET_BITS=64' \ 155 '-DNO_TCMALLOC' \ 156 '-DDISABLE_NACL' \ 157 '-DCHROMIUM_BUILD' \ 158 '-DUSE_LIBJPEG_TURBO=1' \ 159 '-DENABLE_WEBRTC=1' \ 160 '-DUSE_PROPRIETARY_CODECS' \ 161 '-DENABLE_BROWSER_CDMS' \ 162 '-DENABLE_CONFIGURATION_POLICY' \ 163 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 164 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 165 '-DENABLE_EGLIMAGE=1' \ 166 '-DCLD_VERSION=1' \ 167 '-DENABLE_PRINTING=1' \ 168 '-DENABLE_MANAGED_USERS=1' \ 169 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 170 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 171 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 172 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 173 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 174 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 175 '-DVIDEO_HOLE=1' \ 176 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 177 '-DV8_TARGET_ARCH_ARM64' \ 178 '-DV8_I18N_SUPPORT' \ 179 '-DUSE_OPENSSL=1' \ 180 '-DUSE_OPENSSL_CERTS=1' \ 181 '-DNDEBUG' \ 182 '-DNVALGRIND' \ 183 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 184 185 186 # Include paths placed before CFLAGS/CPPFLAGS 187 LOCAL_C_INCLUDES_Release := \ 188 $(LOCAL_PATH)/v8 \ 189 $(gyp_shared_intermediate_dir) 190 191 192 # Flags passed to only C++ (and not C) files. 193 LOCAL_CPPFLAGS_Release := \ 194 -fno-exceptions \ 195 -fno-rtti \ 196 -fno-threadsafe-statics \ 197 -fvisibility-inlines-hidden \ 198 -Wno-deprecated \ 199 -std=gnu++11 200 201 202 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 203 # Undefine ANDROID for host modules 204 LOCAL_CFLAGS += -UANDROID 205 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 206 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 207 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 208 ### Rules for final target. 209 210 LOCAL_LDFLAGS_Debug := \ 211 -pthread \ 212 -fPIC \ 213 -m64 214 215 216 LOCAL_LDFLAGS_Release := \ 217 -pthread \ 218 -fPIC \ 219 -m64 220 221 222 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 223 224 LOCAL_STATIC_LIBRARIES := \ 225 v8_tools_gyp_v8_base_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp \ 226 v8_tools_gyp_v8_nosnapshot_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp \ 227 v8_tools_gyp_v8_libplatform_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp \ 228 v8_tools_gyp_v8_libbase_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp \ 229 third_party_icu_icui18n_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp \ 230 third_party_icu_icuuc_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp \ 231 third_party_icu_icudata_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp 232 233 # Enable grouping to fix circular references 234 LOCAL_GROUP_STATIC_LIBRARIES := true 235 ### Set directly by aosp_build_settings. 236 LOCAL_CLANG := true 237 238 # Add target alias to "gyp_all_modules" target. 239 .PHONY: gyp_all_modules 240 gyp_all_modules: v8_tools_gyp_mksnapshot_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp 241 242 # Alias gyp target name. 243 .PHONY: mksnapshot 244 mksnapshot: v8_tools_gyp_mksnapshot_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp 245 246 LOCAL_MODULE_PATH := $(gyp_shared_intermediate_dir) 247 include $(BUILD_HOST_EXECUTABLE) 248