diff options
author | Kyle Ambroff <ambroff@lindenlab.com> | 2009-06-26 23:47:36 +0000 |
---|---|---|
committer | Kyle Ambroff <ambroff@lindenlab.com> | 2009-06-26 23:47:36 +0000 |
commit | 6f613fb70ff28ee090dc0871b461a62bd2aa0d08 (patch) | |
tree | 6b8f24c134a8e2e7a3c42910fcf57c304cc88505 /indra | |
parent | e2655d4c4b38ad2336ad136a057d315e31195080 (diff) |
Fix broken Linux server build.
llwindow refactoring in skinning-7 r117641 added dependency on
LLWindowCallbacks in llwindowheadless, which was not being built
for server only builds.
* Include llwindowcallbacks.cpp in all llwindow builds.
* Do not link with libatk and libsdl for server linux builds, since
they are not needed and only packaged for the viewer.
Reviewed with James.
Diffstat (limited to 'indra')
-rw-r--r-- | indra/llwindow/CMakeLists.txt | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/indra/llwindow/CMakeLists.txt b/indra/llwindow/CMakeLists.txt index f5d06b7258..b80080e458 100644 --- a/indra/llwindow/CMakeLists.txt +++ b/indra/llwindow/CMakeLists.txt @@ -35,6 +35,7 @@ include_directories( set(llwindow_SOURCE_FILES llkeyboard.cpp llwindowheadless.cpp + llwindowcallbacks.cpp ) set(llwindow_HEADER_FILES @@ -42,27 +43,28 @@ set(llwindow_HEADER_FILES llkeyboard.h llwindowheadless.h + llwindowcallbacks.h ) set(viewer_SOURCE_FILES llwindow.cpp llmousehandler.cpp - llwindowcallbacks.cpp ) set(viewer_HEADER_FILES llwindow.h - llwindowcallbacks.h llpreeditor.h llmousehandler.h ) # Libraries on which this library depends, needed for Linux builds # Sort by high-level to low-level -set(llwindow_LINK_LIBRARIES - ${UI_LIBRARIES} # for GTK - ${SDL_LIBRARY} - ) +if (NOT LINUX OR VIEWER) + set(llwindow_LINK_LIBRARIES + ${UI_LIBRARIES} # for GTK + ${SDL_LIBRARY} + ) +endif (VIEWER) if (DARWIN) list(APPEND llwindow_SOURCE_FILES @@ -85,7 +87,7 @@ if (DARWIN) ) endif (DARWIN) -if (LINUX) +if (LINUX AND VIEWER) list(APPEND viewer_SOURCE_FILES llkeyboardsdl.cpp llwindowsdl.cpp |