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 # Build Security library | |
22 # | |
23 security_env = env.Clone() | |
24 | |
25 security_env.Append( | |
26 CPPPATH = [ | |
27 '$MAIN_DIR/third_party/c99/include', | |
28 ], | |
29 CCFLAGS = [ | |
30 '/wd4242', # conversion from 'type1' to 'type2', possible loss of data | |
31 '/wd4244', # conversion from 'type1' to 'type2', possible loss of data | |
32 '/wd4510', # default constructor could not be generated | |
33 '/wd4610', # object 'class' can never be instantiated | |
34 ], | |
35 ) | |
36 | |
37 | |
38 security_inputs = [ | |
39 'aes.c', | |
40 'b64.c', | |
41 'challenger.cc', | |
42 'hmac.c', | |
43 'md5.c', | |
44 'rc4.c', | |
45 'rsa.cc', | |
46 'sha.c', | |
47 ] | |
48 | |
49 # Precompiled headers cannot be used with C files. | |
50 security_env.ComponentStaticLibrary('security', | |
51 security_inputs, | |
52 use_pch_default=False) | |
OLD | NEW |