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 14 matching lines...) Expand all Loading... |
25 TOP_MAKE := $(word 1,$(MAKEFILE_LIST)) | 25 TOP_MAKE := $(word 1,$(MAKEFILE_LIST)) |
26 | 26 |
27 | 27 |
28 # | 28 # |
29 # Figure out which OS we are running on. | 29 # Figure out which OS we are running on. |
30 # | 30 # |
31 GETOS := python $(NACL_SDK_ROOT)/tools/getos.py | 31 GETOS := python $(NACL_SDK_ROOT)/tools/getos.py |
32 NACL_CONFIG := python $(NACL_SDK_ROOT)/tools/nacl_config.py | 32 NACL_CONFIG := python $(NACL_SDK_ROOT)/tools/nacl_config.py |
33 FIXDEPS := python $(NACL_SDK_ROOT)/tools/fix_deps.py -c | 33 FIXDEPS := python $(NACL_SDK_ROOT)/tools/fix_deps.py -c |
34 OSNAME := $(shell $(GETOS)) | 34 OSNAME := $(shell $(GETOS)) |
| 35 SYSARCH := $(shell $(GETOS) --nacl-arch) |
35 | 36 |
36 | 37 |
37 # | 38 # |
38 # TOOLCHAIN=all recursively calls this Makefile for all VALID_TOOLCHAINS. | 39 # TOOLCHAIN=all recursively calls this Makefile for all VALID_TOOLCHAINS. |
39 # | 40 # |
40 ifeq ($(TOOLCHAIN),all) | 41 ifeq ($(TOOLCHAIN),all) |
41 | 42 |
42 # Define the default target | 43 # Define the default target |
43 all: | 44 all: |
44 | 45 |
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
461 # Additional arguments to pass to Chrome. | 462 # Additional arguments to pass to Chrome. |
462 CHROME_ARGS += --enable-nacl --enable-pnacl --no-first-run | 463 CHROME_ARGS += --enable-nacl --enable-pnacl --no-first-run |
463 CHROME_ARGS += --user-data-dir=$(CURDIR)/user-data-dir | 464 CHROME_ARGS += --user-data-dir=$(CURDIR)/user-data-dir |
464 | 465 |
465 | 466 |
466 # Paths to Debug and Release versions of the Host Pepper plugins | 467 # Paths to Debug and Release versions of the Host Pepper plugins |
467 PPAPI_DEBUG = $(abspath $(OSNAME)/Debug/$(TARGET)$(HOST_EXT));application/x-ppap
i-debug | 468 PPAPI_DEBUG = $(abspath $(OSNAME)/Debug/$(TARGET)$(HOST_EXT));application/x-ppap
i-debug |
468 PPAPI_RELEASE = $(abspath $(OSNAME)/Release/$(TARGET)$(HOST_EXT));application/x-
ppapi-release | 469 PPAPI_RELEASE = $(abspath $(OSNAME)/Release/$(TARGET)$(HOST_EXT));application/x-
ppapi-release |
469 | 470 |
470 | 471 |
471 SYSARCH := $(shell $(GETOS) --nacl-arch) | |
472 SEL_LDR_PATH := python $(NACL_SDK_ROOT)/tools/sel_ldr.py | 472 SEL_LDR_PATH := python $(NACL_SDK_ROOT)/tools/sel_ldr.py |
473 | 473 |
474 ifndef STANDALONE | 474 ifndef STANDALONE |
475 # | 475 # |
476 # Assign a sensible default to CHROME_PATH. | 476 # Assign a sensible default to CHROME_PATH. |
477 # | 477 # |
478 CHROME_PATH ?= $(shell $(GETOS) --chrome 2> $(DEV_NULL)) | 478 CHROME_PATH ?= $(shell $(GETOS) --chrome 2> $(DEV_NULL)) |
479 | 479 |
480 # | 480 # |
481 # Verify we can find the Chrome executable if we need to launch it. | 481 # Verify we can find the Chrome executable if we need to launch it. |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
537 # uppercase aliases (for backward compatibility) | 537 # uppercase aliases (for backward compatibility) |
538 .PHONY: CHECK_FOR_CHROME DEBUG LAUNCH RUN | 538 .PHONY: CHECK_FOR_CHROME DEBUG LAUNCH RUN |
539 CHECK_FOR_CHROME: check_for_chrome | 539 CHECK_FOR_CHROME: check_for_chrome |
540 DEBUG: debug | 540 DEBUG: debug |
541 LAUNCH: run | 541 LAUNCH: run |
542 RUN: run | 542 RUN: run |
543 | 543 |
544 endif # TOOLCHAIN is valid... | 544 endif # TOOLCHAIN is valid... |
545 | 545 |
546 endif # TOOLCHAIN=all | 546 endif # TOOLCHAIN=all |
OLD | NEW |