-
Notifications
You must be signed in to change notification settings - Fork 54
/
external.gyp
68 lines (67 loc) · 1.57 KB
/
external.gyp
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Copyright (c) 2013 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
# the test driver switches this flag when testing external builder
'use_external_builder%': 0,
},
'targets': [
{
'target_name': 'external',
'type': 'executable',
'sources': [
'hello.cpp',
'hello.z',
],
'rules': [
{
'rule_name': 'test_rule',
'extension': 'z',
'outputs': [
'msbuild_rule.out',
],
'action': [
'python',
'msbuild_rule.py',
'<(RULE_INPUT_PATH)',
'a', 'b', 'c',
],
'msvs_cygwin_shell': 0,
},
],
'actions': [
{
'action_name': 'test action',
'inputs': [
'msbuild_action.py',
],
'outputs': [
'msbuild_action.out',
],
'action': [
'python',
'<@(_inputs)',
'x', 'y', 'z',
],
'msvs_cygwin_shell': 0,
},
],
'conditions': [
['use_external_builder==1', {
'msvs_external_builder': 'test',
'msvs_external_builder_build_cmd': [
'python',
'external_builder.py',
'build', '1', '2', '3',
],
'msvs_external_builder_clean_cmd': [
'python',
'external_builder.py',
'clean', '4', '5',
],
}],
],
},
],
}