Commit a2b2ad8b by Christophe Geuzaine

DEPRECATED_API -> INTERNAL_DEVELOPER_API

parent 6385f17c
Pipeline #751 passed with stage
in 32 minutes 25 seconds
......@@ -35,11 +35,11 @@ opt(BUILD_SHARED "Enable 'shared' target for building shared GetDP library" OFF)
opt(BUILD_DYNAMIC "Enable dynamic GetDP executable (linked with shared lib)" OFF)
opt(BUILD_ANDROID "Enable Android NDK library target (experimental)" OFF)
opt(BUILD_IOS "Enable iOS (ARM) library target (experimental)" OFF)
opt(DEPRECATED_API "Enable deprecated internal developer API" ON)
opt(FORTRAN "Enable Fortran (needed for Arpack/Sparskit/Zitsol & Bessel)" ${DEFAULT})
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)" ON)
opt(KERNEL "Enable kernel (required for actual computations)" ON)
opt(MPI "Enable MPI parallelization (with PETSc/SLEPc)" OFF)
opt(MULTIHARMONIC "Enable multi-harmonic support" OFF)
......@@ -73,7 +73,7 @@ set(GETDP_SHORT_LICENSE "GNU General Public License")
set(GETDP_API Kernel/getdp.h)
set(GETDP_DEPRECATED_API Kernel/getdp.h
set(GETDP_INTERNAL_DEVELOPER_API Kernel/getdp.h
${CMAKE_CURRENT_BINARY_DIR}/Common/GetDPConfig.h
${CMAKE_CURRENT_BINARY_DIR}/Common/GetDPVersion.h)
......@@ -902,7 +902,7 @@ if(WIN32 OR CYGWIN)
set(GETDP_INC .)
if(CYGWIN)
unix2dos(GETDP_API)
unix2dos(GETDP_DEPRECATED_API)
unix2dos(GETDP_INTERNAL_DEVELOPER_API)
unix2dos(WELCOME_FILE)
unix2dos(LICENSE_FILE)
unix2dos(CREDITS_FILE)
......@@ -930,9 +930,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_DEPRECATED_API)
install(FILES ${GETDP_DEPRECATED_API} DESTINATION ${GETDP_INC}/getdp)
endif(ENABLE_DEPRECATED_API)
if(ENABLE_INTERNAL_DEVELOPER_API)
install(FILES ${GETDP_INTERNAL_DEVELOPER_API} DESTINATION ${GETDP_INC}/getdp)
endif(ENABLE_INTERNAL_DEVELOPER_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})
......@@ -972,13 +972,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_DEPRECATED_API)
foreach(FILE ${GETDP_DEPRECATED_API})
if(ENABLE_INTERNAL_DEVELOPER_API)
foreach(FILE ${GETDP_INTERNAL_DEVELOPER_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_DEPRECATED_API)
endif(ENABLE_INTERNAL_DEVELOPER_API)
find_program(MAKEINFO makeinfo)
if(MAKEINFO)
......@@ -1046,13 +1046,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_DEPRECATED_API)
foreach(FILE ${GETDP_DEPRECATED_API})
if(ENABLE_INTERNAL_DEVELOPER_API)
foreach(FILE ${GETDP_INTERNAL_DEVELOPER_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_DEPRECATED_API)
endif(ENABLE_INTERNAL_DEVELOPER_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