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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 env['CCFLAGS'] += ' -fprofile-arcs -ftest-coverage' | 100 env['CCFLAGS'] += ' -fprofile-arcs -ftest-coverage' |
101 env['LIBS'] += ['bz2', 'gcov'] | 101 env['LIBS'] += ['bz2', 'gcov'] |
102 | 102 |
103 | 103 |
104 | 104 |
105 sources = Split("""action_processor.cc | 105 sources = Split("""action_processor.cc |
106 bzip.cc | 106 bzip.cc |
107 bzip_extent_writer.cc | 107 bzip_extent_writer.cc |
108 cycle_breaker.cc | 108 cycle_breaker.cc |
109 decompressing_file_writer.cc | 109 decompressing_file_writer.cc |
110 delta_diff_parser.cc | 110 delta_performer.cc |
111 download_action.cc | 111 download_action.cc |
112 extent_mapper.cc | 112 extent_mapper.cc |
113 extent_writer.cc | 113 extent_writer.cc |
114 filesystem_copier_action.cc | 114 filesystem_copier_action.cc |
115 filesystem_iterator.cc | 115 filesystem_iterator.cc |
116 file_writer.cc | 116 file_writer.cc |
117 graph_utils.cc | 117 graph_utils.cc |
118 gzip.cc | 118 gzip.cc |
119 libcurl_http_fetcher.cc | 119 libcurl_http_fetcher.cc |
120 omaha_hash_calculator.cc | 120 omaha_hash_calculator.cc |
121 omaha_request_prep_action.cc | 121 omaha_request_prep_action.cc |
122 omaha_response_handler_action.cc | 122 omaha_response_handler_action.cc |
123 postinstall_runner_action.cc | 123 postinstall_runner_action.cc |
124 set_bootable_flag_action.cc | 124 set_bootable_flag_action.cc |
125 subprocess.cc | 125 subprocess.cc |
126 tarjan.cc | 126 tarjan.cc |
127 topological_sort.cc | 127 topological_sort.cc |
128 update_check_action.cc | 128 update_check_action.cc |
129 update_metadata.pb.cc | 129 update_metadata.pb.cc |
130 utils.cc""") | 130 utils.cc""") |
131 main = ['main.cc'] | 131 main = ['main.cc'] |
132 | 132 |
133 unittest_sources = Split("""action_unittest.cc | 133 unittest_sources = Split("""action_unittest.cc |
134 action_pipe_unittest.cc | 134 action_pipe_unittest.cc |
135 action_processor_unittest.cc | 135 action_processor_unittest.cc |
136 bzip_extent_writer_unittest.cc | 136 bzip_extent_writer_unittest.cc |
137 cycle_breaker_unittest.cc | 137 cycle_breaker_unittest.cc |
138 decompressing_file_writer_unittest.cc | 138 decompressing_file_writer_unittest.cc |
139 delta_diff_generator_unittest.cc | 139 delta_diff_generator_unittest.cc |
| 140 delta_performer_unittest.cc |
140 download_action_unittest.cc | 141 download_action_unittest.cc |
141 extent_mapper_unittest.cc | 142 extent_mapper_unittest.cc |
142 extent_writer_unittest.cc | 143 extent_writer_unittest.cc |
143 file_writer_unittest.cc | 144 file_writer_unittest.cc |
144 filesystem_iterator_unittest.cc | 145 filesystem_iterator_unittest.cc |
145 graph_utils_unittest.cc | 146 graph_utils_unittest.cc |
146 http_fetcher_unittest.cc | 147 http_fetcher_unittest.cc |
147 mock_http_fetcher.cc | 148 mock_http_fetcher.cc |
148 omaha_hash_calculator_unittest.cc | 149 omaha_hash_calculator_unittest.cc |
149 omaha_request_prep_action_unittest.cc | 150 omaha_request_prep_action_unittest.cc |
150 omaha_response_handler_action_unittest.cc | 151 omaha_response_handler_action_unittest.cc |
151 postinstall_runner_action_unittest.cc | 152 postinstall_runner_action_unittest.cc |
152 set_bootable_flag_action_unittest.cc | 153 set_bootable_flag_action_unittest.cc |
153 subprocess_unittest.cc | 154 subprocess_unittest.cc |
154 tarjan_unittest.cc | 155 tarjan_unittest.cc |
155 test_utils.cc | 156 test_utils.cc |
156 topological_sort_unittest.cc | 157 topological_sort_unittest.cc |
157 update_check_action_unittest.cc | 158 update_check_action_unittest.cc |
158 utils_unittest.cc | 159 utils_unittest.cc |
159 zip_unittest.cc""") | 160 zip_unittest.cc""") |
160 unittest_main = ['testrunner.cc'] | 161 unittest_main = ['testrunner.cc'] |
161 | 162 |
162 delta_generator_sources = Split("""delta_diff_generator.cc""") | 163 delta_generator_sources = Split("""delta_diff_generator.cc""") |
163 delta_generator_main = ['generate_delta_main.cc'] | 164 delta_generator_main = ['generate_delta_main.cc'] |
164 | 165 |
165 test_installer_main = ['test_installer_main.cc'] | |
166 | |
167 env.Program('update_engine', sources + main) | 166 env.Program('update_engine', sources + main) |
168 unittest_cmd = env.Program('update_engine_unittests', | 167 unittest_cmd = env.Program('update_engine_unittests', |
169 sources + delta_generator_sources + | 168 sources + delta_generator_sources + |
170 unittest_sources + unittest_main) | 169 unittest_sources + unittest_main) |
171 | 170 |
172 test_installer_cmd = env.Program('test_installer', | |
173 sources + delta_generator_sources + | |
174 unittest_sources + test_installer_main) | |
175 | |
176 Clean(unittest_cmd, Glob('*.gcda') + Glob('*.gcno') + Glob('*.gcov') + | 171 Clean(unittest_cmd, Glob('*.gcda') + Glob('*.gcno') + Glob('*.gcov') + |
177 Split('html app.info')) | 172 Split('html app.info')) |
178 | 173 |
179 delta_generator_cmd = env.Program('delta_generator', | 174 delta_generator_cmd = env.Program('delta_generator', |
180 sources + delta_generator_sources + | 175 sources + delta_generator_sources + |
181 delta_generator_main) | 176 delta_generator_main) |
182 | 177 |
183 http_server_cmd = env.Program('test_http_server', 'test_http_server.cc') | 178 http_server_cmd = env.Program('test_http_server', 'test_http_server.cc') |
OLD | NEW |