-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update with buildx * Update build.yml * Update main.cpp change localhost to 0.0.0.0 * Update build-dev.yml * update Dockerfile * update workflow * Create version * Rename version to VERSION * Update build.yml * Update VERSION * Update build.yml * Update build-dev.yml * Update build-dev.yml * Update Dockerfile * Update build-dev.yml * Update build-dev.yml * Update build-dev.yml * Create build-base.yml * Update build-dev.yml * Update build-dev.yml * Update build.yml * Update build-base.yml * update * Update build.yml * Update build-dev.yml * Delete engine/VERSION * Update build.yml * Update dockerfile * Add back docker * Revert "update oatpp dependency (#90)" (#94) This reverts commit 2139141. --------- Co-authored-by: richard-epsilla <richard@epsilla.com> Co-authored-by: TopKeyboard <141210110+TopKeyboard@users.noreply.github.com>
- Loading branch information
1 parent
2139141
commit e339089
Showing
5 changed files
with
61 additions
and
33 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 |
---|---|---|
@@ -1 +1 @@ | ||
0.2.1 | ||
0.2.1 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/bin/bash | ||
########################################################## | ||
## install oatpp | ||
|
||
MODULE_NAME="oatpp" | ||
CURRENT_DIR="$(dirname "$(realpath "${BASH_SOURCE[0]}")")" | ||
INSTALL_PATH="$CURRENT_DIR/../build/dependencies" | ||
echo "installing to: $INSTALL_PATH" | ||
mkdir -p "${INSTALL_PATH}" | ||
working_dir="$(mktemp -d)" | ||
cd "${working_dir}" | ||
git clone https://github.com/oatpp/$MODULE_NAME | ||
cd $MODULE_NAME | ||
git checkout tags/1.3.0 | ||
mkdir build | ||
cd build | ||
|
||
N_PROCESSOR=1 | ||
PLATFORM="$(uname -s)" | ||
if [[ "$PLATFORM" == "Darwin" ]]; then | ||
export CC=gcc-13 | ||
export CXX=g++-13 | ||
N_PROCESSOR="$(sysctl -n hw.ncpu)" | ||
elif [[ "$PLATFORM" == "Linux" ]]; then | ||
N_PROCESSOR="$(nproc)" | ||
sudo apt-get update | ||
sudo apt-get install -y python3 python3-pip git cmake build-essential libboost-all-dev | ||
else | ||
echo "Unknown platform: $PLATFORM" | ||
fi | ||
|
||
cmake \ | ||
-DOATPP_BUILD_TESTS=OFF \ | ||
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DCMAKE_INSTALL_PREFIX:PATH="${INSTALL_PATH}" \ | ||
.. | ||
|
||
make -j "${N_PROCESSOR}" | ||
echo "installing OATPP to path ${INSTALL_PATH}" | ||
make install | ||
|
||
|
||
########################################################## |