mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-27 23:34:57 -04:00
makepanda: Always build tinydisplay, even without X11, for offline rendering
Closes #1288 Co-authored-by: Brian Gontowski <brian@gontowski.com>
This commit is contained in:
parent
e3cf5be500
commit
6fb2acc9cd
@ -5568,8 +5568,10 @@ if (GetTarget() == 'android' and PkgSkip("EGL")==0 and PkgSkip("GLES")==0 and no
|
||||
# DIRECTORY: panda/src/tinydisplay/
|
||||
#
|
||||
|
||||
if (not RUNTIME and (GetTarget() in ('windows', 'darwin') or PkgSkip("X11")==0) and PkgSkip("TINYDISPLAY")==0):
|
||||
OPTS=['DIR:panda/src/tinydisplay', 'BUILDING:TINYDISPLAY', 'X11']
|
||||
if not RUNTIME and not PkgSkip("TINYDISPLAY"):
|
||||
OPTS=['DIR:panda/src/tinydisplay', 'BUILDING:TINYDISPLAY']
|
||||
if not PkgSkip("X11"):
|
||||
OPTS += ['X11']
|
||||
TargetAdd('p3tinydisplay_composite1.obj', opts=OPTS, input='p3tinydisplay_composite1.cxx')
|
||||
TargetAdd('p3tinydisplay_composite2.obj', opts=OPTS, input='p3tinydisplay_composite2.cxx')
|
||||
TargetAdd('p3tinydisplay_ztriangle_1.obj', opts=OPTS, input='ztriangle_1.cxx')
|
||||
@ -5584,7 +5586,7 @@ if (not RUNTIME and (GetTarget() in ('windows', 'darwin') or PkgSkip("X11")==0)
|
||||
elif GetTarget() == 'windows':
|
||||
TargetAdd('libp3tinydisplay.dll', input='libp3windisplay.dll')
|
||||
TargetAdd('libp3tinydisplay.dll', opts=['WINIMM', 'WINGDI', 'WINKERNEL', 'WINOLDNAMES', 'WINUSER', 'WINMM'])
|
||||
else:
|
||||
elif not PkgSkip("X11"):
|
||||
TargetAdd('libp3tinydisplay.dll', input='p3x11display_composite1.obj')
|
||||
TargetAdd('libp3tinydisplay.dll', opts=['X11'])
|
||||
TargetAdd('libp3tinydisplay.dll', input='p3tinydisplay_composite1.obj')
|
||||
|
Loading…
x
Reference in New Issue
Block a user