Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
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
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
bbb272ef
Commit
bbb272ef
authored
11 years ago
by
Maxime Graulich
Browse files
Options
Downloads
Patches
Plain Diff
Fix BLAS and LAPACK for Android
parent
cf3d34b1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+15
-21
15 additions, 21 deletions
CMakeLists.txt
with
15 additions
and
21 deletions
CMakeLists.txt
+
15
−
21
View file @
bbb272ef
...
...
@@ -293,8 +293,16 @@ if(ENABLE_BLAS_LAPACK)
set_config_option
(
HAVE_LAPACK
"Lapack(VecLib)"
)
endif
(
MSVC
)
if
(
BUILD_ANDROID
)
set_config_option
(
HAVE_BLAS
"Blas"
)
set_config_option
(
HAVE_LAPACK
"Lapack"
)
find_library
(
BLAS_LIB f2cblas PATH_SUFFIXES lib
)
find_library
(
LAPACK_LIB f2clapack PATH_SUFFIXES lib
)
if
(
BLAS_LIB
)
list
(
APPEND EXTERNAL_LIBRARIES
${
BLAS_LIB
}
)
set_config_option
(
HAVE_BLAS
"Blas"
)
endif
(
BLAS_LIB
)
if
(
LAPACK_LIB
)
list
(
APPEND EXTERNAL_LIBRARIES
${
LAPACK_LIB
}
)
set_config_option
(
HAVE_LAPACK
"Lapack"
)
endif
(
LAPACK_LIB
)
endif
(
BUILD_ANDROID
)
if
(
NOT HAVE_BLAS OR NOT HAVE_LAPACK
)
# if we haven't found blas and lapack without using the standard
...
...
@@ -443,27 +451,16 @@ if(ENABLE_BUILD_IOS)
endif
(
ENABLE_BUILD_IOS
)
if
(
ENABLE_BUILD_ANDROID
)
# we need getdp lib
#find_library(GETDP_LIB Gmsh PATH_SUFFIXES lib)
#find_path(GETDP_INC "GetDP.h" PATH_SUFFIXES include getdp include/getdp)
#if(GETDP_LIB AND GETDP_INC)
# list(APPEND EXTERNAL_LIBRARIES ${GETDP_LIB})
# list(APPEND EXTERNAL_INCLUDES ${GETDP_INC})
# set_config_option(HAVE_GETDP "GetDP")
#else(GETDP_LIB AND GETDP_INC)
# message(SEND_ERROR "Cannot compile Gmsh for Android without GetDP")
#endif(GETDP_LIB AND GETDP_INC)
# then we can make gmsh lib
find_file
(
CMAKE_TOOLCHAIN_FILE
"android.toolchain.cmake"
)
if
(
NOT CMAKE_TOOLCHAIN_FILE
)
message
(
SEND_ERROR
"Cannot compile Gmsh for android without android-cmake"
)
endif
(
NOT CMAKE_TOOLCHAIN_FILE
)
set
(
CMAKE_BUILD_TYPE Release
)
add_definitions
(
-DBUILD_ANDROID
)
set
(
LIBRARY_OUTPUT_PATH_ROOT
${
CMAKE_CURRENT_BINARY_DIR
}
)
set
(
LIBRARY_OUTPUT_PATH
${
CMAKE_CURRENT_BINARY_DIR
}
/libs/
)
#add_subdirectory(Mobile/Android/)
#add_library(androidGmsh SHARED Mobile/Android/drawGModel.cpp Mobile/Android/androidGModel.cpp ${GMSH_SRC})
add_library
(
androidGmsh SHARED
${
GMSH_SRC
}
)
#set( LIBRARY_DEPS GLESv1_CM log)
set_target_properties
(
androidGmsh PROPERTIES OUTPUT_NAME Gmsh
)
target_link_libraries
(
androidGmsh
${
LINK
_LIBRARIES
}
)
target_link_libraries
(
androidGmsh
${
EXTERNAL
_LIBRARIES
}
)
endif
(
ENABLE_BUILD_ANDROID
)
if
(
HAVE_FLTK OR HAVE_QT OR ENABLE_GRAPHICS
)
...
...
@@ -1272,9 +1269,6 @@ endif(ENABLE_BUILD_LIB)
if
(
ENABLE_BUILD_SHARED OR ENABLE_BUILD_DYNAMIC
)
install
(
TARGETS shared DESTINATION lib OPTIONAL
)
endif
(
ENABLE_BUILD_SHARED OR ENABLE_BUILD_DYNAMIC
)
if
(
ENABLE_BUILD_ANDROID
)
install
(
TARGETS androidGmsh DESTINATION lib OPTIONAL
)
endif
(
ENABLE_BUILD_ANDROID
)
install
(
FILES
${
ONELAB_PY
}
DESTINATION
${
GMSH_BIN
}
)
install
(
FILES
${
GMSH_API
}
DESTINATION include/gmsh
)
...
...
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