Commit 0372675fbd0df47085dd63136ba23e810c62fa3e

Authored by Silvan Calarco
1 parent fcdbf0fe9b
Exists in master

spec-create.in: support for Meson

Showing 1 changed file with 13 additions and 1 deletions Side-by-side Diff

plugins/spec-create.in
... ... @@ -60,6 +60,10 @@
60 60 spec_cmd_make_default=""
61 61 spec_cmd_makeinstall_default=""
62 62  
  63 +spec_cmd_configure_meson="%meson"
  64 +spec_cmd_make_meson="%meson_build"
  65 +spec_cmd_makeinstall_meson="%meson_install"
  66 +
63 67 [ "$perl_Makefile_generator" ] || perl_Makefile_generator="Makefile.PL"
64 68  
65 69 preserve_dot_git=0
... ... @@ -413,6 +417,12 @@
413 417 spec_cmd_makeinstall="$spec_cmd_makeinstall_scons"
414 418 buildrequires_buildtool="scons"
415 419 ;;
  420 + meson)
  421 + spec_cmd_configure="$spec_cmd_configure_meson"
  422 + spec_cmd_make="$spec_cmd_make_meson"
  423 + spec_cmd_makeinstall="$spec_cmd_makeinstall_meson"
  424 + buildrequires_buildtool="scons"
  425 + ;;
416 426 unknown)
417 427 notify.warning $"unknown build techonology"
418 428 spec_cmd_configure="$spec_cmd_configure_default"
... ... @@ -871,7 +881,9 @@
871 881 kde3|kde4|perl|python)
872 882 build_techology="$spec_type"
873 883 ;;
874   - *) if [ -e $tmpdir/$pck_rootdir/CMakeLists.txt ]; then
  884 + *) if [ -e $tmpdir/$pck_rootdir/meson.build ]; then
  885 + build_techology="meson"
  886 + elif [ -e $tmpdir/$pck_rootdir/CMakeLists.txt ]; then
875 887 build_techology="cmake"
876 888 elif [ -x $tmpdir/$pck_rootdir/configure ]; then
877 889 build_techology="autotools"