Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rustdesk
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李朝发
rustdesk
Commits
74201b71
Commit
74201b71
authored
Sep 12, 2022
by
Kingtous
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opt: windows build type & use generator expression
parent
a957f894
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
20 deletions
+8
-20
CMakeLists.txt
flutter/linux/CMakeLists.txt
+1
-1
CMakeLists.txt
flutter/windows/CMakeLists.txt
+7
-0
CMakeLists.txt
flutter/windows/runner/CMakeLists.txt
+0
-19
No files found.
flutter/linux/CMakeLists.txt
View file @
74201b71
...
...
@@ -125,7 +125,7 @@ foreach(bundled_library ${PLUGIN_BUNDLED_LIBRARIES})
endforeach
(
bundled_library
)
# flutter_rust_bridge
set
(
RUSTDESK_LIB_BUILD_TYPE
debug
)
set
(
RUSTDESK_LIB_BUILD_TYPE
$<IF:$<CONFIG:Debug>,debug,release>
)
string
(
TOLOWER
${
CMAKE_BUILD_TYPE
}
${
RUSTDESK_LIB_BUILD_TYPE
}
)
message
(
STATUS
"rustdesk lib build type:
${
RUSTDESK_LIB_BUILD_TYPE
}
"
)
...
...
flutter/windows/CMakeLists.txt
View file @
74201b71
...
...
@@ -86,6 +86,13 @@ if(PLUGIN_BUNDLED_LIBRARIES)
COMPONENT Runtime
)
endif
()
# flutter_rust_bridge
set
(
RUSTDESK_LIB_BUILD_TYPE $<IF:$<CONFIG:Debug>,debug,release>
)
message
(
STATUS
"rustdesk lib build type:
${
RUSTDESK_LIB_BUILD_TYPE
}
"
)
set
(
RUSTDESK_LIB
"../../target/
${
RUSTDESK_LIB_BUILD_TYPE
}
/librustdesk.dll"
)
install
(
FILES
"
${
RUSTDESK_LIB
}
"
DESTINATION
"
${
INSTALL_BUNDLE_LIB_DIR
}
"
COMPONENT Runtime RENAME librustdesk.dll
)
# Fully re-copy the assets directory on each build to avoid having stale files
# from a previous install.
set
(
FLUTTER_ASSET_DIR_NAME
"flutter_assets"
)
...
...
flutter/windows/runner/CMakeLists.txt
View file @
74201b71
...
...
@@ -16,25 +16,6 @@ add_executable(${BINARY_NAME} WIN32
"runner.exe.manifest"
)
# flutter_rust_bridge with Corrosion
find_package
(
Corrosion REQUIRED
)
corrosion_import_crate
(
MANIFEST_PATH ../../../Cargo.toml
# Equivalent to --all-features passed to cargo build
# [ALL_FEATURES]
# Equivalent to --no-default-features passed to cargo build
# [NO_DEFAULT_FEATURES]
# Disable linking of standard libraries (required for no_std crates).
# [NO_STD]
# Specify cargo build profile (e.g. release or a custom profile)
# [PROFILE <cargo-profile>]
# Only import the specified crates from a workspace
# [CRATES <crate1> ... <crateN>]
# Enable the specified features
# [FEATURES <feature1> ... <featureN>]
)
target_link_libraries
(
${
BINARY_NAME
}
PRIVATE librustdesk
)
# Apply the standard set of build settings. This can be removed for applications
# that need different build settings.
apply_standard_settings
(
${
BINARY_NAME
}
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment