File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ build() {
4444 set +e
4545 cmake -B build -DINTEGRATE_VCPKG=ON -DCMAKE_BUILD_TYPE=Release \
4646 -DCMAKE_MAKE_PROGRAM=make \
47- -DCMAKE_INSTALL_PREFIX=" $pkgdir " \
47+ -DCMAKE_INSTALL_PREFIX=" /usr " \
4848 -DBUILD_TESTS=OFF -DBUILD_DYNAMIC_LIB=ON -DBUILD_STATIC_LIB=ON \
4949 $ROOT_DIR
5050 if [[ $? -ne 0 ]]; then
@@ -53,8 +53,11 @@ build() {
5353 fi
5454 set -e
5555 cmake --build build -j8
56+ $ROOT_DIR /build-support/merge_archives_vcpkg.sh $PWD /build
5657}
5758
5859package () {
59- cmake --build build --target install
60+ set -x -e
61+ DESTDIR=" $pkgdir " cmake --build build --target install
62+ cp ./build/libpulsarwithdeps.a " $pkgdir /usr/lib/"
6063}
Original file line number Diff line number Diff line change @@ -40,3 +40,12 @@ sudo abuild-keygen -a -i -n
4040abuild -F -c -r
4141
4242cp -r /root/packages/pkg ./build
43+
44+ # Test installation
45+ apk add --allow-untrusted build/$PLATFORM /* .apk
46+
47+ cd $ROOT_DIR /win-examples
48+ g++ -o dynamic.out -std=c++11 ./example.cc -Wl,-rpath=/usr/lib -lpulsar
49+ ./dynamic.out
50+ g++ -o static.out -std=c++11 ./example.cc /usr/lib/libpulsarwithdeps.a -lpthread -ldl
51+ ./static.out
You can’t perform that action at this time.
0 commit comments