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