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

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

Issue 495008: wm: Include breakpad. (Closed)
Patch Set: Created 11 years 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/main.cc » ('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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 screenshot_env.Program('screenshot', 'screenshot.cc') 82 screenshot_env.Program('screenshot', 'screenshot.cc')
83 83
84 # Start a new environment for the window manager. 84 # Start a new environment for the window manager.
85 wm_env = base_env.Clone() 85 wm_env = base_env.Clone()
86 86
87 # Add a builder for .proto files 87 # Add a builder for .proto files
88 wm_env['BUILDERS']['ProtocolBuffer'] = proto_builder 88 wm_env['BUILDERS']['ProtocolBuffer'] = proto_builder
89 89
90 wm_env.ParseConfig('pkg-config --cflags --libs gdk-2.0 xcomposite libpcrecpp') 90 wm_env.ParseConfig('pkg-config --cflags --libs gdk-2.0 xcomposite libpcrecpp')
91 91
92 breakpad_path = '../../third_party/google-breakpad/files/src/client/linux'
93 wm_env['CPPPATH'].append(breakpad_path)
94 wm_env['LIBPATH'].append(breakpad_path)
95
92 if os.system('pkg-config clutter-1.0') == 0: 96 if os.system('pkg-config clutter-1.0') == 0:
93 wm_env.ParseConfig('pkg-config --cflags --libs clutter-1.0') 97 wm_env.ParseConfig('pkg-config --cflags --libs clutter-1.0')
94 else: 98 else:
95 wm_env.ParseConfig('pkg-config --cflags --libs clutter-0.9') 99 wm_env.ParseConfig('pkg-config --cflags --libs clutter-0.9')
96 # Make us still produce a usable binary (for now, at least) on Jaunty 100 # Make us still produce a usable binary (for now, at least) on Jaunty
97 # systems that are stuck at Clutter 0.9.2. 101 # systems that are stuck at Clutter 0.9.2.
98 if os.system('pkg-config --exact-version=0.9.2 clutter-0.9') == 0: 102 if os.system('pkg-config --exact-version=0.9.2 clutter-0.9') == 0:
99 wm_env.Append(CCFLAGS='-DCLUTTER_0_9_2') 103 wm_env.Append(CCFLAGS='-DCLUTTER_0_9_2')
100 104
101 wm_env.ProtocolBuffer('system_metrics.pb.cc', 'system_metrics.proto'); 105 wm_env.ProtocolBuffer('system_metrics.pb.cc', 'system_metrics.proto');
(...skipping 29 matching lines...) Expand all
131 ''') 135 ''')
132 libwm_core = wm_env.Library('wm_core', srcs) 136 libwm_core = wm_env.Library('wm_core', srcs)
133 137
134 # Define a library to be used by tests. 138 # Define a library to be used by tests.
135 srcs = Split('''\ 139 srcs = Split('''\
136 mock_x_connection.cc 140 mock_x_connection.cc
137 test_lib.cc 141 test_lib.cc
138 ''') 142 ''')
139 libtest = wm_env.Library('test', Split(srcs)) 143 libtest = wm_env.Library('test', Split(srcs))
140 144
141 wm_env['LIBS'] += [libwm_core, libwm_ipc] 145 wm_env['LIBS'] += [libwm_core, libwm_ipc, 'libbreakpad']
142 146
143 wm_env.Program('wm', 'main.cc') 147 wm_env.Program('wm', 'main.cc')
144 148
145 test_env = wm_env.Clone() 149 test_env = wm_env.Clone()
146 test_env['LINKFLAGS'].append('-lgtest') 150 test_env['LINKFLAGS'].append('-lgtest')
147 # libtest needs to be listed first since it depends on wm_core and wm_ipc. 151 # libtest needs to be listed first since it depends on wm_core and wm_ipc.
148 test_env['LIBS'].insert(0, libtest) 152 test_env['LIBS'].insert(0, libtest)
149 test_env.Program('key_bindings_test', 'key_bindings_test.cc') 153 test_env.Program('key_bindings_test', 'key_bindings_test.cc')
150 test_env.Program('layout_manager_test', 'layout_manager_test.cc') 154 test_env.Program('layout_manager_test', 'layout_manager_test.cc')
151 test_env.Program('panel_bar_test', 'panel_bar_test.cc') 155 test_env.Program('panel_bar_test', 'panel_bar_test.cc')
152 test_env.Program('panel_test', 'panel_test.cc') 156 test_env.Program('panel_test', 'panel_test.cc')
153 test_env.Program('shadow_test', 'shadow_test.cc') 157 test_env.Program('shadow_test', 'shadow_test.cc')
154 test_env.Program('stacking_manager_test', 'stacking_manager_test.cc') 158 test_env.Program('stacking_manager_test', 'stacking_manager_test.cc')
155 test_env.Program('util_test', 'util_test.cc') 159 test_env.Program('util_test', 'util_test.cc')
156 test_env.Program('window_manager_test', 'window_manager_test.cc') 160 test_env.Program('window_manager_test', 'window_manager_test.cc')
157 test_env.Program('window_test', 'window_test.cc') 161 test_env.Program('window_test', 'window_test.cc')
158 162
159 mock_chrome_env = wm_env.Clone() 163 mock_chrome_env = wm_env.Clone()
160 mock_chrome_env.ParseConfig('pkg-config --cflags --libs gtkmm-2.4') 164 mock_chrome_env.ParseConfig('pkg-config --cflags --libs gtkmm-2.4')
161 mock_chrome_env.Program('mock_chrome', 'mock_chrome.cc') 165 mock_chrome_env.Program('mock_chrome', 'mock_chrome.cc')
OLDNEW
« no previous file with comments | « no previous file | src/platform/window_manager/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698