Skip to content

Commit

Permalink
Use configure.bat on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
pcolby committed Apr 9, 2023
1 parent 6fb63d7 commit acd3c15
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.sh
Expand Up @@ -66,18 +66,20 @@ networkAccessDir="$OUTPUT_DIR/$QT_NAME/qtbase/src/network/access/"

# Configure the Qt build.
[[ "${RUNNER_OS:-}" != macOS ]] || {
configure="configure"
configPlatform='macx-clang'
configFramework='-framework'
#configSdk='macosx10.10'
}
[[ "${RUNNER_OS:-}" != Windows ]] || {
configure="configure.bat"
configOpenssl='-I C:\OpenSSL-Win32\include -L C:\OpenSSL-Win32\lib'
configPlatform='win32-msvc'
}
echo "Configuring Qt for $RUNNER_OS ($configPlatform)"
"$MKDIR" -p "$OUTPUT_DIR/build"
# shellcheck disable=SC2046,SC2086 # We disable globbing, and want splitting.
( set -o noglob && cd "$OUTPUT_DIR/build" && "../$QT_NAME/configure" \
( set -o noglob && cd "$OUTPUT_DIR/build" && "../$QT_NAME/$configure" \
-confirm-license \
${configFramework:-} \
-no-{gui,open{gl,vg},widgets} \
Expand Down

0 comments on commit acd3c15

Please sign in to comment.