| 1 | { |
| 2 | "name": "sdl2-compat", |
| 3 | "remote": "libsdl-org/sdl2-compat", |
| 4 | "dependencies": { |
| 5 | "SDL": { |
| 6 | "startswith": "3.4", |
| 7 | "repo": "libsdl-org/SDL" |
| 8 | } |
| 9 | }, |
| 10 | "version": { |
| 11 | "file": "include/SDL2/SDL_version.h", |
| 12 | "re_major": "^#define SDL_MAJOR_VERSION\\s+([0-9]+)$", |
| 13 | "re_minor": "^#define SDL_MINOR_VERSION\\s+([0-9]+)$", |
| 14 | "re_micro": "^#define SDL_PATCHLEVEL\\s+([0-9]+)$" |
| 15 | }, |
| 16 | "source": { |
| 17 | "checks": [ |
| 18 | "src/sdl2_compat.c", |
| 19 | "include/SDL2/SDL_pixels.h", |
| 20 | "test/testsprite2.c" |
| 21 | ], |
| 22 | "files": { |
| 23 | "include/SDL2": [ |
| 24 | "build-scripts/pkg-support/source/include/SDL_revision.h.in:SDL_revision.h" |
| 25 | ] |
| 26 | } |
| 27 | }, |
| 28 | "msvc": { |
| 29 | "cmake": { |
| 30 | "archs": [ |
| 31 | "x86", |
| 32 | "x64" |
| 33 | ], |
| 34 | "args": [ |
| 35 | "-DSDL2COMPAT_VENDOR_INFO=libsdl.org", |
| 36 | "-DSDL2COMPAT_INSTALL_SDL3=ON", |
| 37 | "-DSDL2COMPAT_TESTS=OFF", |
| 38 | "-DSDL2COMPAT_INSTALL=ON", |
| 39 | "-DSDL2COMPAT_STATIC=OFF" |
| 40 | ], |
| 41 | "files-lib": { |
| 42 | "": [ |
| 43 | "bin/SDL2.dll", |
| 44 | "bin/SDL3.dll" |
| 45 | ] |
| 46 | }, |
| 47 | "files-devel": { |
| 48 | "lib/@<@ARCH@>@": [ |
| 49 | "bin/SDL2.dll", |
| 50 | "bin/SDL3.dll", |
| 51 | "bin/SDL2.pdb", |
| 52 | "lib/SDL2.lib", |
| 53 | "lib/SDL2main.lib", |
| 54 | "lib/SDL2_test.lib" |
| 55 | ] |
| 56 | } |
| 57 | }, |
| 58 | "files-lib": { |
| 59 | "": [ |
| 60 | "build-scripts/pkg-support/msvc/@<@ARCH@>@/INSTALL.md.in:INSTALL.md", |
| 61 | "LICENSE.txt", |
| 62 | "build-scripts/pkg-support/msvc/README.md" |
| 63 | ] |
| 64 | }, |
| 65 | "files-devel": { |
| 66 | "": [ |
| 67 | "build-scripts/pkg-support/msvc/INSTALL.md", |
| 68 | "LICENSE.txt", |
| 69 | "build-scripts/pkg-support/msvc/README.md" |
| 70 | ], |
| 71 | "cmake": [ |
| 72 | "build-scripts/pkg-support/msvc/cmake/SDL2Config.cmake.in:SDL2Config.cmake", |
| 73 | "build-scripts/pkg-support/msvc/cmake/SDL2ConfigVersion.cmake.in:SDL2ConfigVersion.cmake", |
| 74 | "cmake/sdlcpu.cmake" |
| 75 | ], |
| 76 | "include": [ |
| 77 | "include/SDL2/*" |
| 78 | ] |
| 79 | }, |
| 80 | "dependencies": { |
| 81 | "SDL": { |
| 82 | "artifact": "SDL3-devel-*-VC.zip" |
| 83 | } |
| 84 | } |
| 85 | } |
| 86 | } |