From b30508d76ef18de7f05898f4cbc701f2f8f18e12 Mon Sep 17 00:00:00 2001 From: Isaac Brodsky Date: Fri, 13 Feb 2026 11:59:02 -0800 Subject: [PATCH 1/2] redo vcpkg integration --- .github/workflows/test.yml | 29 +++++------------------------ .gitignore | 4 ++-- .gitmodules | 3 +++ CMakeLists.txt | 8 ++++---- stdafx.h | 8 +++----- vcpkg | 1 + vcpkg.json | 3 +++ vcpkg_deps.txt | 1 - 8 files changed, 21 insertions(+), 36 deletions(-) create mode 100644 .gitmodules create mode 160000 vcpkg create mode 100644 vcpkg.json delete mode 100644 vcpkg_deps.txt diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index de49c8b..a07a80d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,40 +20,21 @@ jobs: cxx: g++ steps: - - uses: actions/checkout@v2 - - - name: Cache vcpkg - uses: actions/cache@v2 + - uses: actions/checkout@v6 with: - path: ~/vcpkg - key: ${{ runner.os }}-vcpkg-${{ hashFiles('**/vcpkg_deps.txt') }} - restore-keys: ${{ runner.os }}-vcpkg + submodules: 'recursive' - name: Prepare vcpkg run: | - # Adapted from https://github.com/UnfoldedInc/deck.gl-native/blob/8efa577bcd8ebefbe8a6a996936efaa388a198e4/.travis.yml - VCPKG_DEPENDENCIES=$(,SDL2_ttf::SDL2_ttf,SDL2_ttf::SDL2_ttf-static> $,SDL2_mixer::SDL2_mixer,SDL2_mixer::SDL2_mixer-static> SDL2::SDL2main) # Note: 4 target(s) were omitted. #target_link_libraries(cdgdeck PRIVATE fltk fltk_gl fltk_forms fltk_SHARED) #target_link_libraries(cdgdeck PRIVATE SDL2::SDL2 SDL2::SDL2main) diff --git a/stdafx.h b/stdafx.h index d50de80..88aaca7 100644 --- a/stdafx.h +++ b/stdafx.h @@ -15,15 +15,13 @@ using namespace std; // C RunTime Header Files -#include -#include -#include +#include #include #include -#include -#include +#include +#include #include "SDL.h" #include "SDL_ttf.h" diff --git a/vcpkg b/vcpkg new file mode 160000 index 0000000..ac7af74 --- /dev/null +++ b/vcpkg @@ -0,0 +1 @@ +Subproject commit ac7af7424cbaf9057cb246b620f455303dccd6ed diff --git a/vcpkg.json b/vcpkg.json new file mode 100644 index 0000000..b5b8c41 --- /dev/null +++ b/vcpkg.json @@ -0,0 +1,3 @@ +{ + "dependencies": [ "sdl2", "sdl2-mixer", "sdl2-ttf", "libpng", "zlib", "fltk" ] +} diff --git a/vcpkg_deps.txt b/vcpkg_deps.txt deleted file mode 100644 index d85e947..0000000 --- a/vcpkg_deps.txt +++ /dev/null @@ -1 +0,0 @@ -sdl2 sdl2-mixer sdl2-ttf libpng zlib fltk From 712297d22a6c24732304f6816e2c0fe374817cb6 Mon Sep 17 00:00:00 2001 From: Isaac Brodsky Date: Fri, 13 Feb 2026 12:01:59 -0800 Subject: [PATCH 2/2] fix build --- .github/workflows/test.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a07a80d..e3ccd44 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,6 +20,9 @@ jobs: cxx: g++ steps: + - name: Install pre-deps + run: sudo apt install autoconf autoconf-archive automake libtool + - uses: actions/checkout@v6 with: submodules: 'recursive'