-
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
[freerdp] update to 3.10.2 and fix absolute paths #43150
Draft
JonLiu1993
wants to merge
3
commits into
microsoft:master
Choose a base branch
from
JonLiu1993:dev/Jon/freerdp
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+50
−26
Draft
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
diff --git a/cmake/FindFeature.cmake b/cmake/FindFeature.cmake | ||
index bd25fd4..dd180a3 100644 | ||
index 11bd9f1..231dcf4 100644 | ||
--- a/cmake/FindFeature.cmake | ||
+++ b/cmake/FindFeature.cmake | ||
@@ -15,7 +15,7 @@ macro(find_feature _feature _type _purpose _description) | ||
set(_feature_default "ON") | ||
message(STATUS "Finding ${_type_lower} feature ${_feature} for ${_purpose} (${_description})") | ||
find_package(${_feature} REQUIRED) | ||
- elseif(${_type} STREQUAL "RECOMMENDED") | ||
+ elseif(0) | ||
if(NOT ${WITH_${_feature_upper}}) | ||
set(_feature_default "OFF") | ||
message(STATUS "Skipping ${_type_lower} feature ${_feature} for ${_purpose} (${_description})") | ||
@@ -29,7 +29,7 @@ macro(find_feature _feature _type _purpose _description) | ||
message(STATUS "Not detected ${_type_lower} feature ${_feature} for ${_purpose} (${_description}), feature disabled") | ||
endif() | ||
endif() | ||
- elseif(${_type} STREQUAL "OPTIONAL") | ||
+ elseif(1) | ||
if(${WITH_${_feature_upper}}) | ||
set(_feature_default "ON") | ||
message(STATUS "Finding ${_type_lower} feature ${_feature} for ${_purpose} (${_description})") | ||
set(_feature_default "ON") | ||
message(STATUS "Finding ${_type_lower} feature ${_feature} for ${_purpose} (${_description})") | ||
find_package(${_feature} REQUIRED) | ||
- elseif(${_type} STREQUAL "RECOMMENDED") | ||
+ elseif(0) | ||
if(NOT ${WITH_${_feature_upper}}) | ||
set(_feature_default "OFF") | ||
message(STATUS "Skipping ${_type_lower} feature ${_feature} for ${_purpose} (${_description})") | ||
@@ -31,7 +31,7 @@ macro(find_feature _feature _type _purpose _description) | ||
) | ||
endif() | ||
endif() | ||
- elseif(${_type} STREQUAL "OPTIONAL") | ||
+ elseif(1) | ||
if(${WITH_${_feature_upper}}) | ||
set(_feature_default "ON") | ||
message(STATUS "Finding ${_type_lower} feature ${_feature} for ${_purpose} (${_description})") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
diff --git a/winpr/include/config/build-config.h.in b/winpr/include/config/build-config.h.in | ||
index 4a9bfbb..9fb7e8a 100644 | ||
--- a/winpr/include/config/build-config.h.in | ||
+++ b/winpr/include/config/build-config.h.in | ||
@@ -5,8 +5,8 @@ | ||
#define WINPR_KEYMAP_PATH "${WINPR_KEYMAP_PATH}" | ||
#define WINPR_PLUGIN_PATH "${WINPR_PLUGIN_PATH}" | ||
|
||
-#define WINPR_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}" | ||
-#define WINPR_INSTALL_SYSCONFDIR "${CMAKE_INSTALL_FULL_SYSCONFDIR}" | ||
+#define WINPR_INSTALL_PREFIX "" | ||
+#define WINPR_INSTALL_SYSCONFDIR "" | ||
|
||
#define WINPR_LIBRARY_PATH "${WINPR_LIBRARY_PATH}" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index db346d3..6ad72d3 100644 | ||
index 4de77e9..3956b48 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -439,6 +439,9 @@ if(WIN32) | ||
endif() | ||
@@ -380,6 +380,10 @@ endif() | ||
|
||
add_compile_definitions(FREERDP_EXPORTS) | ||
|
||
add_definitions(-DFREERDP_EXPORTS) | ||
+if(NOT BUILD_SHARED_LIBS) | ||
+ add_definitions(-DRDTK_EXPORTS) | ||
+endif() | ||
+ | ||
# Mac OS X | ||
if(APPLE) | ||
if(IOS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@akallabeth, These two lines of macros contain absolute paths. I searched the upstream code and found no other place where these two macros are used. Do you mind if I modify them this way?
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, it breaks file loading (used for keyboard layouts, timezones and other stuff if enabled)
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.
Do you have any good suggestions? Thank you.
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.
do you enable these features (loading stuff from files)?
if not the macro is unused.
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.
I didn't have those features enabled, so it was a warning, but the vcpkg policy clearly stated that absolute paths were not allowed, so I tried fixing it.