mirror of
https://github.com/chris2511/xca.git
synced 2026-09-12 19:51:05 +05:00
Add build script for MSYS2
This script also builds openssl with legacy algorithms enabled.
This commit is contained in:
parent
94a1eced62
commit
570a6c1013
34
release/build-w64.sh
Normal file
34
release/build-w64.sh
Normal file
@ -0,0 +1,34 @@
|
||||
#!/bin/sh
|
||||
|
||||
# in C:\msys64\msys2.ini: MSYS2_PATH_TYPE=inherit
|
||||
|
||||
# Build xca on Windows
|
||||
do_openssl() {
|
||||
test -f $INSTALL_DIR/bin/libcrypto-3-x64.dll && return
|
||||
test -f "$OSSL".tar.gz || curl -O https://www.openssl.org/source/"$OSSL".tar.gz
|
||||
test -d "$OSSL" || tar zxf "$OSSL".tar.gz
|
||||
cd "$OSSL"
|
||||
./Configure mingw64 --prefix=/c/OpenSSL --libdir=lib
|
||||
make -j4
|
||||
make install
|
||||
}
|
||||
|
||||
BUILD=build
|
||||
OSSL="openssl-3.1.3"
|
||||
XCA_DIR="$(cd `dirname $0`/.. && pwd)"
|
||||
TOP_DIR="`dirname $XCA_DIR`"
|
||||
QT_DIR="$TOP_DIR/6.5.3/mingw_64"
|
||||
|
||||
BUILDDIR="$TOP_DIR/w64-release"
|
||||
|
||||
INSTALL_DIR="/c/OpenSSL"
|
||||
JOBS=7
|
||||
|
||||
cd $TOP_DIR
|
||||
|
||||
do_openssl
|
||||
|
||||
cmake -B "$BUILDDIR" -G "MinGW Makefiles" -DCMAKE_PREFIX_PATH="$QT_DIR" xca
|
||||
cmake --build "$BUILDDIR" -j5
|
||||
cmake --build "$BUILDDIR" -t install
|
||||
cd "$BUILDDIR" && cpack
|
||||
Loading…
Reference in New Issue
Block a user