summaryrefslogtreecommitdiffstats
path: root/scripts/libmakepkg/buildenv/meson.build
diff options
context:
space:
mode:
authorQue Quotion <quequotion@gmail.com>2018-11-27 10:23:02 +0100
committerAllan McRae <allan@archlinux.org>2018-11-27 13:48:43 +0100
commit508b4e3ec0cb3e365942f4dc0626edda4789932b (patch)
treed47fd87b0ba310da989e45423180c4fda2610957 /scripts/libmakepkg/buildenv/meson.build
parent0bb04fa16a82db133dd010478c1256bc8500c5e7 (diff)
downloadpacman-508b4e3ec0cb3e365942f4dc0626edda4789932b.tar.gz
pacman-508b4e3ec0cb3e365942f4dc0626edda4789932b.tar.xz
Split prepare_buildenv() to libmakepkg
This opens the door for third parties to provide libmakepkg extentions for the purpose of altering the build environment. Signed-off-by: Que Quotion <quequotion@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts/libmakepkg/buildenv/meson.build')
-rw-r--r--scripts/libmakepkg/buildenv/meson.build20
1 files changed, 20 insertions, 0 deletions
diff --git a/scripts/libmakepkg/buildenv/meson.build b/scripts/libmakepkg/buildenv/meson.build
new file mode 100644
index 00000000..34d4ba7b
--- /dev/null
+++ b/scripts/libmakepkg/buildenv/meson.build
@@ -0,0 +1,20 @@
+libmakepkg_module = 'buildenv'
+
+sources = [
+ 'buildflags.sh.in',
+ 'compiler.sh.in',
+ 'debugflags.sh.in',
+ 'makeflags.sh.in',
+]
+
+foreach src : sources
+ output_dir = join_paths(get_option('datadir'), 'makepkg', libmakepkg_module)
+
+ custom_target(
+ libmakepkg_module + '_' + src.underscorify(),
+ command : [ SCRIPT_EDITOR, '@INPUT@', '@OUTPUT@' ],
+ input : src,
+ output : '@BASENAME@',
+ install : true,
+ install_dir : output_dir)
+endforeach