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

Side by Side Diff: SConstruct

Issue 3471006: AU: Speed up updates by using buffered writes. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git
Patch Set: update comment Created 10 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | buffered_file_writer.h » ('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 # 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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 186
187 env.DbusBindings('update_engine.dbusclient.h', 'update_engine.xml') 187 env.DbusBindings('update_engine.dbusclient.h', 'update_engine.xml')
188 188
189 env.GlibMarshal('marshal.glibmarshal.c', 'marshal.list') 189 env.GlibMarshal('marshal.glibmarshal.c', 'marshal.list')
190 190
191 if ARGUMENTS.get('debug', 0): 191 if ARGUMENTS.get('debug', 0):
192 env['CCFLAGS'] += ' -fprofile-arcs -ftest-coverage' 192 env['CCFLAGS'] += ' -fprofile-arcs -ftest-coverage'
193 env['LIBS'] += ['bz2', 'gcov'] 193 env['LIBS'] += ['bz2', 'gcov']
194 194
195 sources = Split("""action_processor.cc 195 sources = Split("""action_processor.cc
196 buffered_file_writer.cc
196 bzip.cc 197 bzip.cc
197 bzip_extent_writer.cc 198 bzip_extent_writer.cc
198 cycle_breaker.cc 199 cycle_breaker.cc
199 dbus_service.cc 200 dbus_service.cc
200 decompressing_file_writer.cc 201 decompressing_file_writer.cc
201 delta_diff_generator.cc 202 delta_diff_generator.cc
202 delta_performer.cc 203 delta_performer.cc
203 download_action.cc 204 download_action.cc
204 extent_mapper.cc 205 extent_mapper.cc
205 extent_writer.cc 206 extent_writer.cc
(...skipping 19 matching lines...) Expand all
225 topological_sort.cc 226 topological_sort.cc
226 update_attempter.cc 227 update_attempter.cc
227 update_check_scheduler.cc 228 update_check_scheduler.cc
228 update_metadata.pb.cc 229 update_metadata.pb.cc
229 utils.cc""") 230 utils.cc""")
230 main = ['main.cc'] 231 main = ['main.cc']
231 232
232 unittest_sources = Split("""action_unittest.cc 233 unittest_sources = Split("""action_unittest.cc
233 action_pipe_unittest.cc 234 action_pipe_unittest.cc
234 action_processor_unittest.cc 235 action_processor_unittest.cc
236 buffered_file_writer_unittest.cc
235 bzip_extent_writer_unittest.cc 237 bzip_extent_writer_unittest.cc
236 cycle_breaker_unittest.cc 238 cycle_breaker_unittest.cc
237 decompressing_file_writer_unittest.cc 239 decompressing_file_writer_unittest.cc
238 delta_diff_generator_unittest.cc 240 delta_diff_generator_unittest.cc
239 delta_performer_unittest.cc 241 delta_performer_unittest.cc
240 download_action_unittest.cc 242 download_action_unittest.cc
241 extent_mapper_unittest.cc 243 extent_mapper_unittest.cc
242 extent_writer_unittest.cc 244 extent_writer_unittest.cc
243 file_writer_unittest.cc 245 file_writer_unittest.cc
244 filesystem_copier_action_unittest.cc 246 filesystem_copier_action_unittest.cc
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 delta_generator_main) 300 delta_generator_main)
299 301
300 http_server_cmd = env.Program('test_http_server', 'test_http_server.cc') 302 http_server_cmd = env.Program('test_http_server', 'test_http_server.cc')
301 303
302 unittest_env = env.Clone() 304 unittest_env = env.Clone()
303 unittest_env.Append(LIBS=['gmock', 'gtest']) 305 unittest_env.Append(LIBS=['gmock', 'gtest'])
304 unittest_cmd = unittest_env.Program('update_engine_unittests', 306 unittest_cmd = unittest_env.Program('update_engine_unittests',
305 unittest_sources + unittest_main) 307 unittest_sources + unittest_main)
306 Clean(unittest_cmd, Glob('*.gcda') + Glob('*.gcno') + Glob('*.gcov') + 308 Clean(unittest_cmd, Glob('*.gcda') + Glob('*.gcno') + Glob('*.gcov') +
307 Split('html app.info')) 309 Split('html app.info'))
OLDNEW
« no previous file with comments | « no previous file | buffered_file_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698