| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 The Chromium 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 { | 5 { |
| 6 'variables': { | 6 'variables': { |
| 7 'verbose_libraries_build%': 0, | 7 'verbose_libraries_build%': 0, |
| 8 'instrumented_libraries_jobs%': 1, | 8 'instrumented_libraries_jobs%': 1, |
| 9 'instrumented_libraries_cc%': '', | 9 'instrumented_libraries_cc%': '<!(cd <(DEPTH) && pwd -P)/<(make_clang_dir)/b
in/clang', |
| 10 'instrumented_libraries_cxx%': '', | 10 'instrumented_libraries_cxx%': '<!(cd <(DEPTH) && pwd -P)/<(make_clang_dir)/
bin/clang++', |
| 11 }, | 11 }, |
| 12 | 12 |
| 13 'libdir': 'lib', | 13 'libdir': 'lib', |
| 14 'ubuntu_release': '<!(lsb_release -cs)', | 14 'ubuntu_release': '<!(lsb_release -cs)', |
| 15 'clang_absolute_path': '<!(cd <(DEPTH) && pwd -P)/<(make_clang_dir)/bin/clang'
, | |
| 16 'clang++_absolute_path': '<!(cd <(DEPTH) && pwd -P)/<(make_clang_dir)/bin/clan
g++', | |
| 17 | 15 |
| 18 'conditions': [ | 16 'conditions': [ |
| 19 ['asan==1', { | 17 ['asan==1', { |
| 20 'sanitizer_type': 'asan', | 18 'sanitizer_type': 'asan', |
| 21 }], | 19 }], |
| 22 ['msan==1', { | 20 ['msan==1', { |
| 23 'sanitizer_type': 'msan', | 21 'sanitizer_type': 'msan', |
| 24 }], | 22 }], |
| 25 ['tsan==1', { | 23 ['tsan==1', { |
| 26 'sanitizer_type': 'tsan', | 24 'sanitizer_type': 'tsan', |
| 27 }], | 25 }], |
| 28 ['use_goma==1', { | 26 ['use_goma==1', { |
| 29 'cc': '<(gomadir)/gomacc <(_clang_absolute_path)', | 27 'cc': '<(gomadir)/gomacc <(instrumented_libraries_cc)', |
| 30 'cxx': '<(gomadir)/gomacc <(_clang++_absolute_path)', | 28 'cxx': '<(gomadir)/gomacc <(instrumented_libraries_cxx)', |
| 31 }, { | 29 }, { |
| 32 'cc': '<(clang_absolute_path)', | |
| 33 'cxx': '<(clang++_absolute_path)', | |
| 34 }], | |
| 35 # When building with a custom clang, CC/CXX must be overridden via GYP | |
| 36 # variables. | |
| 37 ['instrumented_libraries_cc!=""', { | |
| 38 'cc': '<(instrumented_libraries_cc)', | 30 'cc': '<(instrumented_libraries_cc)', |
| 39 }], | |
| 40 ['instrumented_libraries_cxx!=""', { | |
| 41 'cxx': '<(instrumented_libraries_cxx)', | 31 'cxx': '<(instrumented_libraries_cxx)', |
| 42 }], | 32 }], |
| 43 ], | 33 ], |
| 44 | 34 |
| 45 'target_defaults': { | 35 'target_defaults': { |
| 46 'build_method': 'destdir', | 36 'build_method': 'destdir', |
| 47 # Every package must have --disable-static in configure flags to avoid | 37 # Every package must have --disable-static in configure flags to avoid |
| 48 # building unnecessary static libs. Ideally we should add it here. | 38 # building unnecessary static libs. Ideally we should add it here. |
| 49 # Unfortunately, zlib1g doesn't support that flag and for some reason it | 39 # Unfortunately, zlib1g doesn't support that flag and for some reason it |
| 50 # can't be removed with a GYP exclusion list. So instead we add that flag | 40 # can't be removed with a GYP exclusion list. So instead we add that flag |
| (...skipping 814 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 865 'extra_configure_flags': [ | 855 'extra_configure_flags': [ |
| 866 '--disable-static', | 856 '--disable-static', |
| 867 # See above. | 857 # See above. |
| 868 '--disable-introspection', | 858 '--disable-introspection', |
| 869 ], | 859 ], |
| 870 'pre_build': 'scripts/pre-build/autoreconf.sh', | 860 'pre_build': 'scripts/pre-build/autoreconf.sh', |
| 871 'includes': ['standard_instrumented_package_target.gypi'], | 861 'includes': ['standard_instrumented_package_target.gypi'], |
| 872 }, | 862 }, |
| 873 ], | 863 ], |
| 874 } | 864 } |
| OLD | NEW |