set(UNITY_SRC ../plugins/unityshell/src)

set (CFLAGS
     ${CACHED_UNITY_DEPS_CFLAGS}
     ${CACHED_UNITY_DEPS_CFLAGS_OTHER}
     ${PIC_FLAGS}
     )

string (REPLACE ";" " " CFLAGS "${CFLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CFLAGS}")

set (LIBS ${CACHED_UNITY_DEPS_LDFLAGS} ${UNITY_STANDALONE_LADD})

include_directories (.. ../services ../UnityCore ${UNITY_SRC} ${CMAKE_BINARY_DIR})

#
# Headers & Sources
#
set (LOCKSCREEN_SOURCES
     BackgroundSettings.cpp
     CofView.cpp
     LockScreenController.cpp
     LockScreenSettings.cpp
     LockScreenShield.cpp
     LockScreenShieldFactory.cpp
     LockScreenPanel.cpp
     LockScreenAcceleratorController.cpp
     LockScreenAccelerators.cpp
     ScreenSaverDBusManager.cpp
     UserAuthenticatorPam.cpp
     UserPromptView.cpp
     )

add_library (lockscreen-lib STATIC ${LOCKSCREEN_SOURCES})
add_dependencies (lockscreen-lib unity-core-${UNITY_API_VERSION} unity-shared pam)
add_pch(pch/lockscreen_pch.hh lockscreen-lib)
