OLD | NEW |
| (Empty) |
1 #!/usr/bin/python2.4 | |
2 # | |
3 # Copyright 2009 Google Inc. | |
4 # | |
5 # Licensed under the Apache License, Version 2.0 (the "License"); | |
6 # you may not use this file except in compliance with the License. | |
7 # You may obtain a copy of the License at | |
8 # | |
9 # http://www.apache.org/licenses/LICENSE-2.0 | |
10 # | |
11 # Unless required by applicable law or agreed to in writing, software | |
12 # distributed under the License is distributed on an "AS IS" BASIS, | |
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
14 # See the License for the specific language governing permissions and | |
15 # limitations under the License. | |
16 # ======================================================================== | |
17 | |
18 Import('env') | |
19 | |
20 | |
21 local_env = env.Clone() | |
22 local_env.Append( | |
23 CCFLAGS = [ | |
24 '/wd4287', # unsigned/negative constant mismatch | |
25 '/wd4706', # assignment within conditional expression | |
26 ], | |
27 CPPDEFINES = [ | |
28 '_MBCS' | |
29 ], | |
30 ) | |
31 | |
32 # Disable runtime error checking. | |
33 local_env.FilterOut(CCFLAGS = ['/RTC1']) | |
34 | |
35 _inputs = [ | |
36 'alloc.cc', | |
37 'alloc2.cc', | |
38 #'allocsup.cc', | |
39 #'argcargv.cc', | |
40 #'bsearch.c', | |
41 #'charmax.c', | |
42 #'crt0tcon.cc', | |
43 'crt0twin.cc', | |
44 #'dllcrt0.cc', | |
45 #'fullpath.cc', | |
46 'initterm.cc', | |
47 #'isctype.cc', | |
48 'memory.cc', | |
49 'newdel.cc', | |
50 'pesect.c', | |
51 #'puts.cc', | |
52 'resetstk.c', | |
53 'security.cc', | |
54 #'stricmp.cc', | |
55 'string.c', | |
56 #'struplwr.cc', | |
57 | |
58 'alloca16.obj', | |
59 'chandler4.obj', | |
60 | |
61 # Structured exception handling. | |
62 'sehprolg.obj', | |
63 'sehprolg4.obj', | |
64 'sehprolg4gs.obj', | |
65 | |
66 # Exception handlers. | |
67 'exsup4.obj', | |
68 'exsup3.obj', | |
69 'exsup.obj', | |
70 'eh3valid.obj', | |
71 'ulldiv.obj', | |
72 'llmul.obj', | |
73 'ftol2.obj', | |
74 'chkstk.obj', | |
75 'dllsupp.obj', | |
76 'ullshr.obj', | |
77 'lldvrm.obj', | |
78 'ulldvrm.obj', | |
79 'llshl.obj', | |
80 'ullrem.obj', | |
81 'lldiv.obj', | |
82 'llrem.obj', | |
83 'llshr.obj', | |
84 ] | |
85 | |
86 # Build these into a static library. | |
87 local_env.ComponentLibrary('minicrt', _inputs) | |
OLD | NEW |