Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sébastien Peillet
otb
Commits
38a00d4e
Commit
38a00d4e
authored
7 years ago
by
Guillaume Pasero
Browse files
Options
Downloads
Patches
Plain Diff
PKG: don't forget to package lonely libraries
parent
fcffcc4f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Packaging/CMakeLists.txt
+0
-1
0 additions, 1 deletion
Packaging/CMakeLists.txt
Packaging/prepare_file_list.cmake
+13
-17
13 additions, 17 deletions
Packaging/prepare_file_list.cmake
Packaging/process_file_recurse.cmake
+8
-1
8 additions, 1 deletion
Packaging/process_file_recurse.cmake
with
21 additions
and
19 deletions
Packaging/CMakeLists.txt
+
0
−
1
View file @
38a00d4e
...
...
@@ -198,7 +198,6 @@ prepare_search_dirs(PKG_SEARCHDIRS)
set
(
PKG_PEFILES
)
prepare_file_list
(
PKG_PEFILES
)
foreach
(
pfile
${
PKG_PEFILES
}
)
get_filename_component
(
pfile_name
${
pfile
}
NAME
)
process_file_recurse
(
${
pfile_name
}
)
endforeach
()
...
...
This diff is collapsed.
Click to expand it.
Packaging/prepare_file_list.cmake
+
13
−
17
View file @
38a00d4e
...
...
@@ -29,22 +29,23 @@ function(prepare_file_list file_list_result)
return
()
endif
()
set
(
file_list
"
${
otbapp_launcher
}
"
)
if
(
HAVE_QT4
)
list
(
APPEND file_list
"otbApplicationLauncherQt
${
EXE_EXT
}
"
)
endif
()
# find OTB targets
set
(
_otb_targets_path
"
${
SUPERBUILD_INSTALL_DIR
}
/lib/cmake/OTB-
${
PKG_OTB_VERSION_MAJOR
}
.
${
PKG_OTB_VERSION_MINOR
}
"
)
file
(
GLOB _targets_config_files
"
${
_otb_targets_path
}
/OTBTargets-*.cmake"
)
set
(
_IMPORT_PREFIX
${
SUPERBUILD_INSTALL_DIR
}
)
foreach
(
f
${
_targets_config_files
}
)
file
(
STRINGS
${
f
}
_f_content REGEX
" IMPORTED_LOCATION_[A-Z]+ "
)
string
(
REGEX REPLACE
" +IMPORTED_LOCATION_[A-Z]+ (
\"
[^
\"
]+
\"
)"
"
\\
1;"
_filtered
${
_f_content
}
)
string
(
CONFIGURE
"
${
_filtered
}
"
_configured
)
list
(
APPEND file_list
"
${
_configured
}
"
)
endforeach
()
if
(
HAVE_MVD
)
list
(
APPEND file_list
"monteverdi
${
EXE_EXT
}
"
)
list
(
APPEND file_list
"mapla
${
EXE_EXT
}
"
)
endif
()
if
(
HAVE_PYTHON
)
list
(
APPEND file_list
"_otbApplication
${
PYMODULE_EXT
}
"
)
endif
()
foreach
(
exe_file
"iceViewer"
"otbTestDriver"
"SharkVersion"
)
foreach
(
exe_file
"SharkVersion"
)
if
(
EXISTS
"
${
SUPERBUILD_INSTALL_DIR
}
/bin/
${
exe_file
}${
EXE_EXT
}
"
)
list
(
APPEND file_list
"
${
exe_file
}${
EXE_EXT
}
"
)
else
()
...
...
@@ -88,12 +89,7 @@ function(prepare_file_list file_list_result)
if
(
MSVC
)
list
(
APPEND file_list
"ucrtbase.dll"
)
list
(
APPEND file_list
"proj.dll"
)
endif
()
set
(
otb_applications_dir
"
${
SUPERBUILD_INSTALL_DIR
}
/lib/otb/applications"
)
file
(
GLOB OTB_APPS_LIST
"
${
otb_applications_dir
}
/otbapp_*
${
LIB_EXT
}
"
)
# /lib/otb
list
(
APPEND file_list
${
OTB_APPS_LIST
}
)
endif
()
set
(
${
file_list_result
}
${
file_list
}
PARENT_SCOPE
)
endfunction
()
This diff is collapsed.
Click to expand it.
Packaging/process_file_recurse.cmake
+
8
−
1
View file @
38a00d4e
...
...
@@ -19,7 +19,14 @@
#
function
(
process_file_recurse input_file
)
set
(
input_file_full_path
)
search_library
(
${
input_file
}
PKG_SEARCHDIRS input_file_full_path
)
if
(
IS_ABSOLUTE
"
${
input_file
}
"
AND EXISTS
"
${
input_file
}
"
)
set
(
input_file_full_path
${
input_file
}
)
if
(
PKG_DEBUG
)
message
(
"Found '
${
input_file
}
' (return)"
)
endif
()
else
()
search_library
(
${
input_file
}
PKG_SEARCHDIRS input_file_full_path
)
endif
()
if
(
NOT input_file_full_path
)
if
(
LINUX
)
setif_value_in_list
(
is_gtk_lib
"
${
input_file
}
"
ALLOWED_SYSTEM_DLLS
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment