aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/backends.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2018-07-17 14:28:38 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2018-07-22 16:05:09 +0300
commit7bb5f8273601ad84e2d70794157d29557d80e841 (patch)
tree4dd4db50404e0dd471ec978588fcab4e73a34b99 /mesonbuild/backend/backends.py
parent808d229c3740444e8149ece825c43a81d2c857ad (diff)
downloadmeson-7bb5f8273601ad84e2d70794157d29557d80e841.zip
meson-7bb5f8273601ad84e2d70794157d29557d80e841.tar.gz
meson-7bb5f8273601ad84e2d70794157d29557d80e841.tar.bz2
Added install target to VS. Closes #3841.
Diffstat (limited to 'mesonbuild/backend/backends.py')
-rw-r--r--mesonbuild/backend/backends.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py
index 4b9c546..5a8d695 100644
--- a/mesonbuild/backend/backends.py
+++ b/mesonbuild/backend/backends.py
@@ -924,6 +924,8 @@ class Backend:
subprocess.check_call(cmd, env=child_env)
def create_install_data_files(self):
+ install_data_file = os.path.join(self.environment.get_scratch_dir(), 'install.dat')
+
if self.environment.is_cross_build():
bins = self.environment.cross_info.config['binaries']
if 'strip' not in bins:
@@ -946,7 +948,8 @@ class Backend:
self.generate_data_install(d)
self.generate_custom_install_script(d)
self.generate_subdir_install(d)
- return d
+ with open(install_data_file, 'wb') as ofile:
+ pickle.dump(d, ofile)
def get_target_install_dirs(self, t):
# Find the installation directory.