blob: 3e41a07f879efaa8b0ac0703e4030645329a7cc6 [file] [log] [blame]
if (APPLE)
set(oswindow-platform-sources
osx/OSXWindow.mm)
elseif (WIN32)
set(oswindow-platform-sources
windows/WindowsTimer.cpp
windows/Windows_system_utils.cpp
windows/win32/Win32Window.cpp)
else()
set(oswindow-platform-sources
x11/X11Window.cpp)
endif()
add_library(
OSWindow
OSWindow.cpp
${oswindow-platform-sources})
target_link_libraries(
OSWindow
PRIVATE
aemu-base.headers
gfxstream_egl_headers)
target_include_directories(
OSWindow
PUBLIC
.
PRIVATE
${GFXSTREAM_REPO_ROOT}/include
${GFXSTREAM_REPO_ROOT}/third-party/glm/include)
if (LINUX)
target_link_libraries(
OSWindow
PRIVATE
X11
)
elseif (APPLE)
target_link_libraries(
OSWindow
PRIVATE
"-framework AppKit -framework QuartzCore")
endif()