Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(273)

Side by Side Diff: native_client_sdk/src/libraries/gtest/Makefile

Issue 11882012: Convert all project to use common.mk (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 # Default configuration
12 #
13 # By default we will build a Debug configuration using the GCC newlib toolcahin
14 # to override this, specify TOOLCHAIN=newlib|glibc or CONFIG=Debug|Release on
15 # the make command-line or in this file prior to including common.mk. The
16 # toolchain we use by default will be the first valid one listed
17 VALID_TOOLCHAINS:=newlib glibc
18
19
20 #
21 # Get pepper directory for toolchain and includes.
22 #
23 # If NACL_SDK_ROOT is not set, then assume it can be found relative to
24 # to this Makefile.
25 #
26 NACL_SDK_ROOT?=$(abspath $(CURDIR)/../..)
27 EXTRA_INC_PATHS=$(NACL_SDK_ROOT)/include/gtest/internal
28
29 include $(NACL_SDK_ROOT)/tools/common.mk
30
31
32 #
33 # Target Name
34 #
35 # The base name of the final library, also the name of the NMF file containing
36 # the mapping between architecture and actual NEXE.
37 #
38 TARGET=gtest
39
40 #
41 # List of sources to compile
42 #
43 SOURCES:=gtest.cc gtest-death-test.cc gtest-filepath.cc gtest_main.cc
44 SOURCES+=gtest-port.cc gtest-printers.cc gtest-test-part.cc
45 SOURCES+=gtest-typed-test.cc nacl_gtest_dummy_sys.cc
46
47
48
49 #
50 # Use the compile macro for each source.
51 #
52 $(foreach src,$(SOURCES),$(eval $(call COMPILE_RULE,$(src),-Wno-switch-enum -Wno -variadic-macros)))
53
54 #
55 # Use the lib macro for this target on the list of sources.
56 #
57 $(eval $(call LIB_RULE,$(TARGET),$(SOURCES)))
OLDNEW
« no previous file with comments | « native_client_sdk/src/libraries/gmock/library.dsc ('k') | native_client_sdk/src/libraries/gtest/library.dsc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698