Skip to content

ci(windows): Windows build script using kkartaltepe/pango-win32-build #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ variables:
macosSignAndNotarize: false
isReleaseMode: ${{ and(eq(variables['isReleaseMode'], true), startsWith(variables['Build.SourceBranch'], 'refs/tags/')) }}
buildWin32: false
buildWin64: false
buildWin64: true
buildLinux: true

trigger:
Expand All @@ -28,6 +28,7 @@ jobs:
QtBaseDir: 'D:\QtDep'
QTDIR32: '$(QtBaseDir)\5.10.1\msvc2017'
QTDIR64: '$(QtBaseDir)\5.10.1\msvc2017_64'
PangoDir: 'D:\pango'
OBSPath: 'D:\obs-studio'
condition: or(eq(variables['buildWin32'], true), eq(variables['buildWin64'], true))
steps:
Expand Down Expand Up @@ -58,6 +59,19 @@ jobs:
obs | "$(Agent.OS)"
path: $(OBSPath)

- script: ./ci/windows/download-pango.cmd
displayName: 'Download pango build script'
env:
DepsPath32: $(DepsPath32)
DepsPath64: $(DepsPath64)
PangoDir: $(PangoDir)

- task: ShellScript@2
displayName: 'Setup pango'
inputs:
scriptPath: ./ci/windows/setup-pango.sh
cwd: $(PangoDir)

- script: ./ci/windows/prepare-obs-windows.cmd
displayName: 'Checkout & CMake OBS Studio'
env:
Expand Down
5 changes: 5 additions & 0 deletions ci/windows/download-pango.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@echo on

git clone https://github.com/kkartaltepe/pango-win32-build.git %PangoDir%
python3 -m pip install meson
python3 -m pip install ninja
30 changes: 30 additions & 0 deletions ci/windows/setup-pango.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#! /bin/bash

set -x
env # check PATH, etc.

curl http://repo.msys2.org/msys/x86_64/zstd-1.4.5-2-x86_64.pkg.tar.xz | tar CvxJf / -
curl http://repo.msys2.org/msys/x86_64/rsync-3.2.2-2-x86_64.pkg.tar.zst | tar Cxvf / - --zstd
curl http://repo.msys2.org/msys/x86_64/openbsd-netcat-1.206_1-1-x86_64.pkg.tar.xz | tar CxvJf / -
curl http://repo.msys2.org/msys/x86_64/libzstd-1.4.5-2-x86_64.pkg.tar.xz | tar CxvJf / -
curl http://repo.msys2.org/msys/x86_64/libxxhash-0.8.0-1-x86_64.pkg.tar.zst | tar Cvxf / - --zstd
curl http://repo.msys2.org/msys/x86_64/wget-1.21.1-2-x86_64.pkg.tar.zst | tar Cvxf / - --zstd
curl http://repo.msys2.org/msys/x86_64/libpcre2_8-10.36-1-x86_64.pkg.tar.zst | tar Cvxf / - --zstd
curl http://repo.msys2.org/msys/x86_64/libmetalink-0.1.3-3-x86_64.pkg.tar.zst | tar Cvxf / - --zstd
curl http://repo.msys2.org/msys/x86_64/libgpgme-1.15.1-2-x86_64.pkg.tar.zst | tar Cvxf / - --zstd
curl http://repo.msys2.org/msys/x86_64/ed-1.17-1-x86_64.pkg.tar.zst | tar Cvxf / - --zstd

# -G 'Ninja'
# -G "Visual Studio 16 2019"
sed -i \
-e "s;-G 'Ninja';-G 'Visual Studio 16 2019';g" \
-e 's/ninja install$/cmake --build . --config Release ; cmake --install . --config Release/g' \
./prepare.sh
ed ./prepare.sh <<-EOF
/^meson
a
meson configure -Ddefault_library=static
.
wq
EOF
. ./prepare.sh