build c code to .so file for Ubuntu and Centos and Android and iOS and MacOS and Windows
376
docker run -ti --name buildC -v /path/code/:/c/code -v /path/code/build:/c/output -e CODE="/c/code/project1;/c/code/project2" ailen/buildc:centos-7x64
ENV JIN="-I /opt/jdk/include -I /opt/jdk/include/linux"
ENV OUTPATH=/c/output
ENV CODE=/c/code/project1;/c/code/project2
#!/bin/bash
OLD_IFS="$IFS"
IFS=";"
code_path_list=($CODE)
IFS="$OLD_IFS"
output=$OUTPATH/ubuntu17x64/$(date +%Y%m%d_%s)/
mkdir -p $output
for code_path in ${code_path_list[@]}
do
cd $code_path
make clean;make
cp *.so $output
make clean
done
Content type
Image
Digest
Size
484.6 MB
Last updated
over 8 years ago
docker pull ailen/buildc:centos-7x64