|
@@ -262,11 +262,17 @@ set(SOURCE_FILES_TIME
|
|
${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/time/system-time/SystemTimeParameter.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/time/system-time/SystemTimeParameter.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/time/Date.cpp)
|
|
${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/time/Date.cpp)
|
|
|
|
|
|
|
|
+set(SOURCE_FILES_LINUX_TIME)
|
|
|
|
+set(SOURCE_FILES_WINDOWS_TIME)
|
|
|
|
+
|
|
if (UNIX OR APPLE)
|
|
if (UNIX OR APPLE)
|
|
|
|
+ message("${MODULE_NAME_TIME}: Add UNIX files for time module...")
|
|
set(SOURCE_FILES_LINUX_TIME
|
|
set(SOURCE_FILES_LINUX_TIME
|
|
${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/time/system-time/PosixClock.cpp)
|
|
${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/time/system-time/PosixClock.cpp)
|
|
-else ()
|
|
|
|
- set(SOURCE_FILES_LINUX_TIME)
|
|
|
|
|
|
+else (WIN32)
|
|
|
|
+ message("${MODULE_NAME_TIME}: Add Windows files for time module...")
|
|
|
|
+ set(SOURCE_FILES_WINDOWS_TIME
|
|
|
|
+ ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/time/system-time/WindowsClock.cpp)
|
|
endif ()
|
|
endif ()
|
|
|
|
|
|
set(SOURCE_FILES_TIME_JNI
|
|
set(SOURCE_FILES_TIME_JNI
|
|
@@ -393,7 +399,7 @@ if (${LS_STD_BUILD_WITH_TESTS})
|
|
${CMAKE_CURRENT_SOURCE_DIR}/test/cases/time/system-time/SystemTimeParameterTest.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/test/cases/time/system-time/SystemTimeParameterTest.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/test/cases/time/system-time/SystemTimeTest.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/test/cases/time/system-time/SystemTimeTest.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/test/cases/time/DateTest.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/test/cases/time/DateTest.cpp
|
|
- ${CMAKE_CURRENT_SOURCE_DIR}/test/classes/time/system-time/MockPosixClock.cpp)
|
|
|
|
|
|
+ ${CMAKE_CURRENT_SOURCE_DIR}/test/classes/time/system-time/MockClock.cpp)
|
|
endif ()
|
|
endif ()
|
|
|
|
|
|
####################################################################################################################
|
|
####################################################################################################################
|
|
@@ -635,18 +641,18 @@ endif ()
|
|
message("${PROJECT_NAME}: Building ${MODULE_NAME_TIME} library version ${PROJECT_VERSION}...")
|
|
message("${PROJECT_NAME}: Building ${MODULE_NAME_TIME} library version ${PROJECT_VERSION}...")
|
|
|
|
|
|
if (${LS_STD_BUILD_STATIC})
|
|
if (${LS_STD_BUILD_STATIC})
|
|
- add_library("${MODULE_NAME_TIME}" STATIC ${SOURCE_FILES_TIME} ${SOURCE_FILES_LINUX_TIME})
|
|
|
|
|
|
+ add_library("${MODULE_NAME_TIME}" STATIC ${SOURCE_FILES_TIME} ${SOURCE_FILES_LINUX_TIME} ${SOURCE_FILES_WINDOWS_TIME})
|
|
set_target_properties("${MODULE_NAME_TIME}" PROPERTIES DEBUG_POSTFIX "-d")
|
|
set_target_properties("${MODULE_NAME_TIME}" PROPERTIES DEBUG_POSTFIX "-d")
|
|
endif ()
|
|
endif ()
|
|
|
|
|
|
if (${LS_STD_BUILD_SHARED})
|
|
if (${LS_STD_BUILD_SHARED})
|
|
if (${LS_STD_BUILD_WITH_JNI})
|
|
if (${LS_STD_BUILD_WITH_JNI})
|
|
message("${MODULE_NAME_TIME}: building with JNI...")
|
|
message("${MODULE_NAME_TIME}: building with JNI...")
|
|
- add_library("${MODULE_NAME_TIME}" SHARED ${SOURCE_FILES_TIME} ${SOURCE_FILES_LINUX_TIME} ${SOURCE_FILES_TIME_JNI})
|
|
|
|
|
|
+ add_library("${MODULE_NAME_TIME}" SHARED ${SOURCE_FILES_TIME} ${SOURCE_FILES_LINUX_TIME} ${SOURCE_FILES_WINDOWS_TIME} ${SOURCE_FILES_TIME_JNI})
|
|
target_link_libraries("${MODULE_NAME_TIME}" ${MODULE_NAME_CORE})
|
|
target_link_libraries("${MODULE_NAME_TIME}" ${MODULE_NAME_CORE})
|
|
set_target_properties("${MODULE_NAME_TIME}" PROPERTIES DEBUG_POSTFIX "-d")
|
|
set_target_properties("${MODULE_NAME_TIME}" PROPERTIES DEBUG_POSTFIX "-d")
|
|
else ()
|
|
else ()
|
|
- add_library("${MODULE_NAME_TIME}" SHARED ${SOURCE_FILES_TIME} ${SOURCE_FILES_LINUX_TIME})
|
|
|
|
|
|
+ add_library("${MODULE_NAME_TIME}" SHARED ${SOURCE_FILES_TIME} ${SOURCE_FILES_LINUX_TIME} ${SOURCE_FILES_WINDOWS_TIME})
|
|
target_link_libraries("${MODULE_NAME_TIME}" ${MODULE_NAME_CORE})
|
|
target_link_libraries("${MODULE_NAME_TIME}" ${MODULE_NAME_CORE})
|
|
set_target_properties("${MODULE_NAME_TIME}" PROPERTIES DEBUG_POSTFIX "-d")
|
|
set_target_properties("${MODULE_NAME_TIME}" PROPERTIES DEBUG_POSTFIX "-d")
|
|
endif ()
|
|
endif ()
|