summaryrefslogtreecommitdiff
path: root/deps/gyp/test/make_global_settings/ar/make_global_settings_ar.gyp
blob: 3430d82a517aec983ecfefec1595399982f3dfb6 (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
# Copyright (c) 2014 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style licence that can be
# found in the LICENSE file.

{
  'variables': {
    'custom_ar_target%': '',
    'custom_ar_host%': '',
  },
  'conditions': [
    ['"<(custom_ar_target)"!=""', {
      'make_global_settings': [
        ['AR', '<(custom_ar_target)'],
      ],
    }],
    ['"<(custom_ar_host)"!=""', {
      'make_global_settings': [
        ['AR.host', '<(custom_ar_host)'],
      ],
    }],
  ],
  'targets': [
    {
      'target_name': 'make_global_settings_ar_test',
      'type': 'static_library',
      'sources': [ 'foo.c' ],
    },
  ],
}