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

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

Issue 10832208: Add debugging options (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 import os 6 import os
7 7
8 8
9 # 9 #
10 # Default macros for various platforms. 10 # Default macros for various platforms.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 'Debug': '<TAB>$(<CC>) -o $@ $< -g -O0 <MACH> $(<PROJ>_<EXT>FLAGS) -DTCNAME=<t c> $(<TC>_CCFLAGS) <DEFLIST> <INCLIST>', 58 'Debug': '<TAB>$(<CC>) -o $@ $< -g -O0 <MACH> $(<PROJ>_<EXT>FLAGS) -DTCNAME=<t c> $(<TC>_CCFLAGS) <DEFLIST> <INCLIST>',
59 'Release': '<TAB>$(<CC>) -o $@ $< -O2 <MACH> $(<PROJ>_<EXT>FLAGS) -DTCNAME=<tc > $(<TC>_CCFLAGS) <DEFLIST> <INCLIST>', 59 'Release': '<TAB>$(<CC>) -o $@ $< -O2 <MACH> $(<PROJ>_<EXT>FLAGS) -DTCNAME=<tc > $(<TC>_CCFLAGS) <DEFLIST> <INCLIST>',
60 } 60 }
61 61
62 SO_CC_RULES = { 62 SO_CC_RULES = {
63 'Debug': '<TAB>$(<CC>) -o $@ $< -g -O0 <MACH> -fPIC $(<PROJ>_<EXT>FLAGS) -DTCN AME=<tc> $(<TC>_CCFLAGS) <DEFLIST> <INCLIST>', 63 'Debug': '<TAB>$(<CC>) -o $@ $< -g -O0 <MACH> -fPIC $(<PROJ>_<EXT>FLAGS) -DTCN AME=<tc> $(<TC>_CCFLAGS) <DEFLIST> <INCLIST>',
64 'Release': '<TAB>$(<CC>) -o $@ $< -02 <MACH> -fPIC $(<PROJ>_<EXT>FLAGS) -DTCNA ME=<tc> $(<TC>_CCFLAGS) <DEFLIST> <INCLIST>' 64 'Release': '<TAB>$(<CC>) -o $@ $< -02 <MACH> -fPIC $(<PROJ>_<EXT>FLAGS) -DTCNA ME=<tc> $(<TC>_CCFLAGS) <DEFLIST> <INCLIST>'
65 } 65 }
66 66
67 WIN_CC_RULES = { 67 WIN_CC_RULES = {
68 'Debug': '<TAB>$(<CC>) /Od /Fo$@ /MTd /c $< -DTCNAME=host $(WIN_CCFLAGS) <DEFL IST> <INCLIST>', 68 'Debug': '<TAB>$(<CC>) /Od /Fo$@ /MTd /Zi /c $< -DTCNAME=host $(WIN_CCFLAGS) < DEFLIST> <INCLIST>',
69 'Release': '<TAB>$(<CC>) /O2 /Fo$@ /MT /c $< -DTCNAME=host $(WIN_CCFLAGS) <DEF LIST> <INCLIST>' 69 'Release': '<TAB>$(<CC>) /O2 /Fo$@ /MT /c $< -DTCNAME=host $(WIN_CCFLAGS) <DEF LIST> <INCLIST>'
70 } 70 }
71 71
72 # 72 #
73 # Link rules for various platforms. 73 # Link rules for various platforms.
74 # 74 #
75 NEXE_LINK_RULES = { 75 NEXE_LINK_RULES = {
76 'Debug': '<TAB>$(<LINK>) -o $@ $^ -g <MACH> $(<PROJ>_LDFLAGS) $(<TC>_LDFLAGS) <LIBLIST>', 76 'Debug': '<TAB>$(<LINK>) -o $@ $^ -g <MACH> $(<PROJ>_LDFLAGS) $(<TC>_LDFLAGS) <LIBLIST>',
77 'Release': '<TAB>$(<LINK>) -o $@ $^ <MACH> $(<PROJ>_LDFLAGS) $(<TC>_LDFLAGS) < LIBLIST>' 77 'Release': '<TAB>$(<LINK>) -o $@ $^ <MACH> $(<PROJ>_LDFLAGS) $(<TC>_LDFLAGS) < LIBLIST>'
78 } 78 }
(...skipping 12 matching lines...) Expand all
91 91
92 <tc>/<config>/<proj>_arm.nexe : <tc>/<config>/<proj>.pexe 92 <tc>/<config>/<proj>_arm.nexe : <tc>/<config>/<proj>.pexe
93 <TAB>$(TRANSLATE) -arch arm $< -o $@""" 93 <TAB>$(TRANSLATE) -arch arm $< -o $@"""
94 94
95 PEXE_LINK_RULES = { 95 PEXE_LINK_RULES = {
96 'Debug': '<TAB>$(<LINK>) -o $@ $^ -g $(<PROJ>_LDFLAGS) $(<TC>_LDFLAGS) <LIBLIS T>\n' + PEXE_TRANSLATE_RULE, 96 'Debug': '<TAB>$(<LINK>) -o $@ $^ -g $(<PROJ>_LDFLAGS) $(<TC>_LDFLAGS) <LIBLIS T>\n' + PEXE_TRANSLATE_RULE,
97 'Release': '<TAB>$(<LINK>) -o $@ $^ $(<PROJ>_LDFLAGS) $(<TC>_LDFLAGS) <LIBLIST >\n' + PEXE_TRANSLATE_RULE, 97 'Release': '<TAB>$(<LINK>) -o $@ $^ $(<PROJ>_LDFLAGS) $(<TC>_LDFLAGS) <LIBLIST >\n' + PEXE_TRANSLATE_RULE,
98 } 98 }
99 99
100 WIN_LINK_RULES = { 100 WIN_LINK_RULES = {
101 'Debug': '<TAB>$(<LINK>) /DLL /OUT:$@ $(<PROJ>_LDFLAGS) /LIBPATH:$(NACL_SDK_RO OT)/lib/win_x86_32_host/Debug $^ <LIBLIST> $(WIN_LDFLAGS)', 101 'Debug': '<TAB>$(<LINK>) /DLL /OUT:$@ /PDG:$@.pdb /Zi $(<PROJ>_LDFLAGS) /DEBUG /LIBPATH:$(NACL_SDK_ROOT)/lib/win_x86_32_host/Debug $^ <LIBLIST> $(WIN_LDFLAGS) ',
102 'Release': '<TAB>$(<LINK>) /DLL /OUT:$@ $(<PROJ>_LDFLAGS) /LIBPATH:$(NACL_SDK_ ROOT)/lib/win_x86_32_host/Release $^ <LIBLIST> $(WIN_LDFLAGS)' 102 'Release': '<TAB>$(<LINK>) /DLL /OUT:$@ $(<PROJ>_LDFLAGS) /LIBPATH:$(NACL_SDK_ ROOT)/lib/win_x86_32_host/Release $^ <LIBLIST> $(WIN_LDFLAGS)'
103 } 103 }
104 104
105 WIN_LAUNCH_RULES = """ 105 WIN_LAUNCH_RULES = """
106 HOST_ARGS:=--register-pepper-plugins=$(abspath win/<proj>.dll);application/x-nac l 106 HOST_ARGS:=--register-pepper-plugins=$(abspath win/<proj>.dll);application/x-nac l
107 LAUNCH_HOST: CHECK_FOR_CHROME all 107 LAUNCH_HOST: CHECK_FOR_CHROME all
108 <TAB>$(CHROME_PATH) $(HOST_ARGS) "localhost:5103/index_win.html" 108 <TAB>$(CHROME_PATH) $(HOST_ARGS) "localhost:5103/index_win.html"
109 """ 109 """
110 110
111 # 111 #
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 } 436 }
437 for dll in dlls: 437 for dll in dlls:
438 replace['<proj>'] = dll 438 replace['<proj>'] = dll
439 nmf_targets.append(Replace(dll_target, replace)) 439 nmf_targets.append(Replace(dll_target, replace))
440 replace['<proj>'] = main 440 replace['<proj>'] = main
441 nmf_targets.append(Replace(target, replace)) 441 nmf_targets.append(Replace(target, replace))
442 442
443 replace['<NMF_TARGETS>'] = ' '.join(nmf_targets) 443 replace['<NMF_TARGETS>'] = ' '.join(nmf_targets)
444 rules = Replace(BUILD_RULES[tc]['NMF'], replace) 444 rules = Replace(BUILD_RULES[tc]['NMF'], replace)
445 return '\nALL_TARGETS+=%s/%s/%s.nmf' % (tc, cfg, main) + rules + '\n' 445 return '\nALL_TARGETS+=%s/%s/%s.nmf' % (tc, cfg, main) + rules + '\n'
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698