Commit 8623957f authored by Pascal Palenda's avatar Pascal Palenda
Browse files

Refine the ini implementation logic

parent 6e931d72
......@@ -27,6 +27,7 @@ option (ITA_BASE_WITH_REGULAR_EXPRESSIONS "Build with old regular expressions co
option (ITA_BASE_WITH_CONFIG_OLD_IMPL
"Build with old INI file configuration implementation (uses legacy regular expressions)" OFF
)
option (ITA_BASE_WITH_CONFIG_SIMPLE_INI "Build with new INI file configuration implementation (uses simpleINI lib)" ON)
option (
ITA_BASE_WITH_OLD_RAVEN_OPS
"Build with old ITAOps helper functions implementation (legacy code for RAVEN compatibility, adds GPL-licensed libs!)"
......
......@@ -3,6 +3,7 @@ target_sources (
PRIVATE ITAAudiofileCommon.cpp
ITABlockMath.cpp
ITAClock.cpp
ITAConfigUtils.cpp
ITACriticalSection.cpp
ITACriticalSectionImpl.h
ITACriticalSectionPosixImpl.h
......@@ -28,7 +29,7 @@ if (WIN32) # Win32 implementations
target_sources (${PROJECT_NAME} PRIVATE ITAHPT.cpp ITAMutex.cpp ITATimer.cpp)
else ()
add_subdirectory (simpleini)
target_sources (${PROJECT_NAME} PRIVATE ITAPosixRealtimeClock.cpp ITAConfigUtilsSimpleIniImpl.cpp)
target_sources (${PROJECT_NAME} PRIVATE ITAPosixRealtimeClock.cpp)
target_compile_definitions (${PROJECT_NAME} PRIVATE USE_SIMPLEINI)
endif ()
......@@ -86,6 +87,10 @@ endif ()
if (ITA_BASE_WITH_CONFIG_OLD_IMPL AND NOT ITA_BASE_WITH_CONFIG_SIMPLE_INI)
target_sources (${PROJECT_NAME} PRIVATE ITAConfigUtils.cpp ITAConfigUtilsWin32Impl.cpp)
else ()
add_subdirectory (simpleini)
target_sources (${PROJECT_NAME} PRIVATE ITAConfigUtilsSimpleIniImpl.cpp)
target_compile_definitions (${PROJECT_NAME} PRIVATE USE_SIMPLEINI)
endif ()
add_subdirectory (ITABase)
......
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