PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/cmake/UI.cmake

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 64 lines | 58 code | 5 blank | 1 comment | 5 complexity | e7b919ab6fc452ab1b02baea90252dd8 MD5 | raw file
 1# -*- cmake -*-
 2include(Prebuilt)
 3
 4if (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)
33else (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}/include
55      ${LIBS_PREBUILT_DIR}/include
56      )
57  foreach(include ${${LL_ARCH}_INCLUDES})
58      include_directories(${LIBS_PREBUILT_DIR}/include/${include})
59  endforeach(include)
60endif (STANDALONE)
61
62if (LINUX)
63  add_definitions(-DLL_GTK=1 -DLL_X11=1)
64endif (LINUX)