diff options
| author | Stefan Boberg <[email protected]> | 2026-02-23 11:19:52 +0100 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2026-02-23 11:19:52 +0100 |
| commit | 9aac0fd369b87e965fb34b5168646387de7ea1cd (patch) | |
| tree | 367a820685a829adbab31cd1374b1af2cece4b7e /thirdparty/ryml/samples/singleheader/amalgamate.cmake | |
| parent | changed command names and descriptions to use class members instead of string... (diff) | |
| download | zen-9aac0fd369b87e965fb34b5168646387de7ea1cd.tar.xz zen-9aac0fd369b87e965fb34b5168646387de7ea1cd.zip | |
implement yaml generation (#774)
this implements a yaml generation strategy similar to the JSON generation where we just build a string instead of building a ryml tree.
This also removes the dependency on ryml for reduced binary/build times.
Diffstat (limited to 'thirdparty/ryml/samples/singleheader/amalgamate.cmake')
| -rw-r--r-- | thirdparty/ryml/samples/singleheader/amalgamate.cmake | 18 |
1 files changed, 0 insertions, 18 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() |