File tree Expand file tree Collapse file tree 1 file changed +24
-2
lines changed Expand file tree Collapse file tree 1 file changed +24
-2
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
33RELEASE_BRANCH=" master"
4- RELEASE_NAME=" $CIRCLE_PROJECT_REPONAME -$( uname) "
4+ RELEASE_NAME=" $CIRCLE_PROJECT_REPONAME -` uname` "
55RELEASE_PATH=" $CIRCLE_ARTIFACTS /$RELEASE_NAME "
66RELEASE_FILE=" $RELEASE_PATH .tar.gz"
77RELEASE_TAG=" ${CIRCLE_SHA1: 0: 16} "
@@ -23,7 +23,29 @@ echo "preparing release file"
2323mkdir $RELEASE_PATH
2424mkdir $RELEASE_PATH /bin
2525mkdir $RELEASE_PATH /include
26- mkdir $RELEASE_PATH /lib
26+ mkdir -p $RELEASE_PATH /lib/pkgconfig
27+
28+ # pkg-config .pc file generation
29+ case ` uname` in
30+ " Darwin" )
31+ RELEASE_LIBS=" -framework Security -lSystem -lresolv -lc -lm"
32+ ;;
33+ " Linux" )
34+ RELEASE_LIBS=" -lutil -lutil -ldl -lrt -lpthread -lgcc_s -lc -lm -lrt -lpthread -lutil -lutil"
35+ ;;
36+ * )
37+ echo " unknown system libraries for architecture"
38+ ;;
39+ esac
40+
41+ echo " libdir=\$ {prefix}/lib
42+ includedir=\$ {prefix}/include
43+
44+ Name: libfilecoin_proofs
45+ Version: $RELEASE_TAG
46+ Description: rust-proofs library
47+ Libs: -L\$ {libdir} -lfilecoin_proofs $RELEASE_LIBS
48+ Cflags: -I\$ {includedir}" > $RELEASE_PATH /lib/pkgconfig/libfilecoin_proofs.pc
2749
2850cp target/release/paramcache $RELEASE_PATH /bin/
2951cp filecoin-proofs/libfilecoin_proofs.h $RELEASE_PATH /include/
You can’t perform that action at this time.
0 commit comments