aboutsummaryrefslogtreecommitdiff
path: root/thirdparty/ryml/samples/singleheader
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/ryml/samples/singleheader')
-rw-r--r--thirdparty/ryml/samples/singleheader/amalgamate.cmake18
-rwxr-xr-xthirdparty/ryml/samples/singleheader/run.sh10
2 files changed, 0 insertions, 28 deletions
diff --git a/thirdparty/ryml/samples/singleheader/amalgamate.cmake b/thirdparty/ryml/samples/singleheader/amalgamate.cmake
deleted file mode 100644
index 6f2620a12..000000000
--- a/thirdparty/ryml/samples/singleheader/amalgamate.cmake
+++ /dev/null
@@ -1,18 +0,0 @@
-find_package(Python3 COMPONENTS Interpreter)
-
-# amalgamate ryml to get the single header
-function(amalgamate_ryml header_dir header_file)
- set(rymldir "${CMAKE_CURRENT_LIST_DIR}/../..")
- set(singleheaderdir "${rymldir}/src_singleheader")
- set(singleheader "${singleheaderdir}/ryml_all.hpp")
- set(amscript "${rymldir}/tools/amalgamate.py")
- file(GLOB_RECURSE srcfiles
- LIST_DIRECTORIES FALSE
- CONFIGURE_DEPENDS "${rymldir}/src")
- add_custom_command(OUTPUT "${singleheader}"
- COMMAND "${Python3_EXECUTABLE}" "${amscript}" "${singleheader}"
- COMMENT "${Python3_EXECUTABLE} ${amscript} ${singleheader}"
- DEPENDS ${srcfiles} "${amscript}" "${rymldir}/ext/c4core/cmake/amalgamate_utils.py")
- set(${header_dir} "${singleheaderdir}" PARENT_SCOPE)
- set(${header_file} "${singleheader}" PARENT_SCOPE)
-endfunction()
diff --git a/thirdparty/ryml/samples/singleheader/run.sh b/thirdparty/ryml/samples/singleheader/run.sh
deleted file mode 100755
index fc2f7d858..000000000
--- a/thirdparty/ryml/samples/singleheader/run.sh
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/bash -x
-
-# take the build type from the command line, or default to release
-cfg=${1:-Release}
-# make sure to run from where this file is
-cd $(dirname $0)
-# configure the sample
-cmake -S . -B ./build/$cfg -DCMAKE_BUILD_TYPE=$cfg
-# build and run the sample
-cmake --build ./build/$cfg --config $cfg --target run