aboutsummaryrefslogtreecommitdiff
path: root/mesonast.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2016-11-20 01:59:16 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2016-11-20 01:59:16 +0200
commit805847c4a0b081779fc376930f16c0c51032d9ce (patch)
tree75d4ea70a32a19b7b6ed92b1f3927f86ce97522f /mesonast.py
parent87340136900be1442a4c408a00a08afed02e1873 (diff)
downloadmeson-805847c4a0b081779fc376930f16c0c51032d9ce.zip
meson-805847c4a0b081779fc376930f16c0c51032d9ce.tar.gz
meson-805847c4a0b081779fc376930f16c0c51032d9ce.tar.bz2
Can remove source files from targets. But in a super hacky way.
Diffstat (limited to 'mesonast.py')
-rwxr-xr-xmesonast.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonast.py b/mesonast.py
index f0f09e8..e269b0c 100755
--- a/mesonast.py
+++ b/mesonast.py
@@ -35,7 +35,8 @@ if __name__ == '__main__':
source_root = sys.argv[1]
ast = mesonbuild.astinterpreter.AstInterpreter(source_root, '')
try:
- ast.add_source('trivialprog', 'newfile.c')
+# ast.add_source('trivialprog', 'newfile.c')
+ ast.remove_source('trivialprog', 'newfile.c')
except Exception as e:
if isinstance(e, MesonException):
if hasattr(e, 'file') and hasattr(e, 'lineno') and hasattr(e, 'colno'):