aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/scripts/test_ports/vcpkg-ci-fluidsynth
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/scripts/test_ports/vcpkg-ci-fluidsynth
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/scripts/test_ports/vcpkg-ci-fluidsynth')
-rw-r--r--vcpkg/scripts/test_ports/vcpkg-ci-fluidsynth/portfile.cmake10
-rw-r--r--vcpkg/scripts/test_ports/vcpkg-ci-fluidsynth/project/CMakeLists.txt14
-rw-r--r--vcpkg/scripts/test_ports/vcpkg-ci-fluidsynth/project/main.c12
-rw-r--r--vcpkg/scripts/test_ports/vcpkg-ci-fluidsynth/vcpkg.json47
4 files changed, 83 insertions, 0 deletions
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-fluidsynth/portfile.cmake b/vcpkg/scripts/test_ports/vcpkg-ci-fluidsynth/portfile.cmake
new file mode 100644
index 0000000..dd25706
--- /dev/null
+++ b/vcpkg/scripts/test_ports/vcpkg-ci-fluidsynth/portfile.cmake
@@ -0,0 +1,10 @@
+set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
+
+vcpkg_find_acquire_program(PKGCONFIG)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${CURRENT_PORT_DIR}/project"
+ OPTIONS
+ "-DPKG_CONFIG_EXECUTABLE=${PKGCONFIG}"
+)
+vcpkg_cmake_build()
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-fluidsynth/project/CMakeLists.txt b/vcpkg/scripts/test_ports/vcpkg-ci-fluidsynth/project/CMakeLists.txt
new file mode 100644
index 0000000..d62d080
--- /dev/null
+++ b/vcpkg/scripts/test_ports/vcpkg-ci-fluidsynth/project/CMakeLists.txt
@@ -0,0 +1,14 @@
+cmake_minimum_required(VERSION 3.30)
+project(fluidsynth-test LANGUAGES C CXX)
+
+find_package(FluidSynth CONFIG REQUIRED)
+
+add_executable(main main.c)
+target_link_libraries(main PRIVATE FluidSynth::libfluidsynth)
+
+find_package(PkgConfig REQUIRED)
+pkg_check_modules(fluidsynth_pc fluidsynth REQUIRED IMPORTED_TARGET)
+
+add_executable(main-pkconfig main.c)
+target_link_libraries(main-pkconfig PRIVATE PkgConfig::fluidsynth_pc)
+set_target_properties(main-pkconfig PROPERTIES LINKER_LANGUAGE CXX)
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-fluidsynth/project/main.c b/vcpkg/scripts/test_ports/vcpkg-ci-fluidsynth/project/main.c
new file mode 100644
index 0000000..0a4f7a2
--- /dev/null
+++ b/vcpkg/scripts/test_ports/vcpkg-ci-fluidsynth/project/main.c
@@ -0,0 +1,12 @@
+#include <stdio.h>
+#include <fluidsynth.h>
+
+int main()
+{
+ fluid_settings_t* settings = new_fluid_settings();
+ int ret = fluid_settings_setint(settings, "vcpkg.test", 123);
+ delete_fluid_settings(settings);
+
+ printf("Result: %d\n", ret);
+ return 0;
+}
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-fluidsynth/vcpkg.json b/vcpkg/scripts/test_ports/vcpkg-ci-fluidsynth/vcpkg.json
new file mode 100644
index 0000000..b9cca1b
--- /dev/null
+++ b/vcpkg/scripts/test_ports/vcpkg-ci-fluidsynth/vcpkg.json
@@ -0,0 +1,47 @@
+{
+ "name": "vcpkg-ci-fluidsynth",
+ "version-string": "ci",
+ "description": "Port to validate fluidsynth in CI",
+ "homepage": "https://github.com/microsoft/vcpkg",
+ "license": "MIT",
+ "dependencies": [
+ {
+ "name": "fluidsynth",
+ "default-features": false
+ },
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ }
+ ],
+ "default-features": [
+ "all"
+ ],
+ "features": {
+ "all": {
+ "description": "Test all features",
+ "dependencies": [
+ {
+ "name": "fluidsynth",
+ "features": [
+ "pulseaudio"
+ ],
+ "platform": "linux"
+ },
+ {
+ "name": "fluidsynth",
+ "features": [
+ "sndfile"
+ ],
+ "platform": "!xbox"
+ },
+ {
+ "name": "fluidsynth",
+ "features": [
+ "libinstpatch"
+ ]
+ }
+ ]
+ }
+ }
+}