18 lines
No EOL
764 B
Bash
18 lines
No EOL
764 B
Bash
#!/bin/sh
|
|
|
|
# Clone the specific FANN version you want (e.g., latest from master)
|
|
git clone https://github.com/libfann/fann.git
|
|
cd fann/src
|
|
|
|
# Build the library exactly as you specified
|
|
musl-gcc -c -O2 -fPIC -I../src/include -DDISABLE_PARALLEL_FANN -o floatfann.o floatfann.c
|
|
musl-gcc -c -O2 -fPIC -I../src/include -DDISABLE_PARALLEL_FANN -o doublefann.o doublefann.c
|
|
musl-gcc -c -O2 -fPIC -I../src/include -DDISABLE_PARALLEL_FANN -o fixedfann.o fixedfann.c
|
|
ar rcs libfann.a floatfann.o doublefann.o fixedfann.o
|
|
|
|
# Copy the crucial artifacts to a folder called 'output'
|
|
# TeamCity will look for files in the working directory after the build.
|
|
cp libfann.a ~/output/
|
|
cp ../src/include/fann.h ~/output/
|
|
|
|
echo "Build complete! Artifacts are in the 'output' directory." |