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 | 6 |
7 # Protobuffer compilation | 7 # Protobuffer compilation |
8 def ProtocolBufferEmitter(target, source, env): | 8 def ProtocolBufferEmitter(target, source, env): |
9 """ Inputs: | 9 """ Inputs: |
10 target: list of targets to compile to | 10 target: list of targets to compile to |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 env.ParseConfig('pkg-config --cflags --libs ' | 222 env.ParseConfig('pkg-config --cflags --libs ' |
223 'dbus-1 dbus-glib-1 gio-2.0 gio-unix-2.0 glib-2.0') | 223 'dbus-1 dbus-glib-1 gio-2.0 gio-unix-2.0 glib-2.0') |
224 env.ProtocolBuffer('update_metadata.pb.cc', 'update_metadata.proto') | 224 env.ProtocolBuffer('update_metadata.pb.cc', 'update_metadata.proto') |
225 env.PublicKey('unittest_key.pub.pem', 'unittest_key.pem') | 225 env.PublicKey('unittest_key.pub.pem', 'unittest_key.pem') |
226 | 226 |
227 env.DbusBindings('update_engine.dbusclient.h', 'update_engine.xml') | 227 env.DbusBindings('update_engine.dbusclient.h', 'update_engine.xml') |
228 | 228 |
229 env.GlibMarshal('marshal.glibmarshal.c', 'marshal.list') | 229 env.GlibMarshal('marshal.glibmarshal.c', 'marshal.list') |
230 | 230 |
231 if ARGUMENTS.get('debug', 0): | 231 if ARGUMENTS.get('debug', 0): |
232 env['CCFLAGS'] += ' -fprofile-arcs -ftest-coverage' | 232 env['CCFLAGS'] += ['-fprofile-arcs', '-ftest-coverage'] |
233 env['LIBS'] += ['bz2', 'gcov'] | 233 env['LIBS'] += ['bz2', 'gcov'] |
234 | 234 |
235 sources = Split("""action_processor.cc | 235 sources = Split("""action_processor.cc |
236 buffered_file_writer.cc | 236 buffered_file_writer.cc |
237 bzip.cc | 237 bzip.cc |
238 bzip_extent_writer.cc | 238 bzip_extent_writer.cc |
239 chrome_proxy_resolver.cc | 239 chrome_proxy_resolver.cc |
240 cycle_breaker.cc | 240 cycle_breaker.cc |
241 dbus_service.cc | 241 dbus_service.cc |
242 decompressing_file_writer.cc | 242 decompressing_file_writer.cc |
243 delta_diff_generator.cc | 243 delta_diff_generator.cc |
244 delta_performer.cc | 244 delta_performer.cc |
245 download_action.cc | 245 download_action.cc |
246 extent_mapper.cc | 246 extent_mapper.cc |
247 extent_ranges.cc | 247 extent_ranges.cc |
248 extent_writer.cc | 248 extent_writer.cc |
249 filesystem_copier_action.cc | 249 filesystem_copier_action.cc |
250 filesystem_iterator.cc | 250 filesystem_iterator.cc |
251 file_writer.cc | 251 file_writer.cc |
252 flimflam_proxy.cc | 252 flimflam_proxy.cc |
253 full_update_generator.cc | 253 full_update_generator.cc |
254 graph_utils.cc | 254 graph_utils.cc |
255 gzip.cc | 255 gzip.cc |
256 http_fetcher.cc | 256 http_fetcher.cc |
257 libcurl_http_fetcher.cc | 257 libcurl_http_fetcher.cc |
258 marshal.glibmarshal.c | 258 marshal.glibmarshal.c |
| 259 multi_range_http_fetcher.cc |
259 omaha_hash_calculator.cc | 260 omaha_hash_calculator.cc |
260 omaha_request_action.cc | 261 omaha_request_action.cc |
261 omaha_request_params.cc | 262 omaha_request_params.cc |
262 omaha_response_handler_action.cc | 263 omaha_response_handler_action.cc |
263 payload_signer.cc | 264 payload_signer.cc |
264 postinstall_runner_action.cc | 265 postinstall_runner_action.cc |
265 prefs.cc | 266 prefs.cc |
266 proxy_resolver.cc | 267 proxy_resolver.cc |
267 simple_key_value_store.cc | 268 simple_key_value_store.cc |
268 split_file_writer.cc | 269 split_file_writer.cc |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 delta_generator_main) | 353 delta_generator_main) |
353 | 354 |
354 http_server_cmd = env.Program('test_http_server', 'test_http_server.cc') | 355 http_server_cmd = env.Program('test_http_server', 'test_http_server.cc') |
355 | 356 |
356 unittest_env = env.Clone() | 357 unittest_env = env.Clone() |
357 unittest_env.Append(LIBS=['gmock', 'gtest']) | 358 unittest_env.Append(LIBS=['gmock', 'gtest']) |
358 unittest_cmd = unittest_env.Program('update_engine_unittests', | 359 unittest_cmd = unittest_env.Program('update_engine_unittests', |
359 unittest_sources + unittest_main) | 360 unittest_sources + unittest_main) |
360 Clean(unittest_cmd, Glob('*.gcda') + Glob('*.gcno') + Glob('*.gcov') + | 361 Clean(unittest_cmd, Glob('*.gcda') + Glob('*.gcno') + Glob('*.gcov') + |
361 Split('html app.info')) | 362 Split('html app.info')) |
OLD | NEW |