| OLD | NEW |
| 1 # -*- python -*- | 1 # -*- python -*- |
| 2 | 2 |
| 3 # Copyright (c) 2009-2010 The Chromium OS Authors. All rights reserved. | 3 # Copyright (c) 2009-2010 The Chromium OS Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 import os | 7 import os |
| 8 import re | 8 import re |
| 9 | 9 |
| 10 def build(): | 10 def build(): |
| 11 vars = get_variables() | 11 vars = get_variables() |
| 12 | 12 |
| 13 env = get_environment(vars) | 13 env = get_environment(vars) |
| 14 | 14 |
| 15 env.AppendUnique( | 15 env.AppendUnique( |
| 16 CCFLAGS=['-fPIC', '-fno-exceptions', '-Wall', '-Werror', '-ggdb'], | 16 CCFLAGS=['-fPIC', '-fno-exceptions', '-Wall', '-Werror', '-ggdb'], |
| 17 LINKFLAGS=['-fPIC'], | 17 LINKFLAGS=['-fPIC'], |
| 18 LIBS=['base', | 18 LIBS=['base', |
| 19 'rt', | 19 'rt', |
| 20 'dl', |
| 20 'pthread', | 21 'pthread', |
| 21 'v8', | 22 'v8', |
| 22 'event', | 23 'event', |
| 23 'curl', | 24 'curl', |
| 24 'crypto', | 25 'crypto', |
| 25 'opencryptoki', | 26 'opencryptoki', |
| 26 'chromeos', | 27 'chromeos', |
| 27 'crosapi'], | 28 'crosapi'], |
| 28 ) | 29 ) |
| 29 | 30 |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 # copy all these vars to the build environment (UNIX process env, not just | 106 # copy all these vars to the build environment (UNIX process env, not just |
| 106 # scons "Environment"). | 107 # scons "Environment"). |
| 107 for key in vars.keys(): | 108 for key in vars.keys(): |
| 108 env['ENV'][key] = env[key] | 109 env['ENV'][key] = env[key] |
| 109 | 110 |
| 110 env.VariantDir("${BUILD_DIR}", ".", duplicate=0) | 111 env.VariantDir("${BUILD_DIR}", ".", duplicate=0) |
| 111 | 112 |
| 112 return env | 113 return env |
| 113 | 114 |
| 114 build() | 115 build() |
| OLD | NEW |