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-format \ 56 -m32 \ 57 -Os \ 58 -g \ 59 -fdata-sections \ 60 -ffunction-sections \ 61 -fomit-frame-pointer \ 62 -funwind-tables 63 64 MY_DEFS_Debug := \ 65 '-DV8_DEPRECATION_WARNINGS' \ 66 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 67 '-D_FILE_OFFSET_BITS=64' \ 68 '-DNO_TCMALLOC' \ 69 '-DDISABLE_NACL' \ 70 '-DCHROMIUM_BUILD' \ 71 '-DUSE_LIBJPEG_TURBO=1' \ 72 '-DENABLE_WEBRTC=1' \ 73 '-DUSE_PROPRIETARY_CODECS' \ 74 '-DENABLE_BROWSER_CDMS' \ 75 '-DENABLE_CONFIGURATION_POLICY' \ 76 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 77 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 78 '-DENABLE_EGLIMAGE=1' \ 79 '-DCLD_VERSION=1' \ 80 '-DENABLE_PRINTING=1' \ 81 '-DENABLE_MANAGED_USERS=1' \ 82 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 83 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 84 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 85 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 86 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 87 '-DVIDEO_HOLE=1' \ 88 '-DV8_TARGET_ARCH_IA32' \ 89 '-DV8_I18N_SUPPORT' \ 90 '-DUSE_OPENSSL=1' \ 91 '-DUSE_OPENSSL_CERTS=1' \ 92 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 93 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 94 '-D_DEBUG' \ 95 '-DENABLE_DISASSEMBLER' \ 96 '-DV8_ENABLE_CHECKS' \ 97 '-DOBJECT_PRINT' \ 98 '-DVERIFY_HEAP' \ 99 '-DENABLE_EXTRA_CHECKS' \ 100 '-DENABLE_HANDLE_ZAPPING' 101 102 103 # Include paths placed before CFLAGS/CPPFLAGS 104 LOCAL_C_INCLUDES_Debug := \ 105 $(LOCAL_PATH)/v8 \ 106 $(gyp_shared_intermediate_dir) 107 108 109 # Flags passed to only C++ (and not C) files. 110 LOCAL_CPPFLAGS_Debug := \ 111 -fno-rtti \ 112 -fno-threadsafe-statics \ 113 -fvisibility-inlines-hidden \ 114 -Wno-deprecated 115 116 117 LOCAL_FDO_SUPPORT_Debug := false 118 119 # Flags passed to both C and C++ files. 120 MY_CFLAGS_Release := \ 121 -fstack-protector \ 122 --param=ssp-buffer-size=4 \ 123 -pthread \ 124 -fno-exceptions \ 125 -fno-strict-aliasing \ 126 -Wno-unused-parameter \ 127 -Wno-missing-field-initializers \ 128 -fvisibility=hidden \ 129 -pipe \ 130 -fPIC \ 131 -Wno-format \ 132 -m32 \ 133 -fno-ident \ 134 -fdata-sections \ 135 -ffunction-sections \ 136 -fomit-frame-pointer \ 137 -funwind-tables \ 138 -fdata-sections \ 139 -ffunction-sections \ 140 -O2 141 142 MY_DEFS_Release := \ 143 '-DV8_DEPRECATION_WARNINGS' \ 144 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 145 '-D_FILE_OFFSET_BITS=64' \ 146 '-DNO_TCMALLOC' \ 147 '-DDISABLE_NACL' \ 148 '-DCHROMIUM_BUILD' \ 149 '-DUSE_LIBJPEG_TURBO=1' \ 150 '-DENABLE_WEBRTC=1' \ 151 '-DUSE_PROPRIETARY_CODECS' \ 152 '-DENABLE_BROWSER_CDMS' \ 153 '-DENABLE_CONFIGURATION_POLICY' \ 154 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 155 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 156 '-DENABLE_EGLIMAGE=1' \ 157 '-DCLD_VERSION=1' \ 158 '-DENABLE_PRINTING=1' \ 159 '-DENABLE_MANAGED_USERS=1' \ 160 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 161 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 162 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 163 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 164 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 165 '-DVIDEO_HOLE=1' \ 166 '-DV8_TARGET_ARCH_IA32' \ 167 '-DV8_I18N_SUPPORT' \ 168 '-DUSE_OPENSSL=1' \ 169 '-DUSE_OPENSSL_CERTS=1' \ 170 '-DNDEBUG' \ 171 '-DNVALGRIND' \ 172 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 173 174 175 # Include paths placed before CFLAGS/CPPFLAGS 176 LOCAL_C_INCLUDES_Release := \ 177 $(LOCAL_PATH)/v8 \ 178 $(gyp_shared_intermediate_dir) 179 180 181 # Flags passed to only C++ (and not C) files. 182 LOCAL_CPPFLAGS_Release := \ 183 -fno-rtti \ 184 -fno-threadsafe-statics \ 185 -fvisibility-inlines-hidden \ 186 -Wno-deprecated 187 188 189 LOCAL_FDO_SUPPORT_Release := false 190 191 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 192 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 193 # Undefine ANDROID for host modules 194 LOCAL_CFLAGS += -UANDROID 195 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 196 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 197 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 198 ### Rules for final target. 199 200 LOCAL_LDFLAGS_Debug := \ 201 -pthread \ 202 -fPIC \ 203 -m32 204 205 206 LOCAL_LDFLAGS_Release := \ 207 -pthread \ 208 -fPIC \ 209 -m32 210 211 212 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 213 214 LOCAL_STATIC_LIBRARIES := 215 216 # Enable grouping to fix circular references 217 LOCAL_GROUP_STATIC_LIBRARIES := true 218 219 LOCAL_SHARED_LIBRARIES := 220 221 # Add target alias to "gyp_all_modules" target. 222 .PHONY: gyp_all_modules 223 gyp_all_modules: v8_tools_gyp_v8_nosnapshot_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp 224 225 # Alias gyp target name. 226 .PHONY: v8_nosnapshot 227 v8_nosnapshot: v8_tools_gyp_v8_nosnapshot_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp 228 229 include $(BUILD_HOST_STATIC_LIBRARY) 230