mirror of
https://github.com/panda3d/panda3d.git
synced 2026-04-22 06:28:43 -05:00
add X11
This commit is contained in:
@@ -625,6 +625,13 @@
|
||||
#define SDL_LIBS
|
||||
#defer HAVE_SDL $[libtest $[SDL_LPATH],$[SDL_LIBS]]
|
||||
|
||||
// X11 may need to be linked against for tinydisplay, but probably
|
||||
// only on a Linux platform.
|
||||
#define X11_IPATH
|
||||
#define X11_LPATH /usr/X11R6/lib
|
||||
#define X11_LIBS X11
|
||||
#defer HAVE_X11 $[libtest $[X11_LPATH],$[X11_LIBS]]
|
||||
|
||||
// How about GLX?
|
||||
#define GLX_IPATH
|
||||
#define GLX_LPATH
|
||||
|
||||
@@ -135,6 +135,14 @@
|
||||
#define sdl_framework $[SDL_FRAMEWORK]
|
||||
#endif
|
||||
|
||||
#if $[HAVE_X11]
|
||||
#define x11_ipath $[wildcard $[X11_IPATH]]
|
||||
#define x11_lpath $[wildcard $[X11_LPATH]]
|
||||
#define x11_cflags $[X11_CFLAGS]
|
||||
#define x11_libs $[X11_LIBS]
|
||||
#define x11_framework $[X11_FRAMEWORK]
|
||||
#endif
|
||||
|
||||
#if $[HAVE_MESA]
|
||||
#define mesa_ipath $[wildcard $[MESA_IPATH]]
|
||||
#define mesa_lpath $[wildcard $[MESA_LPATH]]
|
||||
|
||||
@@ -6,6 +6,9 @@
|
||||
dtoolutil:c dtoolbase:c dtool:m prc:c
|
||||
|
||||
#define USE_PACKAGES sdl
|
||||
#if $[UNIX_PLATFORM]
|
||||
#define USE_PACKAGES $[USE_PACKAGES] x11
|
||||
#endif
|
||||
|
||||
#begin lib_target
|
||||
#define TARGET tinydisplay
|
||||
|
||||
Reference in New Issue
Block a user