OLD | NEW |
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 # Protobuffer compilation | 7 # Protobuffer compilation |
8 """ Inputs: | 8 """ Inputs: |
9 target: list of targets to compile to | 9 target: list of targets to compile to |
10 source: list of sources to compile | 10 source: list of sources to compile |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 env['CPPPATH'] = ['..', '../../third_party/chrome/files', '../../common'] | 131 env['CPPPATH'] = ['..', '../../third_party/chrome/files', '../../common'] |
132 env['LIBPATH'] = ['../../third_party/chrome'] | 132 env['LIBPATH'] = ['../../third_party/chrome'] |
133 env['BUILDERS']['ProtocolBuffer'] = proto_builder | 133 env['BUILDERS']['ProtocolBuffer'] = proto_builder |
134 env['BUILDERS']['DbusBindings'] = dbus_bindings_builder | 134 env['BUILDERS']['DbusBindings'] = dbus_bindings_builder |
135 | 135 |
136 # Fix issue with scons not passing pkg-config vars through the environment. | 136 # Fix issue with scons not passing pkg-config vars through the environment. |
137 for key in Split('PKG_CONFIG_LIBDIR PKG_CONFIG_PATH'): | 137 for key in Split('PKG_CONFIG_LIBDIR PKG_CONFIG_PATH'): |
138 if os.environ.has_key(key): | 138 if os.environ.has_key(key): |
139 env['ENV'][key] = os.environ[key] | 139 env['ENV'][key] = os.environ[key] |
140 | 140 |
141 env.ParseConfig('pkg-config --cflags --libs glib-2.0 dbus-1 dbus-glib-1') | 141 env.ParseConfig('pkg-config --cflags --libs ' |
| 142 'dbus-1 dbus-glib-1 gio-2.0 gio-unix-2.0 glib-2.0') |
142 env.ProtocolBuffer('update_metadata.pb.cc', 'update_metadata.proto') | 143 env.ProtocolBuffer('update_metadata.pb.cc', 'update_metadata.proto') |
143 | 144 |
144 env.DbusBindings('update_engine.dbusclient.h', 'update_engine.xml') | 145 env.DbusBindings('update_engine.dbusclient.h', 'update_engine.xml') |
145 | 146 |
146 if ARGUMENTS.get('debug', 0): | 147 if ARGUMENTS.get('debug', 0): |
147 env['CCFLAGS'] += ' -fprofile-arcs -ftest-coverage' | 148 env['CCFLAGS'] += ' -fprofile-arcs -ftest-coverage' |
148 env['LIBS'] += ['bz2', 'gcov'] | 149 env['LIBS'] += ['bz2', 'gcov'] |
149 | 150 |
150 sources = Split("""action_processor.cc | 151 sources = Split("""action_processor.cc |
151 bzip.cc | 152 bzip.cc |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 action_processor_unittest.cc | 184 action_processor_unittest.cc |
184 bzip_extent_writer_unittest.cc | 185 bzip_extent_writer_unittest.cc |
185 cycle_breaker_unittest.cc | 186 cycle_breaker_unittest.cc |
186 decompressing_file_writer_unittest.cc | 187 decompressing_file_writer_unittest.cc |
187 delta_diff_generator_unittest.cc | 188 delta_diff_generator_unittest.cc |
188 delta_performer_unittest.cc | 189 delta_performer_unittest.cc |
189 download_action_unittest.cc | 190 download_action_unittest.cc |
190 extent_mapper_unittest.cc | 191 extent_mapper_unittest.cc |
191 extent_writer_unittest.cc | 192 extent_writer_unittest.cc |
192 file_writer_unittest.cc | 193 file_writer_unittest.cc |
| 194 filesystem_copier_action_unittest.cc |
193 filesystem_iterator_unittest.cc | 195 filesystem_iterator_unittest.cc |
194 graph_utils_unittest.cc | 196 graph_utils_unittest.cc |
195 http_fetcher_unittest.cc | 197 http_fetcher_unittest.cc |
196 mock_http_fetcher.cc | 198 mock_http_fetcher.cc |
197 omaha_hash_calculator_unittest.cc | 199 omaha_hash_calculator_unittest.cc |
198 omaha_request_prep_action_unittest.cc | 200 omaha_request_prep_action_unittest.cc |
199 omaha_response_handler_action_unittest.cc | 201 omaha_response_handler_action_unittest.cc |
200 postinstall_runner_action_unittest.cc | 202 postinstall_runner_action_unittest.cc |
201 set_bootable_flag_action_unittest.cc | 203 set_bootable_flag_action_unittest.cc |
202 subprocess_unittest.cc | 204 subprocess_unittest.cc |
(...skipping 15 matching lines...) Expand all Loading... |
218 | 220 |
219 client_cmd = env.Program('update_engine_client', sources + client_main); | 221 client_cmd = env.Program('update_engine_client', sources + client_main); |
220 | 222 |
221 Clean(unittest_cmd, Glob('*.gcda') + Glob('*.gcno') + Glob('*.gcov') + | 223 Clean(unittest_cmd, Glob('*.gcda') + Glob('*.gcno') + Glob('*.gcov') + |
222 Split('html app.info')) | 224 Split('html app.info')) |
223 | 225 |
224 delta_generator_cmd = env.Program('delta_generator', | 226 delta_generator_cmd = env.Program('delta_generator', |
225 sources + delta_generator_main) | 227 sources + delta_generator_main) |
226 | 228 |
227 http_server_cmd = env.Program('test_http_server', 'test_http_server.cc') | 229 http_server_cmd = env.Program('test_http_server', 'test_http_server.cc') |
OLD | NEW |