| OLD | NEW |
| 1 # Copyright 2012 the V8 project authors. All rights reserved. | 1 # Copyright 2012 the V8 project authors. All rights reserved. |
| 2 # Redistribution and use in source and binary forms, with or without | 2 # Redistribution and use in source and binary forms, with or without |
| 3 # modification, are permitted provided that the following conditions are | 3 # modification, are permitted provided that the following conditions are |
| 4 # met: | 4 # met: |
| 5 # | 5 # |
| 6 # * Redistributions of source code must retain the above copyright | 6 # * Redistributions of source code must retain the above copyright |
| 7 # notice, this list of conditions and the following disclaimer. | 7 # notice, this list of conditions and the following disclaimer. |
| 8 # * Redistributions in binary form must reproduce the above | 8 # * Redistributions in binary form must reproduce the above |
| 9 # copyright notice, this list of conditions and the following | 9 # copyright notice, this list of conditions and the following |
| 10 # disclaimer in the documentation and/or other materials provided | 10 # disclaimer in the documentation and/or other materials provided |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 # i18nsupport=off | 131 # i18nsupport=off |
| 132 ifeq ($(i18nsupport), off) | 132 ifeq ($(i18nsupport), off) |
| 133 GYPFLAGS += -Dv8_enable_i18n_support=0 | 133 GYPFLAGS += -Dv8_enable_i18n_support=0 |
| 134 TESTFLAGS += --noi18n | 134 TESTFLAGS += --noi18n |
| 135 endif | 135 endif |
| 136 # deprecation_warnings=on | 136 # deprecation_warnings=on |
| 137 ifeq ($(deprecationwarnings), on) | 137 ifeq ($(deprecationwarnings), on) |
| 138 GYPFLAGS += -Dv8_deprecation_warnings=1 | 138 GYPFLAGS += -Dv8_deprecation_warnings=1 |
| 139 endif | 139 endif |
| 140 # arm specific flags. | 140 # arm specific flags. |
| 141 # armv7=false/true | 141 # arm_version=<number | "default"> |
| 142 ifneq ($(strip $(arm_version)),) |
| 143 GYPFLAGS += -Darm_version=$(arm_version) |
| 144 else |
| 145 # Deprecated (use arm_version instead): armv7=false/true |
| 142 ifeq ($(armv7), false) | 146 ifeq ($(armv7), false) |
| 143 GYPFLAGS += -Darmv7=0 | 147 GYPFLAGS += -Darm_version=6 |
| 144 else | 148 else |
| 145 ifeq ($(armv7), true) | 149 ifeq ($(armv7), true) |
| 146 GYPFLAGS += -Darmv7=1 | 150 GYPFLAGS += -Darm_version=7 |
| 151 endif |
| 147 endif | 152 endif |
| 148 endif | 153 endif |
| 149 # vfp2=off. Deprecated, use armfpu= | 154 # vfp2=off. Deprecated, use armfpu= |
| 150 # vfp3=off. Deprecated, use armfpu= | 155 # vfp3=off. Deprecated, use armfpu= |
| 151 ifeq ($(vfp3), off) | 156 ifeq ($(vfp3), off) |
| 152 GYPFLAGS += -Darm_fpu=vfp | 157 GYPFLAGS += -Darm_fpu=vfp |
| 153 endif | 158 endif |
| 154 # hardfp=on/off. Deprecated, use armfloatabi | 159 # hardfp=on/off. Deprecated, use armfloatabi |
| 155 ifeq ($(hardfp),on) | 160 ifeq ($(hardfp),on) |
| 156 GYPFLAGS += -Darm_float_abi=hard | 161 GYPFLAGS += -Darm_float_abi=hard |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 builddir="$(abspath $(OUTDIR))/$(BUILDTYPE)" | 271 builddir="$(abspath $(OUTDIR))/$(BUILDTYPE)" |
| 267 | 272 |
| 268 mips mips.release mips.debug: | 273 mips mips.release mips.debug: |
| 269 @echo "V8 does not support big-endian MIPS builds at the moment," \ | 274 @echo "V8 does not support big-endian MIPS builds at the moment," \ |
| 270 "please use little-endian builds (mipsel)." | 275 "please use little-endian builds (mipsel)." |
| 271 | 276 |
| 272 # Compile targets. MODES and ARCHES are convenience targets. | 277 # Compile targets. MODES and ARCHES are convenience targets. |
| 273 .SECONDEXPANSION: | 278 .SECONDEXPANSION: |
| 274 $(MODES): $(addsuffix .$$@,$(DEFAULT_ARCHES)) | 279 $(MODES): $(addsuffix .$$@,$(DEFAULT_ARCHES)) |
| 275 | 280 |
| 276 $(ARCHES): $(addprefix $$@.,$(MODES)) | 281 $(ARCHES): $(addprefix $$@.,$(DEFAULT_MODES)) |
| 277 | 282 |
| 278 # Defines how to build a particular target (e.g. ia32.release). | 283 # Defines how to build a particular target (e.g. ia32.release). |
| 279 $(BUILDS): $(OUTDIR)/Makefile.$$@ | 284 $(BUILDS): $(OUTDIR)/Makefile.$$@ |
| 280 @$(MAKE) -C "$(OUTDIR)" -f Makefile.$@ \ | 285 @$(MAKE) -C "$(OUTDIR)" -f Makefile.$@ \ |
| 281 CXX="$(CXX)" LINK="$(LINK)" \ | 286 CXX="$(CXX)" LINK="$(LINK)" \ |
| 282 BUILDTYPE=$(shell echo $(subst .,,$(suffix $@)) | \ | 287 BUILDTYPE=$(shell echo $(subst .,,$(suffix $@)) | \ |
| 283 python -c "print \ | 288 python -c "print \ |
| 284 raw_input().replace('opt', '').capitalize()") \ | 289 raw_input().replace('opt', '').capitalize()") \ |
| 285 builddir="$(shell pwd)/$(OUTDIR)/$@" | 290 builddir="$(shell pwd)/$(OUTDIR)/$@" |
| 286 | 291 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 quickcheck: $(subst $(COMMA),$(SPACE),$(FASTTESTMODES)) | 366 quickcheck: $(subst $(COMMA),$(SPACE),$(FASTTESTMODES)) |
| 362 tools/run-tests.py $(TESTJOBS) --outdir=$(OUTDIR) \ | 367 tools/run-tests.py $(TESTJOBS) --outdir=$(OUTDIR) \ |
| 363 --arch-and-mode=$(FASTTESTMODES) $(TESTFLAGS) --quickcheck | 368 --arch-and-mode=$(FASTTESTMODES) $(TESTFLAGS) --quickcheck |
| 364 qc: quickcheck | 369 qc: quickcheck |
| 365 | 370 |
| 366 # Clean targets. You can clean each architecture individually, or everything. | 371 # Clean targets. You can clean each architecture individually, or everything. |
| 367 $(addsuffix .clean, $(ARCHES) $(ANDROID_ARCHES) $(NACL_ARCHES)): | 372 $(addsuffix .clean, $(ARCHES) $(ANDROID_ARCHES) $(NACL_ARCHES)): |
| 368 rm -f $(OUTDIR)/Makefile.$(basename $@)* | 373 rm -f $(OUTDIR)/Makefile.$(basename $@)* |
| 369 rm -rf $(OUTDIR)/$(basename $@).release | 374 rm -rf $(OUTDIR)/$(basename $@).release |
| 370 rm -rf $(OUTDIR)/$(basename $@).debug | 375 rm -rf $(OUTDIR)/$(basename $@).debug |
| 376 rm -rf $(OUTDIR)/$(basename $@).optdebug |
| 371 find $(OUTDIR) -regex '.*\(host\|target\)\.$(basename $@).*\.mk' -delete | 377 find $(OUTDIR) -regex '.*\(host\|target\)\.$(basename $@).*\.mk' -delete |
| 372 | 378 |
| 373 native.clean: | 379 native.clean: |
| 374 rm -f $(OUTDIR)/Makefile.native | 380 rm -f $(OUTDIR)/Makefile.native |
| 375 rm -rf $(OUTDIR)/native | 381 rm -rf $(OUTDIR)/native |
| 376 find $(OUTDIR) -regex '.*\(host\|target\)\.native\.mk' -delete | 382 find $(OUTDIR) -regex '.*\(host\|target\)\.native\.mk' -delete |
| 377 | 383 |
| 378 clean: $(addsuffix .clean, $(ARCHES) $(ANDROID_ARCHES) $(NACL_ARCHES)) native.cl
ean | 384 clean: $(addsuffix .clean, $(ARCHES) $(ANDROID_ARCHES) $(NACL_ARCHES)) native.cl
ean |
| 379 | 385 |
| 380 # GYP file generation targets. | 386 # GYP file generation targets. |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 428 # Heap constants for grokdump. | 434 # Heap constants for grokdump. |
| 429 DUMP_FILE = tools/v8heapconst.py | 435 DUMP_FILE = tools/v8heapconst.py |
| 430 grokdump: ia32.release | 436 grokdump: ia32.release |
| 431 @cat $(DUMP_FILE).tmpl > $(DUMP_FILE) | 437 @cat $(DUMP_FILE).tmpl > $(DUMP_FILE) |
| 432 @$(OUTDIR)/ia32.release/d8 --dump-heap-constants >> $(DUMP_FILE) | 438 @$(OUTDIR)/ia32.release/d8 --dump-heap-constants >> $(DUMP_FILE) |
| 433 | 439 |
| 434 # Dependencies. | 440 # Dependencies. |
| 435 # Remember to keep these in sync with the DEPS file. | 441 # Remember to keep these in sync with the DEPS file. |
| 436 dependencies: | 442 dependencies: |
| 437 svn checkout --force http://gyp.googlecode.com/svn/trunk build/gyp \ | 443 svn checkout --force http://gyp.googlecode.com/svn/trunk build/gyp \ |
| 438 » --revision 1685 | 444 » --revision 1806 |
| 439 svn checkout --force \ | 445 svn checkout --force \ |
| 440 https://src.chromium.org/chrome/trunk/deps/third_party/icu46 \ | 446 https://src.chromium.org/chrome/trunk/deps/third_party/icu46 \ |
| 441 » third_party/icu --revision 214189 | 447 » third_party/icu --revision 239289 |
| OLD | NEW |