Home | History | Annotate | Download | only in unbundle
      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
      3 # found in the LICENSE file.
      4 
      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   },
     16   'targets': [
     17     {
     18       'target_name': 'harfbuzz-ng',
     19       'type': 'none',
     20       'cflags': [
     21         '<!@(pkg-config --cflags <(harfbuzz_libraries))',
     22       ],
     23       'direct_dependent_settings': {
     24         'cflags': [
     25           '<!@(pkg-config --cflags <(harfbuzz_libraries))',
     26         ],
     27       },
     28       'link_settings': {
     29         'ldflags': [
     30           '<!@(pkg-config --libs-only-L --libs-only-other <(harfbuzz_libraries))',
     31         ],
     32         'libraries': [
     33           '<!@(pkg-config --libs-only-l <(harfbuzz_libraries))',
     34         ],
     35       },
     36       'variables': {
     37         'headers_root_path': 'src',
     38         'header_filenames': [
     39           'hb.h',
     40         ],
     41       },
     42       'includes': [
     43         '../../build/shim_headers.gypi',
     44       ],
     45     },
     46   ],
     47 }
     48