Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 # | |
| 6 # GNU Make based build file. For details on GNU Make see: | |
| 7 # http://www.gnu.org/software/make/manual/make.html | |
| 8 # | |
| 9 # | |
| 10 | |
| 11 | |
| 12 # | |
| 13 # Default configuration | |
| 14 # | |
| 15 # By default we will build a Debug configuration using the GCC newlib toolcahin | |
| 16 # to override this, specify TOOLCHAIN=newlib|glibc or CONFIG=Debug|Release on | |
| 17 # the make command-line or in this file prior to including common.mk. The | |
| 18 # toolchain we use by default will be the first valid one listed | |
| 19 VALID_TOOLCHAINS:=newlib glibc | |
| 20 INCLUDES+=$(NACL_SDK_ROOT)/include/gtest/internal | |
| 21 | |
| 22 | |
| 23 # | |
| 24 # Get pepper directory for toolchain and includes. | |
| 25 # | |
| 26 # If NACL_SDK_ROOT is not set, then assume it can be found relative to | |
| 27 # to this Makefile. | |
| 28 # | |
| 29 NACL_SDK_ROOT?=$(abspath $(CURDIR)/../..) | |
| 30 include $(NACL_SDK_ROOT)/tools/common.mk | |
| 31 | |
| 32 | |
| 33 # | |
| 34 # Target Name | |
| 35 # | |
| 36 # The base name of the final NEXE, also the name of the NMF file containing | |
| 37 # the mapping between architecture and actual NEXE. | |
| 38 # | |
| 39 TARGET=gtest | |
| 40 | |
| 41 # | |
| 42 # List of sources to compile | |
| 43 # | |
| 44 SOURCES:=gtest.cc gtest-death-test.cc gtest-filepath.cc gtest_main.cc | |
| 45 SOURCES+=gtest-port.cc gtest-printers.cc gtest-test-part.cc | |
| 46 SOURCES+=gtest-typed-test.cc nacl_gtest_dummy_sys.cc | |
| 47 | |
| 48 | |
| 49 | |
| 50 # | |
| 51 # Use the compile macro for each source. | |
| 52 # | |
| 53 $(foreach src,$(SOURCES),$(eval $(call COMPILE_RULE,$(src),-Wno-switch-enum -Wno -variadic-macros))) | |
| 54 | |
| 55 # | |
| 56 # Use the link macro for this target on the list of sources. | |
|
binji
2013/01/16 22:46:55
nit: lib macro
noelallen1
2013/01/16 23:21:10
Done.
| |
| 57 # | |
| 58 $(eval $(call LIB_RULE,$(TARGET),$(SOURCES))) | |
| OLD | NEW |