Replace cmd line arguments on install scripts. Closes #1681.

pull/1697/head
Jussi Pakkanen 8 years ago
parent 4f7723649a
commit b6a3d34bd6
  1. 14
      mesonbuild/backend/ninjabackend.py

@ -720,7 +720,19 @@ int dummy;
d.targets.append([f, outdir, {}, False, None]) d.targets.append([f, outdir, {}, False, None])
def generate_custom_install_script(self, d): def generate_custom_install_script(self, d):
d.install_scripts = self.build.install_scripts result = []
srcdir = self.environment.get_source_dir()
builddir = self.environment.get_build_dir()
for i in self.build.install_scripts:
exe = i['exe']
args = i['args']
fixed_args = []
for a in args:
a = a.replace('@SOURCE_ROOT@', srcdir)
a = a.replace('@BUILD_ROOT@', builddir)
fixed_args.append(a)
result.append(build.RunScript(exe, fixed_args))
d.install_scripts = result
def generate_header_install(self, d): def generate_header_install(self, d):
incroot = self.environment.get_includedir() incroot = self.environment.get_includedir()

Loading…
Cancel
Save