Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(407)

Side by Side Diff: third_party/instrumented_libraries/download_build_install.py

Issue 325253002: Instrumented libraries: add libappindicator1, libdbusmenu, atk1.0. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | third_party/instrumented_libraries/instrumented_libraries.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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()
OLDNEW
« no previous file with comments | « no previous file | third_party/instrumented_libraries/instrumented_libraries.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698