| 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 |
| 6 |
| 5 # Protobuffer compilation | 7 # Protobuffer compilation |
| 6 """ Inputs: | 8 """ Inputs: |
| 7 target: list of targets to compile to | 9 target: list of targets to compile to |
| 8 source: list of sources to compile | 10 source: list of sources to compile |
| 9 env: the scons environment in which we are compiling | 11 env: the scons environment in which we are compiling |
| 10 Outputs: | 12 Outputs: |
| 11 target: the list of targets we'll emit | 13 target: the list of targets we'll emit |
| 12 source: the list of sources we'll compile""" | 14 source: the list of sources we'll compile""" |
| 13 def ProtocolBufferEmitter(target, source, env): | 15 def ProtocolBufferEmitter(target, source, env): |
| 14 output = str(source[0]) | 16 output = str(source[0]) |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 | 85 |
| 84 | 86 |
| 85 sources = Split("""action_processor.cc | 87 sources = Split("""action_processor.cc |
| 86 decompressing_file_writer.cc | 88 decompressing_file_writer.cc |
| 87 delta_diff_parser.cc | 89 delta_diff_parser.cc |
| 88 download_action.cc | 90 download_action.cc |
| 89 filesystem_copier_action.cc | 91 filesystem_copier_action.cc |
| 90 filesystem_iterator.cc | 92 filesystem_iterator.cc |
| 91 file_writer.cc | 93 file_writer.cc |
| 92 gzip.cc | 94 gzip.cc |
| 93 install_action.cc | |
| 94 libcurl_http_fetcher.cc | 95 libcurl_http_fetcher.cc |
| 95 omaha_hash_calculator.cc | 96 omaha_hash_calculator.cc |
| 96 omaha_request_prep_action.cc | 97 omaha_request_prep_action.cc |
| 97 omaha_response_handler_action.cc | 98 omaha_response_handler_action.cc |
| 98 postinstall_runner_action.cc | 99 postinstall_runner_action.cc |
| 99 set_bootable_flag_action.cc | 100 set_bootable_flag_action.cc |
| 100 subprocess.cc | 101 subprocess.cc |
| 101 update_check_action.cc | 102 update_check_action.cc |
| 102 update_metadata.pb.cc | 103 update_metadata.pb.cc |
| 103 utils.cc""") | 104 utils.cc""") |
| 104 main = ['main.cc'] | 105 main = ['main.cc'] |
| 105 | 106 |
| 106 unittest_sources = Split("""action_unittest.cc | 107 unittest_sources = Split("""action_unittest.cc |
| 107 action_pipe_unittest.cc | 108 action_pipe_unittest.cc |
| 108 action_processor_unittest.cc | 109 action_processor_unittest.cc |
| 109 decompressing_file_writer_unittest.cc | 110 decompressing_file_writer_unittest.cc |
| 110 delta_diff_generator_unittest.cc | 111 delta_diff_generator_unittest.cc |
| 111 download_action_unittest.cc | 112 download_action_unittest.cc |
| 112 file_writer_unittest.cc | 113 file_writer_unittest.cc |
| 113 filesystem_copier_action_unittest.cc | 114 filesystem_copier_action_unittest.cc |
| 114 filesystem_iterator_unittest.cc | 115 filesystem_iterator_unittest.cc |
| 115 gzip_unittest.cc | 116 gzip_unittest.cc |
| 116 http_fetcher_unittest.cc | 117 http_fetcher_unittest.cc |
| 117 install_action_unittest.cc | |
| 118 integration_unittest.cc | |
| 119 mock_http_fetcher.cc | 118 mock_http_fetcher.cc |
| 120 omaha_hash_calculator_unittest.cc | 119 omaha_hash_calculator_unittest.cc |
| 121 omaha_request_prep_action_unittest.cc | 120 omaha_request_prep_action_unittest.cc |
| 122 omaha_response_handler_action_unittest.cc | 121 omaha_response_handler_action_unittest.cc |
| 123 postinstall_runner_action_unittest.cc | 122 postinstall_runner_action_unittest.cc |
| 124 set_bootable_flag_action_unittest.cc | 123 set_bootable_flag_action_unittest.cc |
| 125 subprocess_unittest.cc | 124 subprocess_unittest.cc |
| 126 test_utils.cc | 125 test_utils.cc |
| 127 update_check_action_unittest.cc | 126 update_check_action_unittest.cc |
| 128 utils_unittest.cc""") | 127 utils_unittest.cc""") |
| (...skipping 14 matching lines...) Expand all Loading... |
| 143 unittest_sources + test_installer_main) | 142 unittest_sources + test_installer_main) |
| 144 | 143 |
| 145 Clean(unittest_cmd, Glob('*.gcda') + Glob('*.gcno') + Glob('*.gcov') + | 144 Clean(unittest_cmd, Glob('*.gcda') + Glob('*.gcno') + Glob('*.gcov') + |
| 146 Split('html app.info')) | 145 Split('html app.info')) |
| 147 | 146 |
| 148 delta_generator_cmd = env.Program('delta_generator', | 147 delta_generator_cmd = env.Program('delta_generator', |
| 149 sources + delta_generator_sources + | 148 sources + delta_generator_sources + |
| 150 delta_generator_main) | 149 delta_generator_main) |
| 151 | 150 |
| 152 http_server_cmd = env.Program('test_http_server', 'test_http_server.cc') | 151 http_server_cmd = env.Program('test_http_server', 'test_http_server.cc') |
| OLD | NEW |