summaryrefslogtreecommitdiffstats
path: root/chromium/build/linux/unbundle/harfbuzz.gyp
blob: 93b2a69c12d7b7524fa0c2aa67b52136b779196d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

{
  'variables': {
    # Check for presence of harfbuzz-icu library, use it if present.
    'harfbuzz_libraries':
        '<!(python <(DEPTH)/tools/compile_test/compile_test.py '
        '--code "int main() { return 0; }" '
        '--run-linker '
        '--on-success "harfbuzz harfbuzz-icu" '
        '--on-failure "harfbuzz" '
        '-- -lharfbuzz-icu)',
  },
  'targets': [
    {
      'target_name': 'harfbuzz-ng',
      'type': 'none',
      'cflags': [
        '<!@(pkg-config --cflags <(harfbuzz_libraries))',
      ],
      'direct_dependent_settings': {
        'cflags': [
          '<!@(pkg-config --cflags <(harfbuzz_libraries))',
        ],
      },
      'link_settings': {
        'ldflags': [
          '<!@(pkg-config --libs-only-L --libs-only-other <(harfbuzz_libraries))',
        ],
        'libraries': [
          '<!@(pkg-config --libs-only-l <(harfbuzz_libraries))',
        ],
      },
    },
  ],
}