Commit 84aecf8a authored by Christophe Geuzaine's avatar Christophe Geuzaine

INTERNAL_DEVELOPER_API -> PRIVATE_API

parent 635d6ca8
Pipeline #1646 passed with stage
in 10 minutes 10 seconds
......@@ -39,7 +39,6 @@ opt(FORTRAN "Enable Fortran (needed for Arpack/Sparskit/Zitsol & Bessel)" ${DEFA
opt(GMSH "Enable Gmsh functions (for field interpolation)" ${DEFAULT})
opt(GSL "Enable GSL functions (for some built-in functions)" ${DEFAULT})
opt(HPDDM "Enable HPDDM support" ${DEFAULT})
opt(INTERNAL_DEVELOPER_API "Enable internal developer API (will be off be default)" OFF)
opt(KERNEL "Enable kernel (required for actual computations)" ON)
opt(MMA "Enable MMA optimizer" ${DEFAULT})
opt(MPI "Enable MPI parallelization (with PETSc/SLEPc)" OFF)
......@@ -49,6 +48,7 @@ opt(NX "Enable proprietary NX extension" OFF)
opt(OCTAVE "Enable Octave functions" OFF)
opt(OPENMP "Enable OpenMP parallelization of some functions (experimental)" OFF)
opt(PETSC "Enable PETSc linear solver" ${DEFAULT})
opt(PRIVATE_API "Enable private API" OFF)
opt(PYTHON "Enable Python functions" ${DEFAULT})
opt(SLEPC "Enable SLEPc eigensolver" ${DEFAULT})
opt(SMALLFEM "Enable experimental SmallFem assembler" OFF)
......@@ -74,11 +74,11 @@ set(GETDP_SHORT_LICENSE "GNU General Public License")
set(GETDP_API Kernel/getdp.h)
if(ENABLE_INTERNAL_DEVELOPER_API)
set(GETDP_INTERNAL_DEVELOPER_API Kernel/getdp.h
if(ENABLE_PRIVATE_API)
set(GETDP_PRIVATE_API Kernel/getdp.h
${CMAKE_CURRENT_BINARY_DIR}/Common/GetDPConfig.h
${CMAKE_CURRENT_BINARY_DIR}/Common/GetDPVersion.h)
endif(ENABLE_INTERNAL_DEVELOPER_API)
endif(ENABLE_PRIVATE_API)
if(${CMAKE_MAJOR_VERSION} GREATER 2)
string(TIMESTAMP DATE "%Y%m%d")
......@@ -679,7 +679,11 @@ endif(MSVC)
# disable compile optimization on some known problematic files
check_cxx_compiler_flag("-O0" NOOPT)
if(NOOPT OR ENABLE_BUILD_IOS)
file(GLOB_RECURSE NON_OPTIMIZED_SRC contrib/NR/*.cpp)
if(ENABLE_BUILD_IOS)
file(GLOB_RECURSE NON_OPTIMIZED_SRC contrib/NR/*.cpp */*.cpp)
else(ENABLE_BUILD_IOS)
file(GLOB_RECURSE NON_OPTIMIZED_SRC contrib/NR/*.cpp)
endif(ENABLE_BUILD_IOS)
set_compile_flags(NON_OPTIMIZED_SRC "-O0")
endif(NOOPT OR ENABLE_BUILD_IOS)
......@@ -915,7 +919,7 @@ if(WIN32 OR CYGWIN)
set(GETDP_INC .)
if(CYGWIN)
unix2dos(GETDP_API)
unix2dos(GETDP_INTERNAL_DEVELOPER_API)
unix2dos(GETDP_PRIVATE_API)
unix2dos(WELCOME_FILE)
unix2dos(LICENSE_FILE)
unix2dos(CREDITS_FILE)
......@@ -943,9 +947,9 @@ if(ENABLE_BUILD_SHARED OR ENABLE_BUILD_DYNAMIC)
endif(ENABLE_BUILD_SHARED OR ENABLE_BUILD_DYNAMIC)
if(ENABLE_BUILD_LIB OR ENABLE_BUILD_SHARED OR ENABLE_BUILD_DYNAMIC)
install(FILES ${GETDP_API} DESTINATION ${GETDP_INC})
if(ENABLE_INTERNAL_DEVELOPER_API)
install(FILES ${GETDP_INTERNAL_DEVELOPER_API} DESTINATION ${GETDP_INC}/getdp)
endif(ENABLE_INTERNAL_DEVELOPER_API)
if(ENABLE_PRIVATE_API)
install(FILES ${GETDP_PRIVATE_API} DESTINATION ${GETDP_INC}/getdp)
endif(ENABLE_PRIVATE_API)
endif(ENABLE_BUILD_LIB OR ENABLE_BUILD_SHARED OR ENABLE_BUILD_DYNAMIC)
install(FILES ${WELCOME_FILE} DESTINATION ${GETDP_DOC} RENAME README.txt)
install(FILES ${LICENSE_FILE} DESTINATION ${GETDP_DOC})
......@@ -985,13 +989,13 @@ foreach(FILE ${GETDP_API})
-E copy_if_different ${FILE} ${CMAKE_CURRENT_BINARY_DIR}/Headers/
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
endforeach(FILE)
if(ENABLE_INTERNAL_DEVELOPER_API)
foreach(FILE ${GETDP_INTERNAL_DEVELOPER_API})
if(ENABLE_PRIVATE_API)
foreach(FILE ${GETDP_PRIVATE_API})
add_custom_command(TARGET get_headers POST_BUILD COMMAND ${CMAKE_COMMAND}
-E copy_if_different ${FILE} ${CMAKE_CURRENT_BINARY_DIR}/Headers/getdp/
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
endforeach(FILE)
endif(ENABLE_INTERNAL_DEVELOPER_API)
endif(ENABLE_PRIVATE_API)
find_program(MAKEINFO makeinfo)
if(MAKEINFO)
......@@ -1059,13 +1063,13 @@ if(APPLE AND ENABLE_BUILD_LIB)
${FILE} ${CMAKE_CURRENT_BINARY_DIR}/getdp.framework/Headers/
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
endforeach(FILE)
if(ENABLE_INTERNAL_DEVELOPER_API)
foreach(FILE ${GETDP_INTERNAL_DEVELOPER_API})
if(ENABLE_PRIVATE_API)
foreach(FILE ${GETDP_PRIVATE_API})
add_custom_command(TARGET framework POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy
${FILE} ${CMAKE_CURRENT_BINARY_DIR}/getdp.framework/Headers/
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
endforeach(FILE)
endif(ENABLE_INTERNAL_DEVELOPER_API)
endif(ENABLE_PRIVATE_API)
endif(APPLE AND ENABLE_BUILD_LIB)
set(CPACK_PACKAGE_VENDOR "Patrick Dular and Christophe Geuzaine")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment