Skip to content
Merged
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
29 changes: 29 additions & 0 deletions .github/workflows/build-windows-msvc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: build-test-windows-msvc-on-push

on: [push, pull_request]

jobs:
build-cmake-msvc:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4

- name: Restore from cache and setup vcpkg executable and data files.
uses: lukka/run-vcpkg@v11
with:
vcpkgJsonGlob: 'vcpkg.json'

- name: Setup MSVC
uses: ilammy/msvc-dev-cmd@v1

- name: Configure C/C++ with CMake
run: |
cmake --preset vcpkg-ninja

- name: Build with Ninja
run: |
cmake --build build

- name: Install MLT
run: |
cmake --install build
48 changes: 48 additions & 0 deletions CMakePresets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"version": 3,
"configurePresets": [
{
"name": "vcpkg",
"displayName": "vcpkg config",
"description": "Configure with vcpkg toolchain",
"binaryDir": "${sourceDir}/build",
"toolchainFile": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
"cacheVariables": {
"BUILD_TESTING": "OFF",
"SWIG_PYTHON": "OFF",
"MOD_AVFORMAT": "OFF",
"MOD_DECKLINK": "OFF",
"MOD_FREI0R": "OFF",
"MOD_GDK": "OFF",
"MOD_JACKRACK": "OFF",
"USE_LV2": "OFF",
"USE_VST2": "OFF",
"MOD_KDENLIVE": "OFF",
"MOD_NDI": "OFF",
"MOD_NORMALIZE": "OFF",
"MOD_OLDFILM": "OFF",
"MOD_OPENCV": "OFF",
"MOD_MOVIT": "OFF",
"MOD_PLUS": "OFF",
"MOD_PLUSGPL": "OFF",
"MOD_QT6": "OFF",
"MOD_SOX": "OFF",
"MOD_GLAXNIMATE_QT6": "OFF",
"MOD_RESAMPLE": "OFF",
"MOD_RTAUDIO": "OFF",
"MOD_RUBBERBAND": "OFF",
"MOD_SDL2": "ON",
"MOD_DOX": "OFF",
"MOD_VIDSTAB": "OFF",
"MOD_VORBIS": "OFF",
"MOD_XINE": "OFF",
"MOD_XML": "OFF"
}
},
{
"name": "vcpkg-ninja",
"inherits": "vcpkg",
"generator": "Ninja"
}
]
}
14 changes: 14 additions & 0 deletions vcpkg-configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"default-registry": {
"kind": "git",
"baseline": "cfcbdb245f1179a5a493890a0b69531d66969e62",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does this commit ID get updated? Can it be a tag instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One has to update that manually once in a while.

As far as I can tell from the documentation and open feature requests (like this or this) only a long commit hash, but no tags are supported.

"repository": "https://github.com/microsoft/vcpkg"
},
"registries": [
{
"kind": "artifact",
"location": "https://github.com/microsoft/vcpkg-ce-catalog/archive/refs/heads/main.zip",
"name": "microsoft"
}
]
}
12 changes: 12 additions & 0 deletions vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
"name": "mlt",
"dependencies": [
"dirent",
"dlfcn-win32",
"libiconv",
"pkgconf",
"pthreads",
"sdl2"
]
}
Loading