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_MODULE_TAGS := optional 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,GYP,v8_tools_gyp_js2c_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp,true,,$(GYP_HOST_VAR_PREFIX))/js2c.stamp \ 17 $(call intermediates-dir-for,GYP,v8_tools_gyp_generate_trig_table_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp,true,,$(GYP_HOST_VAR_PREFIX))/generate_trig_table.stamp 18 19 GYP_GENERATED_OUTPUTS := 20 21 # Make sure our deps and generated files are built first. 22 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 23 24 LOCAL_CPP_EXTENSION := .cc 25 $(gyp_intermediate_dir)/libraries.cc: $(gyp_shared_intermediate_dir)/libraries.cc 26 mkdir -p $(@D); cp $< $@ 27 $(gyp_intermediate_dir)/experimental-libraries.cc: $(gyp_shared_intermediate_dir)/experimental-libraries.cc 28 mkdir -p $(@D); cp $< $@ 29 $(gyp_intermediate_dir)/trig-table.cc: $(gyp_shared_intermediate_dir)/trig-table.cc 30 mkdir -p $(@D); cp $< $@ 31 LOCAL_GENERATED_SOURCES := \ 32 $(gyp_intermediate_dir)/libraries.cc \ 33 $(gyp_intermediate_dir)/experimental-libraries.cc \ 34 $(gyp_intermediate_dir)/trig-table.cc 35 36 GYP_COPIED_SOURCE_ORIGIN_DIRS := \ 37 $(gyp_shared_intermediate_dir) 38 39 LOCAL_SRC_FILES := \ 40 v8/src/snapshot-empty.cc 41 42 43 # Flags passed to both C and C++ files. 44 MY_CFLAGS_Debug := \ 45 -fstack-protector \ 46 --param=ssp-buffer-size=4 \ 47 -pthread \ 48 -fno-exceptions \ 49 -fno-strict-aliasing \ 50 -Wno-unused-parameter \ 51 -Wno-missing-field-initializers \ 52 -fvisibility=hidden \ 53 -pipe \ 54 -fPIC \ 55 -Wno-unused-local-typedefs \ 56 -Wno-format \ 57 -m32 \ 58 -Os \ 59 -g \ 60 -fdata-sections \ 61 -ffunction-sections \ 62 -fomit-frame-pointer \ 63 -funwind-tables 64 65 MY_DEFS_Debug := \ 66 '-DV8_DEPRECATION_WARNINGS' \ 67 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 68 '-D_FILE_OFFSET_BITS=64' \ 69 '-DNO_TCMALLOC' \ 70 '-DDISABLE_NACL' \ 71 '-DCHROMIUM_BUILD' \ 72 '-DUSE_LIBJPEG_TURBO=1' \ 73 '-DENABLE_WEBRTC=1' \ 74 '-DUSE_PROPRIETARY_CODECS' \ 75 '-DENABLE_BROWSER_CDMS' \ 76 '-DENABLE_CONFIGURATION_POLICY' \ 77 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 78 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 79 '-DENABLE_EGLIMAGE=1' \ 80 '-DCLD_VERSION=1' \ 81 '-DENABLE_PRINTING=1' \ 82 '-DENABLE_MANAGED_USERS=1' \ 83 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 84 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 85 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 86 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 87 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 88 '-DVIDEO_HOLE=1' \ 89 '-DV8_TARGET_ARCH_IA32' \ 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-rtti \ 113 -fno-threadsafe-statics \ 114 -fvisibility-inlines-hidden \ 115 -Wno-deprecated 116 117 118 LOCAL_FDO_SUPPORT_Debug := false 119 120 # Flags passed to both C and C++ files. 121 MY_CFLAGS_Release := \ 122 -fstack-protector \ 123 --param=ssp-buffer-size=4 \ 124 -pthread \ 125 -fno-exceptions \ 126 -fno-strict-aliasing \ 127 -Wno-unused-parameter \ 128 -Wno-missing-field-initializers \ 129 -fvisibility=hidden \ 130 -pipe \ 131 -fPIC \ 132 -Wno-unused-local-typedefs \ 133 -Wno-format \ 134 -m32 \ 135 -fno-ident \ 136 -fdata-sections \ 137 -ffunction-sections \ 138 -fomit-frame-pointer \ 139 -funwind-tables \ 140 -fdata-sections \ 141 -ffunction-sections \ 142 -O2 143 144 MY_DEFS_Release := \ 145 '-DV8_DEPRECATION_WARNINGS' \ 146 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 147 '-D_FILE_OFFSET_BITS=64' \ 148 '-DNO_TCMALLOC' \ 149 '-DDISABLE_NACL' \ 150 '-DCHROMIUM_BUILD' \ 151 '-DUSE_LIBJPEG_TURBO=1' \ 152 '-DENABLE_WEBRTC=1' \ 153 '-DUSE_PROPRIETARY_CODECS' \ 154 '-DENABLE_BROWSER_CDMS' \ 155 '-DENABLE_CONFIGURATION_POLICY' \ 156 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 157 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 158 '-DENABLE_EGLIMAGE=1' \ 159 '-DCLD_VERSION=1' \ 160 '-DENABLE_PRINTING=1' \ 161 '-DENABLE_MANAGED_USERS=1' \ 162 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 163 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 164 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 165 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 166 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 167 '-DVIDEO_HOLE=1' \ 168 '-DV8_TARGET_ARCH_IA32' \ 169 '-DV8_I18N_SUPPORT' \ 170 '-DUSE_OPENSSL=1' \ 171 '-DUSE_OPENSSL_CERTS=1' \ 172 '-DNDEBUG' \ 173 '-DNVALGRIND' \ 174 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 175 176 177 # Include paths placed before CFLAGS/CPPFLAGS 178 LOCAL_C_INCLUDES_Release := \ 179 $(LOCAL_PATH)/v8 \ 180 $(gyp_shared_intermediate_dir) 181 182 183 # Flags passed to only C++ (and not C) files. 184 LOCAL_CPPFLAGS_Release := \ 185 -fno-rtti \ 186 -fno-threadsafe-statics \ 187 -fvisibility-inlines-hidden \ 188 -Wno-deprecated 189 190 191 LOCAL_FDO_SUPPORT_Release := false 192 193 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 194 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 195 # Undefine ANDROID for host modules 196 LOCAL_CFLAGS += -UANDROID 197 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 198 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 199 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 200 ### Rules for final target. 201 202 LOCAL_LDFLAGS_Debug := \ 203 -Wl,-z,now \ 204 -Wl,-z,relro \ 205 -pthread \ 206 -fPIC \ 207 -m32 208 209 210 LOCAL_LDFLAGS_Release := \ 211 -Wl,-z,now \ 212 -Wl,-z,relro \ 213 -pthread \ 214 -fPIC \ 215 -m32 216 217 218 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 219 220 LOCAL_STATIC_LIBRARIES := 221 222 # Enable grouping to fix circular references 223 LOCAL_GROUP_STATIC_LIBRARIES := true 224 225 LOCAL_SHARED_LIBRARIES := 226 227 # Add target alias to "gyp_all_modules" target. 228 .PHONY: gyp_all_modules 229 gyp_all_modules: v8_tools_gyp_v8_nosnapshot_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp 230 231 # Alias gyp target name. 232 .PHONY: v8_nosnapshot 233 v8_nosnapshot: v8_tools_gyp_v8_nosnapshot_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp 234 235 include $(BUILD_HOST_STATIC_LIBRARY) 236