aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/backends.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2016-12-20 00:15:53 +0200
committerGitHub <noreply@github.com>2016-12-20 00:15:53 +0200
commit4317edca25a29a191c51c520e2861f6d45f7b6b1 (patch)
treed99523668454eede71ca5be5fd13c66f97db7cdf /mesonbuild/backend/backends.py
parent589a56e78f37861ddf920ae0aa4710b409131fb7 (diff)
parenta4219760ba52e7cae97e20c445095494c393a8a4 (diff)
downloadmeson-4317edca25a29a191c51c520e2861f6d45f7b6b1.zip
meson-4317edca25a29a191c51c520e2861f6d45f7b6b1.tar.gz
meson-4317edca25a29a191c51c520e2861f6d45f7b6b1.tar.bz2
Merge pull request #1227 from centricular/ninja-clean-recursive-dir-delete
run_project_tests.py: Also do ninja clean on tests
Diffstat (limited to 'mesonbuild/backend/backends.py')
-rw-r--r--mesonbuild/backend/backends.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py
index ca013fa..b265a24 100644
--- a/mesonbuild/backend/backends.py
+++ b/mesonbuild/backend/backends.py
@@ -22,6 +22,15 @@ import json
import subprocess
from ..mesonlib import MesonException, get_compiler_for_source, classify_unity_sources
+class CleanTrees():
+ '''
+ Directories outputted by custom targets that have to be manually cleaned
+ because on Linux `ninja clean` only deletes empty directories.
+ '''
+ def __init__(self, build_dir, trees):
+ self.build_dir = build_dir
+ self.trees = trees
+
class InstallData():
def __init__(self, source_dir, build_dir, prefix):
self.source_dir = source_dir