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