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

Side by Side Diff: native_client_sdk/src/build_tools/make_rules.py

Issue 10823016: [NaCl SDK] Don't copy .h files to src in SDK. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: feedback Created 8 years, 5 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
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 6
7 # 7 #
8 # Default macros for various platforms. 8 # Default macros for various platforms.
9 # 9 #
10 NEWLIB_DEFAULTS = """ 10 NEWLIB_DEFAULTS = """
(...skipping 24 matching lines...) Expand all
35 PNACL_CCFLAGS?=-O0 -g -pthread $(NACL_WARNINGS) 35 PNACL_CCFLAGS?=-O0 -g -pthread $(NACL_WARNINGS)
36 PNACL_LDFLAGS?=-g -pthread 36 PNACL_LDFLAGS?=-g -pthread
37 TRANSLATE:=$(TC_PATH)/$(OSNAME)_x86_pnacl/newlib/bin/pnacl-translate 37 TRANSLATE:=$(TC_PATH)/$(OSNAME)_x86_pnacl/newlib/bin/pnacl-translate
38 """ 38 """
39 39
40 WIN_DEFAULTS = """ 40 WIN_DEFAULTS = """
41 WIN_CC?=cl.exe 41 WIN_CC?=cl.exe
42 WIN_CXX?=cl.exe 42 WIN_CXX?=cl.exe
43 WIN_LINK?=link.exe 43 WIN_LINK?=link.exe
44 WIN_LIB?=lib.exe 44 WIN_LIB?=lib.exe
45 WIN_CCFLAGS=/I$(NACL_SDK_ROOT)/include -D WIN32 -D _WIN32 45 WIN_CCFLAGS=/I$(NACL_SDK_ROOT)/include /I$(NACL_SDK_ROOT)/include/win -D WIN32 - D _WIN32
46 WIN_LDFLAGS=/LIBPATH:$(NACL_SDK_ROOT)/lib/win_x86_32_host 46 WIN_LDFLAGS=/LIBPATH:$(NACL_SDK_ROOT)/lib/win_x86_32_host
47 """ 47 """
48 48
49 # 49 #
50 # Compile rules for various platforms. 50 # Compile rules for various platforms.
51 # 51 #
52 NACL_CC_RULE = """ 52 NACL_CC_RULE = """
53 <OBJS>:=$(patsubst %.<ext>, <tc>/%_<ARCH>.o,$(<PROJ>_<EXT>)) 53 <OBJS>:=$(patsubst %.<ext>, <tc>/%_<ARCH>.o,$(<PROJ>_<EXT>))
54 $(<OBJS>) : <tc>/%_<ARCH>.o : %.<ext> $(THIS_MAKE) | <tc> 54 $(<OBJS>) : <tc>/%_<ARCH>.o : %.<ext> $(THIS_MAKE) | <tc>
55 <TAB>$(<CC>) -o $@ $< <MACH> $(<PROJ>_<EXT>FLAGS) -DTCNAME=<tc> $(<TC>_CCFLAGS) <DEFLIST> 55 <TAB>$(<CC>) -o $@ $< <MACH> $(<PROJ>_<EXT>FLAGS) -DTCNAME=<tc> $(<TC>_CCFLAGS) <DEFLIST>
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 for key in kwargs: 272 for key in kwargs:
273 replace['<%s>' % key] = kwargs[key] 273 replace['<%s>' % key] = kwargs[key]
274 274
275 if '<OBJS>' not in replace: 275 if '<OBJS>' not in replace:
276 if replace.get('<ARCH>', ''): 276 if replace.get('<ARCH>', ''):
277 replace['<OBJS>'] = '%s_%s_%s_%s_O' % (TC, PROJ, replace['<ARCH>'], EXT) 277 replace['<OBJS>'] = '%s_%s_%s_%s_O' % (TC, PROJ, replace['<ARCH>'], EXT)
278 else: 278 else:
279 replace['<OBJS>'] = '%s_%s_%s_O' % (TC, PROJ, EXT) 279 replace['<OBJS>'] = '%s_%s_%s_O' % (TC, PROJ, EXT)
280 return replace 280 return replace
281 281
OLDNEW
« no previous file with comments | « native_client_sdk/src/build_tools/generate_make.py ('k') | native_client_sdk/src/libraries/ppapi_cpp/library.dsc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698