aboutsummaryrefslogtreecommitdiff
path: root/test cases
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2019-01-22 16:00:10 +0100
committerDaniel Mensinger <daniel@mensinger-ka.de>2019-01-22 16:41:25 +0100
commitb7c6f3ec72c831c2af20eb5320d5f51b52d79227 (patch)
treec7d77532371251aefcdbe45cfb74113337340375 /test cases
parente089eb7665ca9dfb28e740829652add666f4a2f0 (diff)
downloadmeson-b7c6f3ec72c831c2af20eb5320d5f51b52d79227.zip
meson-b7c6f3ec72c831c2af20eb5320d5f51b52d79227.tar.gz
meson-b7c6f3ec72c831c2af20eb5320d5f51b52d79227.tar.bz2
Can now rewrite files
Diffstat (limited to 'test cases')
-rw-r--r--test cases/rewrite/1 basic/addSrc.json6
-rw-r--r--test cases/rewrite/1 basic/meson.build2
2 files changed, 8 insertions, 0 deletions
diff --git a/test cases/rewrite/1 basic/addSrc.json b/test cases/rewrite/1 basic/addSrc.json
index 6d8c599..1a504bf 100644
--- a/test cases/rewrite/1 basic/addSrc.json
+++ b/test cases/rewrite/1 basic/addSrc.json
@@ -7,6 +7,12 @@
},
{
"type": "target",
+ "target": "trivialprog2",
+ "operation": "src_add",
+ "sources": ["a7.cpp"]
+ },
+ {
+ "type": "target",
"target": "trivialprog3",
"operation": "src_add",
"sources": ["a5.cpp"]
diff --git a/test cases/rewrite/1 basic/meson.build b/test cases/rewrite/1 basic/meson.build
index 3e092ee..1bed0e1 100644
--- a/test cases/rewrite/1 basic/meson.build
+++ b/test cases/rewrite/1 basic/meson.build
@@ -5,6 +5,8 @@ src2 = files(['fileB.cpp', 'fileC.cpp'])
src3 = src1
src4 = [src3]
+# Magic comment
+
exe1 = executable('trivialprog1', src1)
exe2 = executable('trivialprog2', [src2])
exe3 = executable('trivialprog3', ['main.cpp', 'fileA.cpp'])