summaryrefslogtreecommitdiff
path: root/test/toolsets/toolsets.gyp
diff options
context:
space:
mode:
Diffstat (limited to 'test/toolsets/toolsets.gyp')
-rw-r--r--test/toolsets/toolsets.gyp34
1 files changed, 34 insertions, 0 deletions
diff --git a/test/toolsets/toolsets.gyp b/test/toolsets/toolsets.gyp
new file mode 100644
index 00000000..c709fb10
--- /dev/null
+++ b/test/toolsets/toolsets.gyp
@@ -0,0 +1,34 @@
+{
+ 'target_defaults': {
+ 'target_conditions': [
+ ['_toolset=="target"', {'defines': ['TARGET']}]
+ ]
+ },
+ 'targets': [
+ {
+ 'target_name': 'toolsets',
+ 'type': 'static_library',
+ 'toolsets': ['target', 'host'],
+ 'sources': [
+ 'toolsets.cc',
+ ],
+ },
+ {
+ 'target_name': 'host-main',
+ 'type': 'executable',
+ 'toolsets': ['host'],
+ 'dependencies': ['toolsets'],
+ 'sources': [
+ 'main.cc',
+ ],
+ },
+ {
+ 'target_name': 'target-main',
+ 'type': 'executable',
+ 'dependencies': ['toolsets'],
+ 'sources': [
+ 'main.cc',
+ ],
+ },
+ ],
+}