Browse Source

Build qt5 on windows as self-contained dlls (-static)

Signed-off-by: falkTX <falktx@falktx.com>
tags/v1.0
falkTX 4 years ago
parent
commit
7a212549de
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 6 additions and 4 deletions
  1. +1
    -0
      build-qt.sh
  2. +5
    -4
      setup/functions.sh

+ 1
- 0
build-qt.sh View File

@@ -229,6 +229,7 @@ else
fi

download_qt qtbase
patch_file qtbase${qtsuffix} ${QT5_VERSION} "mkspecs/win32-g++/qmake.conf" 's/= -shared/= -static -shared/'
patch_file qtbase${qtsuffix} ${QT5_VERSION} "src/plugins/platforms/direct2d/direct2d.pro" 's/-lVersion/-lversion/'
build_qt_conf qtbase "${qtbase_conf_args}"



+ 5
- 4
setup/functions.sh View File

@@ -433,7 +433,7 @@ function copy_file() {

if [ ! -e "${pkgdir}/${target}" ]; then
pushd "${pkgdir}"
cp "${source}" "${target}"
cp -v "${source}" "${target}"
popd
fi
}
@@ -448,7 +448,7 @@ function link_file() {

if [ ! -e "${pkgdir}/${target}" ]; then
pushd "${pkgdir}"
ln -sf "${source}" "${target}"
ln -sfv "${source}" "${target}"
popd
fi
}
@@ -460,8 +460,9 @@ function remove_file() {

local pkgdir="${PAWPAW_BUILDDIR}/${name}-${version}"

echo rm -f "${pkgdir}/${file}"
rm -f "${pkgdir}/${file}"
if [ ! -e "${pkgdir}/${file}" ]; then
rm -fv "${pkgdir}/${file}"
fi
}

# ---------------------------------------------------------------------------------------------------------------------

Loading…
Cancel
Save