generated from LizardByte/template-base
-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
fd4d160
commit c157ac1
Showing
4 changed files
with
96 additions
and
8 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
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,29 @@ | ||
#!/bin/bash | ||
|
||
# Exit immediately if a command exits with a non-zero status | ||
set -e | ||
|
||
# Set the NXDK_DIR environment variable | ||
export NXDK_DIR="$(pwd)/third-party/nxdk" | ||
|
||
# Activate the nxdk environment | ||
eval "$(${NXDK_DIR}/bin/activate -s)" | ||
|
||
# Navigate to the nxdk directory | ||
cd "${NXDK_DIR}" | ||
|
||
# Build nxdk with the specified options | ||
make NXDK_ONLY=y | ||
make tools | ||
|
||
# Navigate back to the project root directory | ||
cd - | ||
|
||
# Create the build directory | ||
mkdir -p build | ||
|
||
# Configure the project | ||
cmake -B build -S . -DCMAKE_TOOLCHAIN_FILE="${NXDK_DIR}/share/toolchain-nxdk.cmake" | ||
|
||
# Build the project | ||
cmake --build build |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.