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

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

Issue 855002: AU: Bzip2 utility functions that mirror Gzip utility functions. (Closed)
Patch Set: revert utils.* Created 10 years, 9 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/update_engine/bzip.h » ('j') | src/platform/update_engine/bzip.h » ('J')
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 """ 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 env.ParseConfig('pkg-config --cflags --libs glib-2.0') 78 env.ParseConfig('pkg-config --cflags --libs glib-2.0')
79 env.ProtocolBuffer('update_metadata.pb.cc', 'update_metadata.proto') 79 env.ProtocolBuffer('update_metadata.pb.cc', 'update_metadata.proto')
80 80
81 if ARGUMENTS.get('debug', 0): 81 if ARGUMENTS.get('debug', 0):
82 env['CCFLAGS'] += ' -fprofile-arcs -ftest-coverage' 82 env['CCFLAGS'] += ' -fprofile-arcs -ftest-coverage'
83 env['LIBS'] += ['bz2', 'gcov'] 83 env['LIBS'] += ['bz2', 'gcov']
84 84
85 85
86 86
87 sources = Split("""action_processor.cc 87 sources = Split("""action_processor.cc
88 bzip.cc
88 bzip_extent_writer.cc 89 bzip_extent_writer.cc
89 cycle_breaker.cc 90 cycle_breaker.cc
90 decompressing_file_writer.cc 91 decompressing_file_writer.cc
91 delta_diff_parser.cc 92 delta_diff_parser.cc
92 download_action.cc 93 download_action.cc
93 extent_mapper.cc 94 extent_mapper.cc
94 extent_writer.cc 95 extent_writer.cc
95 filesystem_copier_action.cc 96 filesystem_copier_action.cc
96 filesystem_iterator.cc 97 filesystem_iterator.cc
97 file_writer.cc 98 file_writer.cc
(...skipping 20 matching lines...) Expand all
118 cycle_breaker_unittest.cc 119 cycle_breaker_unittest.cc
119 decompressing_file_writer_unittest.cc 120 decompressing_file_writer_unittest.cc
120 delta_diff_generator_unittest.cc 121 delta_diff_generator_unittest.cc
121 download_action_unittest.cc 122 download_action_unittest.cc
122 extent_mapper_unittest.cc 123 extent_mapper_unittest.cc
123 extent_writer_unittest.cc 124 extent_writer_unittest.cc
124 file_writer_unittest.cc 125 file_writer_unittest.cc
125 filesystem_copier_action_unittest.cc 126 filesystem_copier_action_unittest.cc
126 filesystem_iterator_unittest.cc 127 filesystem_iterator_unittest.cc
127 graph_utils_unittest.cc 128 graph_utils_unittest.cc
128 gzip_unittest.cc
129 http_fetcher_unittest.cc 129 http_fetcher_unittest.cc
130 mock_http_fetcher.cc 130 mock_http_fetcher.cc
131 omaha_hash_calculator_unittest.cc 131 omaha_hash_calculator_unittest.cc
132 omaha_request_prep_action_unittest.cc 132 omaha_request_prep_action_unittest.cc
133 omaha_response_handler_action_unittest.cc 133 omaha_response_handler_action_unittest.cc
134 postinstall_runner_action_unittest.cc 134 postinstall_runner_action_unittest.cc
135 set_bootable_flag_action_unittest.cc 135 set_bootable_flag_action_unittest.cc
136 subprocess_unittest.cc 136 subprocess_unittest.cc
137 tarjan_unittest.cc 137 tarjan_unittest.cc
138 test_utils.cc 138 test_utils.cc
139 topological_sort_unittest.cc 139 topological_sort_unittest.cc
140 update_check_action_unittest.cc 140 update_check_action_unittest.cc
141 utils_unittest.cc""") 141 utils_unittest.cc
142 zip_unittest.cc""")
142 unittest_main = ['testrunner.cc'] 143 unittest_main = ['testrunner.cc']
143 144
144 delta_generator_sources = Split("""delta_diff_generator.cc""") 145 delta_generator_sources = Split("""delta_diff_generator.cc""")
145 delta_generator_main = ['generate_delta_main.cc'] 146 delta_generator_main = ['generate_delta_main.cc']
146 147
147 test_installer_main = ['test_installer_main.cc'] 148 test_installer_main = ['test_installer_main.cc']
148 149
149 env.Program('update_engine', sources + main) 150 env.Program('update_engine', sources + main)
150 unittest_cmd = env.Program('update_engine_unittests', 151 unittest_cmd = env.Program('update_engine_unittests',
151 sources + delta_generator_sources + 152 sources + delta_generator_sources +
152 unittest_sources + unittest_main) 153 unittest_sources + unittest_main)
153 154
154 test_installer_cmd = env.Program('test_installer', 155 test_installer_cmd = env.Program('test_installer',
155 sources + delta_generator_sources + 156 sources + delta_generator_sources +
156 unittest_sources + test_installer_main) 157 unittest_sources + test_installer_main)
157 158
158 Clean(unittest_cmd, Glob('*.gcda') + Glob('*.gcno') + Glob('*.gcov') + 159 Clean(unittest_cmd, Glob('*.gcda') + Glob('*.gcno') + Glob('*.gcov') +
159 Split('html app.info')) 160 Split('html app.info'))
160 161
161 delta_generator_cmd = env.Program('delta_generator', 162 delta_generator_cmd = env.Program('delta_generator',
162 sources + delta_generator_sources + 163 sources + delta_generator_sources +
163 delta_generator_main) 164 delta_generator_main)
164 165
165 http_server_cmd = env.Program('test_http_server', 'test_http_server.cc') 166 http_server_cmd = env.Program('test_http_server', 'test_http_server.cc')
OLDNEW
« no previous file with comments | « no previous file | src/platform/update_engine/bzip.h » ('j') | src/platform/update_engine/bzip.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698