Sign inSign up

ailen/buildc

By ailen

Updated over 8 years ago

build c code to .so file for Ubuntu and Centos and Android and iOS and MacOS and Windows

Image
0

376

ailen/buildc repository overview

Run

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

In Docker Image

ENV JIN="-I /opt/jdk/include -I /opt/jdk/include/linux"

ENV OUTPATH=/c/output

ENV CODE=/c/code/project1;/c/code/project2

Java jdk version: jdk-7u80-linux-x64
build sh:

#!/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

Tag summary

Content type

Image

Digest

Size

484.6 MB

Last updated

over 8 years ago

docker pull ailen/buildc:centos-7x64