| 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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 s390 s390x | 254 s390 s390x |
| 255 DEFAULT_ARCHES = ia32 x64 arm | 255 DEFAULT_ARCHES = ia32 x64 arm |
| 256 MODES = release debug optdebug | 256 MODES = release debug optdebug |
| 257 DEFAULT_MODES = release debug | 257 DEFAULT_MODES = release debug |
| 258 ANDROID_ARCHES = android_ia32 android_x64 android_arm android_arm64 \ | 258 ANDROID_ARCHES = android_ia32 android_x64 android_arm android_arm64 \ |
| 259 android_mipsel android_x87 | 259 android_mipsel android_x87 |
| 260 NACL_ARCHES = nacl_ia32 nacl_x64 | 260 NACL_ARCHES = nacl_ia32 nacl_x64 |
| 261 | 261 |
| 262 # List of files that trigger Makefile regeneration: | 262 # List of files that trigger Makefile regeneration: |
| 263 GYPFILES = third_party/icu/icu.gypi third_party/icu/icu.gyp \ | 263 GYPFILES = third_party/icu/icu.gypi third_party/icu/icu.gyp \ |
| 264 » build/shim_headers.gypi build/features.gypi build/standalone.gypi \ | 264 » gypfiles/shim_headers.gypi gypfiles/features.gypi \ |
| 265 » build/toolchain.gypi build/all.gyp build/mac/asan.gyp \ | 265 gypfiles/standalone.gypi \ |
| 266 » gypfiles/toolchain.gypi gypfiles/all.gyp gypfiles/mac/asan.gyp \ |
| 266 test/cctest/cctest.gyp test/fuzzer/fuzzer.gyp \ | 267 test/cctest/cctest.gyp test/fuzzer/fuzzer.gyp \ |
| 267 test/unittests/unittests.gyp src/v8.gyp \ | 268 test/unittests/unittests.gyp src/v8.gyp \ |
| 268 tools/parser-shell.gyp testing/gmock.gyp testing/gtest.gyp \ | 269 tools/parser-shell.gyp testing/gmock.gyp testing/gtest.gyp \ |
| 269 buildtools/third_party/libc++abi/libc++abi.gyp \ | 270 buildtools/third_party/libc++abi/libc++abi.gyp \ |
| 270 buildtools/third_party/libc++/libc++.gyp samples/samples.gyp \ | 271 buildtools/third_party/libc++/libc++.gyp samples/samples.gyp \ |
| 271 src/third_party/vtune/v8vtune.gyp src/d8.gyp | 272 src/third_party/vtune/v8vtune.gyp src/d8.gyp |
| 272 | 273 |
| 273 # If vtunejit=on, the v8vtune.gyp will be appended. | 274 # If vtunejit=on, the v8vtune.gyp will be appended. |
| 274 ifeq ($(vtunejit), on) | 275 ifeq ($(vtunejit), on) |
| 275 GYPFILES += src/third_party/vtune/v8vtune.gyp | 276 GYPFILES += src/third_party/vtune/v8vtune.gyp |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 # GYP file generation targets. | 443 # GYP file generation targets. |
| 443 OUT_MAKEFILES = $(addprefix $(OUTDIR)/Makefile.,$(BUILDS)) | 444 OUT_MAKEFILES = $(addprefix $(OUTDIR)/Makefile.,$(BUILDS)) |
| 444 $(OUT_MAKEFILES): $(GYPFILES) $(ENVFILE) | 445 $(OUT_MAKEFILES): $(GYPFILES) $(ENVFILE) |
| 445 $(eval CXX_TARGET_ARCH:=$(shell $(CXX) -v 2>&1 | grep ^Target: | \ | 446 $(eval CXX_TARGET_ARCH:=$(shell $(CXX) -v 2>&1 | grep ^Target: | \ |
| 446 cut -f 2 -d " " | cut -f 1 -d "-" )) | 447 cut -f 2 -d " " | cut -f 1 -d "-" )) |
| 447 $(eval CXX_TARGET_ARCH:=$(subst aarch64,arm64,$(CXX_TARGET_ARCH))) | 448 $(eval CXX_TARGET_ARCH:=$(subst aarch64,arm64,$(CXX_TARGET_ARCH))) |
| 448 $(eval CXX_TARGET_ARCH:=$(subst x86_64,x64,$(CXX_TARGET_ARCH))) | 449 $(eval CXX_TARGET_ARCH:=$(subst x86_64,x64,$(CXX_TARGET_ARCH))) |
| 449 $(eval V8_TARGET_ARCH:=$(subst .,,$(suffix $(basename $@)))) | 450 $(eval V8_TARGET_ARCH:=$(subst .,,$(suffix $(basename $@)))) |
| 450 PYTHONPATH="$(shell pwd)/tools/generate_shim_headers:$(shell pwd)/build:
$(PYTHONPATH):$(shell pwd)/tools/gyp/pylib:$(PYTHONPATH)" \ | 451 PYTHONPATH="$(shell pwd)/tools/generate_shim_headers:$(shell pwd)/build:
$(PYTHONPATH):$(shell pwd)/tools/gyp/pylib:$(PYTHONPATH)" \ |
| 451 GYP_GENERATORS=make \ | 452 GYP_GENERATORS=make \ |
| 452 » tools/gyp/gyp --generator-output="$(OUTDIR)" build/all.gyp \ | 453 » tools/gyp/gyp --generator-output="$(OUTDIR)" gypfiles/all.gyp \ |
| 453 » -Ibuild/standalone.gypi --depth=. \ | 454 » -Igypfiles/standalone.gypi --depth=. \ |
| 454 -Dv8_target_arch=$(V8_TARGET_ARCH) \ | 455 -Dv8_target_arch=$(V8_TARGET_ARCH) \ |
| 455 $(if $(findstring $(CXX_TARGET_ARCH),$(V8_TARGET_ARCH)), \ | 456 $(if $(findstring $(CXX_TARGET_ARCH),$(V8_TARGET_ARCH)), \ |
| 456 -Dtarget_arch=$(V8_TARGET_ARCH),) \ | 457 -Dtarget_arch=$(V8_TARGET_ARCH),) \ |
| 457 $(if $(findstring optdebug,$@),-Dv8_optimized_debug=1,) \ | 458 $(if $(findstring optdebug,$@),-Dv8_optimized_debug=1,) \ |
| 458 -S$(suffix $(basename $@))$(suffix $@) $(GYPFLAGS) | 459 -S$(suffix $(basename $@))$(suffix $@) $(GYPFLAGS) |
| 459 | 460 |
| 460 $(OUTDIR)/Makefile.native: $(GYPFILES) $(ENVFILE) | 461 $(OUTDIR)/Makefile.native: $(GYPFILES) $(ENVFILE) |
| 461 PYTHONPATH="$(shell pwd)/tools/generate_shim_headers:$(shell pwd)/build:
$(PYTHONPATH):$(shell pwd)/tools/gyp/pylib:$(PYTHONPATH)" \ | 462 PYTHONPATH="$(shell pwd)/tools/generate_shim_headers:$(shell pwd)/build:
$(PYTHONPATH):$(shell pwd)/tools/gyp/pylib:$(PYTHONPATH)" \ |
| 462 GYP_GENERATORS=make \ | 463 GYP_GENERATORS=make \ |
| 463 » tools/gyp/gyp --generator-output="$(OUTDIR)" build/all.gyp \ | 464 » tools/gyp/gyp --generator-output="$(OUTDIR)" gypfiles/all.gyp \ |
| 464 » -Ibuild/standalone.gypi --depth=. -S.native $(GYPFLAGS) | 465 » -Igypfiles/standalone.gypi --depth=. -S.native $(GYPFLAGS) |
| 465 | 466 |
| 466 # Note that NACL_SDK_ROOT must be set to point to an appropriate | 467 # Note that NACL_SDK_ROOT must be set to point to an appropriate |
| 467 # Native Client SDK before using this makefile. You can download | 468 # Native Client SDK before using this makefile. You can download |
| 468 # an SDK here: | 469 # an SDK here: |
| 469 # https://developers.google.com/native-client/sdk/download | 470 # https://developers.google.com/native-client/sdk/download |
| 470 # The path indicated by NACL_SDK_ROOT will typically end with | 471 # The path indicated by NACL_SDK_ROOT will typically end with |
| 471 # a folder for a pepper version such as "pepper_25" that should | 472 # a folder for a pepper version such as "pepper_25" that should |
| 472 # have "tools" and "toolchain" subdirectories. | 473 # have "tools" and "toolchain" subdirectories. |
| 473 must-set-NACL_SDK_ROOT: | 474 must-set-NACL_SDK_ROOT: |
| 474 ifndef NACL_SDK_ROOT | 475 ifndef NACL_SDK_ROOT |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 513 tags: gtags.files $(wildcard $(shell cat gtags.files 2> /dev/null)) | 514 tags: gtags.files $(wildcard $(shell cat gtags.files 2> /dev/null)) |
| 514 @(ctags --version | grep 'Exuberant Ctags' >/dev/null) || \ | 515 @(ctags --version | grep 'Exuberant Ctags' >/dev/null) || \ |
| 515 (echo "Please install Exuberant Ctags (check 'ctags --version')"
>&2; false) | 516 (echo "Please install Exuberant Ctags (check 'ctags --version')"
>&2; false) |
| 516 ctags --fields=+l -L $< | 517 ctags --fields=+l -L $< |
| 517 | 518 |
| 518 tags.clean: | 519 tags.clean: |
| 519 rm -r tags | 520 rm -r tags |
| 520 | 521 |
| 521 dependencies builddeps: | 522 dependencies builddeps: |
| 522 $(error Use 'gclient sync' instead) | 523 $(error Use 'gclient sync' instead) |
| OLD | NEW |