-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
buildtypes: Add script for Meson [1]
[Description][2]: > Meson is an open source build system meant to be both extremely fast, > and, even more importantly, as user friendly as possible. > > The main design point of Meson is that every moment a developer spends > writing or debugging build definitions is a second wasted. So is every > second spent waiting for the build system to actually start compiling > code. [1]: http://mesonbuild.com/Quick-guide.html [2]: http://mesonbuild.com/
- Loading branch information
Showing
3 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# | ||
# bee magic for meson | ||
# | ||
# Copyright (C) 2017 | ||
# Paul Menzel <pmenzel@molgen.mpg.de> | ||
# and other bee developers | ||
# | ||
# This file is part of bee. | ||
# | ||
# bee is free software; you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
# | ||
|
||
: ${BEE_BUILDTYPE_MESON_MESONBUILD:=${S}/meson.build} | ||
|
||
if [ ! -r "${BEE_BUILDTYPE_MESON_MESONBUILD}" ] ; then | ||
return | ||
fi | ||
|
||
if ! type -p meson >/dev/null 2>&1 ; then | ||
return | ||
fi | ||
|
||
BEE_BUILDTYPE_DETECTED=meson | ||
|
||
BEE_BUILDTYPE_MESON_SOURCEDIR=${BEE_BUILDTYPE_MESON_MESONBUILD%/*} | ||
|
||
#### bee_configure() ########################################################## | ||
|
||
bee_configure() { | ||
start_cmd meson \ | ||
--prefix ${PREFIX} \ | ||
--buildtype=plain \ | ||
"${@}" \ | ||
${S} | ||
} | ||
|
||
#### bee_build() ############################################################## | ||
|
||
bee_build() { | ||
start_cmd ninja -v -C ${B} ${BEE_MAKEFLAGS} "${@}" | ||
} | ||
|
||
#### bee_install() ############################################################ | ||
|
||
bee_install() { | ||
start_cmd DESTDIR=${D} ninja -C ${B} install "${@}" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters