Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
faust
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
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Admin message
GitLab upgrade completed. Current version is 17.11.4.
Show more breadcrumbs
faust group
faust
Commits
24c07438
Commit
24c07438
authored
3 years ago
by
hhakim
Browse files
Options
Downloads
Patches
Plain Diff
Update embed_sys_libomp_into_pyfaust.txt by searching libomp in (DY)LD_LIBRARY_PATH if defined.
parent
6532df9c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMake/embed_sys_libomp_into_pyfaust.txt
+25
-12
25 additions, 12 deletions
CMake/embed_sys_libomp_into_pyfaust.txt
with
25 additions
and
12 deletions
CMake/embed_sys_libomp_into_pyfaust.txt
+
25
−
12
View file @
24c07438
# the script suppose that PWD is the <build directory>/wrapper/python
file(GLOB LIBS _FaustCorePy*dylib _FaustCorePy*dll _FaustCorePy*p
y
d _FaustCorePy*so) # only one
must
exist
, depending on the OS building pyfaust
file(GLOB LIBS _FaustCorePy*dylib _FaustCorePy*dll _FaustCorePy*p
x
d _FaustCorePy*so) # only one
can
exist
list(GET LIBS 0 PYLIB)
message(STATUS "pyfaust lib: ${PYLIB}")
file(GET_RUNTIME_DEPENDENCIES LIBRARIES ${PYLIB} RESOLVED_DEPENDENCIES_VAR LIBS UNRESOLVED_DEPENDENCIES_VAR ERR_LIBS)
#message(STATUS "libs=${LIBS}")
# add paths of (DY)LD_LIBRARY_PATH in considered directories because GET_RUNTIME_DEPENDENCIES doesn't take it into account
if(APPLE)
#message(STATUS DYLD_LIBRARY_PATH=$ENV{DYLD_LIBRARY_PATH})
if(DEFINED ENV{DYLD_LIBRARY_PATH})
string(REPLACE ":" ";" LIB_PATHS "$ENV{DYLD_LIBRARY_PATH}")
endif()
elseif(UNIX)
#message(STATUS LD_LIBRARY_PATH=$ENV{LD_LIBRARY_PATH})
if(DEFINED ENV{LD_LIBRARY_PATH})
string(REPLACE ":" ";" LIB_PATHS "$ENV{LD_LIBRARY_PATH}")
endif()
endif()
#message(STATUS "pyfaust lib: ${PYLIB} LIB_PATHS:${LIB_PATHS}")
file(GET_RUNTIME_DEPENDENCIES LIBRARIES ${PYLIB} RESOLVED_DEPENDENCIES_VAR LIBS UNRESOLVED_DEPENDENCIES_VAR ERR_LIBS DIRECTORIES ${LIB_PATHS})
#message(STATUS "libs=${LIBS} err_libs=${ERR_LIBS}")
foreach(LIB IN LISTS LIBS)
string(REGEX MATCH ".*libomp.*" RES ${LIB})
string(LENGTH "${RES}" RES_LEN)
if(${RES_LEN} GREATER 0)
message(STATUS "system libomp: ${LIB}")
# copy the libomp in pyfaust/lib
message("copying libomp to wrapper/python/pyfaust/lib")
configure_file(${LIB} pyfaust/lib/libomp.${LIBEXT} COPYONLY)
endif()
string(REGEX MATCH ".*libomp.*" RES ${LIB})
string(LENGTH "${RES}" RES_LEN)
get_filename_component(LIB_FILE ${LIB} NAME)
if(${RES_LEN} GREATER 0)
message(STATUS "system libomp: ${LIB}")
# copy the libomp in pyfaust/lib
message("copying libomp to wrapper/python/pyfaust/lib/${LIB_FILE}")
configure_file(${LIB} pyfaust/lib/${LIB_FILE} COPYONLY)
endif()
endforeach()
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