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