| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright 2013 The Chromium Authors. All rights reserved. | 2 # Copyright 2013 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 """Downloads, builds (with instrumentation) and installs shared libraries.""" | 6 """Downloads, builds (with instrumentation) and installs shared libraries.""" |
| 7 | 7 |
| 8 import argparse | 8 import argparse |
| 9 import os | 9 import os |
| 10 import platform | 10 import platform |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 elif parsed_arguments.build_method == 'custom_libcap': | 243 elif parsed_arguments.build_method == 'custom_libcap': |
| 244 libcap2_make_install(parsed_arguments, environment, install_prefix) | 244 libcap2_make_install(parsed_arguments, environment, install_prefix) |
| 245 elif parsed_arguments.build_method == 'custom_pango': | 245 elif parsed_arguments.build_method == 'custom_pango': |
| 246 parsed_arguments.extra_configure_flags += \ | 246 parsed_arguments.extra_configure_flags += \ |
| 247 ' --x-libraries=%s/lib' % install_prefix | 247 ' --x-libraries=%s/lib' % install_prefix |
| 248 parsed_arguments.extra_configure_flags += \ | 248 parsed_arguments.extra_configure_flags += \ |
| 249 ' --x-includes=%s/include' % install_prefix | 249 ' --x-includes=%s/include' % install_prefix |
| 250 prefix_configure_make_install(parsed_arguments, environment, install_prefix) | 250 prefix_configure_make_install(parsed_arguments, environment, install_prefix) |
| 251 elif parsed_arguments.build_method == 'custom_libpci3': | 251 elif parsed_arguments.build_method == 'custom_libpci3': |
| 252 libpci3_make_install(parsed_arguments, environment, install_prefix) | 252 libpci3_make_install(parsed_arguments, environment, install_prefix) |
| 253 elif parsed_arguments.build_method == 'custom_libappindicator1': |
| 254 environment['CSC'] = '/usr/bin/mono-csc' |
| 255 destdir_configure_make_install( |
| 256 parsed_arguments, environment, install_prefix) |
| 253 else: | 257 else: |
| 254 raise Exception('Unrecognized build method: %s' % | 258 raise Exception('Unrecognized build method: %s' % |
| 255 parsed_arguments.build_method) | 259 parsed_arguments.build_method) |
| 256 | 260 |
| 257 | 261 |
| 258 def download_build_install(parsed_arguments): | 262 def download_build_install(parsed_arguments): |
| 259 sanitizer_params = SUPPORTED_SANITIZERS[parsed_arguments.sanitizer_type] | 263 sanitizer_params = SUPPORTED_SANITIZERS[parsed_arguments.sanitizer_type] |
| 260 | 264 |
| 261 environment = os.environ.copy() | 265 environment = os.environ.copy() |
| 262 # Usage of environment variables CC and CXX prefers usage flags --c-compiler | 266 # Usage of environment variables CC and CXX prefers usage flags --c-compiler |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 os.chdir(get_script_absolute_path()) | 374 os.chdir(get_script_absolute_path()) |
| 371 # Ensure all build dependencies are installed. | 375 # Ensure all build dependencies are installed. |
| 372 if parsed_arguments.check_build_deps: | 376 if parsed_arguments.check_build_deps: |
| 373 check_library_build_dependencies(parsed_arguments.library) | 377 check_library_build_dependencies(parsed_arguments.library) |
| 374 | 378 |
| 375 download_build_install(parsed_arguments) | 379 download_build_install(parsed_arguments) |
| 376 | 380 |
| 377 | 381 |
| 378 if __name__ == '__main__': | 382 if __name__ == '__main__': |
| 379 main() | 383 main() |
| OLD | NEW |