From c3ebd263669369806efba260391ebe49391692f3 Mon Sep 17 00:00:00 2001 From: Lubos Dolezel Date: Tue, 25 Feb 2020 19:05:57 +0100 Subject: [PATCH] Add versioner cmake func, install /usr/bin/xattr (darlinghq/darling#689) --- cmake/versioner.cmake | 22 ++++++++++++++++++++++ src/external/perl | 2 +- src/external/python | 2 +- src/external/python_modules | 2 +- 4 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 cmake/versioner.cmake diff --git a/cmake/versioner.cmake b/cmake/versioner.cmake new file mode 100644 index 000000000..78e648b7d --- /dev/null +++ b/cmake/versioner.cmake @@ -0,0 +1,22 @@ +function(versioner project versions default_version) + + set(PROJECT ${project}) + string(TOUPPER ${project} UPROJECT) + set(DEFAULTVERSION ${default_version}) + + set(VERSIONS "") + list(LENGTH versions NVERSIONS) + + foreach(version IN LISTS versions) + set(VERSIONS "${VERSIONS} \"${version}\",") + endforeach(version) + + configure_file(${CMAKE_SOURCE_DIR}/src/external/perl/versioner/versions.h.in ${CMAKE_CURRENT_BINARY_DIR}/versions.h) + include_directories(${CMAKE_CURRENT_BINARY_DIR}) + + add_definitions(-std=c99) + add_darling_executable(${project} ${CMAKE_SOURCE_DIR}/src/external/perl/versioner/versioner.c) + target_link_libraries(${project} CoreFoundation) + + install(TARGETS ${project} DESTINATION libexec/darling/usr/bin) +endfunction(versioner) diff --git a/src/external/perl b/src/external/perl index 0d297a476..e571a007a 160000 --- a/src/external/perl +++ b/src/external/perl @@ -1 +1 @@ -Subproject commit 0d297a4762e9f5bb30bf82820d6bf741e921eb27 +Subproject commit e571a007a8664159f4c949c10ee4bb0ef3b96f4d diff --git a/src/external/python b/src/external/python index a16b72d01..0c7e7a4f5 160000 --- a/src/external/python +++ b/src/external/python @@ -1 +1 @@ -Subproject commit a16b72d01eda77e5a9004ea67c7c793977b3367f +Subproject commit 0c7e7a4f59eb84eb706c12bd2f97dc7b5250e22d diff --git a/src/external/python_modules b/src/external/python_modules index c722c8cf7..827cca371 160000 --- a/src/external/python_modules +++ b/src/external/python_modules @@ -1 +1 @@ -Subproject commit c722c8cf771944ed8279bd3e55c3b620efcc5146 +Subproject commit 827cca371a128954281d80c720b3d852f0146f36