• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1if (APPLE)
2    set(oswindow-platform-sources
3        osx/OSXWindow.mm)
4elseif (WIN32)
5    set(oswindow-platform-sources
6        windows/WindowsTimer.cpp
7        windows/Windows_system_utils.cpp
8        windows/win32/Win32Window.cpp)
9elseif(QNX)
10    set(oswindow-platform-sources
11        qnx/QNXWindow.cpp)
12else()
13    set(oswindow-platform-sources
14        x11/X11Window.cpp)
15endif()
16
17add_library(
18    OSWindow
19    OSWindow.cpp
20    ${oswindow-platform-sources})
21target_link_libraries(
22    OSWindow
23    PRIVATE
24    aemu-base.headers
25    gfxstream_egl_headers)
26target_include_directories(
27    OSWindow
28    PUBLIC
29    .
30    PRIVATE
31    ${GFXSTREAM_REPO_ROOT}/include
32    ${GFXSTREAM_REPO_ROOT}/third-party/glm/include)
33
34if (LINUX)
35    target_link_libraries(
36        OSWindow
37        PRIVATE
38        X11
39        )
40elseif (APPLE)
41    target_link_libraries(
42        OSWindow
43        PRIVATE
44        "-framework AppKit -framework QuartzCore")
45endif()
46