| 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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 'mkdir -p %s-udeb/usr/bin' % destdir, | 216 'mkdir -p %s-udeb/usr/bin' % destdir, |
| 217 'make -j%s %s' % (parsed_arguments.jobs, ' '.join(make_args + paths)), | 217 'make -j%s %s' % (parsed_arguments.jobs, ' '.join(make_args + paths)), |
| 218 'make -j%s %s install' % ( | 218 'make -j%s %s install' % ( |
| 219 parsed_arguments.jobs, | 219 parsed_arguments.jobs, |
| 220 ' '.join(install_args + paths))], | 220 ' '.join(install_args + paths))], |
| 221 parsed_arguments.verbose, environment) | 221 parsed_arguments.verbose, environment) |
| 222 fix_rpaths(destdir) | 222 fix_rpaths(destdir) |
| 223 # Now move the contents of the temporary destdir to their final place. | 223 # Now move the contents of the temporary destdir to their final place. |
| 224 run_shell_commands([ | 224 run_shell_commands([ |
| 225 'cp %s/* %s/ -rd' % (destdir, install_prefix), | 225 'cp %s/* %s/ -rd' % (destdir, install_prefix), |
| 226 'mkdir -p %s/lib/' % install_prefix, |
| 226 'install -m 644 lib/libpci.so* %s/lib/' % install_prefix, | 227 'install -m 644 lib/libpci.so* %s/lib/' % install_prefix, |
| 227 'ln -sf libpci.so.%s %s/lib/libpci.so.3' % (version, install_prefix)], | 228 'ln -sf libpci.so.%s %s/lib/libpci.so.3' % (version, install_prefix)], |
| 228 parsed_arguments.verbose, environment) | 229 parsed_arguments.verbose, environment) |
| 229 | 230 |
| 230 | 231 |
| 231 def build_and_install(parsed_arguments, environment, install_prefix): | 232 def build_and_install(parsed_arguments, environment, install_prefix): |
| 232 if parsed_arguments.build_method == 'destdir': | 233 if parsed_arguments.build_method == 'destdir': |
| 233 destdir_configure_make_install( | 234 destdir_configure_make_install( |
| 234 parsed_arguments, environment, install_prefix) | 235 parsed_arguments, environment, install_prefix) |
| 235 elif parsed_arguments.build_method == 'custom_nss': | 236 elif parsed_arguments.build_method == 'custom_nss': |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 os.chdir(SCRIPT_ABSOLUTE_PATH) | 392 os.chdir(SCRIPT_ABSOLUTE_PATH) |
| 392 # Ensure all build dependencies are installed. | 393 # Ensure all build dependencies are installed. |
| 393 if parsed_arguments.check_build_deps: | 394 if parsed_arguments.check_build_deps: |
| 394 check_package_build_dependencies(parsed_arguments.package) | 395 check_package_build_dependencies(parsed_arguments.package) |
| 395 | 396 |
| 396 download_build_install(parsed_arguments) | 397 download_build_install(parsed_arguments) |
| 397 | 398 |
| 398 | 399 |
| 399 if __name__ == '__main__': | 400 if __name__ == '__main__': |
| 400 main() | 401 main() |
| OLD | NEW |