mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
makepanda: Fix building without bison
New prebuilt parser.yxx.cxx does an #include of parser.yxx.h
This commit is contained in:
parent
86e0915621
commit
2edf619247
@ -1421,6 +1421,7 @@ def CompileCxx(obj,src,opts):
|
|||||||
def CompileBison(wobj, wsrc, opts):
|
def CompileBison(wobj, wsrc, opts):
|
||||||
ifile = os.path.basename(wsrc)
|
ifile = os.path.basename(wsrc)
|
||||||
wdsth = GetOutputDir() + "/include/" + ifile[:-4] + ".h"
|
wdsth = GetOutputDir() + "/include/" + ifile[:-4] + ".h"
|
||||||
|
wdsth2 = GetOutputDir() + "/tmp/" + ifile + ".h"
|
||||||
wdstc = GetOutputDir() + "/tmp/" + ifile + ".cxx"
|
wdstc = GetOutputDir() + "/tmp/" + ifile + ".cxx"
|
||||||
pre = GetValueOption(opts, "BISONPREFIX_")
|
pre = GetValueOption(opts, "BISONPREFIX_")
|
||||||
bison = GetBison()
|
bison = GetBison()
|
||||||
@ -1431,6 +1432,7 @@ def CompileBison(wobj, wsrc, opts):
|
|||||||
os.path.isfile(base + '.cxx.prebuilt'):
|
os.path.isfile(base + '.cxx.prebuilt'):
|
||||||
CopyFile(wdstc, base + '.cxx.prebuilt')
|
CopyFile(wdstc, base + '.cxx.prebuilt')
|
||||||
CopyFile(wdsth, base + '.h.prebuilt')
|
CopyFile(wdsth, base + '.h.prebuilt')
|
||||||
|
CopyFile(wdsth2, base + '.h.prebuilt')
|
||||||
else:
|
else:
|
||||||
exit('Could not find bison!')
|
exit('Could not find bison!')
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user