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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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_extent_writer.cc | 88 bzip_extent_writer.cc |
89 decompressing_file_writer.cc | 89 decompressing_file_writer.cc |
90 delta_diff_parser.cc | 90 delta_diff_parser.cc |
91 download_action.cc | 91 download_action.cc |
| 92 extent_mapper.cc |
92 extent_writer.cc | 93 extent_writer.cc |
93 filesystem_copier_action.cc | 94 filesystem_copier_action.cc |
94 filesystem_iterator.cc | 95 filesystem_iterator.cc |
95 file_writer.cc | 96 file_writer.cc |
96 graph_utils.cc | 97 graph_utils.cc |
97 gzip.cc | 98 gzip.cc |
98 libcurl_http_fetcher.cc | 99 libcurl_http_fetcher.cc |
99 omaha_hash_calculator.cc | 100 omaha_hash_calculator.cc |
100 omaha_request_prep_action.cc | 101 omaha_request_prep_action.cc |
101 omaha_response_handler_action.cc | 102 omaha_response_handler_action.cc |
102 postinstall_runner_action.cc | 103 postinstall_runner_action.cc |
103 set_bootable_flag_action.cc | 104 set_bootable_flag_action.cc |
104 subprocess.cc | 105 subprocess.cc |
105 update_check_action.cc | 106 update_check_action.cc |
106 update_metadata.pb.cc | 107 update_metadata.pb.cc |
107 utils.cc""") | 108 utils.cc""") |
108 main = ['main.cc'] | 109 main = ['main.cc'] |
109 | 110 |
110 unittest_sources = Split("""action_unittest.cc | 111 unittest_sources = Split("""action_unittest.cc |
111 action_pipe_unittest.cc | 112 action_pipe_unittest.cc |
112 action_processor_unittest.cc | 113 action_processor_unittest.cc |
113 bzip_extent_writer_unittest.cc | 114 bzip_extent_writer_unittest.cc |
114 decompressing_file_writer_unittest.cc | 115 decompressing_file_writer_unittest.cc |
115 delta_diff_generator_unittest.cc | 116 delta_diff_generator_unittest.cc |
116 download_action_unittest.cc | 117 download_action_unittest.cc |
| 118 extent_mapper_unittest.cc |
117 extent_writer_unittest.cc | 119 extent_writer_unittest.cc |
118 file_writer_unittest.cc | 120 file_writer_unittest.cc |
119 filesystem_copier_action_unittest.cc | 121 filesystem_copier_action_unittest.cc |
120 filesystem_iterator_unittest.cc | 122 filesystem_iterator_unittest.cc |
121 graph_utils_unittest.cc | 123 graph_utils_unittest.cc |
122 gzip_unittest.cc | 124 gzip_unittest.cc |
123 http_fetcher_unittest.cc | 125 http_fetcher_unittest.cc |
124 mock_http_fetcher.cc | 126 mock_http_fetcher.cc |
125 omaha_hash_calculator_unittest.cc | 127 omaha_hash_calculator_unittest.cc |
126 omaha_request_prep_action_unittest.cc | 128 omaha_request_prep_action_unittest.cc |
(...skipping 21 matching lines...) Expand all Loading... |
148 unittest_sources + test_installer_main) | 150 unittest_sources + test_installer_main) |
149 | 151 |
150 Clean(unittest_cmd, Glob('*.gcda') + Glob('*.gcno') + Glob('*.gcov') + | 152 Clean(unittest_cmd, Glob('*.gcda') + Glob('*.gcno') + Glob('*.gcov') + |
151 Split('html app.info')) | 153 Split('html app.info')) |
152 | 154 |
153 delta_generator_cmd = env.Program('delta_generator', | 155 delta_generator_cmd = env.Program('delta_generator', |
154 sources + delta_generator_sources + | 156 sources + delta_generator_sources + |
155 delta_generator_main) | 157 delta_generator_main) |
156 | 158 |
157 http_server_cmd = env.Program('test_http_server', 'test_http_server.cc') | 159 http_server_cmd = env.Program('test_http_server', 'test_http_server.cc') |
OLD | NEW |