-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[apr] Add HOST_TOOLS_DIR/gen_test_char for cross-compiling to Windows #41416
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index d16eec6..92146f4 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -87,13 +87,17 @@ STRING(REGEX REPLACE ".*#define APR_PATCH_VERSION[ \t]+([0-9]+).*" "\\1" APR_PAT | ||
|
||
CONFIGURE_FILE(include/apr.hwc | ||
${PROJECT_BINARY_DIR}/apr.h) | ||
|
||
ADD_EXECUTABLE(gen_test_char tools/gen_test_char.c) | ||
|
||
+set(UNOFFICIAL_APR_HOST_TOOLS_DIR "$<TARGET_FILE_DIR:gen_test_char>" CACHE STRING "") | ||
+set(UNOFFICIAL_APR_HOST_EXECUTABLE_SUFFIX "$<TARGET_PROPERTY:gen_test_char,SUFFIX>" CACHE STRING "") | ||
+install(TARGETS gen_test_char) | ||
+ | ||
ADD_CUSTOM_COMMAND( | ||
COMMENT "Generating character tables, apr_escape_test_char.h, for current locale" | ||
DEPENDS gen_test_char | ||
- COMMAND $<TARGET_FILE:gen_test_char> > ${PROJECT_BINARY_DIR}/apr_escape_test_char.h | ||
+ COMMAND "${UNOFFICIAL_APR_HOST_TOOLS_DIR}/gen_test_char${UNOFFICIAL_APR_HOST_EXECUTABLE_SUFFIX}" > ${PROJECT_BINARY_DIR}/apr_escape_test_char.h | ||
OUTPUT ${PROJECT_BINARY_DIR}/apr_escape_test_char.h | ||
) | ||
ADD_CUSTOM_TARGET( |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
{ | ||
"name": "apr", | ||
"version": "1.7.5", | ||
"port-version": 1, | ||
"port-version": 2, | ||
"description": "The Apache Portable Runtime (APR) is a C library that forms a system portability layer that covers many operating systems.", | ||
"homepage": "https://apr.apache.org/", | ||
"license": "Apache-2.0", | ||
"supports": "!uwp", | ||
"supports": "!uwp & !mingw", | ||
"dependencies": [ | ||
{ | ||
"name": "apr", | ||
"host": true, | ||
"platform": "windows" | ||
}, | ||
Comment on lines
+10
to
+14
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I thought that this dependency was only needed on cross compiling? This would make it a host dependency even when not cross compiling. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You're right @dg0yt, apologies for the confusion. |
||
{ | ||
"name": "vcpkg-cmake", | ||
"host": true, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you trying to exclude arm on windows?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, only x86 x64 is provided in its sln file of the port
activemq-cpp
, and it previously was skipped by cascade in CI.