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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 CONFIG_DIR := $(CONFIG) | 246 CONFIG_DIR := $(CONFIG) |
247 ifdef STANDALONE | 247 ifdef STANDALONE |
248 CONFIG_DIR := standalone_$(CONFIG_DIR) | 248 CONFIG_DIR := standalone_$(CONFIG_DIR) |
249 endif | 249 endif |
250 ifdef MSAN | 250 ifdef MSAN |
251 CONFIG_DIR := msan_$(CONFIG_DIR) | 251 CONFIG_DIR := msan_$(CONFIG_DIR) |
252 endif | 252 endif |
253 ifdef TSAN | 253 ifdef TSAN |
254 CONFIG_DIR := tsan_$(CONFIG_DIR) | 254 CONFIG_DIR := tsan_$(CONFIG_DIR) |
255 endif | 255 endif |
| 256 ifdef ASAN |
| 257 CONFIG_DIR := asan_$(CONFIG_DIR) |
| 258 endif |
256 | 259 |
257 OUTDIR := $(OUTBASE)/$(TOOLCHAIN)/$(CONFIG_DIR) | 260 OUTDIR := $(OUTBASE)/$(TOOLCHAIN)/$(CONFIG_DIR) |
258 STAMPDIR ?= $(OUTDIR) | 261 STAMPDIR ?= $(OUTDIR) |
259 LIBDIR ?= $(NACL_SDK_ROOT)/lib | 262 LIBDIR ?= $(NACL_SDK_ROOT)/lib |
260 | 263 |
261 | 264 |
262 # | 265 # |
263 # Target to remove temporary files | 266 # Target to remove temporary files |
264 # | 267 # |
265 .PHONY: clean | 268 .PHONY: clean |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
461 | 464 |
462 | 465 |
463 # Paths to Debug and Release versions of the Host Pepper plugins | 466 # Paths to Debug and Release versions of the Host Pepper plugins |
464 PPAPI_DEBUG = $(abspath $(OSNAME)/Debug/$(TARGET)$(HOST_EXT));application/x-ppap
i-debug | 467 PPAPI_DEBUG = $(abspath $(OSNAME)/Debug/$(TARGET)$(HOST_EXT));application/x-ppap
i-debug |
465 PPAPI_RELEASE = $(abspath $(OSNAME)/Release/$(TARGET)$(HOST_EXT));application/x-
ppapi-release | 468 PPAPI_RELEASE = $(abspath $(OSNAME)/Release/$(TARGET)$(HOST_EXT));application/x-
ppapi-release |
466 | 469 |
467 | 470 |
468 SYSARCH := $(shell $(GETOS) --nacl-arch) | 471 SYSARCH := $(shell $(GETOS) --nacl-arch) |
469 SEL_LDR_PATH := python $(NACL_SDK_ROOT)/tools/sel_ldr.py | 472 SEL_LDR_PATH := python $(NACL_SDK_ROOT)/tools/sel_ldr.py |
470 | 473 |
471 # | |
472 # Common Compile Options | |
473 # | |
474 ifeq ($(CONFIG),Debug) | |
475 SEL_LDR_ARGS += --debug-libs | |
476 endif | |
477 | |
478 ifndef STANDALONE | 474 ifndef STANDALONE |
479 # | 475 # |
480 # Assign a sensible default to CHROME_PATH. | 476 # Assign a sensible default to CHROME_PATH. |
481 # | 477 # |
482 CHROME_PATH ?= $(shell $(GETOS) --chrome 2> $(DEV_NULL)) | 478 CHROME_PATH ?= $(shell $(GETOS) --chrome 2> $(DEV_NULL)) |
483 | 479 |
484 # | 480 # |
485 # 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. |
486 # | 482 # |
487 | 483 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
541 # uppercase aliases (for backward compatibility) | 537 # uppercase aliases (for backward compatibility) |
542 .PHONY: CHECK_FOR_CHROME DEBUG LAUNCH RUN | 538 .PHONY: CHECK_FOR_CHROME DEBUG LAUNCH RUN |
543 CHECK_FOR_CHROME: check_for_chrome | 539 CHECK_FOR_CHROME: check_for_chrome |
544 DEBUG: debug | 540 DEBUG: debug |
545 LAUNCH: run | 541 LAUNCH: run |
546 RUN: run | 542 RUN: run |
547 | 543 |
548 endif # TOOLCHAIN is valid... | 544 endif # TOOLCHAIN is valid... |
549 | 545 |
550 endif # TOOLCHAIN=all | 546 endif # TOOLCHAIN=all |
OLD | NEW |