Compare commits
No commits in common. "e09fb6a61fe53f13eefbd304ca20c6e433095a0f" and "7dfa8365f8c618d8d099e503a776d5dba4abbe2a" have entirely different histories.
e09fb6a61f
...
7dfa8365f8
2
Makefile
2
Makefile
|
@ -9,5 +9,3 @@ mrproper:
|
||||||
bash ./scripts/clean_dependencies.sh
|
bash ./scripts/clean_dependencies.sh
|
||||||
setup:
|
setup:
|
||||||
bash ./scripts/setup_project.sh
|
bash ./scripts/setup_project.sh
|
||||||
test:
|
|
||||||
bash ./scripts/test.sh
|
|
||||||
|
|
|
@ -1,25 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
if [ -z "$CXX" ]; then
|
|
||||||
CXX="c++"
|
|
||||||
fi
|
|
||||||
if [ -z "$CXXFLAGS" ]; then
|
|
||||||
CXXFLAGS="-std=c++20 -Wall"
|
|
||||||
fi
|
|
||||||
CXX_WITH_FLAGS="$CXX $CXXFLAGS"
|
|
||||||
|
|
||||||
echo -n "Using LD_LIBRARY_PATH "
|
|
||||||
if [ -z "$LD_LIBRARY_PATH" ]; then
|
|
||||||
export LD_LIBRARY_PATH=./bin/lib
|
|
||||||
else
|
|
||||||
export LD_LIBRARY_PATH=./bin/lib:"$LD_LIBRARY_PATH"
|
|
||||||
fi
|
|
||||||
echo "$LD_LIBRARY_PATH"
|
|
||||||
|
|
||||||
mkdir -pv bin/test
|
|
||||||
|
|
||||||
echo "Building and running tests one by one..."
|
|
||||||
|
|
||||||
set -v
|
|
||||||
|
|
||||||
"CXX_WITH_FLAGS" -Lbin/lib -l:nbt.so -o bin/test/nbt_helpers src/test/nbt_helpers.cpp
|
|
|
@ -20,7 +20,6 @@ PROJECT_BASE_DIR="$( cd -- "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 ; pw
|
||||||
alias clean="pushd \"$PROJECT_BASE_DIR\" >/dev/null 2>&1; scripts/clean.sh; popd >/dev/null 2>&1"
|
alias clean="pushd \"$PROJECT_BASE_DIR\" >/dev/null 2>&1; scripts/clean.sh; popd >/dev/null 2>&1"
|
||||||
alias clean_dependencies="pushd \"$PROJECT_BASE_DIR\" >/dev/null 2>&1; scripts/clean_dependencies.sh; popd >/dev/null 2>&1"
|
alias clean_dependencies="pushd \"$PROJECT_BASE_DIR\" >/dev/null 2>&1; scripts/clean_dependencies.sh; popd >/dev/null 2>&1"
|
||||||
alias setup_project="pushd \"$PROJECT_BASE_DIR\" >/dev/null 2>&1; scripts/setup_project.sh; popd >/dev/null 2>&1"
|
alias setup_project="pushd \"$PROJECT_BASE_DIR\" >/dev/null 2>&1; scripts/setup_project.sh; popd >/dev/null 2>&1"
|
||||||
alias run_tests="pushd \"$PROJECT_BASE_DIR\" >/dev/null 2>&1; scripts/test.sh; popd >/dev/null 2>&1"
|
|
||||||
|
|
||||||
function build {
|
function build {
|
||||||
pushd "$PROJECT_BASE_DIR" >/dev/null 2>&1
|
pushd "$PROJECT_BASE_DIR" >/dev/null 2>&1
|
||||||
|
@ -32,7 +31,7 @@ function build {
|
||||||
if [ -z "$LD_LIBRARY_PATH" ]; then
|
if [ -z "$LD_LIBRARY_PATH" ]; then
|
||||||
export LD_LIBRARY_PATH="$PROJECT_BASE_DIR"/bin/lib
|
export LD_LIBRARY_PATH="$PROJECT_BASE_DIR"/bin/lib
|
||||||
else
|
else
|
||||||
export LD_LIBRARY_PATH="$PROJECT_BASE_DIR"/bin/lib:"$LD_LIBRARY_PATH"
|
export LD_LIBRARY_PATH="$PROJECT_BASE_DIR"/bin/lib:"LD_LIBRARY_PATH"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
unset PROJECT_BASE_DIR
|
unset PROJECT_BASE_DIR
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
int main(){
|
|
||||||
return 0;
|
|
||||||
}
|
|
Loading…
Reference in New Issue