| 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': { |
| 7 # Check for presence of harfbuzz-icu library, use it if present. |
| 8 'harfbuzz_libraries': |
| 9 '<!(python <(DEPTH)/tools/compile_test/compile_test.py ' |
| 10 '--code "int main() { return 0; }" ' |
| 11 '--run-linker ' |
| 12 '--on-success "harfbuzz harfbuzz-icu" ' |
| 13 '--on-failure "harfbuzz" ' |
| 14 '-- -lharfbuzz-icu)', |
| 15 }, |
| 6 'targets': [ | 16 'targets': [ |
| 7 { | 17 { |
| 8 'target_name': 'harfbuzz-ng', | 18 'target_name': 'harfbuzz-ng', |
| 9 'type': 'none', | 19 'type': 'none', |
| 10 'cflags': [ | 20 'cflags': [ |
| 11 '<!@(pkg-config --cflags harfbuzz)', | 21 '<!@(pkg-config --cflags <(harfbuzz_libraries))', |
| 12 ], | 22 ], |
| 13 'direct_dependent_settings': { | 23 'direct_dependent_settings': { |
| 14 'cflags': [ | 24 'cflags': [ |
| 15 '<!@(pkg-config --cflags harfbuzz)', | 25 '<!@(pkg-config --cflags <(harfbuzz_libraries))', |
| 16 ], | 26 ], |
| 17 }, | 27 }, |
| 18 'link_settings': { | 28 'link_settings': { |
| 19 'ldflags': [ | 29 'ldflags': [ |
| 20 '<!@(pkg-config --libs-only-L --libs-only-other harfbuzz)', | 30 '<!@(pkg-config --libs-only-L --libs-only-other <(harfbuzz_libraries))
', |
| 21 ], | 31 ], |
| 22 'libraries': [ | 32 'libraries': [ |
| 23 '<!@(pkg-config --libs-only-l harfbuzz)', | 33 '<!@(pkg-config --libs-only-l <(harfbuzz_libraries))', |
| 24 ], | 34 ], |
| 25 }, | 35 }, |
| 26 }, | 36 }, |
| 27 ], | 37 ], |
| 28 } | 38 } |
| OLD | NEW |