OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # | 5 # |
6 # GNU Make based build file. For details on GNU Make see: | 6 # GNU Make based build file. For details on GNU Make see: |
7 # http://www.gnu.org/software/make/manual/make.html | 7 # http://www.gnu.org/software/make/manual/make.html |
8 # | 8 # |
9 # | 9 # |
10 | 10 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 export CYGWIN | 62 export CYGWIN |
63 | 63 |
64 | 64 |
65 # | 65 # |
66 # Alias for standard POSIX file system commands | 66 # Alias for standard POSIX file system commands |
67 # | 67 # |
68 CP:=python $(NACL_SDK_ROOT)/tools/oshelpers.py cp | 68 CP:=python $(NACL_SDK_ROOT)/tools/oshelpers.py cp |
69 MKDIR:=python $(NACL_SDK_ROOT)/tools/oshelpers.py mkdir | 69 MKDIR:=python $(NACL_SDK_ROOT)/tools/oshelpers.py mkdir |
70 MV:=python $(NACL_SDK_ROOT)/tools/oshelpers.py mv | 70 MV:=python $(NACL_SDK_ROOT)/tools/oshelpers.py mv |
71 RM:=python $(NACL_SDK_ROOT)/tools/oshelpers.py rm | 71 RM:=python $(NACL_SDK_ROOT)/tools/oshelpers.py rm |
| 72 WHICH:=python $(NACL_SDK_ROOT)/tools/oshelpers.py which |
72 | 73 |
73 | 74 |
74 # | 75 # |
75 # Compute path to requested NaCl Toolchain | 76 # Compute path to requested NaCl Toolchain |
76 # | 77 # |
77 OSNAME:=$(shell python $(NACL_SDK_ROOT)/tools/getos.py) | 78 OSNAME:=$(shell python $(NACL_SDK_ROOT)/tools/getos.py) |
78 TC_PATH:=$(abspath $(NACL_SDK_ROOT)/toolchain) | 79 TC_PATH:=$(abspath $(NACL_SDK_ROOT)/toolchain) |
79 | 80 |
80 | 81 |
81 | 82 |
(...skipping 18 matching lines...) Expand all Loading... |
100 all_$(1): | 101 all_$(1): |
101 +$(MAKE) TOOLCHAIN=$(1) | 102 +$(MAKE) TOOLCHAIN=$(1) |
102 TOOLCHAIN_LIST+=all_$(1) | 103 TOOLCHAIN_LIST+=all_$(1) |
103 endef | 104 endef |
104 | 105 |
105 | 106 |
106 # | 107 # |
107 # The target for all versions | 108 # The target for all versions |
108 # | 109 # |
109 USABLE_TOOLCHAINS=$(filter $(OSNAME) newlib glibc pnacl,$(VALID_TOOLCHAINS)) | 110 USABLE_TOOLCHAINS=$(filter $(OSNAME) newlib glibc pnacl,$(VALID_TOOLCHAINS)) |
| 111 |
| 112 ifeq (1,$(NO_HOST_BUILDS)) |
| 113 USABLE_TOOLCHAINS:=$(filter-out $(OSNAME),$(USABLE_TOOLCHAINS)) |
| 114 endif |
| 115 |
110 $(foreach tool,$(USABLE_TOOLCHAINS),$(eval $(call TOOLCHAIN_RULE,$(tool),$(dep))
)) | 116 $(foreach tool,$(USABLE_TOOLCHAINS),$(eval $(call TOOLCHAIN_RULE,$(tool),$(dep))
)) |
| 117 |
| 118 .PHONY: all_versions |
111 all_versions: $(TOOLCHAIN_LIST) | 119 all_versions: $(TOOLCHAIN_LIST) |
112 | 120 |
113 # | 121 # |
114 # Target to remove temporary files | 122 # Target to remove temporary files |
115 # | 123 # |
116 .PHONY: clean | 124 .PHONY: clean |
117 clean: | 125 clean: |
118 $(RM) $(TARGET).nmf | 126 $(RM) $(TARGET).nmf |
119 $(RM) -fr $(TOOLCHAIN) | 127 $(RM) -fr $(TOOLCHAIN) |
120 | 128 |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 | 264 |
257 SYSARCH=$(shell python $(NACL_SDK_ROOT)/tools/getos.py --chrome) | 265 SYSARCH=$(shell python $(NACL_SDK_ROOT)/tools/getos.py --chrome) |
258 GDB_ARGS+=-D $(TC_PATH)/$(OSNAME)_x86_$(TOOLCHAIN)/bin/$(SYSARCH)-nacl-gdb | 266 GDB_ARGS+=-D $(TC_PATH)/$(OSNAME)_x86_$(TOOLCHAIN)/bin/$(SYSARCH)-nacl-gdb |
259 GDB_ARGS+=-D $(CURDIR)/$(OUTDIR)/$(TARGET)_$(SYSARCH).nexe | 267 GDB_ARGS+=-D $(CURDIR)/$(OUTDIR)/$(TARGET)_$(SYSARCH).nexe |
260 | 268 |
261 DEBUG: CHECK_FOR_CHROME all | 269 DEBUG: CHECK_FOR_CHROME all |
262 $(RUN_PY) $(GDB_ARGS) \ | 270 $(RUN_PY) $(GDB_ARGS) \ |
263 -C $(CURDIR) -P $(PAGE) $(addprefix -E ,$(CHROME_ENV)) -- \ | 271 -C $(CURDIR) -P $(PAGE) $(addprefix -E ,$(CHROME_ENV)) -- \ |
264 $(CHROME_PATH) $(CHROME_ARGS) --enable-nacl-debug \ | 272 $(CHROME_PATH) $(CHROME_ARGS) --enable-nacl-debug \ |
265 --register-pepper-plugins="$(PPAPI_DEBUG),$(PPAPI_RELEASE)" | 273 --register-pepper-plugins="$(PPAPI_DEBUG),$(PPAPI_RELEASE)" |
OLD | NEW |