summaryrefslogtreecommitdiff
path: root/indra/cmake/UI.cmake
diff options
context:
space:
mode:
authorBryan O'Sullivan <bos@lindenlab.com>2008-06-02 21:14:31 +0000
committerBryan O'Sullivan <bos@lindenlab.com>2008-06-02 21:14:31 +0000
commit9db949eec327df4173fde3de934a87bedb0db13c (patch)
treeaeffa0f0e68b1d2ceb74d460cbbd22652c9cd159 /indra/cmake/UI.cmake
parent419e13d0acaabf5e1e02e9b64a07648bce822b2f (diff)
svn merge -r88066:88786 svn+ssh://svn.lindenlab.com/svn/linden/branches/cmake-9-merge
dataserver-is-deprecated for-fucks-sake-whats-with-these-commit-markers
Diffstat (limited to 'indra/cmake/UI.cmake')
-rw-r--r--indra/cmake/UI.cmake62
1 files changed, 62 insertions, 0 deletions
diff --git a/indra/cmake/UI.cmake b/indra/cmake/UI.cmake
new file mode 100644
index 0000000000..7d2955ce36
--- /dev/null
+++ b/indra/cmake/UI.cmake
@@ -0,0 +1,62 @@
+# -*- cmake -*-
+
+if (STANDALONE)
+ include(FindPkgConfig)
+
+ if (LINUX)
+ set(PKGCONFIG_PACKAGES
+ atk
+ cairo
+ gdk-2.0
+ gdk-pixbuf-2.0
+ glib-2.0
+ gmodule-2.0
+ gtk+-2.0
+ gthread-2.0
+ libpng
+ pango
+ pangoft2
+ pangox
+ pangoxft
+ sdl
+ )
+ endif (LINUX)
+
+ foreach(pkg ${PKGCONFIG_PACKAGES})
+ pkg_check_modules(${pkg} REQUIRED ${pkg})
+ include_directories(${${pkg}_INCLUDE_DIRS})
+ link_directories(${${pkg}_LIBRARY_DIRS})
+ list(APPEND UI_LIBRARIES ${${pkg}_LIBRARIES})
+ add_definitions(${${pkg}_CFLAGS_OTHERS})
+ endforeach(pkg)
+else (STANDALONE)
+ if (LINUX)
+ set(UI_LIBRARIES
+ atk-1.0
+ gdk-x11-2.0
+ gdk_pixbuf-2.0
+ Xinerama
+ glib-2.0
+ gmodule-2.0
+ gobject-2.0
+ gthread-2.0
+ gtk-x11-2.0
+ pango-1.0
+ pangoft2-1.0
+ pangox-1.0
+ pangoxft-1.0
+ )
+ endif (LINUX)
+
+ include_directories (
+ ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include
+ ${LIBS_PREBUILT_DIR}/include
+ )
+ foreach(include ${${LL_ARCH}_INCLUDES})
+ include_directories(${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/${include})
+ endforeach(include)
+endif (STANDALONE)
+
+if (LINUX)
+ add_definitions(-DLL_GTK=1 -DLL_X11=1)
+endif (LINUX)