| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 endif | 126 endif |
| 127 # regexp=interpreted | 127 # regexp=interpreted |
| 128 ifeq ($(regexp), interpreted) | 128 ifeq ($(regexp), interpreted) |
| 129 GYPFLAGS += -Dv8_interpreted_regexp=1 | 129 GYPFLAGS += -Dv8_interpreted_regexp=1 |
| 130 endif | 130 endif |
| 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 #generated_lexer=on |
| 137 ifeq ($(generated_lexer), on) |
| 138 GYPFLAGS += -Dv8_use_generated_lexer=1 |
| 139 endif |
| 136 # deprecation_warnings=on | 140 # deprecation_warnings=on |
| 137 ifeq ($(deprecationwarnings), on) | 141 ifeq ($(deprecationwarnings), on) |
| 138 GYPFLAGS += -Dv8_deprecation_warnings=1 | 142 GYPFLAGS += -Dv8_deprecation_warnings=1 |
| 139 endif | 143 endif |
| 140 # arm specific flags. | 144 # arm specific flags. |
| 141 # arm_version=<number | "default"> | 145 # arm_version=<number | "default"> |
| 142 ifneq ($(strip $(arm_version)),) | 146 ifneq ($(strip $(arm_version)),) |
| 143 GYPFLAGS += -Darm_version=$(arm_version) | 147 GYPFLAGS += -Darm_version=$(arm_version) |
| 144 else | 148 else |
| 145 # Deprecated (use arm_version instead): armv7=false/true | 149 # Deprecated (use arm_version instead): armv7=false/true |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 # - "nacl" : cross-compile for Native Client (ia32 and x64) | 220 # - "nacl" : cross-compile for Native Client (ia32 and x64) |
| 217 # - default (no target specified): build all DEFAULT_ARCHES and MODES | 221 # - default (no target specified): build all DEFAULT_ARCHES and MODES |
| 218 # - "check": build all targets and run all tests | 222 # - "check": build all targets and run all tests |
| 219 # - "<arch>.clean" for any <arch> in ARCHES | 223 # - "<arch>.clean" for any <arch> in ARCHES |
| 220 # - "clean": clean all ARCHES | 224 # - "clean": clean all ARCHES |
| 221 | 225 |
| 222 # ----------------- internal stuff ------------------------ | 226 # ----------------- internal stuff ------------------------ |
| 223 | 227 |
| 224 # Architectures and modes to be compiled. Consider these to be internal | 228 # Architectures and modes to be compiled. Consider these to be internal |
| 225 # variables, don't override them (use the targets instead). | 229 # variables, don't override them (use the targets instead). |
| 226 ARCHES = ia32 x64 arm mipsel | 230 ARCHES = ia32 x64 arm a64 mipsel |
| 227 DEFAULT_ARCHES = ia32 x64 arm | 231 DEFAULT_ARCHES = ia32 x64 arm |
| 228 MODES = release debug optdebug | 232 MODES = release debug optdebug |
| 229 DEFAULT_MODES = release debug | 233 DEFAULT_MODES = release debug |
| 230 ANDROID_ARCHES = android_ia32 android_arm android_mipsel | 234 ANDROID_ARCHES = android_ia32 android_arm android_a64 android_mipsel |
| 231 NACL_ARCHES = nacl_ia32 nacl_x64 | 235 NACL_ARCHES = nacl_ia32 nacl_x64 |
| 232 | 236 |
| 233 # List of files that trigger Makefile regeneration: | 237 # List of files that trigger Makefile regeneration: |
| 234 GYPFILES = build/all.gyp build/features.gypi build/standalone.gypi \ | 238 GYPFILES = build/all.gyp build/features.gypi build/standalone.gypi \ |
| 235 build/toolchain.gypi samples/samples.gyp src/d8.gyp \ | 239 build/toolchain.gypi samples/samples.gyp src/d8.gyp \ |
| 236 test/cctest/cctest.gyp tools/gyp/v8.gyp | 240 test/cctest/cctest.gyp tools/gyp/v8.gyp |
| 237 | 241 |
| 238 # If vtunejit=on, the v8vtune.gyp will be appended. | 242 # If vtunejit=on, the v8vtune.gyp will be appended. |
| 239 ifeq ($(vtunejit), on) | 243 ifeq ($(vtunejit), on) |
| 240 GYPFILES += src/third_party/vtune/v8vtune.gyp | 244 GYPFILES += src/third_party/vtune/v8vtune.gyp |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 --timeout=600 --nopresubmit --noi18n \ | 355 --timeout=600 --nopresubmit --noi18n \ |
| 352 --command-prefix="tools/nacl-run.py" | 356 --command-prefix="tools/nacl-run.py" |
| 353 | 357 |
| 354 $(addsuffix .check, $(NACL_ARCHES)): \ | 358 $(addsuffix .check, $(NACL_ARCHES)): \ |
| 355 $(addprefix $$(basename $$@).,$(MODES)).check | 359 $(addprefix $$(basename $$@).,$(MODES)).check |
| 356 | 360 |
| 357 native.check: native | 361 native.check: native |
| 358 @tools/run-tests.py $(TESTJOBS) --outdir=$(OUTDIR)/native \ | 362 @tools/run-tests.py $(TESTJOBS) --outdir=$(OUTDIR)/native \ |
| 359 --arch-and-mode=. $(TESTFLAGS) | 363 --arch-and-mode=. $(TESTFLAGS) |
| 360 | 364 |
| 361 FASTTESTMODES = ia32.release,x64.release,ia32.optdebug,x64.optdebug,arm.optdebug | 365 FASTTESTMODES = ia32.release,x64.release,ia32.optdebug,x64.optdebug,arm.optdebug
,a64.release |
| 366 FASTCOMPILEMODES = $(FASTTESTMODES),a64.optdebug |
| 362 | 367 |
| 363 COMMA = , | 368 COMMA = , |
| 364 EMPTY = | 369 EMPTY = |
| 365 SPACE = $(EMPTY) $(EMPTY) | 370 SPACE = $(EMPTY) $(EMPTY) |
| 366 quickcheck: $(subst $(COMMA),$(SPACE),$(FASTTESTMODES)) | 371 quickcheck: $(subst $(COMMA),$(SPACE),$(FASTCOMPILEMODES)) |
| 367 tools/run-tests.py $(TESTJOBS) --outdir=$(OUTDIR) \ | 372 tools/run-tests.py $(TESTJOBS) --outdir=$(OUTDIR) \ |
| 368 --arch-and-mode=$(FASTTESTMODES) $(TESTFLAGS) --quickcheck | 373 --arch-and-mode=$(FASTTESTMODES) $(TESTFLAGS) --quickcheck |
| 369 qc: quickcheck | 374 qc: quickcheck |
| 370 | 375 |
| 371 # Clean targets. You can clean each architecture individually, or everything. | 376 # Clean targets. You can clean each architecture individually, or everything. |
| 372 $(addsuffix .clean, $(ARCHES) $(ANDROID_ARCHES) $(NACL_ARCHES)): | 377 $(addsuffix .clean, $(ARCHES) $(ANDROID_ARCHES) $(NACL_ARCHES)): |
| 373 rm -f $(OUTDIR)/Makefile.$(basename $@)* | 378 rm -f $(OUTDIR)/Makefile.$(basename $@)* |
| 374 rm -rf $(OUTDIR)/$(basename $@).release | 379 rm -rf $(OUTDIR)/$(basename $@).release |
| 375 rm -rf $(OUTDIR)/$(basename $@).debug | 380 rm -rf $(OUTDIR)/$(basename $@).debug |
| 376 rm -rf $(OUTDIR)/$(basename $@).optdebug | 381 rm -rf $(OUTDIR)/$(basename $@).optdebug |
| 377 find $(OUTDIR) -regex '.*\(host\|target\)\.$(basename $@).*\.mk' -delete | 382 find $(OUTDIR) -regex '.*\(host\|target\)\.$(basename $@).*\.mk' -delete |
| 378 | 383 |
| 379 native.clean: | 384 native.clean: |
| 380 rm -f $(OUTDIR)/Makefile.native | 385 rm -f $(OUTDIR)/Makefile.native |
| 381 rm -rf $(OUTDIR)/native | 386 rm -rf $(OUTDIR)/native |
| 382 find $(OUTDIR) -regex '.*\(host\|target\)\.native\.mk' -delete | 387 find $(OUTDIR) -regex '.*\(host\|target\)\.native\.mk' -delete |
| 383 | 388 |
| 384 clean: $(addsuffix .clean, $(ARCHES) $(ANDROID_ARCHES) $(NACL_ARCHES)) native.cl
ean | 389 clean: $(addsuffix .clean, $(ARCHES) $(ANDROID_ARCHES) $(NACL_ARCHES)) native.cl
ean |
| 385 | 390 |
| 386 # GYP file generation targets. | 391 # GYP file generation targets. |
| 387 OUT_MAKEFILES = $(addprefix $(OUTDIR)/Makefile.,$(BUILDS)) | 392 OUT_MAKEFILES = $(addprefix $(OUTDIR)/Makefile.,$(BUILDS)) |
| 388 $(OUT_MAKEFILES): $(GYPFILES) $(ENVFILE) | 393 $(OUT_MAKEFILES): $(GYPFILES) $(ENVFILE) |
| 389 PYTHONPATH="$(shell pwd)/tools/generate_shim_headers:$(PYTHONPATH)" \ | 394 PYTHONPATH="$(shell pwd)/tools/generate_shim_headers:$(PYTHONPATH)" \ |
| 395 PYTHONPATH="$(shell pwd)/build/gyp/pylib:$(PYTHONPATH)" \ |
| 390 GYP_GENERATORS=make \ | 396 GYP_GENERATORS=make \ |
| 391 build/gyp/gyp --generator-output="$(OUTDIR)" build/all.gyp \ | 397 build/gyp/gyp --generator-output="$(OUTDIR)" build/all.gyp \ |
| 392 -Ibuild/standalone.gypi --depth=. \ | 398 -Ibuild/standalone.gypi --depth=. \ |
| 393 -Dv8_target_arch=$(subst .,,$(suffix $(basename $@))) \ | 399 -Dv8_target_arch=$(subst .,,$(suffix $(basename $@))) \ |
| 394 » -Dv8_optimized_debug=$(if $(findstring optdebug,$@),2,0) \ | 400 » $(if $(findstring optdebug,$@),-Dv8_optimized_debug=2,) \ |
| 395 -S$(suffix $(basename $@))$(suffix $@) $(GYPFLAGS) | 401 -S$(suffix $(basename $@))$(suffix $@) $(GYPFLAGS) |
| 396 | 402 |
| 397 $(OUTDIR)/Makefile.native: $(GYPFILES) $(ENVFILE) | 403 $(OUTDIR)/Makefile.native: $(GYPFILES) $(ENVFILE) |
| 398 PYTHONPATH="$(shell pwd)/tools/generate_shim_headers:$(PYTHONPATH)" \ | 404 PYTHONPATH="$(shell pwd)/tools/generate_shim_headers:$(PYTHONPATH)" \ |
| 405 PYTHONPATH="$(shell pwd)/build/gyp/pylib:$(PYTHONPATH)" \ |
| 399 GYP_GENERATORS=make \ | 406 GYP_GENERATORS=make \ |
| 400 build/gyp/gyp --generator-output="$(OUTDIR)" build/all.gyp \ | 407 build/gyp/gyp --generator-output="$(OUTDIR)" build/all.gyp \ |
| 401 -Ibuild/standalone.gypi --depth=. -S.native $(GYPFLAGS) | 408 -Ibuild/standalone.gypi --depth=. -S.native $(GYPFLAGS) |
| 402 | 409 |
| 403 must-set-ANDROID_NDK_ROOT_OR_TOOLCHAIN: | 410 must-set-ANDROID_NDK_ROOT_OR_TOOLCHAIN: |
| 404 ifndef ANDROID_NDK_ROOT | 411 ifndef ANDROID_NDK_ROOT |
| 405 ifndef ANDROID_TOOLCHAIN | 412 ifndef ANDROID_TOOLCHAIN |
| 406 $(error ANDROID_NDK_ROOT or ANDROID_TOOLCHAIN must be set)) | 413 $(error ANDROID_NDK_ROOT or ANDROID_TOOLCHAIN must be set)) |
| 407 endif | 414 endif |
| 408 endif | 415 endif |
| (...skipping 29 matching lines...) Expand all Loading... |
| 438 @$(OUTDIR)/ia32.release/d8 --dump-heap-constants >> $(DUMP_FILE) | 445 @$(OUTDIR)/ia32.release/d8 --dump-heap-constants >> $(DUMP_FILE) |
| 439 | 446 |
| 440 # Dependencies. | 447 # Dependencies. |
| 441 # Remember to keep these in sync with the DEPS file. | 448 # Remember to keep these in sync with the DEPS file. |
| 442 dependencies: | 449 dependencies: |
| 443 svn checkout --force http://gyp.googlecode.com/svn/trunk build/gyp \ | 450 svn checkout --force http://gyp.googlecode.com/svn/trunk build/gyp \ |
| 444 --revision 1831 | 451 --revision 1831 |
| 445 svn checkout --force \ | 452 svn checkout --force \ |
| 446 https://src.chromium.org/chrome/trunk/deps/third_party/icu46 \ | 453 https://src.chromium.org/chrome/trunk/deps/third_party/icu46 \ |
| 447 third_party/icu --revision 239289 | 454 third_party/icu --revision 239289 |
| OLD | NEW |