# Copyright (c) 2025 Dominic Masters
# 
# This software is released under the MIT License.
# https://opensource.org/licenses/MIT

# Sources
target_sources(${DUSK_LIBRARY_TARGET_NAME}
  PUBLIC
    time.c
)

# Compiler defs
if(DUSK_TARGET_SYSTEM STREQUAL "linux")
  target_compile_definitions(${DUSK_LIBRARY_TARGET_NAME}
    PUBLIC
      TIME_SDL2=1
      TIME_FIXED=0
  )
elseif(DUSK_TARGET_SYSTEM STREQUAL "psp")
  target_compile_definitions(${DUSK_LIBRARY_TARGET_NAME}
    PUBLIC
      TIME_FIXED=1
  )
endif()