| OLD | NEW |
| 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import os | 5 import os |
| 6 import re | 6 import re |
| 7 import sys | 7 import sys |
| 8 | 8 |
| 9 def GlibMarshalEmitter(target, source, env): | 9 def GlibMarshalEmitter(target, source, env): |
| 10 """ Inputs: | 10 """ Inputs: |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 base_env.Append(CPPPATH=Split('. ..')) | 86 base_env.Append(CPPPATH=Split('. ..')) |
| 87 base_env.Append(CCFLAGS=Split('-ggdb -fPIC -fno-exceptions -Wall -Werror')) | 87 base_env.Append(CCFLAGS=Split('-ggdb -fPIC -fno-exceptions -Wall -Werror')) |
| 88 base_env.Append(LINKFLAGS=Split('-fPIC')) | 88 base_env.Append(LINKFLAGS=Split('-fPIC')) |
| 89 | 89 |
| 90 SOURCES = Split('''\ | 90 SOURCES = Split('''\ |
| 91 chromeos_brightness.cc | 91 chromeos_brightness.cc |
| 92 chromeos_cryptohome.cc | 92 chromeos_cryptohome.cc |
| 93 chromeos_imageburn.cc | 93 chromeos_imageburn.cc |
| 94 chromeos_input_method.cc | 94 chromeos_input_method.cc |
| 95 chromeos_input_method_ui.cc | 95 chromeos_input_method_ui.cc |
| 96 chromeos_keyboard.cc | |
| 97 chromeos_libcros_service.cc | 96 chromeos_libcros_service.cc |
| 98 chromeos_login.cc | 97 chromeos_login.cc |
| 99 chromeos_login_helpers.cc | 98 chromeos_login_helpers.cc |
| 100 chromeos_mount.cc | 99 chromeos_mount.cc |
| 101 chromeos_network.cc | 100 chromeos_network.cc |
| 102 chromeos_network_deprecated.cc | 101 chromeos_network_deprecated.cc |
| 103 chromeos_power.cc | 102 chromeos_power.cc |
| 104 chromeos_resume.cc | 103 chromeos_resume.cc |
| 105 chromeos_screen_lock.cc | 104 chromeos_screen_lock.cc |
| 106 chromeos_speech_synthesis.cc | 105 chromeos_speech_synthesis.cc |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 | 174 |
| 176 env_libcros_service_test = env.Clone() | 175 env_libcros_service_test = env.Clone() |
| 177 | 176 |
| 178 Load = base_env.Object('load.cc') | 177 Load = base_env.Object('load.cc') |
| 179 | 178 |
| 180 # Tests that do not require libcros.so. The ebuild script for libcros | 179 # Tests that do not require libcros.so. The ebuild script for libcros |
| 181 # automatically builds and runs the tests (libcros_unittests) if FEATURES="test" | 180 # automatically builds and runs the tests (libcros_unittests) if FEATURES="test" |
| 182 # is set. | 181 # is set. |
| 183 unittests = [ | 182 unittests = [ |
| 184 env_gtest_main.Program('libcros_unittests', | 183 env_gtest_main.Program('libcros_unittests', |
| 185 ['chromeos_keyboard.cc', | 184 ['chromeos_login.cc', |
| 186 'chromeos_keyboard_unittest.cc', | |
| 187 'chromeos_login.cc', | |
| 188 'chromeos_login_helpers.cc', | 185 'chromeos_login_helpers.cc', |
| 189 'chromeos_login_unittest.cc', | 186 'chromeos_login_unittest.cc', |
| 190 'chromeos_system.cc', | 187 'chromeos_system.cc', |
| 191 'chromeos_system_unittest.cc']), | 188 'chromeos_system_unittest.cc']), |
| 192 ] | 189 ] |
| 193 unittest_alias = Alias('unittest', unittests) | 190 unittest_alias = Alias('unittest', unittests) |
| 194 AlwaysBuild(unittest_alias) | 191 AlwaysBuild(unittest_alias) |
| 195 | 192 |
| 196 # Tests that do require libcros.so. | 193 # Tests that do require libcros.so. |
| 197 tests = [ | 194 tests = [ |
| (...skipping 13 matching lines...) Expand all Loading... |
| 211 env_libcros_service_test.Program( | 208 env_libcros_service_test.Program( |
| 212 'libcros_service_tester', | 209 'libcros_service_tester', |
| 213 ['libcros_service_tester.cc', | 210 ['libcros_service_tester.cc', |
| 214 'marshal.glibmarshal.c']), | 211 'marshal.glibmarshal.c']), |
| 215 ] | 212 ] |
| 216 libcros_service_test_alias = \ | 213 libcros_service_test_alias = \ |
| 217 Alias('libcros_service_test', libcros_service_tests) | 214 Alias('libcros_service_test', libcros_service_tests) |
| 218 AlwaysBuild(libcros_service_test_alias) | 215 AlwaysBuild(libcros_service_test_alias) |
| 219 | 216 |
| 220 Alias('crosapi', base_env.StaticLibrary('crosapi', Load), CCFLAGS='-ggdb') | 217 Alias('crosapi', base_env.StaticLibrary('crosapi', Load), CCFLAGS='-ggdb') |
| OLD | NEW |