diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/cmake/UI.cmake | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/linden/indra/cmake/UI.cmake b/linden/indra/cmake/UI.cmake new file mode 100644 index 0000000..f529f5b --- /dev/null +++ b/linden/indra/cmake/UI.cmake | |||
@@ -0,0 +1,64 @@ | |||
1 | # -*- cmake -*- | ||
2 | include(Prebuilt) | ||
3 | |||
4 | if (STANDALONE) | ||
5 | include(FindPkgConfig) | ||
6 | |||
7 | if (LINUX) | ||
8 | set(PKGCONFIG_PACKAGES | ||
9 | atk | ||
10 | cairo | ||
11 | gdk-2.0 | ||
12 | gdk-pixbuf-2.0 | ||
13 | glib-2.0 | ||
14 | gmodule-2.0 | ||
15 | gtk+-2.0 | ||
16 | gthread-2.0 | ||
17 | libpng | ||
18 | pango | ||
19 | pangoft2 | ||
20 | pangox | ||
21 | pangoxft | ||
22 | sdl | ||
23 | ) | ||
24 | endif (LINUX) | ||
25 | |||
26 | foreach(pkg ${PKGCONFIG_PACKAGES}) | ||
27 | pkg_check_modules(${pkg} REQUIRED ${pkg}) | ||
28 | include_directories(${${pkg}_INCLUDE_DIRS}) | ||
29 | link_directories(${${pkg}_LIBRARY_DIRS}) | ||
30 | list(APPEND UI_LIBRARIES ${${pkg}_LIBRARIES}) | ||
31 | add_definitions(${${pkg}_CFLAGS_OTHERS}) | ||
32 | endforeach(pkg) | ||
33 | else (STANDALONE) | ||
34 | use_prebuilt_binary(gtk-atk-pango-glib) | ||
35 | if (LINUX) | ||
36 | set(UI_LIBRARIES | ||
37 | atk-1.0 | ||
38 | gdk-x11-2.0 | ||
39 | gdk_pixbuf-2.0 | ||
40 | Xinerama | ||
41 | glib-2.0 | ||
42 | gmodule-2.0 | ||
43 | gobject-2.0 | ||
44 | gthread-2.0 | ||
45 | gtk-x11-2.0 | ||
46 | pango-1.0 | ||
47 | pangoft2-1.0 | ||
48 | pangox-1.0 | ||
49 | pangoxft-1.0 | ||
50 | ) | ||
51 | endif (LINUX) | ||
52 | |||
53 | include_directories ( | ||
54 | ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include | ||
55 | ${LIBS_PREBUILT_DIR}/include | ||
56 | ) | ||
57 | foreach(include ${${LL_ARCH}_INCLUDES}) | ||
58 | include_directories(${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/${include}) | ||
59 | endforeach(include) | ||
60 | endif (STANDALONE) | ||
61 | |||
62 | if (LINUX) | ||
63 | add_definitions(-DLL_GTK=1 -DLL_X11=1) | ||
64 | endif (LINUX) | ||