created folder for WHY2 lib in src/
This commit is contained in:
parent
7c5ef9ab42
commit
eefffcecdc
2
.github/workflows/why2-test.yml
vendored
2
.github/workflows/why2-test.yml
vendored
@ -14,7 +14,7 @@ jobs:
|
|||||||
os: [ ubuntu-latest ]
|
os: [ ubuntu-latest ]
|
||||||
include:
|
include:
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
output: out/why2
|
output: out/why2-test
|
||||||
configure: configure.sh
|
configure: configure.sh
|
||||||
build: build.sh
|
build: build.sh
|
||||||
|
|
||||||
|
10
build.sh
10
build.sh
@ -6,12 +6,12 @@
|
|||||||
rm -rf out/*
|
rm -rf out/*
|
||||||
|
|
||||||
# Variables
|
# Variables
|
||||||
testFile="src/test/main.c"
|
testFile="src/lib/test/main.c"
|
||||||
sourceFiles="src/*.c"
|
sourceFiles="src/lib/*.c"
|
||||||
includeFiles="include/*.h"
|
includeFiles="include/*.h"
|
||||||
|
|
||||||
compiler="cc"
|
compiler="cc"
|
||||||
output="out/why2"
|
testOutput="out/why2-test"
|
||||||
installOutput="libwhy2.so"
|
installOutput="libwhy2.so"
|
||||||
flags="-Wall -ljson-c -lcurl"
|
flags="-Wall -ljson-c -lcurl"
|
||||||
includeDirectory="/usr/include/why2"
|
includeDirectory="/usr/include/why2"
|
||||||
@ -34,7 +34,7 @@ if [[ "$1" == "test" ]]; then ########## TEST ##########
|
|||||||
###
|
###
|
||||||
|
|
||||||
# Compile
|
# Compile
|
||||||
$compiler $testFile $flags -o $output
|
$compiler $testFile $flags -o $testOutput
|
||||||
|
|
||||||
# Compilation failed
|
# Compilation failed
|
||||||
if [[ $? -ne 0 ]]; then
|
if [[ $? -ne 0 ]]; then
|
||||||
@ -43,7 +43,7 @@ if [[ "$1" == "test" ]]; then ########## TEST ##########
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
###
|
###
|
||||||
echo "Output generated as '$output'"
|
echo "Output generated as '$testOutput'"
|
||||||
###
|
###
|
||||||
elif [[ "$1" == "install" ]]; then ########## INSTALL ##########
|
elif [[ "$1" == "install" ]]; then ########## INSTALL ##########
|
||||||
if [[ "$2" != "lib" ]]; then
|
if [[ "$2" != "lib" ]]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user