-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed: Replaced quom with amalgamate
- Loading branch information
1 parent
5c1a8fd
commit 831442b
Showing
3 changed files
with
470 additions
and
2,583 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,6 @@ | ||
#!/bin/bash | ||
|
||
PATH_TO_QUOM_DIR="${@:1}" | ||
PATH_TO_PIP_EVN="${PATH_TO_QUOM_DIR}/../../../pip_venv" | ||
PATH_TO_QUOM=$(which quom) | ||
|
||
# If quom is not found right away, try searching in the virtual environment | ||
if [ -z "$PATH_TO_QUOM" ]; then | ||
PATH_TO_QUOM=$(which "${PATH_TO_PIP_EVN}/bin/quom") | ||
fi | ||
|
||
if [ -z "${PATH_TO_QUOM}" ]; then | ||
PATH_TO_QUOM="${PATH_TO_PIP_EVN}/bin/quom" | ||
|
||
# Still not found. Try installing quom into the virtual environment. | ||
# This requires python3 to be available. | ||
echo "Creating virtual environment for quom to ${PATH_TO_PIP_EVN}" | ||
python3 -m venv "${PATH_TO_PIP_EVN}" | ||
echo "Installing quom to ${PATH_TO_PIP_EVN}/bin" | ||
"${PATH_TO_PIP_EVN}/bin/pip" install "${PATH_TO_QUOM_DIR}" | ||
chmod +x "${PATH_TO_QUOM}" | ||
fi | ||
|
||
# This turns Gaia-ECS into a single header library by generating "gaia.h" | ||
# which you can simply drop into your project and start using. | ||
PATH_TO_AMALGAMATE_DIR="${@:1}" | ||
PATH_TO_AMALGAMATE=${PATH_TO_AMALGAMATE_DIR}/amalgamate | ||
echo "Generating ./single_include/gaia.h" | ||
${PATH_TO_QUOM} ./include/gaia.h ./single_include/gaia.h -I ./include | ||
${PATH_TO_AMALGAMATE} -i ./include ./include/gaia.h ./single_include/gaia.h |
Oops, something went wrong.