Chromium Code Reviews| 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 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 441 | 441 |
| 442 clean: $(addsuffix .clean, $(ARCHES) $(ANDROID_ARCHES) $(NACL_ARCHES)) native.cl ean gtags.clean tags.clean | 442 clean: $(addsuffix .clean, $(ARCHES) $(ANDROID_ARCHES) $(NACL_ARCHES)) native.cl ean gtags.clean tags.clean |
| 443 | 443 |
| 444 # GYP file generation targets. | 444 # GYP file generation targets. |
| 445 OUT_MAKEFILES = $(addprefix $(OUTDIR)/Makefile.,$(BUILDS)) | 445 OUT_MAKEFILES = $(addprefix $(OUTDIR)/Makefile.,$(BUILDS)) |
| 446 $(OUT_MAKEFILES): $(GYPFILES) $(ENVFILE) | 446 $(OUT_MAKEFILES): $(GYPFILES) $(ENVFILE) |
| 447 $(eval CXX_TARGET_ARCH:=$(shell $(CXX) -v 2>&1 | grep ^Target: | \ | 447 $(eval CXX_TARGET_ARCH:=$(shell $(CXX) -v 2>&1 | grep ^Target: | \ |
| 448 cut -f 2 -d " " | cut -f 1 -d "-" )) | 448 cut -f 2 -d " " | cut -f 1 -d "-" )) |
| 449 $(eval CXX_TARGET_ARCH:=$(subst aarch64,arm64,$(CXX_TARGET_ARCH))) | 449 $(eval CXX_TARGET_ARCH:=$(subst aarch64,arm64,$(CXX_TARGET_ARCH))) |
| 450 $(eval CXX_TARGET_ARCH:=$(subst x86_64,x64,$(CXX_TARGET_ARCH))) | 450 $(eval CXX_TARGET_ARCH:=$(subst x86_64,x64,$(CXX_TARGET_ARCH))) |
| 451 $(eval CXX_TARGET_ARCH:=$(subst s390x,s390,$(CXX_TARGET_ARCH))) | |
| 452 $(eval CXX_TARGET_ARCH:=$(subst powerpc,ppc,$(CXX_TARGET_ARCH))) | |
| 453 $(eval CXX_TARGET_ARCH:=$(subst ppc64,ppc,$(CXX_TARGET_ARCH))) | |
|
Michael Achenbach
2016/06/17 06:35:01
Not sure I understand the replacement of ppc64 wit
john.yan
2016/06/17 13:06:09
Hello Michael,
I found that when v8_target_arch =
| |
| 454 $(eval CXX_TARGET_ARCH:=$(subst ppcle,ppc,$(CXX_TARGET_ARCH))) | |
| 451 $(eval V8_TARGET_ARCH:=$(subst .,,$(suffix $(basename $@)))) | 455 $(eval V8_TARGET_ARCH:=$(subst .,,$(suffix $(basename $@)))) |
| 452 PYTHONPATH="$(shell pwd)/tools/generate_shim_headers:$(shell pwd)/gypfil es:$(PYTHONPATH):$(shell pwd)/tools/gyp/pylib:$(PYTHONPATH)" \ | 456 PYTHONPATH="$(shell pwd)/tools/generate_shim_headers:$(shell pwd)/gypfil es:$(PYTHONPATH):$(shell pwd)/tools/gyp/pylib:$(PYTHONPATH)" \ |
| 453 GYP_GENERATORS=make \ | 457 GYP_GENERATORS=make \ |
| 454 tools/gyp/gyp --generator-output="$(OUTDIR)" gypfiles/all.gyp \ | 458 tools/gyp/gyp --generator-output="$(OUTDIR)" gypfiles/all.gyp \ |
| 455 -Igypfiles/standalone.gypi --depth=. \ | 459 -Igypfiles/standalone.gypi --depth=. \ |
| 456 -Dv8_target_arch=$(V8_TARGET_ARCH) \ | 460 -Dv8_target_arch=$(V8_TARGET_ARCH) \ |
| 457 $(if $(findstring $(CXX_TARGET_ARCH),$(V8_TARGET_ARCH)), \ | 461 $(if $(findstring $(CXX_TARGET_ARCH),$(V8_TARGET_ARCH)), \ |
| 458 -Dtarget_arch=$(V8_TARGET_ARCH), \ | 462 -Dtarget_arch=$(V8_TARGET_ARCH), \ |
| 459 $(if $(shell echo $(ARCHES32) | grep $(V8_TARGET_ARCH) ), \ | 463 $(if $(shell echo $(ARCHES32) | grep $(V8_TARGET_ARCH) ), \ |
| 460 -Dtarget_arch=ia32,)) \ | 464 -Dtarget_arch=ia32,)) \ |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 517 tags: gtags.files $(wildcard $(shell cat gtags.files 2> /dev/null)) | 521 tags: gtags.files $(wildcard $(shell cat gtags.files 2> /dev/null)) |
| 518 @(ctags --version | grep 'Exuberant Ctags' >/dev/null) || \ | 522 @(ctags --version | grep 'Exuberant Ctags' >/dev/null) || \ |
| 519 (echo "Please install Exuberant Ctags (check 'ctags --version')" >&2; false) | 523 (echo "Please install Exuberant Ctags (check 'ctags --version')" >&2; false) |
| 520 ctags --fields=+l -L $< | 524 ctags --fields=+l -L $< |
| 521 | 525 |
| 522 tags.clean: | 526 tags.clean: |
| 523 rm -r tags | 527 rm -r tags |
| 524 | 528 |
| 525 dependencies builddeps: | 529 dependencies builddeps: |
| 526 $(error Use 'gclient sync' instead) | 530 $(error Use 'gclient sync' instead) |
| OLD | NEW |