created folder for WHY2 lib in src/

This commit is contained in:
Václav Šmejkal 2022-05-04 18:17:33 +02:00
parent 7c5ef9ab42
commit eefffcecdc
7 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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