Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright (c) 2009-2010 The Chromium OS Authors. All rights reserved. | 1 # Copyright (c) 2009-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 itertools | 6 import itertools |
| 7 | 7 |
| 8 | 8 |
| 9 Help('''\ | 9 Help('''\ |
| 10 Type: 'scons' to build and 'scons -c' to clean\ | 10 Type: 'scons' to build and 'scons -c' to clean\ |
| (...skipping 21 matching lines...) Expand all Loading... | |
| 32 | 32 |
| 33 # Build example program | 33 # Build example program |
| 34 base_env.Append(LIBS=Split('base rt X11 Xext')) | 34 base_env.Append(LIBS=Split('base rt X11 Xext')) |
| 35 base_env.Append(CPPPATH=['..']) | 35 base_env.Append(CPPPATH=['..']) |
| 36 xidle = base_env.Library('xidle', ['xidle.cc']) | 36 xidle = base_env.Library('xidle', ['xidle.cc']) |
| 37 xidle_example = base_env.Program('xidle-example', ['xidle-example.cc', xidle]) | 37 xidle_example = base_env.Program('xidle-example', ['xidle-example.cc', xidle]) |
| 38 Default(xidle_example) | 38 Default(xidle_example) |
| 39 | 39 |
| 40 # Build unit tests | 40 # Build unit tests |
| 41 test_env = base_env.Clone() | 41 test_env = base_env.Clone() |
| 42 test_env.Append(LIBS=['gtest']) | 42 test_env.Append(LIBS=['gtest','Xtst']) |
|
Daniel Erat
2010/03/16 21:40:01
nit: add a space after the comma
| |
| 43 test_env.Program('xidle_unittest', | 43 test_env.Program('xidle_unittest', |
| 44 ['testrunner.cc', 'xidle_unittest.cc', xidle]) | 44 ['testrunner.cc', 'xidle_unittest.cc', xidle]) |
| 45 tests = [] | 45 tests = [] |
| OLD | NEW |