Skip to content

Commit

Permalink
No longer committing crimes to get access to flatc
Browse files Browse the repository at this point in the history
  • Loading branch information
Honeybunch committed Oct 19, 2024
1 parent fcc990f commit 3288e08
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
4 changes: 4 additions & 0 deletions ports/steam-audio/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,13 @@ if(VCPKG_TARGET_IS_UWP)
set(WINDOWS_STATIC_RUNTIME "-DSTEAMAUDIO_STATIC_RUNTIME=OFF")
endif()

# We need to find flatc for steam-audio
find_program(FlatBuffers_EXECUTABLE NAMES flatc PATHS "${CURRENT_HOST_INSTALLED_DIR}/tools/flatbuffers" "bin" NO_DEFAULT_PATHS)

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}/core"
OPTIONS
-DFlatBuffers_EXECUTABLE=${FlatBuffers_EXECUTABLE}
-DSTEAMAUDIO_BUILD_TESTS=OFF
-DSTEAMAUDIO_BUILD_ITESTS=OFF
-DSTEAMAUDIO_BUILD_SAMPLES=OFF
Expand Down
11 changes: 0 additions & 11 deletions ports/steam-audio/use-vcpkg-deps.patch
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,6 @@ diff --git a/core/src/core/CMakeLists.txt b/core/src/core/CMakeLists.txt
index 7c9226f..56c4c44 100644
--- a/core/src/core/CMakeLists.txt
+++ b/core/src/core/CMakeLists.txt
@@ -26,6 +26,10 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/phonon.rc.in ${CMAKE_CURRENT_BINARY_D
# FLATBUFFERS
#

+find_program(FlatBuffers_EXECUTABLE flatc
+ PATHS ${_VCPKG_ROOT_DIR}/packages/flatbuffers_${VCPKG_HOST_TRIPLET}/tools/flatbuffers
+ REQUIRED)
+
function (compile_fbs FBS_SOURCE)
set(FBS_OUTPUT ${FBS_SOURCE}.h)

@@ -176,7 +180,8 @@ endif()
#

Expand Down

0 comments on commit 3288e08

Please sign in to comment.