Skip to content

Commit

Permalink
feat: try android boost-process
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Nov 14, 2024
1 parent ef516e2 commit 86bb2ef
Show file tree
Hide file tree
Showing 5 changed files with 137 additions and 5 deletions.
2 changes: 1 addition & 1 deletion vcpkg
Submodule vcpkg updated 174 files
25 changes: 25 additions & 0 deletions vcpkg-overlay/ports/boost-process/opt-filesystem.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c0c1bfef94..3c879b8958 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -17,7 +17,7 @@ target_link_libraries(boost_process
Boost::asio
Boost::config
Boost::core
- Boost::filesystem
+ $<TARGET_NAME_IF_EXISTS:Boost::filesystem>
Boost::fusion
Boost::iterator
Boost::move
@@ -50,6 +50,11 @@ target_compile_definitions(boost_process
PRIVATE BOOST_PROCESS_SOURCE=1
)

+if(NOT TARGET Boost::filesystem)
+ set(BOOST_PROCESS_USE_STD_FS ON)
+ target_compile_features(boost_process PUBLIC cxx_std_17)
+endif()
+
if (BOOST_PROCESS_USE_STD_FS)
target_compile_definitions(boost_process PUBLIC BOOST_PROCESS_USE_STD_FS=1 )
else()
18 changes: 18 additions & 0 deletions vcpkg-overlay/ports/boost-process/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Automatically generated by scripts/boost/generate-ports.ps1

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO boostorg/process
REF boost-${VERSION}
SHA512 a084c71effdd591b83a7fbff85bdea925da1436dc452267ceafd0f7bd875dcd9611cd28a92c06548e9130bb596703ea05932cd94063724cfecf6d861cceebe21
HEAD_REF master
PATCHES
opt-filesystem.patch

)

set(FEATURE_OPTIONS "")
boost_configure_and_install(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS ${FEATURE_OPTIONS}
)
92 changes: 92 additions & 0 deletions vcpkg-overlay/ports/boost-process/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
{
"$comment": "Automatically generated by scripts/boost/generate-ports.ps1",
"name": "boost-process",
"version": "1.86.0",
"description": "Boost process module",
"homepage": "https://www.boost.org/libs/process",
"license": "BSL-1.0",
"supports": "!uwp & !emscripten",
"dependencies": [
{
"name": "boost-algorithm",
"version>=": "1.86.0"
},
{
"name": "boost-asio",
"version>=": "1.86.0"
},
{
"name": "boost-assert",
"version>=": "1.86.0"
},
{
"name": "boost-cmake",
"version>=": "1.86.0"
},
{
"name": "boost-config",
"version>=": "1.86.0"
},
{
"name": "boost-core",
"version>=": "1.86.0"
},
{
"name": "boost-filesystem",
"platform": "!uwp",
"version>=": "1.86.0"
},
{
"name": "boost-fusion",
"version>=": "1.86.0"
},
{
"name": "boost-headers",
"version>=": "1.86.0"
},
{
"name": "boost-io",
"version>=": "1.86.0"
},
{
"name": "boost-iterator",
"version>=": "1.86.0"
},
{
"name": "boost-move",
"version>=": "1.86.0"
},
{
"name": "boost-optional",
"version>=": "1.86.0"
},
{
"name": "boost-system",
"version>=": "1.86.0"
},
{
"name": "boost-throw-exception",
"version>=": "1.86.0"
},
{
"name": "boost-tokenizer",
"version>=": "1.86.0"
},
{
"name": "boost-type-index",
"version>=": "1.86.0"
},
{
"name": "boost-type-traits",
"version>=": "1.86.0"
},
{
"name": "boost-utility",
"version>=": "1.86.0"
},
{
"name": "boost-winapi",
"version>=": "1.86.0"
}
]
}
5 changes: 1 addition & 4 deletions vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,7 @@
"boost-asio",
"boost-core",
"boost-dll",
{
"name": "boost-process",
"platform": "!android"
},
"boost-process",
"boost-uuid"
]
}

0 comments on commit 86bb2ef

Please sign in to comment.