Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(434)

Side by Side Diff: src/platform/window_manager/SConstruct

Issue 541020: build: Get rid of manually-maintained lists of tests. (Closed)
Patch Set: Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/platform/window_manager/make_tests.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. 1 # Copyright (c) 2009 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 6
7 Help('''\ 7 Help('''\
8 Type: 'scons' to build and 'scons -c' to clean\ 8 Type: 'scons' to build and 'scons -c' to clean\
9 ''') 9 ''')
10 10
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 libtest = wm_env.Library('test', Split(srcs)) 152 libtest = wm_env.Library('test', Split(srcs))
153 153
154 wm_env['LIBS'] += [libwm_core, libwm_ipc, 'libbreakpad'] 154 wm_env['LIBS'] += [libwm_core, libwm_ipc, 'libbreakpad']
155 155
156 wm_env.Program('wm', 'main.cc') 156 wm_env.Program('wm', 'main.cc')
157 157
158 test_env = wm_env.Clone() 158 test_env = wm_env.Clone()
159 test_env['LINKFLAGS'].append('-lgtest') 159 test_env['LINKFLAGS'].append('-lgtest')
160 # libtest needs to be listed first since it depends on wm_core and wm_ipc. 160 # libtest needs to be listed first since it depends on wm_core and wm_ipc.
161 test_env['LIBS'].insert(0, libtest) 161 test_env['LIBS'].insert(0, libtest)
162 test_env.Program('key_bindings_test', 'key_bindings_test.cc') 162 tests = []
163 test_env.Program('layout_manager_test', 'layout_manager_test.cc') 163 for test_src in Glob('*_test.cc', strings=True):
164 test_env.Program('no_clutter_test', 'no_clutter_test.cc') 164 tests += test_env.Program(test_src)
165 test_env.Program('panel_bar_test', 'panel_bar_test.cc') 165 # Create a 'tests' target that will build all tests.
166 test_env.Program('panel_test', 'panel_test.cc') 166 test_env.Alias('tests', tests)
167 test_env.Program('shadow_test', 'shadow_test.cc')
168 test_env.Program('stacking_manager_test', 'stacking_manager_test.cc')
169 test_env.Program('util_test', 'util_test.cc')
170 test_env.Program('window_manager_test', 'window_manager_test.cc')
171 test_env.Program('window_test', 'window_test.cc')
172 test_env.Program('x_connection_test', 'x_connection_test.cc')
173 167
174 mock_chrome_env = wm_env.Clone() 168 mock_chrome_env = wm_env.Clone()
175 mock_chrome_env.ParseConfig('pkg-config --cflags --libs gtkmm-2.4') 169 mock_chrome_env.ParseConfig('pkg-config --cflags --libs gtkmm-2.4')
176 mock_chrome_env.Program('mock_chrome', 'mock_chrome.cc') 170 mock_chrome_env.Program('mock_chrome', 'mock_chrome.cc')
OLDNEW
« no previous file with comments | « no previous file | src/platform/window_manager/make_tests.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698