aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/rewrite/4 same name targets
diff options
context:
space:
mode:
Diffstat (limited to 'meson/test cases/rewrite/4 same name targets')
-rw-r--r--meson/test cases/rewrite/4 same name targets/addSrc.json8
-rw-r--r--meson/test cases/rewrite/4 same name targets/info.json12
-rw-r--r--meson/test cases/rewrite/4 same name targets/meson.build6
-rw-r--r--meson/test cases/rewrite/4 same name targets/sub1/meson.build3
4 files changed, 29 insertions, 0 deletions
diff --git a/meson/test cases/rewrite/4 same name targets/addSrc.json b/meson/test cases/rewrite/4 same name targets/addSrc.json
new file mode 100644
index 000000000..98d0d1ebf
--- /dev/null
+++ b/meson/test cases/rewrite/4 same name targets/addSrc.json
@@ -0,0 +1,8 @@
+[
+ {
+ "type": "target",
+ "target": "myExe",
+ "operation": "src_add",
+ "sources": ["a1.cpp", "a2.cpp"]
+ }
+]
diff --git a/meson/test cases/rewrite/4 same name targets/info.json b/meson/test cases/rewrite/4 same name targets/info.json
new file mode 100644
index 000000000..a9fc2ddc6
--- /dev/null
+++ b/meson/test cases/rewrite/4 same name targets/info.json
@@ -0,0 +1,12 @@
+[
+ {
+ "type": "target",
+ "target": "exe1",
+ "operation": "info"
+ },
+ {
+ "type": "target",
+ "target": "exe2",
+ "operation": "info"
+ }
+]
diff --git a/meson/test cases/rewrite/4 same name targets/meson.build b/meson/test cases/rewrite/4 same name targets/meson.build
new file mode 100644
index 000000000..384fa2b4e
--- /dev/null
+++ b/meson/test cases/rewrite/4 same name targets/meson.build
@@ -0,0 +1,6 @@
+project('rewrite same name targets', 'cpp')
+
+src1 = ['main.cpp']
+
+exe1 = executable('myExe', src1)
+subdir('sub1')
diff --git a/meson/test cases/rewrite/4 same name targets/sub1/meson.build b/meson/test cases/rewrite/4 same name targets/sub1/meson.build
new file mode 100644
index 000000000..ac53667ae
--- /dev/null
+++ b/meson/test cases/rewrite/4 same name targets/sub1/meson.build
@@ -0,0 +1,3 @@
+src2 = ['main.cpp']
+
+exe2 = executable('myExe', src2)