-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wn_bin pkg: Rewrite using modern cmake
Modern cmake has better tools to collect the prereqs of binaries. Let's use them. The original patches are by Dennis Klein. He deserves most of the credit for developing this.
- Loading branch information
1 parent
fc20c63
commit a735c03
Showing
4 changed files
with
44 additions
and
164 deletions.
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
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,24 @@ | ||
# Copyright 2017-2022 GSI, Inc. All rights reserved. | ||
# | ||
# | ||
|
||
################################################### | ||
## Collect WN PKG files | ||
################################################### | ||
|
||
# Collect non-system dependencies | ||
file(GET_RUNTIME_DEPENDENCIES | ||
RESOLVED_DEPENDENCIES_VAR deps | ||
EXECUTABLES ${EXECUTABLES} ) | ||
|
||
# Generate regex that excludes system prefixes | ||
list(JOIN EXCLUDED_SYSTEM_PREFIXES "|" excluded_system_prefix_regex) | ||
set(excluded_system_prefix_regex "^(${excluded_system_prefix_regex})/") | ||
|
||
# Copy dependencies to wn pkg staging directory | ||
foreach(file IN LISTS EXECUTABLES deps) | ||
if(NOT file MATCHES ${excluded_system_prefix_regex}) | ||
message("WN PKG prerequisite='${file}'") | ||
file(COPY ${file} DESTINATION ${DESTINATION}) | ||
endif() | ||
endforeach() |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.