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 # Protobuffer compilation | 5 # Protobuffer compilation |
6 """ Inputs: | 6 """ Inputs: |
7 target: list of targets to compile to | 7 target: list of targets to compile to |
8 source: list of sources to compile | 8 source: list of sources to compile |
9 env: the scons environment in which we are compiling | 9 env: the scons environment in which we are compiling |
10 Outputs: | 10 Outputs: |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 gthread-2.0 | 60 gthread-2.0 |
61 libpcrecpp | 61 libpcrecpp |
62 protobuf | 62 protobuf |
63 pthread | 63 pthread |
64 ssl | 64 ssl |
65 xml2 | 65 xml2 |
66 z""") | 66 z""") |
67 env['CPPPATH'] = ['..', '../../third_party/chrome/files', '../../common'] | 67 env['CPPPATH'] = ['..', '../../third_party/chrome/files', '../../common'] |
68 env['LIBPATH'] = ['../../third_party/chrome'] | 68 env['LIBPATH'] = ['../../third_party/chrome'] |
69 env['BUILDERS']['ProtocolBuffer'] = proto_builder | 69 env['BUILDERS']['ProtocolBuffer'] = proto_builder |
| 70 |
| 71 # Fix up the pkg-config path if it is present in the environment. |
| 72 for key in Split('PKG_CONFIG_LIBDIR PKG_CONFIG_PATH'): |
| 73 if os.environ.has_key(key): |
| 74 env['ENV'][key] = os.environ[key] |
| 75 |
70 env.ParseConfig('pkg-config --cflags --libs glib-2.0') | 76 env.ParseConfig('pkg-config --cflags --libs glib-2.0') |
71 env.ProtocolBuffer('update_metadata.pb.cc', 'update_metadata.proto') | 77 env.ProtocolBuffer('update_metadata.pb.cc', 'update_metadata.proto') |
72 | 78 |
73 if ARGUMENTS.get('debug', 0): | 79 if ARGUMENTS.get('debug', 0): |
74 env['CCFLAGS'] += ' -fprofile-arcs -ftest-coverage' | 80 env['CCFLAGS'] += ' -fprofile-arcs -ftest-coverage' |
75 env['LIBS'] += ['gcov'] | 81 env['LIBS'] += ['gcov'] |
76 | 82 |
77 | 83 |
78 | 84 |
79 sources = Split("""action_processor.cc | 85 sources = Split("""action_processor.cc |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 unittest_sources + test_installer_main) | 143 unittest_sources + test_installer_main) |
138 | 144 |
139 Clean(unittest_cmd, Glob('*.gcda') + Glob('*.gcno') + Glob('*.gcov') + | 145 Clean(unittest_cmd, Glob('*.gcda') + Glob('*.gcno') + Glob('*.gcov') + |
140 Split('html app.info')) | 146 Split('html app.info')) |
141 | 147 |
142 delta_generator_cmd = env.Program('delta_generator', | 148 delta_generator_cmd = env.Program('delta_generator', |
143 sources + delta_generator_sources + | 149 sources + delta_generator_sources + |
144 delta_generator_main) | 150 delta_generator_main) |
145 | 151 |
146 http_server_cmd = env.Program('test_http_server', 'test_http_server.cc') | 152 http_server_cmd = env.Program('test_http_server', 'test_http_server.cc') |
OLD | NEW |