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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 # Architectures and modes to be compiled. Consider these to be internal | 233 # Architectures and modes to be compiled. Consider these to be internal |
234 # variables, don't override them (use the targets instead). | 234 # variables, don't override them (use the targets instead). |
235 ARCHES = ia32 x64 x32 arm arm64 mips mipsel mips64el x87 | 235 ARCHES = ia32 x64 x32 arm arm64 mips mipsel mips64el x87 |
236 DEFAULT_ARCHES = ia32 x64 arm | 236 DEFAULT_ARCHES = ia32 x64 arm |
237 MODES = release debug optdebug | 237 MODES = release debug optdebug |
238 DEFAULT_MODES = release debug | 238 DEFAULT_MODES = release debug |
239 ANDROID_ARCHES = android_ia32 android_arm android_arm64 android_mipsel android_x
87 | 239 ANDROID_ARCHES = android_ia32 android_arm android_arm64 android_mipsel android_x
87 |
240 NACL_ARCHES = nacl_ia32 nacl_x64 | 240 NACL_ARCHES = nacl_ia32 nacl_x64 |
241 | 241 |
242 # List of files that trigger Makefile regeneration: | 242 # List of files that trigger Makefile regeneration: |
243 GYPFILES = build/all.gyp build/features.gypi build/standalone.gypi \ | 243 GYPFILES = third_party/icu/icu.gypi third_party/icu/icu.gyp \ |
244 build/toolchain.gypi samples/samples.gyp src/d8.gyp \ | 244 » build/shim_headers.gypi build/features.gypi build/standalone.gypi \ |
245 test/cctest/cctest.gyp test/unittests/unittests.gyp tools/gyp/v8.gyp | 245 » build/toolchain.gypi build/all.gyp build/mac/asan.gyp \ |
| 246 » build/android.gypi test/cctest/cctest.gyp \ |
| 247 » test/unittests/unittests.gyp tools/gyp/v8.gyp \ |
| 248 » tools/parser-shell.gyp testing/gmock.gyp testing/gtest.gyp \ |
| 249 » buildtools/third_party/libc++abi/libc++abi.gyp \ |
| 250 » buildtools/third_party/libc++/libc++.gyp samples/samples.gyp \ |
| 251 » src/third_party/vtune/v8vtune.gyp src/d8.gyp |
246 | 252 |
247 # If vtunejit=on, the v8vtune.gyp will be appended. | 253 # If vtunejit=on, the v8vtune.gyp will be appended. |
248 ifeq ($(vtunejit), on) | 254 ifeq ($(vtunejit), on) |
249 GYPFILES += src/third_party/vtune/v8vtune.gyp | 255 GYPFILES += src/third_party/vtune/v8vtune.gyp |
250 endif | 256 endif |
251 # Generates all combinations of ARCHES and MODES, e.g. "ia32.release". | 257 # Generates all combinations of ARCHES and MODES, e.g. "ia32.release". |
252 BUILDS = $(foreach mode,$(MODES),$(addsuffix .$(mode),$(ARCHES))) | 258 BUILDS = $(foreach mode,$(MODES),$(addsuffix .$(mode),$(ARCHES))) |
253 ANDROID_BUILDS = $(foreach mode,$(MODES), \ | 259 ANDROID_BUILDS = $(foreach mode,$(MODES), \ |
254 $(addsuffix .$(mode),$(ANDROID_ARCHES))) | 260 $(addsuffix .$(mode),$(ANDROID_ARCHES))) |
255 NACL_BUILDS = $(foreach mode,$(MODES), \ | 261 NACL_BUILDS = $(foreach mode,$(MODES), \ |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 find $(OUTDIR) -regex '.*\(host\|target\)\.native\.mk' -delete | 420 find $(OUTDIR) -regex '.*\(host\|target\)\.native\.mk' -delete |
415 | 421 |
416 clean: $(addsuffix .clean, $(ARCHES) $(ANDROID_ARCHES) $(NACL_ARCHES)) native.cl
ean gtags.clean | 422 clean: $(addsuffix .clean, $(ARCHES) $(ANDROID_ARCHES) $(NACL_ARCHES)) native.cl
ean gtags.clean |
417 | 423 |
418 # GYP file generation targets. | 424 # GYP file generation targets. |
419 OUT_MAKEFILES = $(addprefix $(OUTDIR)/Makefile.,$(BUILDS)) | 425 OUT_MAKEFILES = $(addprefix $(OUTDIR)/Makefile.,$(BUILDS)) |
420 $(OUT_MAKEFILES): $(GYPFILES) $(ENVFILE) | 426 $(OUT_MAKEFILES): $(GYPFILES) $(ENVFILE) |
421 $(eval CXX_TARGET_ARCH:=$(shell $(CXX) -v 2>&1 | grep ^Target: | \ | 427 $(eval CXX_TARGET_ARCH:=$(shell $(CXX) -v 2>&1 | grep ^Target: | \ |
422 cut -f 2 -d " " | cut -f 1 -d "-" )) | 428 cut -f 2 -d " " | cut -f 1 -d "-" )) |
423 $(eval CXX_TARGET_ARCH:=$(subst aarch64,arm64,$(CXX_TARGET_ARCH))) | 429 $(eval CXX_TARGET_ARCH:=$(subst aarch64,arm64,$(CXX_TARGET_ARCH))) |
| 430 $(eval CXX_TARGET_ARCH:=$(subst x86_64,x64,$(CXX_TARGET_ARCH))) |
424 $(eval V8_TARGET_ARCH:=$(subst .,,$(suffix $(basename $@)))) | 431 $(eval V8_TARGET_ARCH:=$(subst .,,$(suffix $(basename $@)))) |
425 PYTHONPATH="$(shell pwd)/tools/generate_shim_headers:$(shell pwd)/build:
$(PYTHONPATH):$(shell pwd)/build/gyp/pylib:$(PYTHONPATH)" \ | 432 PYTHONPATH="$(shell pwd)/tools/generate_shim_headers:$(shell pwd)/build:
$(PYTHONPATH):$(shell pwd)/build/gyp/pylib:$(PYTHONPATH)" \ |
426 GYP_GENERATORS=make \ | 433 GYP_GENERATORS=make \ |
427 build/gyp/gyp --generator-output="$(OUTDIR)" build/all.gyp \ | 434 build/gyp/gyp --generator-output="$(OUTDIR)" build/all.gyp \ |
428 -Ibuild/standalone.gypi --depth=. \ | 435 -Ibuild/standalone.gypi --depth=. \ |
429 -Dv8_target_arch=$(V8_TARGET_ARCH) \ | 436 -Dv8_target_arch=$(V8_TARGET_ARCH) \ |
430 $(if $(findstring $(CXX_TARGET_ARCH),$(V8_TARGET_ARCH)), \ | 437 $(if $(findstring $(CXX_TARGET_ARCH),$(V8_TARGET_ARCH)), \ |
431 -Dtarget_arch=$(V8_TARGET_ARCH),) \ | 438 -Dtarget_arch=$(V8_TARGET_ARCH),) \ |
432 $(if $(findstring optdebug,$@),-Dv8_optimized_debug=1,) \ | 439 $(if $(findstring optdebug,$@),-Dv8_optimized_debug=1,) \ |
433 -S$(suffix $(basename $@))$(suffix $@) $(GYPFLAGS) | 440 -S$(suffix $(basename $@))$(suffix $@) $(GYPFLAGS) |
(...skipping 28 matching lines...) Expand all Loading... |
462 $(ENVFILE): $(ENVFILE).new | 469 $(ENVFILE): $(ENVFILE).new |
463 @if test -r $(ENVFILE) && cmp $(ENVFILE).new $(ENVFILE) > /dev/null; \ | 470 @if test -r $(ENVFILE) && cmp $(ENVFILE).new $(ENVFILE) > /dev/null; \ |
464 then rm $(ENVFILE).new; \ | 471 then rm $(ENVFILE).new; \ |
465 else mv $(ENVFILE).new $(ENVFILE); fi | 472 else mv $(ENVFILE).new $(ENVFILE); fi |
466 | 473 |
467 # Stores current GYPFLAGS in a file. | 474 # Stores current GYPFLAGS in a file. |
468 $(ENVFILE).new: | 475 $(ENVFILE).new: |
469 $(eval CXX_TARGET_ARCH:=$(shell $(CXX) -v 2>&1 | grep ^Target: | \ | 476 $(eval CXX_TARGET_ARCH:=$(shell $(CXX) -v 2>&1 | grep ^Target: | \ |
470 cut -f 2 -d " " | cut -f 1 -d "-" )) | 477 cut -f 2 -d " " | cut -f 1 -d "-" )) |
471 $(eval CXX_TARGET_ARCH:=$(subst aarch64,arm64,$(CXX_TARGET_ARCH))) | 478 $(eval CXX_TARGET_ARCH:=$(subst aarch64,arm64,$(CXX_TARGET_ARCH))) |
| 479 $(eval CXX_TARGET_ARCH:=$(subst x86_64,x64,$(CXX_TARGET_ARCH))) |
472 @mkdir -p $(OUTDIR); echo "GYPFLAGS=$(GYPFLAGS) -Dtarget_arch=$(CXX_TARG
ET_ARCH)" > $(ENVFILE).new; | 480 @mkdir -p $(OUTDIR); echo "GYPFLAGS=$(GYPFLAGS) -Dtarget_arch=$(CXX_TARG
ET_ARCH)" > $(ENVFILE).new; |
473 | 481 |
474 # Heap constants for grokdump. | 482 # Heap constants for grokdump. |
475 DUMP_FILE = tools/v8heapconst.py | 483 DUMP_FILE = tools/v8heapconst.py |
476 grokdump: ia32.release | 484 grokdump: ia32.release |
477 @cat $(DUMP_FILE).tmpl > $(DUMP_FILE) | 485 @cat $(DUMP_FILE).tmpl > $(DUMP_FILE) |
478 @$(OUTDIR)/ia32.release/d8 --dump-heap-constants >> $(DUMP_FILE) | 486 @$(OUTDIR)/ia32.release/d8 --dump-heap-constants >> $(DUMP_FILE) |
479 | 487 |
480 # Support for the GNU GLOBAL Source Code Tag System. | 488 # Support for the GNU GLOBAL Source Code Tag System. |
481 gtags.files: $(GYPFILES) $(ENVFILE) | 489 gtags.files: $(GYPFILES) $(ENVFILE) |
(...skipping 23 matching lines...) Expand all Loading... |
505 third_party/icu --revision 277999 ; \ | 513 third_party/icu --revision 277999 ; \ |
506 fi | 514 fi |
507 svn checkout --force https://googletest.googlecode.com/svn/trunk \ | 515 svn checkout --force https://googletest.googlecode.com/svn/trunk \ |
508 testing/gtest --revision 692 | 516 testing/gtest --revision 692 |
509 svn checkout --force https://googlemock.googlecode.com/svn/trunk \ | 517 svn checkout --force https://googlemock.googlecode.com/svn/trunk \ |
510 testing/gmock --revision 485 | 518 testing/gmock --revision 485 |
511 | 519 |
512 dependencies: builddeps | 520 dependencies: builddeps |
513 # The spec is a copy of the hooks in v8's DEPS file. | 521 # The spec is a copy of the hooks in v8's DEPS file. |
514 gclient sync -r fb782d4369d5ae04f17a2fceef7de5a63e50f07b --spec="solutio
ns = [{u'managed': False, u'name': u'buildtools', u'url': u'https://chromium.goo
glesource.com/chromium/buildtools.git', u'custom_deps': {}, u'custom_hooks': [{u
'name': u'clang_format_win',u'pattern': u'.',u'action': [u'download_from_google_
storage',u'--no_resume',u'--platform=win32',u'--no_auth',u'--bucket',u'chromium-
clang-format',u'-s',u'buildtools/win/clang-format.exe.sha1']},{u'name': u'clang_
format_mac',u'pattern': u'.',u'action': [u'download_from_google_storage',u'--no_
resume',u'--platform=darwin',u'--no_auth',u'--bucket',u'chromium-clang-format',u
'-s',u'buildtools/mac/clang-format.sha1']},{u'name': u'clang_format_linux',u'pat
tern': u'.',u'action': [u'download_from_google_storage',u'--no_resume',u'--platf
orm=linux*',u'--no_auth',u'--bucket',u'chromium-clang-format',u'-s',u'buildtools
/linux64/clang-format.sha1']}],u'deps_file': u'.DEPS.git', u'safesync_url': u''}
]" | 522 gclient sync -r fb782d4369d5ae04f17a2fceef7de5a63e50f07b --spec="solutio
ns = [{u'managed': False, u'name': u'buildtools', u'url': u'https://chromium.goo
glesource.com/chromium/buildtools.git', u'custom_deps': {}, u'custom_hooks': [{u
'name': u'clang_format_win',u'pattern': u'.',u'action': [u'download_from_google_
storage',u'--no_resume',u'--platform=win32',u'--no_auth',u'--bucket',u'chromium-
clang-format',u'-s',u'buildtools/win/clang-format.exe.sha1']},{u'name': u'clang_
format_mac',u'pattern': u'.',u'action': [u'download_from_google_storage',u'--no_
resume',u'--platform=darwin',u'--no_auth',u'--bucket',u'chromium-clang-format',u
'-s',u'buildtools/mac/clang-format.sha1']},{u'name': u'clang_format_linux',u'pat
tern': u'.',u'action': [u'download_from_google_storage',u'--no_resume',u'--platf
orm=linux*',u'--no_auth',u'--bucket',u'chromium-clang-format',u'-s',u'buildtools
/linux64/clang-format.sha1']}],u'deps_file': u'.DEPS.git', u'safesync_url': u''}
]" |
OLD | NEW |