-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Matt Young
committed
Oct 11, 2024
1 parent
d86a543
commit 752df04
Showing
50 changed files
with
408 additions
and
318 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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,6 +1,32 @@ | ||
#!/bin/bash | ||
#---------------------------------------------------------------------------------------------------------------------- | ||
# configure is part of Brewtarget, and is copyright the following authors 2009-2024: | ||
# • Matt Young <[email protected]> | ||
# • Philip Greggory Lee <[email protected]> | ||
# | ||
# Brewtarget 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. | ||
# | ||
# Brewtarget 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/>. | ||
#---------------------------------------------------------------------------------------------------------------------- | ||
|
||
# stop when sth failed | ||
# | ||
# This script can be used to help set up the build directory for doing CMake builds. | ||
# | ||
# ⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐ | ||
# NB: Meson and the `bt` build tool Python script are now the primary way of building and packaging the software. You | ||
# can also still CMake to compile the product and install it locally, but we no longer support using CMake to do | ||
# packaging. | ||
# ⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐ | ||
# | ||
|
||
# Stop when something failed | ||
set -e | ||
|
||
PREFIX="" | ||
|
@@ -63,6 +89,15 @@ fi | |
|
||
echo "CMAKEOPTIONS: $CMAKEOPTIONS" | ||
|
||
# When a git repository is cloned, the submodules don't get cloned until you specifically ask for it | ||
if [ ! -d third-party ] | ||
then | ||
echo "Pulling in submodules" | ||
mkdir -p third-party | ||
git submodule init | ||
git submodule update | ||
fi | ||
|
||
# Create dir only if needed | ||
mkdir -p build | ||
|
||
|
@@ -71,7 +106,4 @@ cd build/ | |
cmake $CMAKEOPTIONS ../ | ||
|
||
# Tell the user what to do (if everything went well...) | ||
echo "" | ||
echo "" | ||
echo -e "\tNow, cd to build/ and run \"make\"" | ||
echo "" | ||
echo -e "\n\n\tNow, cd to build/ and run \"make\" (or \"cmake --build .\" on Windows)\n" |
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
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
Oops, something went wrong.