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

Side by Side Diff: native_client_sdk/src/tools/host_vc.mk

Issue 12395032: [NaCl SDK] Handle sources outside root in example build system (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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
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 25 matching lines...) Expand all
36 WIN_FLAGS?=-D WIN32 -D _WIN32 -D PTW32_STATIC_LIB 36 WIN_FLAGS?=-D WIN32 -D _WIN32 -D PTW32_STATIC_LIB
37 37
38 38
39 # 39 #
40 # Individual Macros 40 # Individual Macros
41 # 41 #
42 # $1 = Source Name 42 # $1 = Source Name
43 # $2 = Compile Flags 43 # $2 = Compile Flags
44 # 44 #
45 define C_COMPILER_RULE 45 define C_COMPILER_RULE
46 -include $(OUTDIR)/$(basename $(1)).d 46 $(call SRC_TO_OBJ,$(1)): $(1) $(TOP_MAKE) | $(dir $(call SRC_TO_OBJ,$(1)))dir.st amp
47 $(OUTDIR)/$(basename $(1)).o : $(1) $(TOP_MAKE) | $(dir $(OUTDIR)/$(basename $(1 )))dir.stamp
48 $(call LOG,CC,$$@,$(HOST_CC) /Fo$$@ /c $$< $(WIN_OPT_FLAGS) $(2) $(WIN_F LAGS)) 47 $(call LOG,CC,$$@,$(HOST_CC) /Fo$$@ /c $$< $(WIN_OPT_FLAGS) $(2) $(WIN_F LAGS))
49 endef 48 endef
50 49
51 define CXX_COMPILER_RULE 50 define CXX_COMPILER_RULE
52 -include $(OUTDIR)/$(basename $(1)).d 51 $(call SRC_TO_OBJ,$(1)): $(1) $(TOP_MAKE) | $(dir $(call SRC_TO_OBJ,$(1)))dir.st amp
53 $(OUTDIR)/$(basename $(1)).o : $(1) $(TOP_MAKE) | $(dir $(OUTDIR)/$(basename $(1 )))dir.stamp
54 $(call LOG,CXX,$$@,$(HOST_CXX) /Fo$$@ -c $$< $(WIN_OPT_FLAGS) $(2) $(WIN _FLAGS)) 52 $(call LOG,CXX,$$@,$(HOST_CXX) /Fo$$@ -c $$< $(WIN_OPT_FLAGS) $(2) $(WIN _FLAGS))
55 endef 53 endef
56 54
57 55
58 # $1 = Source Name 56 # $1 = Source Name
59 # $2 = POSIX Compile Flags (unused) 57 # $2 = POSIX Compile Flags (unused)
60 # $3 = VC Compile Flags 58 # $3 = VC Compile Flags
61 # 59 #
62 define COMPILE_RULE 60 define COMPILE_RULE
63 ifeq ('.c','$(suffix $(1))') 61 ifeq ($(suffix $(1)),.c)
64 $(call C_COMPILER_RULE,$(1),$(3) $(foreach inc,$(INC_PATHS),/I$(inc))) 62 $(call C_COMPILER_RULE,$(1),$(3) $(foreach inc,$(INC_PATHS),/I$(inc)))
65 else 63 else
66 $(call CXX_COMPILER_RULE,$(1),$(3) $(foreach inc,$(INC_PATHS),/I$(inc))) 64 $(call CXX_COMPILER_RULE,$(1),$(3) $(foreach inc,$(INC_PATHS),/I$(inc)))
67 endif 65 endif
68 endef 66 endef
69 67
70 68
71 # 69 #
72 # LIB Macro 70 # LIB Macro
73 # 71 #
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 # $3 = List of LIBS 109 # $3 = List of LIBS
112 # $4 = List of DEPS 110 # $4 = List of DEPS
113 # $5 = POSIX Linker Switches 111 # $5 = POSIX Linker Switches
114 # $6 = VC Linker Switches 112 # $6 = VC Linker Switches
115 # 113 #
116 define LINK_RULE 114 define LINK_RULE
117 $(call LINKER_RULE,$(OUTDIR)/$(1)$(HOST_EXT),$(foreach src,$(2),$(OUTDIR)/$(base name $(src)).o),$(3),$(4),$(LIB_PATHS),$(6)) 115 $(call LINKER_RULE,$(OUTDIR)/$(1)$(HOST_EXT),$(foreach src,$(2),$(OUTDIR)/$(base name $(src)).o),$(3),$(4),$(LIB_PATHS),$(6))
118 endef 116 endef
119 117
120 all : $(LIB_LIST) $(DEPS_LIST) 118 all : $(LIB_LIST) $(DEPS_LIST)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698