Skip to content

Commit

Permalink
static builds on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mkalkbrenner committed Feb 13, 2025
1 parent 92408e6 commit b8f025e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ppuc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,16 @@ jobs:
arch: aarch64
steps:
- uses: actions/checkout@v4
- if: (matrix.platform == 'linux' && matrix.arch == 'x64')
name: Install autoconf libtool libudev-dev libpipewire-0.3-dev
run: sudo apt install autoconf libtool libudev-dev libpipewire-0.3-dev
- if: (matrix.platform == 'win')
name: Add msbuild to path (win runner)
uses: microsoft/setup-msbuild@v2
- if: (matrix.platform == 'macos')
name: Add autoconf and automake (mac runner)
run: |
brew install autoconf automake gcc-aarch64-embedded aarch64-elf-gcc libtool
- if: (matrix.platform == 'linux' && matrix.arch == 'x64')
name: Install autoconf libtool libudev-dev libpipewire-0.3-dev
run: sudo apt install autoconf libtool libudev-dev libpipewire-0.3-dev
- if: (!(matrix.platform == 'linux' && matrix.arch == 'aarch64'))
name: Build ppuc-${{ matrix.platform }}-${{ matrix.arch }}
run: |
Expand Down
12 changes: 6 additions & 6 deletions platforms/win/x64/external.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ if [ ! -f "../${CACHE_DIR}/${CACHE_NAME}.cache" ]; then
-G "Visual Studio 17 2022" \
-DPLATFORM=win \
-DARCH=x64 \
-DBUILD_SHARED=ON \
-DBUILD_STATIC=OFF \
-DBUILD_SHARED=OFF \
-DBUILD_STATIC=ON \
-B build
cmake --build build --config ${BUILD_TYPE}
cp build/${BUILD_TYPE}/dmdutil64.lib ../../third-party/build-libs/win/x64/
Expand All @@ -76,8 +76,8 @@ if [ ! -f "../${CACHE_DIR}/${CACHE_NAME}.cache" ]; then
-G "Visual Studio 17 2022" \
-DPLATFORM=win \
-DARCH=x64 \
-DBUILD_SHARED=ON \
-DBUILD_STATIC=OFF \
-DBUILD_SHARED=OFF \
-DBUILD_STATIC=ON \
-B build
cmake --build build --config ${BUILD_TYPE}
cp build/${BUILD_TYPE}/pinmame64.lib ../../third-party/build-libs/win/x64/
Expand Down Expand Up @@ -106,8 +106,8 @@ if [ ! -f "../${CACHE_DIR}/${CACHE_NAME}.cache" ]; then
-G "Visual Studio 17 2022" \
-DPLATFORM=win \
-DARCH=x64 \
-DBUILD_SHARED=ON \
-DBUILD_STATIC=OFF \
-DBUILD_SHARED=OFF \
-DBUILD_STATIC=ON \
-B build
cmake --build build --config ${BUILD_TYPE}
cp build/${BUILD_TYPE}/ppuc64.lib ../../third-party/build-libs/win/x64/
Expand Down
12 changes: 6 additions & 6 deletions platforms/win/x86/external.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ if [ ! -f "../${CACHE_DIR}/${CACHE_NAME}.cache" ]; then
-A Win32 \
-DPLATFORM=win \
-DARCH=x86 \
-DBUILD_SHARED=ON \
-DBUILD_STATIC=OFF \
-DBUILD_SHARED=OFF \
-DBUILD_STATIC=ON \
-B build
cmake --build build --config ${BUILD_TYPE}
cp build/${BUILD_TYPE}/dmdutil.lib ../../third-party/build-libs/win/x86/
Expand Down Expand Up @@ -78,8 +78,8 @@ if [ ! -f "../${CACHE_DIR}/${CACHE_NAME}.cache" ]; then
-A Win32 \
-DPLATFORM=win \
-DARCH=x86 \
-DBUILD_SHARED=ON \
-DBUILD_STATIC=OFF \
-DBUILD_SHARED=OFF \
-DBUILD_STATIC=ON \
-B build
cmake --build build --config ${BUILD_TYPE}
cp build/${BUILD_TYPE}/pinmame.lib ../../third-party/build-libs/win/x86/
Expand Down Expand Up @@ -109,8 +109,8 @@ if [ ! -f "../${CACHE_DIR}/${CACHE_NAME}.cache" ]; then
-A Win32 \
-DPLATFORM=win \
-DARCH=x86 \
-DBUILD_SHARED=ON \
-DBUILD_STATIC=OFF \
-DBUILD_SHARED=OFF \
-DBUILD_STATIC=ON \
-B build
cmake --build build --config ${BUILD_TYPE}
cp build/${BUILD_TYPE}/ppuc.lib ../../third-party/build-libs/win/x86/
Expand Down

0 comments on commit b8f025e

Please sign in to comment.