aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/oboe
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/ports/oboe
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/oboe')
-rw-r--r--vcpkg/ports/oboe/fix_install.patch16
-rw-r--r--vcpkg/ports/oboe/portfile.cmake20
-rw-r--r--vcpkg/ports/oboe/vcpkg.json18
3 files changed, 54 insertions, 0 deletions
diff --git a/vcpkg/ports/oboe/fix_install.patch b/vcpkg/ports/oboe/fix_install.patch
new file mode 100644
index 0000000..6916a32
--- /dev/null
+++ b/vcpkg/ports/oboe/fix_install.patch
@@ -0,0 +1,16 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 3e3af59..aeac85d 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -94,8 +94,8 @@ target_link_libraries(oboe PRIVATE log OpenSLES)
+
+ # When installing oboe put the libraries in the lib/<ABI> folder e.g. lib/arm64-v8a
+ install(TARGETS oboe
+- LIBRARY DESTINATION lib/${ANDROID_ABI}
+- ARCHIVE DESTINATION lib/${ANDROID_ABI})
++ LIBRARY DESTINATION lib
++ ARCHIVE DESTINATION lib)
+
+ # Also install the headers
+ install(DIRECTORY include/oboe DESTINATION include)
+
diff --git a/vcpkg/ports/oboe/portfile.cmake b/vcpkg/ports/oboe/portfile.cmake
new file mode 100644
index 0000000..e6aecf1
--- /dev/null
+++ b/vcpkg/ports/oboe/portfile.cmake
@@ -0,0 +1,20 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO google/oboe
+ REF ${VERSION}
+ SHA512 7eeaf85f9889e03dd1e7f5de0e9f2cee815fc555fddfdb8c4d3450d67f6ae11b0ca43b63c73e869bfc4629d2f8e5bdb23a5833c665ca5226c339f74b9b34a8ad
+ HEAD_REF master
+ PATCHES
+ fix_install.patch
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH ${SOURCE_PATH}
+ OPTIONS
+)
+
+vcpkg_cmake_install()
+vcpkg_copy_pdbs()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
diff --git a/vcpkg/ports/oboe/vcpkg.json b/vcpkg/ports/oboe/vcpkg.json
new file mode 100644
index 0000000..e06d124
--- /dev/null
+++ b/vcpkg/ports/oboe/vcpkg.json
@@ -0,0 +1,18 @@
+{
+ "name": "oboe",
+ "version": "1.8.0",
+ "description": "Oboe is a C++ library which makes it easy to build high-performance audio apps on Android",
+ "homepage": "https://developer.android.com/games/sdk/oboe",
+ "license": "Apache-2.0",
+ "supports": "android",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}