-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GMP and OpenSSL are only built, when corresponding options are activa…
…ted (default: deactivated) and Boost libraries are only downloaded when corresponding variable is set.
- Loading branch information
1 parent
5f6f3f3
commit da9d860
Showing
106 changed files
with
4,001 additions
and
3,844 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
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,31 @@ | ||
if(NOT "${GMP_LIBRARY_TYPE}" STREQUAL "STATIC" AND NOT "${GMP_LIBRARY_TYPE}" STREQUAL "SHARED") | ||
set(GMP_LIBRARY_TYPE "@GMP_LIBRARY_TYPE@") | ||
endif() | ||
set(LIB_PREFIX "${CMAKE_${GMP_LIBRARY_TYPE}_LIBRARY_PREFIX}") | ||
set(LIB_SUFFIX "${CMAKE_${GMP_LIBRARY_TYPE}_LIBRARY_SUFFIX}") | ||
|
||
find_path(GMP_INCLUDE_DIR gmp.h PATHS "@ANDROID_NDK@/@ABY_INSTALL_INCLUDE@") | ||
|
||
set(GMP_LIBRARY "@ANDROID_NDK@/@ABY_INSTALL_LIB@/${LIB_PREFIX}gmp${LIB_SUFFIX}") | ||
if(EXISTS "${GMP_INCLUDE_DIR}" AND EXISTS "${GMP_LIBRARY}") | ||
set(GMP_FOUND TRUE) | ||
else() | ||
set(GMP_LIBRARY ) | ||
set(GMP_FOUND FALSE) | ||
endif() | ||
|
||
if(GMP_FOUND AND NOT TARGET GMP::GMP) | ||
add_library(GMP::GMP UNKNOWN IMPORTED) | ||
set_target_properties(GMP::GMP PROPERTIES | ||
IMPORTED_LOCATION "${GMP_LIBRARY}" | ||
INTERFACE_INCLUDE_DIRECTORIES "${GMP_INCLUDE_DIR}" | ||
) | ||
endif() | ||
|
||
mark_as_advanced( | ||
GMP_INCLUDE_DIR | ||
GMP_LIBRARY | ||
) | ||
|
||
set(LIBRARIES_FULL_PATH "@ANDROID_NDK@/@ABY_INSTALL_LIB@/${LIB_PREFIX}gmp${LIB_SUFFIX}") | ||
set(LIB_NAME "GMP") |
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,31 @@ | ||
if(NOT "${GMP_LIBRARY_TYPE}" STREQUAL "STATIC" AND NOT "${GMP_LIBRARY_TYPE}" STREQUAL "SHARED") | ||
set(GMP_LIBRARY_TYPE "@GMP_LIBRARY_TYPE@") | ||
endif() | ||
set(LIB_PREFIX "${CMAKE_${GMP_LIBRARY_TYPE}_LIBRARY_PREFIX}") | ||
set(LIB_SUFFIX "${CMAKE_${GMP_LIBRARY_TYPE}_LIBRARY_SUFFIX}") | ||
|
||
find_path(GMPXX_INCLUDE_DIR gmpxx.h PATHS "@ANDROID_NDK@/@ABY_INSTALL_INCLUDE@") | ||
|
||
set(GMPXX_LIBRARY "@ANDROID_NDK@/@ABY_INSTALL_LIB@/${LIB_PREFIX}gmpxx${LIB_SUFFIX}") | ||
if(EXISTS "${GMPXX_INCLUDE_DIR}" AND EXISTS "${GMPXX_LIBRARY}") | ||
set(GMPXX_FOUND TRUE) | ||
else() | ||
set(GMPXX_LIBRARY ) | ||
set(GMPXX_FOUND FALSE) | ||
endif() | ||
|
||
if(GMPXX_FOUND AND NOT TARGET GMP::GMPXX) | ||
add_library(GMP::GMPXX UNKNOWN IMPORTED) | ||
set_target_properties(GMP::GMPXX PROPERTIES | ||
IMPORTED_LOCATION "${GMPXX_LIBRARY}" | ||
INTERFACE_INCLUDE_DIRECTORIES "${GMPXX_INCLUDE_DIR}" | ||
) | ||
endif() | ||
|
||
mark_as_advanced( | ||
GMPXX_INCLUDE_DIR | ||
GMPXX_LIBRARY | ||
) | ||
|
||
set(LIBRARIES_FULL_PATH "@ANDROID_NDK@/@ABY_INSTALL_LIB@/${LIB_PREFIX}gmpxx${LIB_SUFFIX}") | ||
set(LIB_NAME "GMP") |
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,15 @@ | ||
|
||
function(import_into_android_studio IMPORT_LOCATION) | ||
if(ANDROID AND "${${LIB_NAME}_LIBRARY_TYPE}" STREQUAL "SHARED" AND EXISTS "${IMPORT_LOCATION}") | ||
foreach(lib IN LISTS LIBRARIES_FULL_PATH) | ||
get_filename_component(lib_name "${lib}" NAME) | ||
file(COPY "${lib}" DESTINATION "${IMPORT_LOCATION}") | ||
endforeach() | ||
endif() | ||
endfunction() | ||
|
||
if(NOT IMPORT_LOCATION) | ||
import_into_android_studio("${PROJECT_SOURCE_DIR}/../jniLibs/${ANDROID_ABI}") | ||
else() | ||
import_into_android_studio("${IMPORT_LOCATION}") | ||
endif() |
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
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,16 @@ | ||
|
||
|
||
function(import_shared_libs) | ||
set(DEFAULT_IMPORT_LOCATION "${PROJECT_SOURCE_DIR}/../jniLibs") | ||
if(${ARGC} LESS 1) | ||
set(IMPORT_LOCATION "${DEFAULT_IMPORT_LOCATION}") | ||
else() | ||
set(IMPORT_LOCATION "${ARGV0}") | ||
endif() | ||
if(NOT EXISTS "${IMPORT_LOCATION}") | ||
file(MAKE_DIRECTORY "${IMPORT_LOCATION}") | ||
endif() | ||
foreach(lib IN LISTS SHARED_LIBS) | ||
file(COPY "${lib}" DESTINATION "${IMPORT_LOCATION}") | ||
endforeach() | ||
endfunction() |
Submodule boost-cmake
deleted from
f0f64a
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
Oops, something went wrong.