otherMakePanda.py 204 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721
  1. #!/usr/bin/python
  2. ########################################################################
  3. #
  4. # Caution: there are two separate, independent build systems:
  5. # 'makepanda', and 'ppremake'. Use one or the other, do not attempt
  6. # to use both. This file is part of the 'makepanda' system.
  7. #
  8. # To build panda using this script, type 'makepanda.py' on unix
  9. # or 'makepanda.bat' on windows, and examine the help-text.
  10. # Then run the script again with the appropriate options to compile
  11. # panda3d.
  12. #
  13. ########################################################################
  14. import sys,os,time,stat,string,re,getopt,cPickle
  15. from glob import glob
  16. ########################################################################
  17. ##
  18. ## Utility Routines
  19. ##
  20. ## filedate(f) - returns the last modified date of the specified file.
  21. ## youngest(f1,f2...) - returns date of most recently modified file.
  22. ## older(f,f1,f2...) - return true if f is older than all the others.
  23. ## xpaths(pre,pathlist,suf) - appends prefix and suffix to every path.
  24. ##
  25. ########################################################################
  26. global FileDateCache
  27. FileDateCache = {}
  28. def filedate(path):
  29. global FileDateCache
  30. if FileDateCache.has_key(path):
  31. return FileDateCache[path]
  32. try: date = os.path.getmtime(path)
  33. except: date = 0
  34. FileDateCache[path] = date
  35. return date
  36. def updatefiledate(path):
  37. global FileDateCache
  38. try: date = os.path.getmtime(path)
  39. except: date = 0
  40. FileDateCache[path] = date
  41. def youngest(files):
  42. if type(files) == str:
  43. source = filedate(files)
  44. if (source==0):
  45. sys.exit("Error: source file not readable: "+files)
  46. return source
  47. result = 0
  48. for sfile in files:
  49. source = youngest(sfile)
  50. if (source > result): result = source
  51. return result
  52. def older(file,others):
  53. return filedate(file)<youngest(others)
  54. def xpaths(prefix,base,suffix):
  55. if type(base) == str:
  56. return prefix + base + suffix
  57. result = []
  58. for x in base:
  59. result.append(xpaths(prefix,x,suffix))
  60. return result
  61. if sys.platform == "win32":
  62. import _winreg
  63. def GetRegistryKey(path, subkey):
  64. k1=0
  65. key=0
  66. try:
  67. key = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, path, 0, _winreg.KEY_READ)
  68. k1, k2 = _winreg.QueryValueEx(key, subkey)
  69. except: pass
  70. if (key!=0): _winreg.CloseKey(key)
  71. return k1
  72. def oslocalcmd(cd, cmd):
  73. if VERBOSE:
  74. if cd != ".":
  75. print "( cd "+cd+"; "+cmd+" )"
  76. else:
  77. print cmd
  78. if cd != ".":
  79. base=os.getcwd()
  80. os.chdir(cd)
  81. sys.stdout.flush()
  82. if sys.platform == "win32":
  83. exe = cmd.split()[0]
  84. if os.path.isfile(exe)==0:
  85. for i in os.environ["PATH"].split(";"):
  86. if os.path.isfile(os.path.join(i, exe)):
  87. exe = os.path.join(i, exe)
  88. break
  89. if os.path.isfile(exe)==0:
  90. sys.exit("Cannot find "+exe+" on search path")
  91. res = os.spawnl(os.P_WAIT, exe, cmd)
  92. else:
  93. res = os.system(cmd)
  94. if res != 0:
  95. if not VERBOSE:
  96. print "\n------------- Command Failed ---------------"
  97. if cd != ".":
  98. print "( cd "+cd+"; "+cmd+" )"
  99. else:
  100. print cmd
  101. print "--------------------------------------------"
  102. sys.exit(res)
  103. if cd != ".":
  104. os.chdir(base)
  105. def oscmd(cmd):
  106. oslocalcmd(".",cmd)
  107. def osmove(src,dst):
  108. """
  109. Move src file or directory to dst. dst will be removed if it
  110. exists (i.e. overwritten).
  111. """
  112. global VERBOSE
  113. if VERBOSE >= 1:
  114. print "Moving \"%s\" to \"%s\""%(src, dst)
  115. try: os.remove(dst)
  116. except OSError: pass
  117. os.rename(src, dst)
  118. def replaceInFile(srcPath, dstPath, replaceA, withB):
  119. global VERBOSE
  120. if VERBOSE >= 1:
  121. print "Replacing '%s' in \"%s\" with '%s' and writing it to \"%s\""%(
  122. replaceA, srcPath, withB, dstPath)
  123. f=file(srcPath, "rb")
  124. data=f.read()
  125. f.close()
  126. data=data.replace(replaceA, withB)
  127. f=file(dstPath, "wb")
  128. f.write(data)
  129. f.close()
  130. def buildingwhat(opts):
  131. building = 0
  132. for x in opts:
  133. if (x[:9]=="BUILDING_"): building = x[9:]
  134. return building
  135. def ReadFile(wfile):
  136. try:
  137. srchandle = open(wfile, "rb")
  138. data = srchandle.read()
  139. srchandle.close()
  140. return data
  141. except: sys.exit("Cannot read "+wfile)
  142. def WriteFile(wfile,data):
  143. try:
  144. dsthandle = open(wfile, "wb")
  145. dsthandle.write(data)
  146. dsthandle.close()
  147. except: sys.exit("Cannot write "+wfile)
  148. def prettyTime(t):
  149. t = int(t)
  150. hours = t/3600
  151. t -= hours*3600
  152. minutes = t/60
  153. t -= minutes*60
  154. seconds = t
  155. if (hours): return str(hours)+" hours "+str(minutes)+" min"
  156. if (minutes): return str(minutes)+" min "+str(seconds)+" sec"
  157. return str(seconds)+" sec"
  158. def MakeDirectory(path):
  159. if os.path.isdir(path): return 0
  160. os.mkdir(path)
  161. ########################################################################
  162. ##
  163. ## Default options:
  164. ##
  165. ## You might be tempted to change the defaults by editing them
  166. ## here. Don't do it. Instead, create a script that compiles
  167. ## panda with your preferred options.
  168. ##
  169. ########################################################################
  170. if (sys.platform == "win32"): COMPILERS=["MSVC7"]
  171. if (sys.platform == "linux2"): COMPILERS=["LINUXA"]
  172. PREFIX="built"
  173. COMPILER=COMPILERS[0]
  174. OPTIMIZE="3"
  175. INSTALLER=0
  176. GENMAN=0
  177. PPGAME=0
  178. COMPLETE=0
  179. THIRDPARTY="thirdparty"
  180. VERSION="0.0.0"
  181. VERBOSE=1
  182. COMPRESSOR="zlib"
  183. PACKAGES=["ZLIB","PNG","JPEG","TIFF","VRPN","FMOD","NVIDIACG","HELIX","NSPR",
  184. "SSL","FREETYPE","FFTW","MILES","MAYA5","MAYA6","MAYA65","MAX5","MAX6","MAX7"]
  185. OMIT=PACKAGES[:]
  186. WARNINGS=[]
  187. DIRECTXSDK = None
  188. PythonSDK = None
  189. MAYASDK = {}
  190. MAXSDK = {}
  191. MAXSDKCS = {}
  192. try:
  193. # If there is a makepandaPreferences.py, import it:
  194. from makepandaPreferences import *
  195. except ImportError:
  196. # If it's not there, no problem:
  197. pass
  198. STARTTIME=time.time()
  199. ##########################################################################################
  200. #
  201. # Read the default version number out of dtool/PandaVersion.pp
  202. #
  203. ##########################################################################################
  204. try:
  205. f = file("dtool/PandaVersion.pp","r")
  206. pattern = re.compile('^[ \t]*[#][ \t]*define[ \t]+PANDA_VERSION[ \t]+([0-9]+)[ \t]+([0-9]+)[ \t]+([0-9]+)')
  207. for line in f:
  208. match = pattern.match(line,0)
  209. if (match):
  210. VERSION = match.group(1)+"."+match.group(2)+"."+match.group(3)
  211. break
  212. f.close()
  213. except: pass
  214. ##########################################################################################
  215. #
  216. # Initialize DTOOLCONFIG based on platform (Win/Unix)
  217. #
  218. # These are the defaults for the two broad classes of operating system.
  219. # Subsequent analysis will cause these values to be tweaked.
  220. #
  221. ##########################################################################################
  222. DTOOLDEFAULTS=[
  223. #_Variable_________________________Windows___________________Unix__________
  224. ("HAVE_PYTHON", '1', '1'),
  225. ("PYTHON_FRAMEWORK", 'UNDEF', 'UNDEF'),
  226. ("COMPILE_IN_DEFAULT_FONT", '1', '1'),
  227. ("HAVE_MAYA", '1', '1'),
  228. ("MAYA_PRE_5_0", 'UNDEF', 'UNDEF'),
  229. ("HAVE_SOFTIMAGE", 'UNDEF', 'UNDEF'),
  230. ("SSL_097", 'UNDEF', 'UNDEF'),
  231. ("REPORT_OPENSSL_ERRORS", '1', '1'),
  232. ("HAVE_GL", '1', '1'),
  233. ("HAVE_MESA", 'UNDEF', 'UNDEF'),
  234. ("MESA_MGL", 'UNDEF', 'UNDEF'),
  235. ("HAVE_SGIGL", 'UNDEF', 'UNDEF'),
  236. ("HAVE_GLX", 'UNDEF', '1'),
  237. ("HAVE_WGL", '1', 'UNDEF'),
  238. ("HAVE_DX", '1', 'UNDEF'),
  239. ("HAVE_CHROMIUM", 'UNDEF', 'UNDEF'),
  240. ("HAVE_THREADS", 'UNDEF', 'UNDEF'),
  241. ("HAVE_AUDIO", '1', '1'),
  242. ("NOTIFY_DEBUG", 'UNDEF', 'UNDEF'),
  243. ("DO_PSTATS", 'UNDEF', 'UNDEF'),
  244. ("DO_COLLISION_RECORDING", 'UNDEF', 'UNDEF'),
  245. ("TRACK_IN_INTERPRETER", 'UNDEF', 'UNDEF'),
  246. ("DO_MEMORY_USAGE", 'UNDEF', 'UNDEF'),
  247. ("DO_PIPELINING", 'UNDEF', 'UNDEF'),
  248. ("EXPORT_TEMPLATES", 'yes', 'yes'),
  249. ("LINK_IN_GL", 'UNDEF', 'UNDEF'),
  250. ("LINK_IN_PHYSICS", 'UNDEF', 'UNDEF'),
  251. ("DEFAULT_PATHSEP", '";"', '":"'),
  252. ("DEFAULT_PRC_DIR", '"<auto>etc"', '"<auto>etc"'),
  253. ("PRC_DIR_ENVVARS", '"PANDA_PRC_DIR"', '"PANDA_PRC_DIR"'),
  254. ("PRC_PATH_ENVVARS", '"PANDA_PRC_PATH"', '"PANDA_PRC_PATH"'),
  255. ("PRC_PATTERNS", '"*.prc"', '"*.prc"'),
  256. ("PRC_EXECUTABLE_PATTERNS", '""', '""'),
  257. ("PRC_EXECUTABLE_ARGS_ENVVAR", '"PANDA_PRC_XARGS"', '"PANDA_PRC_XARGS"'),
  258. ("PRC_PUBLIC_KEYS_FILENAME", '""', '""'),
  259. ("PRC_RESPECT_TRUST_LEVEL", 'UNDEF', 'UNDEF'),
  260. ("PRC_SAVE_DESCRIPTIONS", '1', '1'),
  261. ("WORDS_BIGENDIAN", 'UNDEF', 'UNDEF'),
  262. ("HAVE_NAMESPACE", '1', '1'),
  263. ("HAVE_OPEN_MASK", 'UNDEF', 'UNDEF'),
  264. ("HAVE_WCHAR_T", '1', '1'),
  265. ("HAVE_WSTRING", '1', '1'),
  266. ("HAVE_TYPENAME", '1', '1'),
  267. ("SIMPLE_STRUCT_POINTERS", '1', 'UNDEF'),
  268. ("HAVE_DINKUM", 'UNDEF', 'UNDEF'),
  269. ("HAVE_STL_HASH", 'UNDEF', 'UNDEF'),
  270. ("HAVE_GETTIMEOFDAY", 'UNDEF', '1'),
  271. ("GETTIMEOFDAY_ONE_PARAM", 'UNDEF', 'UNDEF'),
  272. ("HAVE_GETOPT", 'UNDEF', '1'),
  273. ("HAVE_GETOPT_LONG_ONLY", 'UNDEF', '1'),
  274. ("HAVE_GETOPT_H", 'UNDEF', '1'),
  275. ("IOCTL_TERMINAL_WIDTH", 'UNDEF', '1'),
  276. ("HAVE_STREAMSIZE", '1', '1'),
  277. ("HAVE_IOS_TYPEDEFS", '1', '1'),
  278. ("HAVE_IOS_BINARY", '1', '1'),
  279. ("STATIC_INIT_GETENV", '1', 'UNDEF'),
  280. ("HAVE_PROC_SELF_EXE", 'UNDEF', '1'),
  281. ("HAVE_PROC_SELF_MAPS", 'UNDEF', '1'),
  282. ("HAVE_PROC_SELF_ENVIRON", 'UNDEF', '1'),
  283. ("HAVE_PROC_SELF_CMDLINE", 'UNDEF', '1'),
  284. ("HAVE_GLOBAL_ARGV", '1', 'UNDEF'),
  285. ("PROTOTYPE_GLOBAL_ARGV", 'UNDEF', 'UNDEF'),
  286. ("GLOBAL_ARGV", '__argv', 'UNDEF'),
  287. ("GLOBAL_ARGC", '__argc', 'UNDEF'),
  288. ("HAVE_IO_H", '1', 'UNDEF'),
  289. ("HAVE_IOSTREAM", '1', '1'),
  290. ("HAVE_MALLOC_H", '1', '1'),
  291. ("HAVE_SYS_MALLOC_H", 'UNDEF', 'UNDEF'),
  292. ("HAVE_ALLOCA_H", 'UNDEF', '1'),
  293. ("HAVE_LOCALE_H", 'UNDEF', '1'),
  294. ("HAVE_MINMAX_H", '1', 'UNDEF'),
  295. ("HAVE_SSTREAM", '1', '1'),
  296. ("HAVE_NEW", '1', '1'),
  297. ("HAVE_SYS_TYPES_H", '1', '1'),
  298. ("HAVE_SYS_TIME_H", 'UNDEF', '1'),
  299. ("HAVE_UNISTD_H", 'UNDEF', '1'),
  300. ("HAVE_UTIME_H", 'UNDEF', '1'),
  301. ("HAVE_GLOB_H", 'UNDEF', '1'),
  302. ("HAVE_DIRENT_H", 'UNDEF', '1'),
  303. ("HAVE_SYS_SOUNDCARD_H", 'UNDEF', '1'),
  304. ("HAVE_RTTI", '1', '1'),
  305. ("GLOBAL_OPERATOR_NEW_EXCEPTIONS", 'UNDEF', '1'),
  306. ("OLD_STYLE_ALLOCATOR", 'UNDEF', 'UNDEF'),
  307. ("GNU_STYLE_ALLOCATOR", 'UNDEF', '1'),
  308. ("VC6_STYLE_ALLOCATOR", 'UNDEF', 'UNDEF'),
  309. ("MODERN_STYLE_ALLOCATOR", 'UNDEF', 'UNDEF'),
  310. ("NO_STYLE_ALLOCATOR", '1', 'UNDEF'),
  311. ("HAVE_ZLIB", 'UNDEF', 'UNDEF'),
  312. ("HAVE_PNG", 'UNDEF', 'UNDEF'),
  313. ("HAVE_JPEG", 'UNDEF', 'UNDEF'),
  314. ("HAVE_TIFF", 'UNDEF', 'UNDEF'),
  315. ("HAVE_VRPN", 'UNDEF', 'UNDEF'),
  316. ("HAVE_FMOD", 'UNDEF', 'UNDEF'),
  317. ("HAVE_NVIDIACG", 'UNDEF', 'UNDEF'),
  318. ("HAVE_NSPR", 'UNDEF', 'UNDEF'),
  319. ("HAVE_FREETYPE", 'UNDEF', 'UNDEF'),
  320. ("HAVE_FFTW", 'UNDEF', 'UNDEF'),
  321. ("HAVE_SSL", 'UNDEF', 'UNDEF'),
  322. ("HAVE_NET", 'UNDEF', 'UNDEF'),
  323. ("HAVE_CG", 'UNDEF', 'UNDEF'),
  324. ("HAVE_CGGL", 'UNDEF', 'UNDEF'),
  325. ]
  326. DTOOLCONFIG={}
  327. if (sys.platform == "win32"):
  328. for key,win,unix in DTOOLDEFAULTS:
  329. DTOOLCONFIG[key] = win
  330. else:
  331. for key,win,unix in DTOOLDEFAULTS:
  332. DTOOLCONFIG[key] = unix
  333. ########################################################################
  334. ##
  335. ## Help with packages.
  336. ##
  337. ## Output some brief information to help someone understand what the
  338. ## package options are.
  339. ##
  340. ########################################################################
  341. def packageInfo():
  342. print """
  343. See panda3d/doc/INSTALL-PP for more detailed information.
  344. 3D modeling an painting packages:
  345. MAX5 3D Studio Max version 5
  346. MAX6 3D Studio Max version 6
  347. MAX7 3D Studio Max version 7
  348. "uri?"
  349. (for .??? files)
  350. MAYA5 Maya version 5
  351. MAYA6 Maya version 6
  352. "uri?"
  353. (for .??? files)
  354. Audio playback:
  355. FMOD f mod
  356. "http://www.fmod.org/"
  357. A music and sound effects library (including playback).
  358. (for .wav, .mp3 and other files)
  359. MILES Miles Sound System from RAD Game Tools
  360. "http://www.radgametools.com/default.htm"
  361. A proprietary (non-opensource) audio library.
  362. (for .wav, .mp3, and other files).
  363. Compression/decompression:
  364. ZLIB z lib
  365. "http://www.gzip.org/zlib"
  366. A commression/decomression library.
  367. (for .zip and similar files and data)
  368. Font manipulation:
  369. FREETYPE free type
  370. "http://www.freetype.org/"
  371. A font manipulation library.
  372. (for .ttf files).
  373. Image support libraries:
  374. JPEG Join Photographic Experts Group
  375. "http://www.ijg.org"
  376. An image library.
  377. (.jpg and .jpeg files)
  378. PNG Portable Network Graphics
  379. "http://www.libpng.org"
  380. An image library.
  381. (.png files)
  382. TIFF Tagged Image File Format
  383. "ftp://ftp.sgi.com/graphics/tiff"
  384. An image library.
  385. (.tiff files)
  386. Misc libraries:
  387. HELIX
  388. "uri?"
  389. (for .??? files)
  390. A ??? library.
  391. FFTW Fast Fourier Transform (in the West)
  392. "http://www.fftw.org/"
  393. A library for computing DFT in one or more dimensions.
  394. NVIDIACG nVidia cg
  395. "http://developer.nvidia.com/page/cg_main.html"
  396. (for .??? files)
  397. A library for gpu programming (shaders and such).
  398. Network communication:
  399. SSL Open Secure Socket Layer
  400. "http://www.openssl.org/"
  401. A network encryption library.
  402. NSPR Netscape Portable Runtime
  403. "http://www.mozilla.org/projects/nspr/"
  404. Used for network sockets and threading.
  405. User input:
  406. VRPN Virtual Reality Peripheral Network
  407. "http://www.cs.unc.edu/Research/vrpn/"
  408. A controller/peripheral input library.
  409. """
  410. sys.exit(1)
  411. ########################################################################
  412. ##
  413. ## Command-line parser.
  414. ##
  415. ## You can type "makepanda --help" to see all the options.
  416. ##
  417. ########################################################################
  418. def usage(problem):
  419. if (problem):
  420. print ""
  421. print problem
  422. print ""
  423. print "Makepanda generates a 'built' subdirectory containing a"
  424. print "compiled copy of Panda3D. Command-line arguments are:"
  425. print ""
  426. print " --help (print the help message you're reading now)"
  427. print " --package-info (help info about the optional packages)"
  428. print " --prefix X (install into prefix dir, default \"built\")"
  429. print " --compiler X (currently, compiler can only be MSVC7,LINUXA)"
  430. print " --optimize X (optimization level can be 1,2,3,4)"
  431. print " --thirdparty X (directory containing third-party software)"
  432. print " --complete (copy samples and direct into the build)"
  433. print " --installer (build an executable installer)"
  434. print " --ppgame X (build a prepackaged game - see manual)"
  435. print " --v1 X (set the major version number)"
  436. print " --v2 X (set the minor version number)"
  437. print " --v3 X (set the sequence version number)"
  438. print " --lzma (use lzma compression when building installer)"
  439. print ""
  440. for pkg in PACKAGES:
  441. p = pkg.lower()
  442. print " --use-%-9s --no-%-9s (enable/disable use of %s)"%(p, p, pkg)
  443. print ""
  444. print " --nothing (disable every third-party lib)"
  445. print " --everything (enable every third-party lib)"
  446. print ""
  447. print " --quiet (print less output)"
  448. print " --verbose (print more output and debugging info)"
  449. print ""
  450. print "The simplest way to compile panda is to just type:"
  451. print ""
  452. print " makepanda --everything"
  453. print ""
  454. sys.exit(1)
  455. def parseopts(args):
  456. global PREFIX,COMPILER,OPTIMIZE,OMIT,THIRDPARTY,INSTALLER,GENMAN
  457. global PPGAME,COPYEXTRAS,VERSION,COMPRESSOR,DIRECTXSDK,VERBOSE
  458. longopts = [
  459. "help","package-info","prefix=","compiler=","directx-sdk=","thirdparty=",
  460. "optimize=","everything","nothing","installer","ppgame=","quiet","verbose",
  461. "complete","version=","lzma"]
  462. anything = 0
  463. for pkg in PACKAGES: longopts.append("no-"+pkg.lower())
  464. for pkg in PACKAGES: longopts.append("use-"+pkg.lower())
  465. try:
  466. opts, extras = getopt.getopt(args, "", longopts)
  467. for option,value in opts:
  468. if (option=="--help"): raise "usage"
  469. elif (option=="--package-info"): raise "package-info"
  470. elif (option=="--prefix"): PREFIX=value
  471. elif (option=="--compiler"): COMPILER=value
  472. elif (option=="--directx-sdk"): DIRECTXSDK=value
  473. elif (option=="--thirdparty"): THIRDPARTY=value
  474. elif (option=="--optimize"): OPTIMIZE=value
  475. elif (option=="--quiet"): VERBOSE-=1
  476. elif (option=="--verbose"): VERBOSE+=1
  477. elif (option=="--installer"): INSTALLER=1
  478. elif (option=="--genman"): GENMAN=1
  479. elif (option=="--ppgame"): PPGAME=value
  480. elif (option=="--complete"): COMPLETE=1
  481. elif (option=="--everything"): OMIT=[]
  482. elif (option=="--nothing"): OMIT=PACKAGES[:]
  483. elif (option=="--version"):
  484. VERSION=value
  485. if (len(VERSION.split(".")) != 3): raise "usage"
  486. elif (option=="--lzma"): COMPRESSOR="lzma"
  487. else:
  488. for pkg in PACKAGES:
  489. if (option=="--use-"+pkg.lower()):
  490. if (OMIT.count(pkg)): OMIT.remove(pkg)
  491. break
  492. for pkg in PACKAGES:
  493. if (option=="--no-"+pkg.lower()):
  494. if (OMIT.count(pkg)==0): OMIT.append(pkg)
  495. break
  496. anything = 1
  497. except "package-info": packageInfo()
  498. except: usage(0)
  499. if (anything==0): usage(0)
  500. if (OPTIMIZE=="1"): OPTIMIZE=1
  501. elif (OPTIMIZE=="2"): OPTIMIZE=2
  502. elif (OPTIMIZE=="3"): OPTIMIZE=3
  503. elif (OPTIMIZE=="4"): OPTIMIZE=4
  504. else: usage("Invalid setting for OPTIMIZE")
  505. if (COMPILERS.count(COMPILER)==0): usage("Invalid setting for COMPILER: "+COMPILER)
  506. parseopts(sys.argv[1:])
  507. ########################################################################
  508. #
  509. # Avoid trouble by not allowing weird --prefix or --thirdparty
  510. #
  511. # One of my goals for makepanda was for it to be maintainable.
  512. # I found that trying to support arbitrary pathnames for "prefix"
  513. # and "thirdparty" required the use of lots of backslashes and
  514. # quotation marks, which were quite frankly hard to get right.
  515. # I think it's better to simply rule out weird pathnames.
  516. #
  517. ########################################################################
  518. PREFIX = PREFIX.replace("\\","/")
  519. THIRDPARTY = THIRDPARTY.replace("\\","/")
  520. if (PREFIX.count(" ") or THIRDPARTY.count(" ")):
  521. sys.exit("The --prefix and --thirdparty may not contain spaces")
  522. if (PREFIX.count('"') or THIRDPARTY.count('"')):
  523. sys.exit("The --prefix and --thirdparty may not contain quotation marks")
  524. ########################################################################
  525. #
  526. # Locate the root of the panda tree
  527. #
  528. ########################################################################
  529. PANDASOURCE=os.path.dirname(os.path.abspath(sys.path[0]))
  530. if ((os.path.exists(os.path.join(PANDASOURCE,"makepanda/makepanda.py"))==0) or
  531. (os.path.exists(os.path.join(PANDASOURCE,"dtool","src","dtoolbase","dtoolbase.h"))==0) or
  532. (os.path.exists(os.path.join(PANDASOURCE,"panda","src","pandabase","pandabase.h"))==0)):
  533. sys.exit("I am unable to locate the root of the panda source tree.")
  534. os.chdir(PANDASOURCE)
  535. ########################################################################
  536. ##
  537. ## If you have the "sdks" directory, supply all sdks
  538. ##
  539. ## This is a temporary hack, it may go away.
  540. ##
  541. ########################################################################
  542. if (os.path.isdir("sdks")):
  543. DIRECTXSDK="sdks/directx"
  544. MAXSDKCS["MAX5"] = "sdks/maxsdk5"
  545. MAXSDKCS["MAX6"] = "sdks/maxsdk6"
  546. MAXSDKCS["MAX7"] = "sdks/maxsdk7"
  547. MAXSDK["MAX5"] = "sdks/maxsdk5"
  548. MAXSDK["MAX6"] = "sdks/maxsdk6"
  549. MAXSDK["MAX7"] = "sdks/maxsdk7"
  550. MAYASDK["MAYA5"] = "sdks/maya5"
  551. MAYASDK["MAYA6"] = "sdks/maya6"
  552. MAYASDK["MAYA65"] = "sdks/maya65"
  553. ########################################################################
  554. ##
  555. ## Locate the DirectX SDK
  556. ##
  557. ########################################################################
  558. if sys.platform == "win32" and DIRECTXSDK is None:
  559. dxdir = GetRegistryKey("SOFTWARE\\Microsoft\\DirectX SDK", "DX9SDK Samples Path")
  560. if (dxdir != 0): DIRECTXSDK = os.path.dirname(dxdir)
  561. else:
  562. dxdir = GetRegistryKey("SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment","DXSDK_DIR")
  563. if (dxdir != 0): DIRECTXSDK=dxdir
  564. else:
  565. dxdir = GetRegistryKey("SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment","DXSDKROOT")
  566. if dxdir != 0:
  567. if dxdir[-2:]=="/.":
  568. DIRECTXSDK=dxdir[:-1]
  569. else:
  570. DIRECTXSDK=dxdir
  571. else:
  572. sys.exit("The registry does not appear to contain a pointer to the DirectX 9.0 SDK.")
  573. DIRECTXSDK=DIRECTXSDK.replace("\\", "/").rstrip("/")
  574. ########################################################################
  575. ##
  576. ## Locate the Maya 5.0 and Maya 6.0 SDK
  577. ##
  578. ########################################################################
  579. MAYAVERSIONS=[("MAYA5", "SOFTWARE\\Alias|Wavefront\\Maya\\5.0\\Setup\\InstallPath"),
  580. ("MAYA6", "SOFTWARE\\Alias|Wavefront\\Maya\\6.0\\Setup\\InstallPath"),
  581. ("MAYA65", "SOFTWARE\\Alias|Wavefront\\Maya\\6.5\\Setup\\InstallPath")
  582. ];
  583. for (ver,key) in MAYAVERSIONS:
  584. if (OMIT.count(ver)==0) and (MAYASDK.has_key(ver)==0):
  585. if (sys.platform == "win32"):
  586. MAYASDK[ver]=GetRegistryKey(key, "MAYA_INSTALL_LOCATION")
  587. if (MAYASDK[ver] == 0):
  588. WARNINGS.append("The registry does not appear to contain a pointer to the "+ver+" SDK.")
  589. WARNINGS.append("I have automatically added this command-line option: --no-"+ver.lower())
  590. OMIT.append(ver)
  591. else:
  592. MAYASDK[ver] = MAYASDK[ver].replace("\\", "/").rstrip("/")
  593. else:
  594. WARNINGS.append(ver+" not yet supported under linux")
  595. WARNINGS.append("I have automatically added this command-line option: --no-"+ver.lower())
  596. OMIT.append(ver)
  597. ########################################################################
  598. ##
  599. ## Locate the 3D Studio Max and Character Studio SDKs
  600. ##
  601. ########################################################################
  602. MAXVERSIONS = [("MAX5", "SOFTWARE\\Autodesk\\3DSMAX\\5.0\\MAX-1:409", "uninstallpath", "Cstudio\\Sdk"),
  603. ("MAX6", "SOFTWARE\\Autodesk\\3DSMAX\\6.0", "installdir", "maxsdk\\cssdk\\include"),
  604. ("MAX7", "SOFTWARE\\Autodesk\\3DSMAX\\7.0", "Installdir", "maxsdk\\include\\CS")]
  605. for version,key1,key2,subdir in MAXVERSIONS:
  606. if (OMIT.count(version)==0) and (MAXSDK.has_key(version)==0):
  607. if (sys.platform == "win32"):
  608. top = GetRegistryKey(key1,key2)
  609. if (top == 0):
  610. WARNINGS.append("The registry does not appear to contain a pointer to "+version)
  611. WARNINGS.append("I have automatically added this command-line option: --no-"+version.lower())
  612. OMIT.append(version)
  613. else:
  614. if (os.path.isdir(top + "\\" + subdir)==0):
  615. WARNINGS.append("Your copy of "+version+" does not include the character studio SDK")
  616. WARNINGS.append("I have automatically added this command-line option: --no-"+version.lower())
  617. OMIT.append(version)
  618. else:
  619. MAXSDK[version] = top + "maxsdk"
  620. MAXSDKCS[version] = top + subdir
  621. else:
  622. WARNINGS.append(version+" not yet supported under linux")
  623. WARNINGS.append("I have automatically added this command-line option: --no-"+version.lower())
  624. OMIT.append(version)
  625. ########################################################################
  626. ##
  627. ## Locate the Python SDK
  628. ##
  629. ########################################################################
  630. if PythonSDK is None:
  631. if sys.platform == "win32":
  632. if os.path.isdir("C:/Python22"): PythonSDK = "C:/Python22"
  633. elif os.path.isdir("C:/Python23"): PythonSDK = "C:/Python23"
  634. elif os.path.isdir("C:/Python24"): PythonSDK = "C:/Python24"
  635. elif os.path.isdir("C:/Python25"): PythonSDK = "C:/Python25"
  636. elif os.path.isdir('thirdparty/win-python'): PythonSDK = "thirdparty/win-python"
  637. else:
  638. sys.exit("Cannot find the python SDK")
  639. else:
  640. if os.path.isdir("/usr/include/python2.5"): PythonSDK = "/usr/include/python2.5"
  641. elif os.path.isdir("/usr/include/python2.4"): PythonSDK = "/usr/include/python2.4"
  642. elif os.path.isdir("/usr/include/python2.3"): PythonSDK = "/usr/include/python2.3"
  643. elif os.path.isdir("/usr/include/python2.2"): PythonSDK = "/usr/include/python2.2"
  644. else: sys.exit("Cannot find the python SDK")
  645. # this is so that the user can find out which version of python was used.
  646. ########################################################################
  647. ##
  648. ## Locate Visual Studio 7.0 or 7.1
  649. ##
  650. ## The visual studio compiler doesn't work unless you set up a
  651. ## couple of environment variables to point at the compiler.
  652. ##
  653. ########################################################################
  654. if (COMPILER == "MSVC7"):
  655. vcdir = GetRegistryKey("SOFTWARE\\Microsoft\\VisualStudio\\7.1", "InstallDir")
  656. if ((vcdir == 0) or (vcdir[-13:] != "\\Common7\\IDE\\")):
  657. vcdir = GetRegistryKey("SOFTWARE\\Microsoft\\VisualStudio\\7.0", "InstallDir")
  658. if ((vcdir == 0) or (vcdir[-13:] != "\\Common7\\IDE\\")):
  659. sys.exit("The registry does not appear to contain a pointer to the Visual Studio 7 install directory")
  660. vcdir = vcdir[:-12]
  661. old_env_path = ""
  662. old_env_include = ""
  663. old_env_lib = ""
  664. if (os.environ.has_key("PATH")): old_env_path = os.environ["PATH"]
  665. if (os.environ.has_key("INCLUDE")): old_env_include = os.environ["INCLUDE"]
  666. if (os.environ.has_key("LIB")): old_env_lib = os.environ["LIB"]
  667. os.environ["PATH"] = vcdir + "vc7\\bin;" + vcdir + "Common7\\IDE;" + vcdir + "Common7\\Tools;" + vcdir + "Common7\\Tools\\bin\\prerelease;" + vcdir + "Common7\\Tools\\bin;" + old_env_path
  668. os.environ["INCLUDE"] = vcdir + "vc7\\ATLMFC\\INCLUDE;" + vcdir + "vc7\\include;" + vcdir + "vc7\\PlatformSDK\\include\\prerelease;" + vcdir + "vc7\\PlatformSDK\\include;" + old_env_include
  669. os.environ["LIB"] = vcdir + "vc7\\ATLMFC\\LIB;" + vcdir + "vc7\\LIB;" + vcdir + "vc7\\PlatformSDK\\lib\\prerelease;" + vcdir + "vc7\\PlatformSDK\\lib;" + old_env_lib
  670. sys.stdout.flush()
  671. ##########################################################################################
  672. #
  673. # Disable Helix unless running under Windows
  674. #
  675. ##########################################################################################
  676. if (sys.platform != "win32"):
  677. if (OMIT.count("HELIX")==0):
  678. WARNINGS.append("HELIX not yet supported under linux")
  679. WARNINGS.append("I have automatically added this command-line option: --no-helix")
  680. OMIT.append("HELIX")
  681. ##########################################################################################
  682. #
  683. # See if there's a "MILES" subdirectory under 'thirdparty'
  684. #
  685. ##########################################################################################
  686. if (os.path.isdir(os.path.join(THIRDPARTY, "win-libs-vc7", "miles"))==0):
  687. if (OMIT.count("MILES")==0):
  688. WARNINGS.append("You do not have a copy of MILES sound system")
  689. WARNINGS.append("I have automatically added this command-line option: --no-miles")
  690. OMIT.append("MILES")
  691. ##########################################################################################
  692. #
  693. # Enable or Disable runtime debugging mechanisms based on optimize level.
  694. #
  695. ##########################################################################################
  696. for x in PACKAGES:
  697. if (OMIT.count(x)==0):
  698. if (DTOOLCONFIG.has_key("HAVE_"+x)):
  699. DTOOLCONFIG["HAVE_"+x] = '1'
  700. DTOOLCONFIG["HAVE_NET"] = DTOOLCONFIG["HAVE_NSPR"]
  701. if (OMIT.count("NVIDIACG")==0):
  702. DTOOLCONFIG["HAVE_CG"] = '1'
  703. DTOOLCONFIG["HAVE_CGGL"] = '1'
  704. if (OPTIMIZE <= 3):
  705. if (DTOOLCONFIG["HAVE_NET"] != 'UNDEF'):
  706. DTOOLCONFIG["DO_PSTATS"] = '1'
  707. if (OPTIMIZE <= 3):
  708. DTOOLCONFIG["DO_COLLISION_RECORDING"] = '1'
  709. #if (OPTIMIZE <= 2):
  710. # DTOOLCONFIG["TRACK_IN_INTERPRETER"] = '1'
  711. if (OPTIMIZE <= 3):
  712. DTOOLCONFIG["DO_MEMORY_USAGE"] = '1'
  713. #if (OPTIMIZE <= 1):
  714. # DTOOLCONFIG["DO_PIPELINING"] = '1'
  715. if (OPTIMIZE <= 3):
  716. DTOOLCONFIG["NOTIFY_DEBUG"] = '1'
  717. ##########################################################################################
  718. #
  719. # Verify that LD_LIBRARY_PATH contains the PREFIX/lib directory.
  720. #
  721. # If not, add it on a temporary basis, and issue a warning.
  722. #
  723. ##########################################################################################
  724. if (sys.platform != "win32"):
  725. BUILTLIB = os.path.abspath(PREFIX+"/lib")
  726. try:
  727. LDPATH = []
  728. f = file("/etc/ld.so.conf","r")
  729. for line in f: LDPATH.append(line.rstrip())
  730. f.close()
  731. except: LDPATH = []
  732. if (os.environ.has_key("LD_LIBRARY_PATH")):
  733. LDPATH = LDPATH + os.environ["LD_LIBRARY_PATH"].split(":")
  734. if (LDPATH.count(BUILTLIB)==0):
  735. WARNINGS.append("Caution: the "+PREFIX+"/lib directory is not in LD_LIBRARY_PATH")
  736. WARNINGS.append("or /etc/ld.so.conf. You must add it before using panda.")
  737. if (os.environ.has_key("LD_LIBRARY_PATH")):
  738. os.environ["LD_LIBRARY_PATH"] = BUILTLIB + ":" + os.environ["LD_LIBRARY_PATH"]
  739. else:
  740. os.environ["LD_LIBRARY_PATH"] = BUILTLIB
  741. ########################################################################
  742. ##
  743. ## Give a Status Report on Command-Line Options
  744. ##
  745. ########################################################################
  746. def printStatus(header,warnings):
  747. global VERBOSE
  748. if VERBOSE >= -2:
  749. print ""
  750. print "-------------------------------------------------------------------"
  751. print header
  752. tkeep = ""
  753. tomit = ""
  754. for x in PACKAGES:
  755. if (OMIT.count(x)==0): tkeep = tkeep + x + " "
  756. else: tomit = tomit + x + " "
  757. print "Makepanda: Prefix Directory:",PREFIX
  758. print "Makepanda: Compiler:",COMPILER
  759. print "Makepanda: Optimize:",OPTIMIZE
  760. print "Makepanda: Keep Pkg:",tkeep
  761. print "Makepanda: Omit Pkg:",tomit
  762. print "Makepanda: Thirdparty dir:",THIRDPARTY
  763. print "Makepanda: DirectX SDK dir:",DIRECTXSDK
  764. print "Makepanda: Verbose vs. Quiet Level:",VERBOSE
  765. print "Makepanda: PythonSDK:", PythonSDK
  766. if (GENMAN): print "Makepanda: Generate API reference manual"
  767. else : print "Makepanda: Don't generate API reference manual"
  768. if (sys.platform == "win32"):
  769. if INSTALLER: print "Makepanda: Build installer, using",COMPRESSOR
  770. else : print "Makepanda: Don't build installer"
  771. if PPGAME!=0: print "Makepanda: Build pprepackaged game ",PPGAME,"using",COMPRESSOR
  772. else : print "Makepanda: Don't build pprepackaged game"
  773. print "Makepanda: Version ID: "+VERSION
  774. for x in warnings: print "Makepanda: "+x
  775. print "-------------------------------------------------------------------"
  776. print ""
  777. sys.stdout.flush()
  778. printStatus("Makepanda Initial Status Report", WARNINGS)
  779. ##########################################################################################
  780. #
  781. # Create the directory tree
  782. #
  783. ##########################################################################################
  784. MakeDirectory(PREFIX)
  785. MakeDirectory(PREFIX+"/bin")
  786. MakeDirectory(PREFIX+"/lib")
  787. MakeDirectory(PREFIX+"/etc")
  788. MakeDirectory(PREFIX+"/plugins")
  789. MakeDirectory(PREFIX+"/pandac")
  790. MakeDirectory(PREFIX+"/pandac/input")
  791. MakeDirectory(PREFIX+"/include")
  792. MakeDirectory(PREFIX+"/include/parser-inc")
  793. MakeDirectory(PREFIX+"/include/parser-inc/openssl")
  794. MakeDirectory(PREFIX+"/include/parser-inc/Cg")
  795. MakeDirectory(PREFIX+"/include/openssl")
  796. MakeDirectory(PREFIX+"/direct")
  797. MakeDirectory(PREFIX+"/tmp")
  798. ########################################################################
  799. ##
  800. ## PkgSelected(package-list,package)
  801. ##
  802. ## This function returns true if the package-list contains the
  803. ## package, AND the OMIT list does not contain the package.
  804. ##
  805. ########################################################################
  806. def PkgSelected(pkglist, pkg):
  807. if (pkglist.count(pkg)==0): return 0
  808. if (OMIT.count(pkg)): return 0
  809. return 1
  810. ########################################################################
  811. ##
  812. ## These two globals accumulate a global list of everything compiled.
  813. ##
  814. ########################################################################
  815. ALLIN=[]
  816. ALLTARGETS=[]
  817. ########################################################################
  818. ##
  819. ## The CXX include-cache.
  820. ##
  821. ## Dictionary: for each CXX source file, a list of all the
  822. ## include-directives inside that file.
  823. ##
  824. ## Makepanda analyzes include-directives to determine the dependencies
  825. ## of C source files. This requires us to read the C source files,
  826. ## a time-consuming process. This means that doing a 'makepanda'
  827. ## takes quite a bit of time, even if there's nothing to compile.
  828. ##
  829. ## To accelerate this process, we store the list of include-directives
  830. ## in each source file in the "CXX include-cache". This cache is
  831. ## preserved (using the 'cPickle' module) from execution to execution
  832. ## of makepanda. The use of file dates in the cache makes it very
  833. ## unlikely for the cache to get out-of-sync with the source tree.
  834. ##
  835. ########################################################################
  836. global CxxIncludeCache
  837. CxxIncludeCache = {}
  838. iCachePath=PREFIX+"/tmp/makepanda-icache"
  839. try: icache = open(iCachePath,'rb')
  840. except: icache = 0
  841. if (icache!=0):
  842. CxxIncludeCache = cPickle.load(icache)
  843. icache.close()
  844. ########################################################################
  845. ##
  846. ## CxxGetIncludes
  847. ##
  848. ## return a list of the include-directives in a given source file
  849. ##
  850. ########################################################################
  851. global CxxIncludeRegex
  852. CxxIncludeRegex = re.compile('^[ \t]*[#][ \t]*include[ \t]+"([^"]+)"[ \t\r\n]*$')
  853. def CxxGetIncludes(path):
  854. date = filedate(path)
  855. if (CxxIncludeCache.has_key(path)):
  856. cached = CxxIncludeCache[path]
  857. if (cached[0]==date): return cached[1]
  858. try: sfile = open(path, 'rb')
  859. except: sys.exit("Cannot open source file \""+path+"\" for reading.")
  860. include = []
  861. for line in sfile:
  862. match = CxxIncludeRegex.match(line,0)
  863. if (match):
  864. incname = match.group(1)
  865. include.append(incname)
  866. sfile.close()
  867. CxxIncludeCache[path] = [date, include]
  868. return include
  869. ########################################################################
  870. ##
  871. ## CxxFindSource
  872. ##
  873. ## given a source file name and a directory list, searches the
  874. ## directory list for the given source file. Returns the full
  875. ## pathname of the located file.
  876. ##
  877. ########################################################################
  878. def CxxFindSource(name, ipath):
  879. for dir in ipath:
  880. if (dir == "."): full = name
  881. else: full = dir + "/" + name
  882. if filedate(full) > 0: return full
  883. return 0
  884. ########################################################################
  885. ##
  886. ## CxxFindHeader
  887. ##
  888. ## given a source file name and an include directive in that source
  889. ## file, locates the relevant header file.
  890. ##
  891. ########################################################################
  892. def CxxFindHeader(srcfile, incfile, ipath):
  893. if (incfile[:1]=="."):
  894. last = srcfile.rfind("/")
  895. if (last < 0): sys.exit("CxxFindHeader cannot handle this case #1")
  896. srcdir = srcfile[:last+1]
  897. while (incfile[:1]=="."):
  898. if (incfile[:2]=="./"):
  899. incfile = incfile[2:]
  900. elif (incfile[:3]=="../"):
  901. incfile = incfile[3:]
  902. last = srcdir[:-1].rfind("/")
  903. if (last < 0): sys.exit("CxxFindHeader cannot handle this case #2")
  904. srcdir = srcdir[:last+1]
  905. else: sys.exit("CxxFindHeader cannot handle this case #3")
  906. full = srcdir + incfile
  907. if filedate(full) > 0: return full
  908. return 0
  909. else: return CxxFindSource(incfile, ipath)
  910. ########################################################################
  911. ##
  912. ## CxxCalcDependencies(srcfile, ipath, ignore)
  913. ##
  914. ## Calculate the dependencies of a source file given a
  915. ## particular include-path. Any file in the list of files to
  916. ## ignore is not considered.
  917. ##
  918. ########################################################################
  919. global CxxIgnoreHeader
  920. global CxxDependencyCache
  921. CxxIgnoreHeader = {}
  922. CxxDependencyCache = {}
  923. def CxxCalcDependencies(srcfile, ipath, ignore):
  924. if (CxxDependencyCache.has_key(srcfile)):
  925. return CxxDependencyCache[srcfile]
  926. if (ignore.count(srcfile)): return []
  927. dep = {}
  928. dep[srcfile] = 1
  929. includes = CxxGetIncludes(srcfile)
  930. for include in includes:
  931. if (CxxIgnoreHeader.has_key(include)==0):
  932. header = CxxFindHeader(srcfile, include, ipath)
  933. if (header==0):
  934. print "CAUTION: header file "+include+" cannot be found."
  935. else:
  936. if (ignore.count(header)==0):
  937. hdeps = CxxCalcDependencies(header, ipath, [srcfile]+ignore)
  938. for x in hdeps: dep[x] = 1
  939. result = dep.keys()
  940. CxxDependencyCache[srcfile] = result
  941. return result
  942. def CxxCalcDependenciesAll(srcfiles, ipath):
  943. dep = {}
  944. for srcfile in srcfiles:
  945. for x in CxxCalcDependencies(srcfile, ipath, []):
  946. dep[x] = 1
  947. return dep.keys()
  948. ########################################################################
  949. ##
  950. ## ConditionalWriteFile
  951. ##
  952. ## Creates the given file, but only if it doesn't already
  953. ## contain the correct contents.
  954. ##
  955. ########################################################################
  956. def ConditionalWriteFile(dest,desiredcontents):
  957. try:
  958. rfile = open(dest, 'rb')
  959. contents = rfile.read(-1)
  960. rfile.close()
  961. except:
  962. contents=0
  963. if contents != desiredcontents:
  964. if VERBOSE:
  965. print "Regenerating file: "+dest
  966. sys.stdout.flush()
  967. WriteFile(dest,desiredcontents)
  968. ########################################################################
  969. ##
  970. ## CopyFile
  971. ##
  972. ## Copy a file into the build tree.
  973. ##
  974. ########################################################################
  975. def CopyFile(dstfile,srcfile):
  976. if (dstfile[-1]=='/'):
  977. dstdir = dstfile
  978. fnl = srcfile.rfind("/")
  979. if (fnl < 0): fn = srcfile
  980. else: fn = srcfile[fnl+1:]
  981. dstfile = dstdir + fn
  982. if (older(dstfile,srcfile)):
  983. global VERBOSE
  984. if VERBOSE >= 1:
  985. print "Copying \"%s\" --> \"%s\""%(srcfile, dstfile)
  986. WriteFile(dstfile,ReadFile(srcfile))
  987. updatefiledate(dstfile)
  988. ALLTARGETS.append(dstfile)
  989. ########################################################################
  990. ##
  991. ## CopyAllFiles
  992. ##
  993. ## Copy the contents of an entire directory into the build tree.
  994. ##
  995. ########################################################################
  996. def CopyAllFiles(dstdir, srcdir, suffix=""):
  997. suflen = len(suffix)
  998. files = os.listdir(srcdir)
  999. for x in files:
  1000. if (os.path.isfile(srcdir+x)):
  1001. if (suflen==0) or (x[-suflen:]==suffix):
  1002. CopyFile(dstdir+x, srcdir+x)
  1003. ########################################################################
  1004. ##
  1005. ## CopyTree
  1006. ##
  1007. ## Copy a directory into the build tree.
  1008. ##
  1009. ########################################################################
  1010. def CopyTree(dstdir,srcdir):
  1011. if (os.path.isdir(dstdir)): return 0
  1012. if (COMPILER=="MSVC7"): cmd = 'xcopy.exe /I/Y/E/Q "' + srcdir + '" "' + dstdir + '"'
  1013. if (COMPILER=="LINUXA"): cmd = 'cp --recursive --force ' + srcdir + ' ' + dstdir
  1014. oscmd(cmd)
  1015. updatefiledate(dstdir)
  1016. def CompileBison(pre,dstc,dsth,src):
  1017. """
  1018. Generate a CXX file from a source YXX file.
  1019. """
  1020. (base, fn) = os.path.split(src)
  1021. dstc=base+"/"+dstc
  1022. dsth=base+"/"+dsth
  1023. if (older(dstc,src) or older(dsth,src)):
  1024. CopyFile(PREFIX+"/tmp/", src)
  1025. if (COMPILER=="MSVC7"):
  1026. CopyFile(PREFIX+"/tmp/", "thirdparty/win-util/bison.simple")
  1027. bisonFullPath=os.path.abspath("thirdparty/win-util/bison.exe")
  1028. oslocalcmd(PREFIX+"/tmp", bisonFullPath+" -y -d -p " + pre + " " + fn)
  1029. osmove(PREFIX+"/tmp/y_tab.c", dstc)
  1030. osmove(PREFIX+"/tmp/y_tab.h", dsth)
  1031. if (COMPILER=="LINUXA"):
  1032. oslocalcmd(PREFIX+"/tmp", "bison -y -d -p "+pre+" "+fn)
  1033. osmove(PREFIX+"/tmp/y.tab.c", dstc)
  1034. osmove(PREFIX+"/tmp/y.tab.h", dsth)
  1035. updatefiledate(dstc)
  1036. updatefiledate(dsth)
  1037. def CompileFlex(pre,dst,src,dashi):
  1038. """
  1039. Generate a CXX file from a source LXX file.
  1040. """
  1041. last = src.rfind("/")
  1042. fn = src[last+1:]
  1043. dst = PREFIX+"/tmp/"+dst
  1044. if (older(dst,src)):
  1045. CopyFile(PREFIX+"/tmp/", src)
  1046. if (COMPILER=="MSVC7"):
  1047. flexFullPath=os.path.abspath("thirdparty/win-util/flex.exe")
  1048. if (dashi): oslocalcmd(PREFIX+"/tmp", flexFullPath+" -i -P" + pre + " -olex.yy.c " + fn)
  1049. else: oslocalcmd(PREFIX+"/tmp", flexFullPath+" -P" + pre + " -olex.yy.c " + fn)
  1050. replaceInFile(PREFIX+'/tmp/lex.yy.c', dst, '#include <unistd.h>', '')
  1051. if (COMPILER=="LINUXA"):
  1052. if (dashi): oslocalcmd(PREFIX+"/tmp", "flex -i -P" + pre + " -olex.yy.c " + fn)
  1053. else: oslocalcmd(PREFIX+"/tmp", "flex -P" + pre + " -olex.yy.c " + fn)
  1054. oscmd('cp '+PREFIX+'/tmp/lex.yy.c '+dst)
  1055. updatefiledate(dst)
  1056. ########################################################################
  1057. ##
  1058. ## CompileC
  1059. ##
  1060. ## Generate an OBJ file from a source CXX file.
  1061. ##
  1062. ########################################################################
  1063. priorIPath=None
  1064. def checkIfNewDir(path):
  1065. global priorIPath
  1066. if priorIPath != path:
  1067. print "\nStarting compile in \"%s\" (%s):\n"%(path,prettyTime(time.time()-STARTTIME),)
  1068. priorIPath=path
  1069. def CompileC(obj=0,src=0,ipath=[],opts=[]):
  1070. global VERBOSE
  1071. if ((obj==0)|(src==0)): sys.exit("syntax error in CompileC directive")
  1072. ipath = [PREFIX+"/tmp"] + ipath + [PREFIX+"/include"]
  1073. fullsrc = CxxFindSource(src, ipath)
  1074. if (fullsrc == 0): sys.exit("Cannot find source file "+src)
  1075. dep = CxxCalcDependencies(fullsrc, ipath, [])
  1076. if (COMPILER=="MSVC7"):
  1077. wobj = PREFIX+"/tmp/"+obj
  1078. if (older(wobj, dep)):
  1079. if VERBOSE >= 0:
  1080. checkIfNewDir(ipath[1])
  1081. cmd = "cl.exe /Fo" + wobj + " /nologo /c"
  1082. cmd = cmd + " /I" + PREFIX + "/python/include"
  1083. if (opts.count("DXSDK")): cmd = cmd + ' /I"' + DIRECTXSDK + '/include"'
  1084. for ver in ["MAYA5","MAYA6","MAYA65"]:
  1085. if (opts.count(ver)): cmd = cmd + ' /I"' + MAYASDK[ver] + '/include"'
  1086. for max in ["MAX5","MAX6","MAX7"]:
  1087. if (PkgSelected(opts,max)):
  1088. cmd = cmd + ' /I"' + MAXSDK[max] + '/include" /I"' + MAXSDKCS[max] + '" /D' + max
  1089. for pkg in PACKAGES:
  1090. if (pkg[:4] != "MAYA") and PkgSelected(opts,pkg):
  1091. cmd = cmd + " /I" + THIRDPARTY + "/win-libs-vc7/" + pkg.lower() + "/include"
  1092. for x in ipath: cmd = cmd + " /I" + x
  1093. if (opts.count('NOFLOATWARN')): cmd = cmd + ' /wd4244 /wd4305'
  1094. if (opts.count("WITHINPANDA")): cmd = cmd + ' /DWITHIN_PANDA'
  1095. if (OPTIMIZE==1): cmd = cmd + " /Zc:forScope /MD /Zi /O2 /Ob2 /DFORCE_INLINING /RTCs /GS"
  1096. if (OPTIMIZE==2): cmd = cmd + " /Zc:forScope /MD /Zi /O2 /Ob2 /DFORCE_INLINING "
  1097. if (OPTIMIZE==3): cmd = cmd + " /Zc:forScope /MD /Zi /O2 /Ob2 /DFORCE_INLINING "
  1098. if (OPTIMIZE==4): cmd = cmd + " /Zc:forScope /MD /Zi /O2 /Ob2 /DFORCE_INLINING /GL /DNDEBUG "
  1099. cmd = cmd + " /Fd" + wobj[:-4] + ".pdb"
  1100. building = buildingwhat(opts)
  1101. if (building): cmd = cmd + " /DBUILDING_" + building
  1102. cmd = cmd + " /EHsc /Zm300 /DWIN32_VC /DWIN32 /W3 " + fullsrc
  1103. oscmd(cmd)
  1104. updatefiledate(wobj)
  1105. if (COMPILER=="LINUXA"):
  1106. wobj = PREFIX+"/tmp/" + obj[:-4] + ".o"
  1107. if (older(wobj, dep)):
  1108. if VERBOSE >= 0:
  1109. checkIfNewDir(ipath[1])
  1110. if (src[-2:]==".c"): cmd = 'gcc -c -o ' + wobj
  1111. else: cmd = 'g++ -ftemplate-depth-30 -c -o ' + wobj
  1112. cmd = cmd + ' -I"' + PythonSDK + '"'
  1113. if (PkgSelected(opts,"VRPN")): cmd = cmd + ' -I' + THIRDPARTY + '/linux-libs-a/vrpn/include'
  1114. if (PkgSelected(opts,"FFTW")): cmd = cmd + ' -I' + THIRDPARTY + '/linux-libs-a/fftw/include'
  1115. if (PkgSelected(opts,"FMOD")): cmd = cmd + ' -I' + THIRDPARTY + '/linux-libs-a/fmod/include'
  1116. if (PkgSelected(opts,"NVIDIACG")): cmd = cmd + ' -I' + THIRDPARTY + '/linux-libs-a/nvidiacg/include'
  1117. if (PkgSelected(opts,"NSPR")): cmd = cmd + ' -I' + THIRDPARTY + '/linux-libs-a/nspr/include'
  1118. if (PkgSelected(opts,"FREETYPE")): cmd = cmd + ' -I/usr/include/freetype2'
  1119. for x in ipath: cmd = cmd + ' -I' + x
  1120. if (opts.count("WITHINPANDA")): cmd = cmd + ' -DWITHIN_PANDA'
  1121. if (OPTIMIZE==1): cmd = cmd + " -g"
  1122. if (OPTIMIZE==2): cmd = cmd + " -O1"
  1123. if (OPTIMIZE==3): cmd = cmd + " -O2"
  1124. if (OPTIMIZE==4): cmd = cmd + " -O2"
  1125. building = buildingwhat(opts)
  1126. if (building): cmd = cmd + " -DBUILDING_" + building
  1127. cmd = cmd + ' ' + fullsrc
  1128. oscmd(cmd)
  1129. updatefiledate(wobj)
  1130. ########################################################################
  1131. ##
  1132. ## CompileRES
  1133. ##
  1134. ## Generate an RES file from a source RC file.
  1135. ##
  1136. ########################################################################
  1137. def CompileRES(obj=0,src=0,ipath=[],opts=[]):
  1138. if ((obj==0)|(src==0)): sys.exit("syntax error in CompileRES directive")
  1139. fullsrc = CxxFindSource(src, ipath)
  1140. if (fullsrc == 0): sys.exit("Cannot find source file "+src)
  1141. obj = PREFIX+"/tmp/"+obj
  1142. wdep = CxxCalcDependencies(fullsrc, ipath, [])
  1143. if (COMPILER=="MSVC7"):
  1144. if (older(obj, wdep)):
  1145. cmd = 'rc.exe /d "NDEBUG" /l 0x409'
  1146. for x in ipath: cmd = cmd + " /I" + x
  1147. cmd = cmd + ' /fo' + obj
  1148. cmd = cmd + ' ' + fullsrc
  1149. oscmd(cmd)
  1150. updatefiledate(obj)
  1151. if (COMPILER=="LINUXA"):
  1152. sys.exit("Can only compile RES files on Windows.")
  1153. ########################################################################
  1154. ##
  1155. ## Interrogate
  1156. ##
  1157. ## Generate an IN file and a CXX-stub file from CXX source files
  1158. ##
  1159. ########################################################################
  1160. def Interrogate(ipath=0, opts=0, outd=0, outc=0, src=0, module=0, library=0, files=0):
  1161. if ((ipath==0)|(opts==0)|(outd==0)|(outc==0)|(src==0)|(module==0)|(library==0)|(files==0)):
  1162. sys.exit("syntax error in Interrogate directive")
  1163. ALLIN.append(outd)
  1164. ipath = [PREFIX+"/tmp"] + ipath + [PREFIX+"/include"]
  1165. outd = PREFIX+"/pandac/input/"+outd
  1166. outc = PREFIX+"/tmp/"+outc
  1167. paths = xpaths(src+"/",files,"")
  1168. dep = CxxCalcDependenciesAll(paths, ipath)
  1169. dotdots = ""
  1170. for i in range(0,src.count("/")+1): dotdots = dotdots + "../"
  1171. building = 0
  1172. for x in opts:
  1173. if (x[:9]=="BUILDING_"): building = x[9:]
  1174. if (older(outc, dep) or older(outd, dep)):
  1175. if (COMPILER=="MSVC7"):
  1176. cmd = dotdots + PREFIX + "/bin/interrogate.exe"
  1177. cmd = cmd + ' -DCPPPARSER -D__STDC__=1 -D__cplusplus -longlong __int64 -D_X86_ -DWIN32_VC -D_WIN32'
  1178. cmd = cmd + ' -D"_declspec(param)=" -D_near -D_far -D__near -D__far -D__stdcall'
  1179. if (OPTIMIZE==1): cmd = cmd + ' '
  1180. if (OPTIMIZE==2): cmd = cmd + ' '
  1181. if (OPTIMIZE==3): cmd = cmd + ' -DFORCE_INLINING'
  1182. if (OPTIMIZE==4): cmd = cmd + ' -DFORCE_INLINING'
  1183. cmd = cmd + ' -S' + dotdots + PREFIX + '/include/parser-inc'
  1184. cmd = cmd + ' -I' + dotdots + PREFIX + '/python/include'
  1185. for pkg in PACKAGES:
  1186. if (PkgSelected(opts,pkg)):
  1187. cmd = cmd + ' -I' + dotdots + THIRDPARTY + "/win-libs-vc7/" + pkg.lower() + "/include"
  1188. if (COMPILER=="LINUXA"):
  1189. cmd = dotdots + PREFIX + '/bin/interrogate'
  1190. cmd = cmd + ' -DCPPPARSER -D__STDC__=1 -D__cplusplus -D__i386__ -D__const=const'
  1191. if (OPTIMIZE==1): cmd = cmd + ' '
  1192. if (OPTIMIZE==2): cmd = cmd + ' '
  1193. if (OPTIMIZE==3): cmd = cmd + ' '
  1194. if (OPTIMIZE==4): cmd = cmd + ' '
  1195. cmd = cmd + ' -S' + dotdots + PREFIX + '/include/parser-inc -S/usr/include'
  1196. cmd = cmd + ' -I' + dotdots + PREFIX + '/python/include'
  1197. for pkg in PACKAGES:
  1198. if (PkgSelected(opts,pkg)):
  1199. cmd = cmd + ' -I' + dotdots + THIRDPARTY + "/linux-libs-a/" + pkg.lower() + "/include"
  1200. cmd = cmd + ' -oc ' + dotdots + outc + ' -od ' + dotdots + outd
  1201. cmd = cmd + ' -fnames -string -refcount -assert -python'
  1202. for x in ipath: cmd = cmd + ' -I' + dotdots + x
  1203. if (building): cmd = cmd + " -DBUILDING_"+building
  1204. if (opts.count("WITHINPANDA")): cmd = cmd + " -DWITHIN_PANDA"
  1205. cmd = cmd + ' -module ' + module + ' -library ' + library
  1206. if ((COMPILER=="MSVC7") and opts.count("DXSDK")): cmd = cmd + ' -I"' + DIRECTXSDK + '/include"'
  1207. for ver in ["MAYA5","MAYA6","MAYA65"]:
  1208. if ((COMPILER=="MSVC7") and opts.count(ver)): cmd = cmd + ' -I"' + MAYASDK[ver] + '/include"'
  1209. for x in files: cmd = cmd + ' ' + x
  1210. oslocalcmd(src, cmd)
  1211. updatefiledate(outd)
  1212. updatefiledate(outc)
  1213. ########################################################################
  1214. ##
  1215. ## InterrogateModule
  1216. ##
  1217. ## Generate a python-stub CXX file from a bunch of IN files.
  1218. ##
  1219. ########################################################################
  1220. def InterrogateModule(outc=0, module=0, library=0, files=0):
  1221. if ((outc==0)|(module==0)|(library==0)|(files==0)):
  1222. sys.exit("syntax error in InterrogateModule directive")
  1223. outc = PREFIX+"/tmp/"+outc
  1224. files = xpaths(PREFIX+"/pandac/input/",files,"")
  1225. if (older(outc, files)):
  1226. global VERBOSE
  1227. if VERBOSE >= 1:
  1228. print "Generating Python-stub cxx file for %s"%(library,)
  1229. if (COMPILER=="MSVC7"):
  1230. cmd = PREFIX + '/bin/interrogate_module.exe '
  1231. if (COMPILER=="LINUXA"):
  1232. cmd = PREFIX + '/bin/interrogate_module '
  1233. cmd = cmd + ' -oc ' + outc + ' -module ' + module + ' -library ' + library + ' -python '
  1234. for x in files: cmd = cmd + ' ' + x
  1235. oscmd(cmd)
  1236. updatefiledate(outc)
  1237. ########################################################################
  1238. ##
  1239. ## CompileLIB
  1240. ##
  1241. ## Generate a LIB file from a bunch of OBJ files.
  1242. ##
  1243. ########################################################################
  1244. def CompileLIB(lib=0, obj=[], opts=[]):
  1245. if (lib==0): sys.exit("syntax error in CompileLIB directive")
  1246. if (COMPILER=="MSVC7"):
  1247. if (lib[-4:]==".ilb"): wlib = PREFIX+"/tmp/" + lib[:-4] + ".lib"
  1248. else: wlib = PREFIX+"/lib/" + lib[:-4] + ".lib"
  1249. wobj = xpaths(PREFIX+"/tmp/",obj,"")
  1250. ALLTARGETS.append(wlib)
  1251. if (older(wlib, wobj)):
  1252. cmd = 'lib.exe /nologo /OUT:' + wlib
  1253. if (OPTIMIZE==4): cmd = cmd + " /LTCG "
  1254. for x in wobj: cmd = cmd + ' ' + x
  1255. oscmd(cmd)
  1256. updatefiledate(wlib)
  1257. if (COMPILER=="LINUXA"):
  1258. if (lib[-4:]==".ilb"): wlib = PREFIX+"/tmp/" + lib[:-4] + ".a"
  1259. else: wlib = PREFIX+"/lib/" + lib[:-4] + ".a"
  1260. wobj = []
  1261. for x in obj: wobj.append(PREFIX + "/tmp/" + x[:-4] + ".o")
  1262. if (older(wlib, wobj)):
  1263. cmd = 'ar cru ' + wlib
  1264. for x in wobj: cmd=cmd + ' ' + x
  1265. oscmd(cmd)
  1266. updatefiledate(wlib)
  1267. ########################################################################
  1268. ##
  1269. ## CompileLink
  1270. ##
  1271. ## Generate a DLL or EXE file from a bunch of OBJ and LIB files.
  1272. ##
  1273. ########################################################################
  1274. def CompileLink(dll=0, obj=[], opts=[], xdep=[]):
  1275. if (dll==0): sys.exit("Syntax error in CompileLink directive")
  1276. if (COMPILER=="MSVC7"):
  1277. lib = PREFIX+"/lib/"+dll[:-4]+".lib"
  1278. if ((dll[-4:] != ".exe") and (dll[-4:] != ".dll")):
  1279. dll = PREFIX+"/plugins/"+dll
  1280. else:
  1281. dll = PREFIX+"/bin/"+dll
  1282. ALLTARGETS.append(dll)
  1283. wobj = []
  1284. for x in obj:
  1285. suffix = x[-4:]
  1286. if (suffix==".obj"): wobj.append(PREFIX+"/tmp/"+x)
  1287. elif (suffix==".dll"): wobj.append(PREFIX+"/lib/"+x[:-4]+".lib")
  1288. elif (suffix==".lib"): wobj.append(PREFIX+"/lib/"+x)
  1289. elif (suffix==".ilb"): wobj.append(PREFIX+"/tmp/"+x[:-4]+".lib")
  1290. elif (suffix==".res"): wobj.append(PREFIX+"/tmp/"+x)
  1291. else: sys.exit("unknown suffix in object list.")
  1292. if (older(dll, wobj+xdep)):
  1293. cmd = 'link.exe /nologo /NODEFAULTLIB:LIBCI.LIB'
  1294. if (dll[-4:]!=".exe"): cmd = cmd + " /DLL"
  1295. if (OPTIMIZE==1): cmd = cmd + " /DEBUG /NODEFAULTLIB:MSVCRTD.LIB /OPT:REF "
  1296. if (OPTIMIZE==2): cmd = cmd + " /DEBUG /NODEFAULTLIB:MSVCRTD.LIB /OPT:REF "
  1297. if (OPTIMIZE==3): cmd = cmd + " /DEBUG /NODEFAULTLIB:MSVCRTD.LIB /OPT:REF "
  1298. if (OPTIMIZE==4): cmd = cmd + " /DEBUG /NODEFAULTLIB:MSVCRTD.LIB /OPT:REF /LTCG "
  1299. cmd = cmd + " /MAP /MAPINFO:EXPORTS /MAPINFO:LINES /fixed:no /incremental:no /stack:4194304 "
  1300. if (opts.count("NOLIBCI")): cmd = cmd + " /NODEFAULTLIB:LIBCI.LIB "
  1301. if (opts.count("MAXEGGDEF")): cmd = cmd + ' /DEF:pandatool/src/maxegg/MaxEgg.def'
  1302. cmd = cmd + ' /OUT:' + dll + ' /IMPLIB:' + lib + ' /MAP:NUL'
  1303. cmd = cmd + ' /LIBPATH:' + PREFIX + '/python/libs '
  1304. for x in wobj: cmd = cmd + ' ' + x
  1305. if (dll[-4:]==".exe"): cmd = cmd + ' ' + PREFIX + '/tmp/pandaIcon.res'
  1306. if (opts.count("D3D8") or opts.count("D3D9") or opts.count("DXDRAW") or opts.count("DXSOUND") or opts.count("DXGUID")):
  1307. cmd = cmd + ' /LIBPATH:"' + DIRECTXSDK + '/lib/x86"'
  1308. cmd = cmd + ' /LIBPATH:"' + DIRECTXSDK + '/lib"'
  1309. if (opts.count("D3D8")): cmd = cmd + ' d3d8.lib d3dx8.lib dxerr8.lib'
  1310. if (opts.count("D3D9")): cmd = cmd + ' d3d9.lib d3dx9.lib dxerr9.lib'
  1311. if (opts.count("DXDRAW")): cmd = cmd + ' ddraw.lib'
  1312. if (opts.count("DXSOUND")): cmd = cmd + ' dsound.lib'
  1313. if (opts.count("DXGUID")): cmd = cmd + ' dxguid.lib'
  1314. if (opts.count("WINSOCK")): cmd = cmd + " wsock32.lib"
  1315. if (opts.count("WINSOCK2")): cmd = cmd + " wsock32.lib ws2_32.lib"
  1316. if (opts.count("WINCOMCTL")): cmd = cmd + ' comctl32.lib'
  1317. if (opts.count("WINCOMDLG")): cmd = cmd + ' comdlg32.lib'
  1318. if (opts.count("WINUSER")): cmd = cmd + " user32.lib"
  1319. if (opts.count("WINMM")): cmd = cmd + " winmm.lib"
  1320. if (opts.count("WINIMM")): cmd = cmd + " imm32.lib"
  1321. if (opts.count("WINKERNEL")): cmd = cmd + " kernel32.lib"
  1322. if (opts.count("WINOLDNAMES")): cmd = cmd + " oldnames.lib"
  1323. if (opts.count("WINGDI")): cmd = cmd + " gdi32.lib"
  1324. if (opts.count("ADVAPI")): cmd = cmd + " advapi32.lib"
  1325. if (opts.count("GLUT")): cmd = cmd + " opengl32.lib glu32.lib"
  1326. if (PkgSelected(opts,"ZLIB")): cmd = cmd + ' ' + THIRDPARTY + '/win-libs-vc7/zlib/lib/libz.lib'
  1327. if (PkgSelected(opts,"PNG")): cmd = cmd + ' ' + THIRDPARTY + '/win-libs-vc7/png/lib/libpng.lib'
  1328. if (PkgSelected(opts,"JPEG")): cmd = cmd + ' ' + THIRDPARTY + '/win-libs-vc7/jpeg/lib/libjpeg.lib'
  1329. if (PkgSelected(opts,"TIFF")): cmd = cmd + ' ' + THIRDPARTY + '/win-libs-vc7/tiff/lib/libtiff.lib'
  1330. if (PkgSelected(opts,"VRPN")):
  1331. cmd = cmd + ' ' + THIRDPARTY + '/win-libs-vc7/vrpn/lib/vrpn.lib'
  1332. cmd = cmd + ' ' + THIRDPARTY + '/win-libs-vc7/vrpn/lib/quat.lib'
  1333. if (PkgSelected(opts,"FMOD")):
  1334. cmd = cmd + ' ' + THIRDPARTY + '/win-libs-vc7/fmod/lib/fmod.lib'
  1335. if (PkgSelected(opts,"MILES")):
  1336. cmd = cmd + ' ' + THIRDPARTY + '/win-libs-vc7/miles/lib/mss32.lib'
  1337. if (PkgSelected(opts,"NVIDIACG")):
  1338. if (opts.count("CGGL")):
  1339. cmd = cmd + ' ' + THIRDPARTY + '/win-libs-vc7/nvidiacg/lib/cgGL.lib'
  1340. cmd = cmd + ' ' + THIRDPARTY + '/win-libs-vc7/nvidiacg/lib/cg.lib'
  1341. if (PkgSelected(opts,"HELIX")):
  1342. cmd = cmd + ' ' + THIRDPARTY + '/win-libs-vc7/helix/lib/runtlib.lib'
  1343. cmd = cmd + ' ' + THIRDPARTY + '/win-libs-vc7/helix/lib/syslib.lib'
  1344. cmd = cmd + ' ' + THIRDPARTY + '/win-libs-vc7/helix/lib/contlib.lib'
  1345. cmd = cmd + ' ' + THIRDPARTY + '/win-libs-vc7/helix/lib/debuglib.lib'
  1346. cmd = cmd + ' ' + THIRDPARTY + '/win-libs-vc7/helix/lib/utillib.lib'
  1347. cmd = cmd + ' ' + THIRDPARTY + '/win-libs-vc7/helix/lib/stlport_vc7.lib'
  1348. if (PkgSelected(opts,"NSPR")):
  1349. cmd = cmd + ' ' + THIRDPARTY + '/win-libs-vc7/nspr/lib/libnspr4.lib'
  1350. if (PkgSelected(opts,"SSL")):
  1351. cmd = cmd + ' ' + THIRDPARTY + '/win-libs-vc7/ssl/lib/ssleay32.lib'
  1352. cmd = cmd + ' ' + THIRDPARTY + '/win-libs-vc7/ssl/lib/libeay32.lib'
  1353. if (PkgSelected(opts,"FREETYPE")):
  1354. cmd = cmd + ' ' + THIRDPARTY + '/win-libs-vc7/freetype/lib/libfreetype.lib'
  1355. if (PkgSelected(opts,"FFTW")):
  1356. cmd = cmd + ' ' + THIRDPARTY + '/win-libs-vc7/fftw/lib/rfftw.lib'
  1357. cmd = cmd + ' ' + THIRDPARTY + '/win-libs-vc7/fftw/lib/fftw.lib'
  1358. for maya in ["MAYA5","MAYA6","MAYA65"]:
  1359. if (PkgSelected(opts,maya)):
  1360. cmd = cmd + ' "' + MAYASDK[maya] + '/lib/Foundation.lib"'
  1361. cmd = cmd + ' "' + MAYASDK[maya] + '/lib/OpenMaya.lib"'
  1362. cmd = cmd + ' "' + MAYASDK[maya] + '/lib/OpenMayaAnim.lib"'
  1363. for max in ["MAX5","MAX6","MAX7"]:
  1364. if PkgSelected(opts,max):
  1365. cmd = cmd + ' "' + MAXSDK[max] + '/lib/core.lib"'
  1366. cmd = cmd + ' "' + MAXSDK[max] + '/lib/edmodel.lib"'
  1367. cmd = cmd + ' "' + MAXSDK[max] + '/lib/gfx.lib"'
  1368. cmd = cmd + ' "' + MAXSDK[max] + '/lib/geom.lib"'
  1369. cmd = cmd + ' "' + MAXSDK[max] + '/lib/mesh.lib"'
  1370. cmd = cmd + ' "' + MAXSDK[max] + '/lib/maxutil.lib"'
  1371. cmd = cmd + ' "' + MAXSDK[max] + '/lib/paramblk2.lib"'
  1372. oscmd(cmd)
  1373. updatefiledate(dll)
  1374. if ((OPTIMIZE == 1) and (dll[-4:]==".dll")):
  1375. CopyFile(dll[:-4]+"_d.dll", dll)
  1376. if (COMPILER=="LINUXA"):
  1377. ALLTARGETS.append(PREFIX+"/lib/"+dll[:-4]+".so")
  1378. if (dll[-4:]==".exe"): wdll = PREFIX+"/bin/"+dll[:-4]
  1379. else: wdll = PREFIX+"/lib/"+dll[:-4]+".so"
  1380. wobj = []
  1381. for x in obj:
  1382. suffix = x[-4:]
  1383. if (suffix==".obj"): wobj.append(PREFIX+"/tmp/"+x[:-4]+".o")
  1384. elif (suffix==".dll"): wobj.append(PREFIX+"/lib/"+x[:-4]+".so")
  1385. elif (suffix==".lib"): wobj.append(PREFIX+"/lib/"+x[:-4]+".a")
  1386. elif (suffix==".ilb"): wobj.append(PREFIX+"/tmp/"+x[:-4]+".a")
  1387. else: sys.exit("unknown suffix in object list.")
  1388. if (older(wdll, wobj+xdep)):
  1389. if (dll[-4:]==".exe"): cmd = 'g++ -o ' + wdll + ' -L' + PREFIX + '/lib'
  1390. else: cmd = 'g++ -shared -o ' + wdll + ' -L' + PREFIX + '/lib'
  1391. for x in obj:
  1392. suffix = x[-4:]
  1393. if (suffix==".obj"): cmd = cmd + ' ' + PREFIX + '/tmp/' + x[:-4] + '.o'
  1394. elif (suffix==".dll"): cmd = cmd + ' -l' + x[3:-4]
  1395. elif (suffix==".lib"): cmd = cmd + ' ' + PREFIX + '/lib/' + x[:-4] + '.a'
  1396. elif (suffix==".ilb"): cmd = cmd + ' ' + PREFIX + '/tmp/' + x[:-4] + '.a'
  1397. if (PkgSelected(opts,"FMOD")): cmd = cmd + ' -L' + THIRDPARTY + '/linux-libs-a/fmod/lib -lfmod-3.74'
  1398. if (PkgSelected(opts,"NVIDIACG")):
  1399. cmd = cmd + ' -L' + THIRDPARTY + 'nvidiacg/lib '
  1400. if (opts.count("CGGL")): cmd = cmd + " -lCgGL"
  1401. cmd = cmd + " -lCg"
  1402. if (PkgSelected(opts,"NSPR")): cmd = cmd + ' -L' + THIRDPARTY + '/linux-libs-a/nspr/lib -lpandanspr4'
  1403. if (PkgSelected(opts,"ZLIB")): cmd = cmd + " -lz"
  1404. if (PkgSelected(opts,"PNG")): cmd = cmd + " -lpng"
  1405. if (PkgSelected(opts,"JPEG")): cmd = cmd + " -ljpeg"
  1406. if (PkgSelected(opts,"TIFF")): cmd = cmd + " -ltiff"
  1407. if (PkgSelected(opts,"SSL")): cmd = cmd + " -lssl"
  1408. if (PkgSelected(opts,"FREETYPE")): cmd = cmd + " -lfreetype"
  1409. if (PkgSelected(opts,"VRPN")): cmd = cmd + ' -L' + THIRDPARTY + '/linux-libs-a/vrpn/lib -lvrpn -lquat'
  1410. if (PkgSelected(opts,"FFTW")): cmd = cmd + ' -L' + THIRDPARTY + '/linux-libs-a/fftw/lib -lrfftw -lfftw'
  1411. if (opts.count("GLUT")): cmd = cmd + " -lGL -lGLU"
  1412. oscmd(cmd)
  1413. updatefiledate(wdll)
  1414. ##########################################################################################
  1415. #
  1416. # CompileBAM
  1417. #
  1418. # Generate a BAM file from an EGG or FLT
  1419. #
  1420. ##########################################################################################
  1421. def CompileBAM(preconv, bam, egg):
  1422. dotexe = ".exe"
  1423. if (sys.platform != "win32"): dotexe = ""
  1424. if (older(bam, egg)):
  1425. if (egg[-4:]==".flt"):
  1426. oscmd(PREFIX + "/bin/flt2egg" + dotexe + " -pr " + preconv + " -o " + PREFIX + "/tmp/tmp.egg" + " " + egg)
  1427. oscmd(PREFIX + "/bin/egg2bam" + dotexe + " -o " + bam + " " + PREFIX + "/tmp/tmp.egg")
  1428. else:
  1429. oscmd(PREFIX + "/bin/egg2bam" + dotexe + " -pr " + preconv + " -o " + bam + " " + egg)
  1430. ##########################################################################################
  1431. #
  1432. # If the 'make depend' process discovers an 'include'
  1433. # directive that includes one of the following files,
  1434. # the specified file is not added as a dependency,
  1435. # nor is it traversed.
  1436. #
  1437. ##########################################################################################
  1438. CxxIgnoreHeader["Python.h"] = 1
  1439. CxxIgnoreHeader["Python/Python.h"] = 1
  1440. CxxIgnoreHeader["alloc.h"] = 1
  1441. CxxIgnoreHeader["ctype.h"] = 1
  1442. CxxIgnoreHeader["stdlib.h"] = 1
  1443. CxxIgnoreHeader["ipc_thread.h"] = 1
  1444. CxxIgnoreHeader["platform/symbian/symbian_print.h"] = 1
  1445. CxxIgnoreHeader["hxtypes.h"] = 1
  1446. CxxIgnoreHeader["hxcom.h"] = 1
  1447. CxxIgnoreHeader["hxiids.h"] = 1
  1448. CxxIgnoreHeader["hxpiids.h"] = 1
  1449. CxxIgnoreHeader["dsound.h"] = 1
  1450. CxxIgnoreHeader["hlxosstr.h"] = 1
  1451. CxxIgnoreHeader["ddraw.h"] = 1
  1452. CxxIgnoreHeader["mss.h"] = 1
  1453. CxxIgnoreHeader["MacSocket.h"] = 1
  1454. CxxIgnoreHeader["textureTransition.h"] = 1
  1455. CxxIgnoreHeader["transformTransition.h"] = 1
  1456. CxxIgnoreHeader["billboardTransition.h"] = 1
  1457. CxxIgnoreHeader["transformTransition.h"] = 1
  1458. CxxIgnoreHeader["transparencyTransition.h"] = 1
  1459. CxxIgnoreHeader["allTransitionsWrapper.h"] = 1
  1460. CxxIgnoreHeader["allTransitionsWrapper.h"] = 1
  1461. CxxIgnoreHeader["namedNode.h"] = 1
  1462. CxxIgnoreHeader["renderRelation.h"] = 1
  1463. CxxIgnoreHeader["renderTraverser.h"] = 1
  1464. CxxIgnoreHeader["get_rel_pos.h"] = 1
  1465. CxxIgnoreHeader["Max.h"] = 1
  1466. CxxIgnoreHeader["iparamb2.h"] = 1
  1467. CxxIgnoreHeader["iparamm2.h"] = 1
  1468. CxxIgnoreHeader["istdplug.h"] = 1
  1469. CxxIgnoreHeader["iskin.h"] = 1
  1470. CxxIgnoreHeader["stdmat.h"] = 1
  1471. CxxIgnoreHeader["phyexp.h"] = 1
  1472. CxxIgnoreHeader["bipexp.h"] = 1
  1473. CxxIgnoreHeader["windows.h"] = 1
  1474. CxxIgnoreHeader["windef.h"] = 1
  1475. CxxIgnoreHeader["modstack.h"] = 1
  1476. CxxIgnoreHeader["afxres.h"] = 1
  1477. ##########################################################################################
  1478. #
  1479. # Generate pandaVersion.h
  1480. #
  1481. ##########################################################################################
  1482. VERSION1=int(VERSION.split(".")[0])
  1483. VERSION2=int(VERSION.split(".")[1])
  1484. VERSION3=int(VERSION.split(".")[2])
  1485. NVERSION=VERSION1*1000000+VERSION2*1000+VERSION3
  1486. conf="""
  1487. #define PANDA_MAJOR_VERSION VERSION1
  1488. #define PANDA_MINOR_VERSION VERSION2
  1489. #define PANDA_SEQUENCE_VERSION VERSION2
  1490. #undef PANDA_OFFICIAL_VERSION
  1491. #define PANDA_VERSION NVERSION
  1492. #define PANDA_VERSION_STR "VERSION1.VERSION2.VERSION3"
  1493. #define PANDA_DISTRIBUTOR "makepanda"
  1494. """
  1495. conf = conf.replace("VERSION1",str(VERSION1))
  1496. conf = conf.replace("VERSION2",str(VERSION2))
  1497. conf = conf.replace("VERSION3",str(VERSION3))
  1498. conf = conf.replace("NVERSION",str(NVERSION))
  1499. ConditionalWriteFile(PREFIX+'/include/pandaVersion.h',conf)
  1500. conf="""
  1501. # include "dtoolbase.h"
  1502. EXPCL_DTOOL int panda_version_VERSION1_VERSION2_VERSION3 = 0;
  1503. """
  1504. conf = conf.replace("VERSION1",str(VERSION1))
  1505. conf = conf.replace("VERSION2",str(VERSION2))
  1506. conf = conf.replace("VERSION3",str(VERSION3))
  1507. conf = conf.replace("NVERSION",str(NVERSION))
  1508. ConditionalWriteFile(PREFIX+'/include/checkPandaVersion.cxx',conf)
  1509. conf="""
  1510. # include "dtoolbase.h"
  1511. extern EXPCL_DTOOL int panda_version_VERSION1_VERSION2_VERSION3;
  1512. # ifndef WIN32
  1513. /* For Windows, exporting the symbol from the DLL is sufficient; the
  1514. DLL will not load unless all expected public symbols are defined.
  1515. Other systems may not mind if the symbol is absent unless we
  1516. explictly write code that references it. */
  1517. static int check_panda_version = panda_version_VERSION1_VERSION2_VERSION3;
  1518. # endif
  1519. """
  1520. conf = conf.replace("VERSION1",str(VERSION1))
  1521. conf = conf.replace("VERSION2",str(VERSION2))
  1522. conf = conf.replace("VERSION3",str(VERSION3))
  1523. conf = conf.replace("NVERSION",str(NVERSION))
  1524. ConditionalWriteFile(PREFIX+'/include/checkPandaVersion.h',conf)
  1525. ConditionalWriteFile(PREFIX + "/tmp/pythonversion", os.path.basename(PythonSDK))
  1526. ##########################################################################################
  1527. #
  1528. # If running under windows, compile up the icon.
  1529. #
  1530. ##########################################################################################
  1531. if (sys.platform == "win32"):
  1532. IPATH=["panda/src/configfiles"]
  1533. OPTS=[]
  1534. CompileRES(ipath=IPATH, opts=OPTS, src='pandaIcon.rc', obj='pandaIcon.res')
  1535. ##########################################################################################
  1536. #
  1537. # Generate direct/__init__.py
  1538. #
  1539. ##########################################################################################
  1540. DIRECTINIT="""
  1541. import os,sys
  1542. srcdir1 = os.path.join(__path__[0], 'src')
  1543. srcdir2 = os.path.join(__path__[0], '..', '..', 'direct', 'src')
  1544. if (os.path.isdir(srcdir1)): __path__[0] = srcdir1
  1545. elif (os.path.isdir(srcdir2)): __path__[0] = srcdir2
  1546. else: sys.exit("Cannot find the 'direct' tree")
  1547. """
  1548. ConditionalWriteFile(PREFIX+'/direct/__init__.py', DIRECTINIT)
  1549. ##########################################################################################
  1550. #
  1551. # Generate dtool_have_xxx.dat
  1552. #
  1553. ##########################################################################################
  1554. for x in PACKAGES:
  1555. if (OMIT.count(x)): ConditionalWriteFile(PREFIX+'/tmp/dtool_have_'+x.lower()+'.dat',"0\n")
  1556. else: ConditionalWriteFile(PREFIX+'/tmp/dtool_have_'+x.lower()+'.dat',"1\n")
  1557. ##########################################################################################
  1558. #
  1559. # Generate dtool_config.h
  1560. #
  1561. ##########################################################################################
  1562. conf = "/* dtool_config.h. Generated automatically by makepanda.py */\n"
  1563. for key,win,unix in DTOOLDEFAULTS:
  1564. val = DTOOLCONFIG[key]
  1565. if (val == 'UNDEF'): conf = conf + "#undef " + key + "\n"
  1566. else: conf = conf + "#define " + key + " " + val + "\n"
  1567. ConditionalWriteFile(PREFIX+'/include/dtool_config.h',conf)
  1568. ##########################################################################################
  1569. #
  1570. # Generate the PRC files into the ETC directory.
  1571. #
  1572. ##########################################################################################
  1573. CONFAUTOPRC="""
  1574. ###########################################################
  1575. ### ###
  1576. ### Panda3D Configuration File - Auto-Generated Portion ###
  1577. ### ###
  1578. ### Editing this file is not recommended. Most of these ###
  1579. ### directives can be overriden in Config.prc ###
  1580. ### ###
  1581. ###########################################################
  1582. # Define the display types that have been compiled in. Panda will
  1583. # pick one of these by going through the list in this order until one
  1584. # is found that works, unless the user specifically requests a
  1585. # particular display type with the load-display directive.
  1586. aux-display pandagl
  1587. aux-display pandadx9
  1588. aux-display pandadx8
  1589. aux-display pandadx7
  1590. # The egg loader is handy to have available by default. This allows
  1591. # clients to load egg files. (The bam loader is built-in so bam files
  1592. # are always loadable).
  1593. # By qualifying with the extension "egg", we indicate the egg loader
  1594. # should be made available only if you explicitly name a file with an
  1595. # .egg extension.
  1596. load-file-type egg pandaegg
  1597. # The following lines define some handy object types to use within the
  1598. # egg syntax. This remaps <ObjectType> { name } into whatever egg
  1599. # syntax is given by egg-object-type-name, which makes a handy
  1600. # abbreviation for modeling packages (like Maya) to insert
  1601. # sophisticated egg syntax into the generated egg file, using a single
  1602. # object type string.
  1603. egg-object-type-portal <Scalar> portal { 1 }
  1604. egg-object-type-polylight <Scalar> polylight { 1 }
  1605. egg-object-type-seq24 <Switch> { 1 } <Scalar> fps { 24 }
  1606. egg-object-type-seq12 <Switch> { 1 } <Scalar> fps { 12 }
  1607. egg-object-type-indexed <Scalar> indexed { 1 }
  1608. # These are just shortcuts to define the Model and DCS flags, which
  1609. # indicate nodes that should not be flattened out of the hierarchy
  1610. # during the conversion process. DCS goes one step further and
  1611. # indicates that the node's transform is important and should be
  1612. # preserved (DCS stands for Dynamic Coordinate System).
  1613. egg-object-type-model <Model> { 1 }
  1614. egg-object-type-dcs <DCS> { 1 }
  1615. # The following define various kinds of collision geometry. These
  1616. # mark the geometry at this level and below as invisible collision
  1617. # polygons, which can be used by Panda's collision system to detect
  1618. # collisions more optimally than regular visible polygons.
  1619. egg-object-type-barrier <Collide> { Polyset descend }
  1620. egg-object-type-sphere <Collide> { Sphere descend }
  1621. egg-object-type-invsphere <Collide> { InvSphere descend }
  1622. egg-object-type-tube <Collide> { Tube descend }
  1623. # As above, but these are flagged to be "intangible", so that they
  1624. # will trigger an event but not stop an object from passing through.
  1625. egg-object-type-trigger <Collide> { Polyset descend intangible }
  1626. egg-object-type-trigger-sphere <Collide> { Sphere descend intangible }
  1627. # "bubble" puts an invisible bubble around an object, but does not
  1628. # otherwise remove the geometry.
  1629. egg-object-type-bubble <Collide> { Sphere keep descend }
  1630. # "ghost" turns off the normal collide bit that is set on visible
  1631. # geometry by default, so that if you are using visible geometry for
  1632. # collisions, this particular geometry will not be part of those
  1633. # collisions--it is ghostlike.
  1634. egg-object-type-ghost <Scalar> collide-mask { 0 }
  1635. # This module allows direct loading of formats like .flt, .mb, or .dxf
  1636. load-file-type ptloader
  1637. # Define a new egg object type. See the comments in _panda.prc about this.
  1638. egg-object-type-direct-widget <Scalar> collide-mask { 0x80000000 } <Collide> { Polyset descend }
  1639. # Define a new cull bin that will render on top of everything else.
  1640. cull-bin gui-popup 60 unsorted
  1641. """
  1642. CONFIGPRC="""
  1643. ###########################################################
  1644. ### ###
  1645. ### Panda3D Configuration File - User-Editable Portion ###
  1646. ### ###
  1647. ###########################################################
  1648. # Uncomment one of the following lines to choose whether you should
  1649. # run using OpenGL or DirectX rendering.
  1650. load-display pandagl
  1651. # These control the placement and size of the default rendering window.
  1652. win-origin 100 0
  1653. win-size 800 600
  1654. # Uncomment this line if you want to run Panda fullscreen instead of
  1655. # in a window.
  1656. fullscreen #f
  1657. # If you don't object to running OpenGL in software leave the keyword
  1658. # "software" in the following line, otherwise remove it to force
  1659. # hardware only.
  1660. framebuffer-mode rgba double-buffer depth multisample hardware software
  1661. # These control the amount of output Panda gives for some various
  1662. # categories. The severity levels, in order, are "spam", "debug",
  1663. # "info", "warning", and "fatal"; the default is "info". Uncomment
  1664. # one (or define a new one for the particular category you wish to
  1665. # change) to control this output.
  1666. notify-level warning
  1667. default-directnotify-level warning
  1668. # These specify where model files may be loaded from. You probably
  1669. # want to set this to a sensible path for yourself. $THIS_PRC_DIR is
  1670. # a special variable that indicates the same directory as this
  1671. # particular Config.prc file.
  1672. model-path .
  1673. model-path $THIS_PRC_DIR/..
  1674. model-path $THIS_PRC_DIR/../models
  1675. sound-path .
  1676. sound-path $THIS_PRC_DIR/..
  1677. sound-path $THIS_PRC_DIR/../models
  1678. texture-path .
  1679. texture-path $THIS_PRC_DIR/..
  1680. texture-path $THIS_PRC_DIR/../models
  1681. # This enable the automatic creation of a TK window when running
  1682. # Direct.
  1683. want-directtools #f
  1684. want-tk #f
  1685. # This enables simple networked programs to easily provide a DC file
  1686. dc-file sample.dc
  1687. # Enable audio using the FMod audio library by default:
  1688. audio-library-name fmod_audio
  1689. """
  1690. if (sys.platform != "win32"):
  1691. CONFAUTOPRC = CONFAUTOPRC.replace("aux-display pandadx9","")
  1692. CONFAUTOPRC = CONFAUTOPRC.replace("aux-display pandadx8","")
  1693. CONFAUTOPRC = CONFAUTOPRC.replace("aux-display pandadx7","")
  1694. ConditionalWriteFile(PREFIX + "/etc/Confauto.prc", CONFAUTOPRC)
  1695. ConditionalWriteFile(PREFIX + "/etc/Config.prc", CONFIGPRC)
  1696. ##########################################################################################
  1697. #
  1698. # Copy the precompiled binaries and DLLs into the build.
  1699. #
  1700. ##########################################################################################
  1701. for pkg in (PACKAGES + ["extras"]):
  1702. if (OMIT.count(pkg)==0):
  1703. if (COMPILER == "MSVC7"):
  1704. if (os.path.exists(THIRDPARTY+"/win-libs-vc7/"+pkg.lower()+"/bin")):
  1705. CopyAllFiles(PREFIX+"/bin/",THIRDPARTY+"/win-libs-vc7/"+pkg.lower()+"/bin/")
  1706. if (COMPILER == "LINUXA"):
  1707. if (os.path.exists(THIRDPARTY+"/linux-libs-a/"+pkg.lower()+"/lib")):
  1708. CopyAllFiles(PREFIX+"/lib/",THIRDPARTY+"/linux-libs-a/"+pkg.lower()+"/lib/")
  1709. if sys.platform == "win32":
  1710. CopyTree(PREFIX+'/python', PythonSDK)
  1711. if os.path.isfile(PythonSDK+'/python22.dll'):
  1712. CopyFile(PREFIX+'/bin/', PythonSDK+'/python22.dll')
  1713. ########################################################################
  1714. ##
  1715. ## Compile the 'ppython' executable and 'genpycode' executables
  1716. ##
  1717. ########################################################################
  1718. IPATH=['direct/src/directbase']
  1719. CompileC(ipath=IPATH, opts=['BUILDING_PPYTHON'], src='ppython.cxx', obj='ppython.obj')
  1720. CompileLink(opts=['WINUSER'], dll='ppython.exe', obj=['ppython.obj'])
  1721. IPATH=['direct/src/directbase']
  1722. CompileC(ipath=IPATH, opts=['BUILDING_GENPYCODE'], src='ppython.cxx', obj='genpycode.obj')
  1723. CompileLink(opts=['WINUSER'], dll='genpycode.exe', obj=['genpycode.obj'])
  1724. ########################################################################
  1725. #
  1726. # Copy header files to the PREFIX/include directory.
  1727. #
  1728. # Are we just copying *ALL* headers into the include directory?
  1729. # If so, let's automate this.
  1730. #
  1731. # We're definitely not copying all headers. We're only copying those
  1732. # same headers that are copied by ppremake. But the bigger question
  1733. # is, did he *intend* to copy all headers? Another good question is,
  1734. # could we just put a little tag into the header file itself, indicating
  1735. # that it is meant to be copied?
  1736. #
  1737. ########################################################################
  1738. ConditionalWriteFile(PREFIX+'/include/ctl3d.h', '/* dummy file to make MAX happy */')
  1739. class FileList:
  1740. allFiles=['*']
  1741. includes=['/*_src.cxx', '/*.h', '/*.I', '/*.T']
  1742. def __init__(self):
  1743. self.files={}
  1744. def add(self, srcPattern="*"):
  1745. global VERBOSE
  1746. if VERBOSE:
  1747. print "FileList.add(\"%s\")"%(srcPattern,)
  1748. for i in glob(srcPattern):
  1749. self.files[i.replace("\\", "/")]=None
  1750. def addIncludes(self, srcPattern="."):
  1751. for i in self.includes:
  1752. self.add(srcPattern+i)
  1753. def omit(self, srcPattern="*"):
  1754. global VERBOSE
  1755. if VERBOSE:
  1756. print "FileList.omit(\"%s\")"%(srcPattern,)
  1757. for i in glob(srcPattern):
  1758. try: del self.files[i.replace("\\", "/")]
  1759. except: pass
  1760. def omitIncludes(self, srcPattern="."):
  1761. for i in self.includes:
  1762. self.omit(srcPattern+i)
  1763. def copyTo(self, dstDir="."):
  1764. global VERBOSE
  1765. if VERBOSE:
  1766. print "FileList.copyTo(\"%s\")"%(dstDir,)
  1767. for i in self.files.keys():
  1768. if os.path.isfile(i):
  1769. CopyFile(dstDir+'/'+os.path.split(i)[1], i)
  1770. fileList=FileList()
  1771. fileList.addIncludes('dtool/src/*')
  1772. fileList.addIncludes('panda/src/*')
  1773. fileList.addIncludes('pandatool/src/*')
  1774. fileList.addIncludes('pandaapp/src/*')
  1775. fileList.addIncludes('direct/src/*')
  1776. fileList.omitIncludes('dtool/src/parser-inc')
  1777. fileList.omitIncludes('dtool/src/parser-inc')
  1778. fileList.copyTo(PREFIX+'/include')
  1779. del fileList
  1780. fileList=FileList()
  1781. fileList.add('dtool/src/parser-inc/*')
  1782. fileList.copyTo(PREFIX+'/include/parser-inc')
  1783. fileList.copyTo(PREFIX+'/include/parser-inc/openssl')
  1784. del fileList
  1785. fileList=FileList()
  1786. fileList.add('dtool/src/parser-inc/cg.h')
  1787. fileList.add('dtool/src/parser-inc/cgGL.h')
  1788. fileList.copyTo(PREFIX+'/include/parser-inc/Cg')
  1789. del fileList
  1790. ########################################################################
  1791. #
  1792. # This file contains a list of all the files that need to be compiled.
  1793. #
  1794. ########################################################################
  1795. #
  1796. # DIRECTORY: dtool/src/dtoolbase/
  1797. #
  1798. IPATH=['dtool/src/dtoolbase']
  1799. OPTS=['BUILDING_DTOOL', 'NSPR']
  1800. CompileC(ipath=IPATH, opts=OPTS, src='dtoolbase.cxx', obj='dtoolbase_dtoolbase.obj')
  1801. #
  1802. # DIRECTORY: dtool/src/dtoolutil/
  1803. #
  1804. IPATH=['dtool/src/dtoolutil']
  1805. OPTS=['BUILDING_DTOOL', 'NSPR']
  1806. CompileC(ipath=IPATH, opts=OPTS, src='gnu_getopt.c', obj='dtoolutil_gnu_getopt.obj')
  1807. CompileC(ipath=IPATH, opts=OPTS, src='gnu_getopt1.c', obj='dtoolutil_gnu_getopt1.obj')
  1808. CompileC(ipath=IPATH, opts=OPTS, src='dtoolutil_composite1.cxx', obj='dtoolutil_composite1.obj')
  1809. CompileC(ipath=IPATH, opts=OPTS, src='dtoolutil_composite2.cxx', obj='dtoolutil_composite2.obj')
  1810. #
  1811. # DIRECTORY: dtool/metalibs/dtool/
  1812. #
  1813. IPATH=['dtool/metalibs/dtool']
  1814. OPTS=['BUILDING_DTOOL', 'NSPR']
  1815. CompileC(ipath=IPATH, opts=OPTS, src='dtool.cxx', obj='dtool_dtool.obj')
  1816. CompileLink(opts=['ADVAPI', 'NSPR'], dll='libdtool.dll', obj=[
  1817. 'dtool_dtool.obj',
  1818. 'dtoolutil_gnu_getopt.obj',
  1819. 'dtoolutil_gnu_getopt1.obj',
  1820. 'dtoolutil_composite1.obj',
  1821. 'dtoolutil_composite2.obj',
  1822. 'dtoolbase_dtoolbase.obj',
  1823. ])
  1824. #
  1825. # DIRECTORY: dtool/src/cppparser/
  1826. #
  1827. IPATH=['dtool/src/cppparser']
  1828. CompileBison(pre='cppyy', dstc='cppBison.cxx', dsth='cppBison.h', src='dtool/src/cppparser/cppBison.yxx')
  1829. OPTS=['NSPR']
  1830. CompileC(ipath=IPATH, opts=OPTS, src='cppParser_composite1.cxx', obj='cppParser_composite1.obj')
  1831. CompileC(ipath=IPATH, opts=OPTS, src='cppParser_composite2.cxx', obj='cppParser_composite2.obj')
  1832. CompileC(ipath=IPATH, opts=OPTS, src='cppBison.cxx', obj='cppParser_cppBison.obj')
  1833. CompileLIB(lib='libcppParser.ilb', obj=[
  1834. 'cppParser_composite1.obj',
  1835. 'cppParser_composite2.obj',
  1836. 'cppParser_cppBison.obj',
  1837. ])
  1838. #
  1839. # DIRECTORY: dtool/src/prc/
  1840. #
  1841. IPATH=['dtool/src/prc']
  1842. OPTS=['BUILDING_DTOOLCONFIG', 'SSL', 'NSPR']
  1843. CompileC(ipath=IPATH, opts=OPTS, src='prc_composite1.cxx', obj='prc_composite1.obj')
  1844. CompileC(ipath=IPATH, opts=OPTS, src='prc_composite2.cxx', obj='prc_composite2.obj')
  1845. #
  1846. # DIRECTORY: dtool/src/dconfig/
  1847. #
  1848. IPATH=['dtool/src/dconfig']
  1849. OPTS=['BUILDING_DTOOLCONFIG', 'NSPR']
  1850. CompileC(ipath=IPATH, opts=OPTS, src='dconfig_composite1.cxx', obj='dconfig_composite1.obj')
  1851. #
  1852. # DIRECTORY: dtool/src/interrogatedb/
  1853. #
  1854. IPATH=['dtool/src/interrogatedb']
  1855. OPTS=['BUILDING_DTOOLCONFIG', 'NSPR']
  1856. CompileC(ipath=IPATH, opts=OPTS, src='interrogatedb_composite1.cxx', obj='interrogatedb_composite1.obj')
  1857. CompileC(ipath=IPATH, opts=OPTS, src='interrogatedb_composite2.cxx', obj='interrogatedb_composite2.obj')
  1858. #
  1859. # DIRECTORY: dtool/metalibs/dtoolconfig/
  1860. #
  1861. IPATH=['dtool/metalibs/dtoolconfig']
  1862. OPTS=['BUILDING_DTOOLCONFIG', 'NSPR']
  1863. CompileC(ipath=IPATH, opts=OPTS, src='dtoolconfig.cxx', obj='dtoolconfig_dtoolconfig.obj')
  1864. CompileC(ipath=IPATH, opts=OPTS, src='pydtool.cxx', obj='dtoolconfig_pydtool.obj')
  1865. CompileLink(opts=['ADVAPI', 'NSPR', 'SSL'], dll='libdtoolconfig.dll', obj=[
  1866. 'dtoolconfig_dtoolconfig.obj',
  1867. 'dtoolconfig_pydtool.obj',
  1868. 'interrogatedb_composite1.obj',
  1869. 'interrogatedb_composite2.obj',
  1870. 'dconfig_composite1.obj',
  1871. 'prc_composite1.obj',
  1872. 'prc_composite2.obj',
  1873. 'libdtool.dll',
  1874. ])
  1875. #
  1876. # DIRECTORY: dtool/src/pystub/
  1877. #
  1878. IPATH=['dtool/src/pystub']
  1879. OPTS=['BUILDING_DTOOLCONFIG', 'NSPR']
  1880. CompileC(ipath=IPATH, opts=OPTS, src='pystub.cxx', obj='pystub_pystub.obj')
  1881. CompileLink(opts=['ADVAPI', 'NSPR'], dll='libpystub.dll', obj=[
  1882. 'pystub_pystub.obj',
  1883. 'libdtool.dll',
  1884. ])
  1885. #
  1886. # DIRECTORY: dtool/src/interrogate/
  1887. #
  1888. IPATH=['dtool/src/interrogate', 'dtool/src/cppparser', 'dtool/src/interrogatedb']
  1889. OPTS=['NSPR']
  1890. CompileC(ipath=IPATH, opts=OPTS, src='interrogate_composite1.cxx', obj='interrogate_composite1.obj')
  1891. CompileC(ipath=IPATH, opts=OPTS, src='interrogate_composite2.cxx', obj='interrogate_composite2.obj')
  1892. CompileLink(opts=['ADVAPI', 'NSPR', 'SSL'], dll='interrogate.exe', obj=[
  1893. 'interrogate_composite1.obj',
  1894. 'interrogate_composite2.obj',
  1895. 'libcppParser.ilb',
  1896. 'libpystub.dll',
  1897. 'libdtoolconfig.dll',
  1898. 'libdtool.dll',
  1899. ])
  1900. CompileC(ipath=IPATH, opts=OPTS, src='interrogate_module.cxx', obj='interrogate_module_interrogate_module.obj')
  1901. CompileLink(opts=['ADVAPI', 'NSPR', 'SSL'], dll='interrogate_module.exe', obj=[
  1902. 'interrogate_module_interrogate_module.obj',
  1903. 'libcppParser.ilb',
  1904. 'libpystub.dll',
  1905. 'libdtoolconfig.dll',
  1906. 'libdtool.dll',
  1907. ])
  1908. CompileC(ipath=IPATH, opts=OPTS, src='parse_file.cxx', obj='parse_file_parse_file.obj')
  1909. CompileLink(opts=['ADVAPI', 'NSPR', 'SSL'], dll='parse_file.exe', obj=[
  1910. 'parse_file_parse_file.obj',
  1911. 'libcppParser.ilb',
  1912. 'libpystub.dll',
  1913. 'libdtoolconfig.dll',
  1914. 'libdtool.dll',
  1915. ])
  1916. #
  1917. # DIRECTORY: dtool/src/prckeys/
  1918. #
  1919. if (OMIT.count("SSL")==0):
  1920. IPATH=['dtool/src/prckeys']
  1921. OPTS=['SSL', 'NSPR']
  1922. CompileC(ipath=IPATH, opts=OPTS, src='makePrcKey.cxx', obj='make-prc-key_makePrcKey.obj')
  1923. CompileLink(opts=['ADVAPI', 'NSPR', 'SSL'], dll='make-prc-key.exe', obj=[
  1924. 'make-prc-key_makePrcKey.obj',
  1925. 'libpystub.dll',
  1926. 'libdtool.dll',
  1927. 'libdtoolconfig.dll',
  1928. ])
  1929. #
  1930. # DIRECTORY: dtool/src/test_interrogate/
  1931. #
  1932. IPATH=['dtool/src/test_interrogate']
  1933. OPTS=['NSPR']
  1934. CompileC(ipath=IPATH, opts=OPTS, src='test_interrogate.cxx', obj='test_interrogate_test_interrogate.obj')
  1935. CompileLink(opts=['ADVAPI', 'NSPR', 'SSL'], dll='test_interrogate.exe', obj=[
  1936. 'test_interrogate_test_interrogate.obj',
  1937. 'libpystub.dll',
  1938. 'libdtoolconfig.dll',
  1939. 'libdtool.dll',
  1940. ])
  1941. #
  1942. # DIRECTORY: panda/src/pandabase/
  1943. #
  1944. IPATH=['panda/src/pandabase']
  1945. OPTS=['BUILDING_PANDAEXPRESS', 'NSPR']
  1946. CompileC(ipath=IPATH, opts=OPTS, src='pandabase.cxx', obj='pandabase_pandabase.obj')
  1947. #
  1948. # DIRECTORY: panda/src/express/
  1949. #
  1950. IPATH=['panda/src/express']
  1951. OPTS=['BUILDING_PANDAEXPRESS', 'SSL', 'ZLIB', 'NSPR']
  1952. CompileC(ipath=IPATH, opts=OPTS, src='express_composite1.cxx', obj='express_composite1.obj')
  1953. CompileC(ipath=IPATH, opts=OPTS, src='express_composite2.cxx', obj='express_composite2.obj')
  1954. Interrogate(ipath=IPATH, opts=OPTS, outd='libexpress.in', outc='libexpress_igate.cxx',
  1955. src='panda/src/express', module='pandaexpress', library='libexpress',
  1956. files=['atomicAdjustDummyImpl.h', 'atomicAdjust.h', 'atomicAdjustImpl.h', 'atomicAdjustNsprImpl.h', 'bigEndian.h', 'buffer.h', 'checksumHashGenerator.h', 'circBuffer.h', 'clockObject.h', 'conditionVarDummyImpl.h', 'conditionVar.h', 'conditionVarImpl.h', 'conditionVarNsprImpl.h', 'config_express.h', 'datagram.h', 'datagramGenerator.h', 'datagramIterator.h', 'datagramSink.h', 'dcast.h', 'encryptStreamBuf.h', 'encryptStream.h', 'error_utils.h', 'hashGeneratorBase.h', 'hashVal.h', 'indent.h', 'indirectLess.h', 'littleEndian.h', 'memoryInfo.h', 'memoryUsage.h', 'memoryUsagePointerCounts.h', 'memoryUsagePointers.h', 'multifile.h', 'mutexDummyImpl.h', 'pmutex.h', 'mutexHolder.h', 'mutexImpl.h', 'mutexNsprImpl.h', 'namable.h', 'nativeNumericData.h', 'numeric_types.h', 'ordered_vector.h', 'password_hash.h', 'patchfile.h', 'pointerTo.h', 'pointerToArray.h', 'pointerToBase.h', 'pointerToVoid.h', 'profileTimer.h', 'pta_uchar.h', 'ramfile.h', 'referenceCount.h', 'register_type.h', 'reversedNumericData.h', 'selectThreadImpl.h', 'streamReader.h', 'streamWriter.h', 'stringDecoder.h', 'subStream.h', 'subStreamBuf.h', 'textEncoder.h', 'threadDummyImpl.h', 'thread.h', 'threadImpl.h', 'threadNsprImpl.h', 'threadPriority.h', 'tokenBoard.h', 'trueClock.h', 'typeHandle.h', 'typedObject.h', 'typedReferenceCount.h', 'typedef.h', 'typeRegistry.h', 'typeRegistryNode.h', 'unicodeLatinMap.h', 'vector_uchar.h', 'virtualFileComposite.h', 'virtualFile.h', 'virtualFileList.h', 'virtualFileMount.h', 'virtualFileMountMultifile.h', 'virtualFileMountSystem.h', 'virtualFileSimple.h', 'virtualFileSystem.h', 'weakPointerTo.h', 'weakPointerToBase.h', 'weakPointerToVoid.h', 'weakReferenceList.h', 'windowsRegistry.h', 'zStream.h', 'zStreamBuf.h', 'express_composite1.cxx', 'express_composite2.cxx'])
  1957. CompileC(ipath=IPATH, opts=OPTS, src='libexpress_igate.cxx', obj='libexpress_igate.obj')
  1958. #
  1959. # DIRECTORY: panda/src/downloader/
  1960. #
  1961. IPATH=['panda/src/downloader']
  1962. OPTS=['BUILDING_PANDAEXPRESS', 'SSL', 'ZLIB', 'NSPR']
  1963. CompileC(ipath=IPATH, opts=OPTS, src='downloader_composite1.cxx', obj='downloader_composite1.obj')
  1964. CompileC(ipath=IPATH, opts=OPTS, src='downloader_composite2.cxx', obj='downloader_composite2.obj')
  1965. Interrogate(ipath=IPATH, opts=OPTS, outd='libdownloader.in', outc='libdownloader_igate.cxx',
  1966. src='panda/src/downloader', module='pandaexpress', library='libdownloader', files=[
  1967. 'config_downloader.h', 'asyncUtility.h', 'bioPtr.h', 'bioStreamPtr.h', 'bioStream.h', 'bioStreamBuf.h',
  1968. 'chunkedStream.h', 'chunkedStreamBuf.h', 'decompressor.h', 'documentSpec.h', 'downloadDb.h',
  1969. 'download_utils.h', 'extractor.h', 'httpAuthorization.h', 'httpBasicAuthorization.h', 'httpChannel.h',
  1970. 'httpClient.h', 'httpCookie.h', 'httpDate.h', 'httpDigestAuthorization.h', 'httpEntityTag.h',
  1971. 'httpEnum.h', 'identityStream.h', 'identityStreamBuf.h', 'multiplexStream.h', 'multiplexStreamBuf.h',
  1972. 'patcher.h', 'socketStream.h', 'ssl_utils.h', 'urlSpec.h',
  1973. 'downloader_composite1.cxx', 'downloader_composite2.cxx'])
  1974. CompileC(ipath=IPATH, opts=OPTS, src='libdownloader_igate.cxx', obj='libdownloader_igate.obj')
  1975. #
  1976. # DIRECTORY: panda/metalibs/pandaexpress/
  1977. #
  1978. IPATH=['panda/metalibs/pandaexpress']
  1979. OPTS=['BUILDING_PANDAEXPRESS', 'ZLIB', 'NSPR']
  1980. CompileC(ipath=IPATH, opts=OPTS, src='pandaexpress.cxx', obj='pandaexpress_pandaexpress.obj')
  1981. InterrogateModule(outc='libpandaexpress_module.cxx', module='pandaexpress', library='libpandaexpress',
  1982. files=['libdownloader.in', 'libexpress.in'])
  1983. CompileC(ipath=IPATH, opts=OPTS, src='libpandaexpress_module.cxx', obj='libpandaexpress_module.obj')
  1984. CompileLink(opts=['ADVAPI', 'WINSOCK2', 'NSPR', 'SSL', 'ZLIB'], dll='libpandaexpress.dll', obj=[
  1985. 'pandaexpress_pandaexpress.obj',
  1986. 'libpandaexpress_module.obj',
  1987. 'downloader_composite1.obj',
  1988. 'downloader_composite2.obj',
  1989. 'libdownloader_igate.obj',
  1990. 'express_composite1.obj',
  1991. 'express_composite2.obj',
  1992. 'libexpress_igate.obj',
  1993. 'pandabase_pandabase.obj',
  1994. 'libdtoolconfig.dll',
  1995. 'libdtool.dll',
  1996. ])
  1997. #
  1998. # DIRECTORY: panda/src/putil/
  1999. #
  2000. IPATH=['panda/src/putil']
  2001. OPTS=['BUILDING_PANDA', 'NSPR']
  2002. CompileC(ipath=IPATH, opts=OPTS, src='putil_composite1.cxx', obj='putil_composite1.obj')
  2003. CompileC(ipath=IPATH, opts=OPTS, src='putil_composite2.cxx', obj='putil_composite2.obj')
  2004. Interrogate(ipath=IPATH, opts=OPTS, outd='libputil.in', outc='libputil_igate.cxx',
  2005. src='panda/src/putil', module='panda', library='libputil', files=[
  2006. 'bam.h', 'bamReader.h', 'bamReaderParam.h', 'bamWriter.h', 'bitMask.h', 'buttonHandle.h',
  2007. 'buttonRegistry.h', 'cachedTypedWritableReferenceCount.h', 'collideMask.h', 'portalMask.h',
  2008. 'compareTo.h', 'config_util.h', 'configurable.h', 'cycleData.h', 'cycleDataReader.h',
  2009. 'cycleDataWriter.h', 'datagramInputFile.h', 'datagramOutputFile.h', 'drawMask.h', 'factoryBase.h',
  2010. 'factoryParam.h', 'factoryParams.h', 'firstOfPairCompare.h', 'firstOfPairLess.h',
  2011. 'globalPointerRegistry.h', 'indirectCompareNames.h', 'indirectCompareTo.h', 'ioPtaDatagramFloat.h',
  2012. 'ioPtaDatagramInt.h', 'ioPtaDatagramShort.h', 'keyboardButton.h', 'lineStream.h', 'lineStreamBuf.h',
  2013. 'load_prc_file.h', 'modifierButtons.h', 'mouseButton.h', 'mouseData.h', 'nameUniquifier.h',
  2014. 'pipeline.h', 'pipelineCycler.h', 'pipelineCyclerBase.h', 'pta_double.h', 'pta_float.h',
  2015. 'pta_int.h', 'string_utils.h', 'timedCycle.h', 'typedWritable.h', 'typedWritableReferenceCount.h',
  2016. 'updateSeq.h', 'uniqueIdAllocator.h', 'vector_double.h', 'vector_float.h', 'vector_typedWritable.h',
  2017. 'vector_ushort.h', 'vector_writable.h', 'writableConfigurable.h', 'writableParam.h',
  2018. 'putil_composite1.cxx', 'putil_composite2.cxx'])
  2019. CompileC(ipath=IPATH, opts=OPTS, src='libputil_igate.cxx', obj='libputil_igate.obj')
  2020. #
  2021. # DIRECTORY: panda/src/audio/
  2022. #
  2023. IPATH=['panda/src/audio']
  2024. OPTS=['BUILDING_PANDA', 'NSPR']
  2025. CompileC(ipath=IPATH, opts=OPTS, src='audio_composite1.cxx', obj='audio_composite1.obj')
  2026. Interrogate(ipath=IPATH, opts=OPTS, outd='libaudio.in', outc='libaudio_igate.cxx',
  2027. src='panda/src/audio', module='panda', library='libaudio',
  2028. files=['audio.h'])
  2029. CompileC(ipath=IPATH, opts=OPTS, src='libaudio_igate.cxx', obj='libaudio_igate.obj')
  2030. #
  2031. # DIRECTORY: panda/src/event/
  2032. #
  2033. IPATH=['panda/src/event']
  2034. OPTS=['BUILDING_PANDA', 'NSPR']
  2035. CompileC(ipath=IPATH, opts=OPTS, src='event_composite1.cxx', obj='event_composite1.obj')
  2036. Interrogate(ipath=IPATH, opts=OPTS, outd='libevent.in', outc='libevent_igate.cxx',
  2037. src='panda/src/event', module='panda', library='libevent', files=[
  2038. 'config_event.h', 'buttonEvent.h', 'buttonEventList.h', 'event.h', 'eventHandler.h',
  2039. 'eventParameter.h', 'eventQueue.h', 'eventReceiver.h', 'pt_Event.h', 'throw_event.h', 'event_composite1.cxx'])
  2040. CompileC(ipath=IPATH, opts=OPTS, src='libevent_igate.cxx', obj='libevent_igate.obj')
  2041. #
  2042. # DIRECTORY: panda/src/linmath/
  2043. #
  2044. IPATH=['panda/src/linmath']
  2045. OPTS=['BUILDING_PANDA', 'NSPR']
  2046. CompileC(ipath=IPATH, opts=OPTS, src='linmath_composite1.cxx', obj='linmath_composite1.obj')
  2047. CompileC(ipath=IPATH, opts=OPTS, src='linmath_composite2.cxx', obj='linmath_composite2.obj')
  2048. Interrogate(ipath=IPATH, opts=OPTS, outd='liblinmath.in', outc='liblinmath_igate.cxx',
  2049. src='panda/src/linmath', module='panda', library='liblinmath', files=[
  2050. 'compose_matrix.h', 'compose_matrix_src.h', 'config_linmath.h', 'coordinateSystem.h', 'dbl2fltnames.h', 'dblnames.h', 'deg_2_rad.h', 'flt2dblnames.h', 'fltnames.h', 'ioPtaDatagramLinMath.h', 'lcast_to.h', 'lcast_to_src.h', 'lmatrix.h', 'lmatrix3.h', 'lmatrix3_src.h', 'lmatrix4.h', 'lmatrix4_src.h', 'lorientation.h', 'lorientation_src.h', 'lpoint2.h', 'lpoint2_src.h', 'lpoint3.h', 'lpoint3_src.h', 'lpoint4.h', 'lpoint4_src.h', 'lquaternion.h', 'lquaternion_src.h', 'lrotation.h', 'lrotation_src.h', 'luse.h', 'lvec2_ops.h', 'lvec2_ops_src.h', 'lvec3_ops.h', 'lvec3_ops_src.h', 'lvec4_ops.h', 'lvec4_ops_src.h', 'lvecBase2.h', 'lvecBase2_src.h', 'lvecBase3.h', 'lvecBase3_src.h', 'lvecBase4.h', 'lvecBase4_src.h', 'lvector2.h', 'lvector2_src.h', 'lvector3.h', 'lvector3_src.h', 'lvector4.h', 'lvector4_src.h', 'mathNumbers.h', 'pta_Colorf.h', 'pta_Normalf.h', 'pta_TexCoordf.h', 'pta_Vertexf.h', 'vector_Colorf.h', 'vector_LPoint2f.h', 'vector_LVecBase3f.h', 'vector_Normalf.h', 'vector_TexCoordf.h', 'vector_Vertexf.h', 'linmath_composite1.cxx', 'linmath_composite2.cxx'])
  2051. CompileC(ipath=IPATH, opts=OPTS, src='liblinmath_igate.cxx', obj='liblinmath_igate.obj')
  2052. #
  2053. # DIRECTORY: panda/src/mathutil/
  2054. #
  2055. IPATH=['panda/src/mathutil']
  2056. OPTS=['BUILDING_PANDA', 'FFTW', 'NSPR']
  2057. CompileC(ipath=IPATH, opts=OPTS, src='mathutil_composite1.cxx', obj='mathutil_composite1.obj')
  2058. CompileC(ipath=IPATH, opts=OPTS, src='mathutil_composite2.cxx', obj='mathutil_composite2.obj')
  2059. Interrogate(ipath=IPATH, opts=OPTS, outd='libmathutil.in', outc='libmathutil_igate.cxx',
  2060. src='panda/src/mathutil', module='panda', library='libmathutil', files=[
  2061. 'boundingHexahedron.h', 'boundingLine.h', 'boundingSphere.h', 'boundingVolume.h', 'config_mathutil.h', 'fftCompressor.h', 'finiteBoundingVolume.h', 'frustum.h', 'frustum_src.h', 'geometricBoundingVolume.h', 'linmath_events.h', 'look_at.h', 'look_at_src.h', 'omniBoundingVolume.h', 'plane.h', 'plane_src.h', 'rotate_to.h', 'mathutil_composite1.cxx', 'mathutil_composite2.cxx'])
  2062. CompileC(ipath=IPATH, opts=OPTS, src='libmathutil_igate.cxx', obj='libmathutil_igate.obj')
  2063. #
  2064. # DIRECTORY: panda/src/gsgbase/
  2065. #
  2066. IPATH=['panda/src/gsgbase']
  2067. OPTS=['BUILDING_PANDA', 'NSPR']
  2068. CompileC(ipath=IPATH, opts=OPTS, src='gsgbase_composite1.cxx', obj='gsgbase_composite1.obj')
  2069. Interrogate(ipath=IPATH, opts=OPTS, outd='libgsgbase.in', outc='libgsgbase_igate.cxx',
  2070. src='panda/src/gsgbase', module='panda', library='libgsgbase', files=[
  2071. 'config_gsgbase.h', 'graphicsStateGuardianBase.h', 'gsgbase_composite1.cxx'])
  2072. CompileC(ipath=IPATH, opts=OPTS, src='libgsgbase_igate.cxx', obj='libgsgbase_igate.obj')
  2073. #
  2074. # DIRECTORY: panda/src/pnmimage/
  2075. #
  2076. IPATH=['panda/src/pnmimage']
  2077. OPTS=['BUILDING_PANDA', 'NSPR']
  2078. CompileC(ipath=IPATH, opts=OPTS, src='pnmimage_composite1.cxx', obj='pnmimage_composite1.obj')
  2079. CompileC(ipath=IPATH, opts=OPTS, src='pnmimage_composite2.cxx', obj='pnmimage_composite2.obj')
  2080. Interrogate(ipath=IPATH, opts=OPTS, outd='libpnmimage.in', outc='libpnmimage_igate.cxx',
  2081. src='panda/src/pnmimage', module='panda', library='libpnmimage', files=[
  2082. 'config_pnmimage.h', 'pnmbitio.h', 'pnmFileType.h', 'pnmFileTypeRegistry.h', 'pnmImage.h', 'pnmImageHeader.h', 'pnmReader.h', 'pnmWriter.h', 'pnmimage_base.h', 'ppmcmap.h', 'pnmimage_composite1.cxx', 'pnmimage_composite2.cxx'])
  2083. CompileC(ipath=IPATH, opts=OPTS, src='libpnmimage_igate.cxx', obj='libpnmimage_igate.obj')
  2084. #
  2085. # DIRECTORY: panda/src/net/
  2086. #
  2087. if (OMIT.count("NSPR")==0):
  2088. IPATH=['panda/src/net']
  2089. OPTS=['BUILDING_PANDA', 'NSPR']
  2090. CompileC(ipath=IPATH, opts=OPTS, src='net_composite1.cxx', obj='net_composite1.obj')
  2091. CompileC(ipath=IPATH, opts=OPTS, src='net_composite2.cxx', obj='net_composite2.obj')
  2092. Interrogate(ipath=IPATH, opts=OPTS, outd='libnet.in', outc='libnet_igate.cxx',
  2093. src='panda/src/net', module='panda', library='libnet', files=[
  2094. 'config_net.h', 'connection.h', 'connectionListener.h', 'connectionManager.h',
  2095. 'connectionReader.h', 'connectionWriter.h', 'datagramQueue.h', 'datagramTCPHeader.h',
  2096. 'datagramUDPHeader.h', 'netAddress.h', 'netDatagram.h', 'pprerror.h', 'queuedConnectionListener.h',
  2097. 'queuedConnectionManager.h', 'queuedConnectionReader.h', 'recentConnectionReader.h',
  2098. 'queuedReturn.h', 'net_composite1.cxx', 'net_composite2.cxx'])
  2099. CompileC(ipath=IPATH, opts=OPTS, src='libnet_igate.cxx', obj='libnet_igate.obj')
  2100. #
  2101. # DIRECTORY: panda/src/pstatclient/
  2102. #
  2103. IPATH=['panda/src/pstatclient']
  2104. OPTS=['BUILDING_PANDA', 'NSPR']
  2105. CompileC(ipath=IPATH, opts=OPTS, src='pstatclient_composite1.cxx', obj='pstatclient_composite1.obj')
  2106. CompileC(ipath=IPATH, opts=OPTS, src='pstatclient_composite2.cxx', obj='pstatclient_composite2.obj')
  2107. Interrogate(ipath=IPATH, opts=OPTS, outd='libpstatclient.in', outc='libpstatclient_igate.cxx',
  2108. src='panda/src/pstatclient', module='panda', library='libpstatclient', files=[
  2109. 'config_pstats.h', 'pStatClient.h', 'pStatClientImpl.h', 'pStatClientVersion.h', 'pStatClientControlMessage.h', 'pStatCollector.h', 'pStatCollectorDef.h', 'pStatFrameData.h', 'pStatProperties.h', 'pStatServerControlMessage.h', 'pStatThread.h', 'pStatTimer.h', 'pstatclient_composite1.cxx', 'pstatclient_composite2.cxx'])
  2110. CompileC(ipath=IPATH, opts=OPTS, src='libpstatclient_igate.cxx', obj='libpstatclient_igate.obj')
  2111. #
  2112. # DIRECTORY: panda/src/gobj/
  2113. #
  2114. IPATH=['panda/src/gobj']
  2115. OPTS=['BUILDING_PANDA', 'NSPR']
  2116. CompileC(ipath=IPATH, opts=OPTS, src='gobj_composite1.cxx', obj='gobj_composite1.obj')
  2117. CompileC(ipath=IPATH, opts=OPTS, src='gobj_composite2.cxx', obj='gobj_composite2.obj')
  2118. Interrogate(ipath=IPATH, opts=OPTS, outd='libgobj.in', outc='libgobj_igate.cxx',
  2119. src='panda/src/gobj', module='panda', library='libgobj', files=[
  2120. 'boundedObject.h', 'config_gobj.h', 'drawable.h', 'geom.h',
  2121. 'geomContext.h', 'geomLine.h', 'geomLinestrip.h', 'geomPoint.h',
  2122. 'geomPolygon.h', 'geomQuad.h', 'geomSphere.h', 'geomSprite.h',
  2123. 'geomTri.h', 'geomTrifan.h', 'geomTristrip.h', 'imageBuffer.h',
  2124. 'material.h', 'materialPool.h', 'matrixLens.h', 'orthographicLens.h',
  2125. 'perspectiveLens.h', 'pixelBuffer.h', 'preparedGraphicsObjects.h',
  2126. 'lens.h', 'savedContext.h', 'texture.h', 'textureContext.h',
  2127. 'texturePool.h', 'texCoordName.h', 'textureStage.h',
  2128. 'gobj_composite1.cxx', 'gobj_composite2.cxx'])
  2129. CompileC(ipath=IPATH, opts=OPTS, src='libgobj_igate.cxx', obj='libgobj_igate.obj')
  2130. #
  2131. # DIRECTORY: panda/src/lerp/
  2132. #
  2133. IPATH=['panda/src/lerp']
  2134. OPTS=['BUILDING_PANDA', 'NSPR']
  2135. CompileC(ipath=IPATH, opts=OPTS, src='lerp_composite1.cxx', obj='lerp_composite1.obj')
  2136. Interrogate(ipath=IPATH, opts=OPTS, outd='liblerp.in', outc='liblerp_igate.cxx',
  2137. src='panda/src/lerp', module='panda', library='liblerp', files=[
  2138. 'config_lerp.h', 'lerp.h', 'lerpblend.h', 'lerpfunctor.h', 'lerp_composite1.cxx'])
  2139. CompileC(ipath=IPATH, opts=OPTS, src='liblerp_igate.cxx', obj='liblerp_igate.obj')
  2140. #
  2141. # DIRECTORY: panda/src/pgraph/
  2142. #
  2143. IPATH=['panda/src/pgraph']
  2144. OPTS=['BUILDING_PANDA', 'NSPR']
  2145. CompileC(ipath=IPATH, opts=OPTS, src='nodePath.cxx', obj='pgraph_nodePath.obj')
  2146. CompileC(ipath=IPATH, opts=OPTS, src='pgraph_composite1.cxx', obj='pgraph_composite1.obj')
  2147. CompileC(ipath=IPATH, opts=OPTS, src='pgraph_composite2.cxx', obj='pgraph_composite2.obj')
  2148. Interrogate(ipath=IPATH, opts=OPTS, outd='libpgraph.in', outc='libpgraph_igate.cxx',
  2149. src='panda/src/pgraph', module='panda', library='libpgraph', files=[
  2150. 'accumulatedAttribs.h', 'alphaTestAttrib.h', 'ambientLight.h', 'auxSceneData.h', 'bamFile.h', 'billboardEffect.h', 'binCullHandler.h', 'camera.h', 'clipPlaneAttrib.h', 'colorAttrib.h', 'colorBlendAttrib.h', 'colorScaleAttrib.h', 'colorWriteAttrib.h', 'compassEffect.h', 'config_pgraph.h', 'cullBin.h', 'cullBinAttrib.h', 'cullBinBackToFront.h', 'cullBinFixed.h', 'cullBinFrontToBack.h', 'cullBinManager.h', 'cullBinUnsorted.h', 'cullFaceAttrib.h', 'cullHandler.h', 'cullResult.h', 'cullTraverser.h', 'cullTraverserData.h', 'cullableObject.h', 'decalEffect.h', 'depthOffsetAttrib.h', 'depthTestAttrib.h', 'depthWriteAttrib.h', 'directionalLight.h', 'drawCullHandler.h', 'fadeLodNode.h', 'fadeLodNodeData.h', 'findApproxLevelEntry.h', 'findApproxPath.h', 'fog.h', 'fogAttrib.h', 'geomNode.h', 'geomTransformer.h', 'lensNode.h', 'light.h', 'lightAttrib.h', 'lightLensNode.h', 'lightNode.h', 'loader.h', 'loaderFileType.h', 'loaderFileTypeBam.h', 'loaderFileTypeRegistry.h', 'lodNode.h', 'materialAttrib.h', 'modelNode.h', 'modelPool.h', 'modelRoot.h', 'nodePath.h', 'nodePath.cxx', 'nodePathCollection.h', 'nodePathComponent.h', 'nodePathLerps.h', 'pandaNode.h', 'planeNode.h', 'pointLight.h', 'polylightNode.h', 'polylightEffect.h', 'portalNode.h', 'portalClipper.h', 'renderAttrib.h', 'renderEffect.h', 'renderEffects.h', 'renderModeAttrib.h', 'renderState.h', 'rescaleNormalAttrib.h', 'sceneGraphAnalyzer.h', 'sceneGraphReducer.h', 'sceneSetup.h', 'selectiveChildNode.h', 'sequenceNode.h', 'showBoundsEffect.h', 'spotlight.h', 'switchNode.h', 'texMatrixAttrib.h', 'texProjectorEffect.h', 'textureApplyAttrib.h', 'textureAttrib.h', 'texGenAttrib.h', 'textureCollection.h', 'textureStageCollection.h', 'transformState.h', 'transparencyAttrib.h', 'weakNodePath.h', 'workingNodePath.h', 'pgraph_composite1.cxx', 'pgraph_composite2.cxx'])
  2151. CompileC(ipath=IPATH, opts=OPTS, src='libpgraph_igate.cxx', obj='libpgraph_igate.obj')
  2152. #
  2153. # DIRECTORY: panda/src/chan/
  2154. #
  2155. IPATH=['panda/src/chan']
  2156. OPTS=['BUILDING_PANDA', 'NSPR']
  2157. CompileC(ipath=IPATH, opts=OPTS, src='chan_composite1.cxx', obj='chan_composite1.obj')
  2158. CompileC(ipath=IPATH, opts=OPTS, src='chan_composite2.cxx', obj='chan_composite2.obj')
  2159. Interrogate(ipath=IPATH, opts=OPTS, outd='libchan.in', outc='libchan_igate.cxx',
  2160. src='panda/src/chan', module='panda', library='libchan', files=[
  2161. 'animBundle.h', 'animBundleNode.h', 'animChannel.h', 'animChannelBase.h', 'animChannelMatrixDynamic.h', 'animChannelMatrixXfmTable.h', 'animChannelScalarDynamic.h', 'animChannelScalarTable.h', 'animControl.h', 'animControlCollection.h', 'animGroup.h', 'auto_bind.h', 'config_chan.h', 'movingPartBase.h', 'movingPartMatrix.h', 'movingPartScalar.h', 'partBundle.h', 'partBundleNode.h', 'partGroup.h', 'vector_PartGroupStar.h', 'chan_composite1.cxx', 'chan_composite2.cxx'])
  2162. CompileC(ipath=IPATH, opts=OPTS, src='libchan_igate.cxx', obj='libchan_igate.obj')
  2163. #
  2164. # DIRECTORY: panda/src/char/
  2165. #
  2166. IPATH=['panda/src/char']
  2167. OPTS=['BUILDING_PANDA', 'NSPR']
  2168. CompileC(ipath=IPATH, opts=OPTS, src='char_composite1.cxx', obj='char_composite1.obj')
  2169. CompileC(ipath=IPATH, opts=OPTS, src='char_composite2.cxx', obj='char_composite2.obj')
  2170. Interrogate(ipath=IPATH, opts=OPTS, outd='libchar.in', outc='libchar_igate.cxx',
  2171. src='panda/src/char', module='panda', library='libchar', files=[
  2172. 'character.h', 'characterJoint.h', 'characterJointBundle.h', 'characterSlider.h', 'computedVertices.h', 'computedVerticesMorph.h', 'config_char.h', 'dynamicVertices.h', 'char_composite1.cxx', 'char_composite2.cxx'])
  2173. CompileC(ipath=IPATH, opts=OPTS, src='libchar_igate.cxx', obj='libchar_igate.obj')
  2174. #
  2175. # DIRECTORY: panda/src/dgraph/
  2176. #
  2177. IPATH=['panda/src/dgraph']
  2178. OPTS=['BUILDING_PANDA', 'NSPR']
  2179. CompileC(ipath=IPATH, opts=OPTS, src='dgraph_composite1.cxx', obj='dgraph_composite1.obj')
  2180. CompileC(ipath=IPATH, opts=OPTS, src='dgraph_composite2.cxx', obj='dgraph_composite2.obj')
  2181. Interrogate(ipath=IPATH, opts=OPTS, outd='libdgraph.in', outc='libdgraph_igate.cxx',
  2182. src='panda/src/dgraph', module='panda', library='libdgraph', files=[
  2183. 'config_dgraph.h', 'dataGraphTraverser.h', 'dataNode.h', 'dataNodeTransmit.h', 'dgraph_composite1.cxx', 'dgraph_composite2.cxx'])
  2184. CompileC(ipath=IPATH, opts=OPTS, src='libdgraph_igate.cxx', obj='libdgraph_igate.obj')
  2185. #
  2186. # DIRECTORY: panda/src/display/
  2187. #
  2188. IPATH=['panda/src/display']
  2189. OPTS=['BUILDING_PANDA', 'NSPR']
  2190. CompileC(ipath=IPATH, opts=OPTS, src='display_composite1.cxx', obj='display_composite1.obj')
  2191. CompileC(ipath=IPATH, opts=OPTS, src='display_composite2.cxx', obj='display_composite2.obj')
  2192. Interrogate(ipath=IPATH, opts=OPTS, outd='libdisplay.in', outc='libdisplay_igate.cxx',
  2193. src='panda/src/display', module='panda', library='libdisplay', files=[
  2194. 'config_display.h', 'drawableRegion.h', 'displayRegion.h', 'displayRegionStack.h', 'frameBufferProperties.h', 'frameBufferStack.h', 'graphicsEngine.h', 'graphicsOutput.h', 'graphicsBuffer.h', 'graphicsPipe.h', 'graphicsPipeSelection.h', 'graphicsStateGuardian.h', 'graphicsThreadingModel.h', 'graphicsWindow.h', 'graphicsWindowInputDevice.h', 'graphicsDevice.h', 'parasiteBuffer.h', 'windowProperties.h', 'lensStack.h', 'savedFrameBuffer.h', 'display_composite1.cxx', 'display_composite2.cxx'])
  2195. CompileC(ipath=IPATH, opts=OPTS, src='libdisplay_igate.cxx', obj='libdisplay_igate.obj')
  2196. #
  2197. # DIRECTORY: panda/src/device/
  2198. #
  2199. IPATH=['panda/src/device']
  2200. OPTS=['BUILDING_PANDA', 'NSPR']
  2201. CompileC(ipath=IPATH, opts=OPTS, src='device_composite1.cxx', obj='device_composite1.obj')
  2202. CompileC(ipath=IPATH, opts=OPTS, src='device_composite2.cxx', obj='device_composite2.obj')
  2203. Interrogate(ipath=IPATH, opts=OPTS, outd='libdevice.in', outc='libdevice_igate.cxx',
  2204. src='panda/src/device', module='panda', library='libdevice', files=[
  2205. 'analogNode.h', 'buttonNode.h', 'clientAnalogDevice.h', 'clientBase.h', 'clientButtonDevice.h', 'clientDevice.h', 'clientDialDevice.h', 'clientTrackerDevice.h', 'config_device.h', 'dialNode.h', 'mouseAndKeyboard.h', 'trackerData.h', 'trackerNode.h', 'virtualMouse.h', 'device_composite1.cxx', 'device_composite2.cxx'])
  2206. CompileC(ipath=IPATH, opts=OPTS, src='libdevice_igate.cxx', obj='libdevice_igate.obj')
  2207. #
  2208. # DIRECTORY: panda/src/tform/
  2209. #
  2210. IPATH=['panda/src/tform']
  2211. OPTS=['BUILDING_PANDA', 'NSPR']
  2212. CompileC(ipath=IPATH, opts=OPTS, src='tform_composite1.cxx', obj='tform_composite1.obj')
  2213. CompileC(ipath=IPATH, opts=OPTS, src='tform_composite2.cxx', obj='tform_composite2.obj')
  2214. Interrogate(ipath=IPATH, opts=OPTS, outd='libtform.in', outc='libtform_igate.cxx',
  2215. src='panda/src/tform', module='panda', library='libtform', files=[
  2216. 'buttonThrower.h', 'config_tform.h', 'driveInterface.h', 'mouseInterfaceNode.h', 'mouseWatcher.h', 'mouseWatcherGroup.h', 'mouseWatcherParameter.h', 'mouseWatcherRegion.h', 'trackball.h', 'transform2sg.h', 'tform_composite1.cxx', 'tform_composite2.cxx'])
  2217. CompileC(ipath=IPATH, opts=OPTS, src='libtform_igate.cxx', obj='libtform_igate.obj')
  2218. #
  2219. # DIRECTORY: panda/src/collide/
  2220. #
  2221. IPATH=['panda/src/collide']
  2222. OPTS=['BUILDING_PANDA', 'NSPR']
  2223. CompileC(ipath=IPATH, opts=OPTS, src='collide_composite1.cxx', obj='collide_composite1.obj')
  2224. CompileC(ipath=IPATH, opts=OPTS, src='collide_composite2.cxx', obj='collide_composite2.obj')
  2225. Interrogate(ipath=IPATH, opts=OPTS, outd='libcollide.in', outc='libcollide_igate.cxx',
  2226. src='panda/src/collide', module='panda', library='libcollide', files=[
  2227. 'collisionEntry.h', 'collisionHandler.h', 'collisionHandlerEvent.h', 'collisionHandlerFloor.h', 'collisionHandlerGravity.h', 'collisionHandlerPhysical.h', 'collisionHandlerPusher.h', 'collisionHandlerQueue.h', 'collisionInvSphere.h', 'collisionLine.h', 'collisionLevelState.h', 'collisionNode.h', 'collisionPlane.h', 'collisionPolygon.h', 'collisionRay.h', 'collisionRecorder.h', 'collisionSegment.h', 'collisionSolid.h', 'collisionSphere.h', 'collisionTraverser.h', 'collisionTube.h', 'collisionVisualizer.h', 'config_collide.h', 'collide_composite1.cxx', 'collide_composite2.cxx'])
  2228. CompileC(ipath=IPATH, opts=OPTS, src='libcollide_igate.cxx', obj='libcollide_igate.obj')
  2229. #
  2230. # DIRECTORY: panda/src/pnmtext/
  2231. #
  2232. if (OMIT.count("FREETYPE")==0):
  2233. IPATH=['panda/src/pnmtext']
  2234. OPTS=['BUILDING_PANDA', 'NSPR', 'FREETYPE']
  2235. CompileC(ipath=IPATH, opts=OPTS, src='config_pnmtext.cxx', obj='pnmtext_config_pnmtext.obj')
  2236. CompileC(ipath=IPATH, opts=OPTS, src='freetypeFont.cxx', obj='pnmtext_freetypeFont.obj')
  2237. CompileC(ipath=IPATH, opts=OPTS, src='pnmTextGlyph.cxx', obj='pnmtext_pnmTextGlyph.obj')
  2238. CompileC(ipath=IPATH, opts=OPTS, src='pnmTextMaker.cxx', obj='pnmtext_pnmTextMaker.obj')
  2239. #
  2240. # DIRECTORY: panda/src/text/
  2241. #
  2242. IPATH=['panda/src/text']
  2243. OPTS=['BUILDING_PANDA', 'ZLIB', 'NSPR', 'FREETYPE']
  2244. CompileC(ipath=IPATH, opts=OPTS, src='text_composite1.cxx', obj='text_composite1.obj')
  2245. CompileC(ipath=IPATH, opts=OPTS, src='text_composite2.cxx', obj='text_composite2.obj')
  2246. Interrogate(ipath=IPATH, opts=OPTS, outd='libtext.in', outc='libtext_igate.cxx',
  2247. src='panda/src/text', module='panda', library='libtext', files=[
  2248. 'config_text.h', 'default_font.h', 'dynamicTextFont.h', 'dynamicTextGlyph.h', 'dynamicTextPage.h', 'fontPool.h', 'geomTextGlyph.h', 'staticTextFont.h', 'textAssembler.h', 'textFont.h', 'textGlyph.h', 'textNode.h', 'textProperties.h', 'textPropertiesManager.h', 'text_composite1.cxx', 'text_composite2.cxx'])
  2249. CompileC(ipath=IPATH, opts=OPTS, src='libtext_igate.cxx', obj='libtext_igate.obj')
  2250. #
  2251. # DIRECTORY: panda/src/grutil/
  2252. #
  2253. IPATH=['panda/src/grutil']
  2254. OPTS=['BUILDING_PANDA', 'NSPR']
  2255. CompileC(ipath=IPATH, opts=OPTS, src='multitexReducer.cxx', obj='grutil_multitexReducer.obj')
  2256. CompileC(ipath=IPATH, opts=OPTS, src='grutil_composite1.cxx', obj='grutil_composite1.obj')
  2257. Interrogate(ipath=IPATH, opts=OPTS, outd='libgrutil.in', outc='libgrutil_igate.cxx',
  2258. src='panda/src/grutil', module='panda', library='libgrutil', files=[
  2259. 'cardMaker.h', 'config_grutil.h', 'frameRateMeter.h', 'lineSegs.h', 'multitexReducer.h', 'multitexReducer.cxx', 'grutil_composite1.cxx'])
  2260. CompileC(ipath=IPATH, opts=OPTS, src='libgrutil_igate.cxx', obj='libgrutil_igate.obj')
  2261. #
  2262. # DIRECTORY: panda/src/gsgmisc/
  2263. #
  2264. IPATH=['panda/src/gsgmisc']
  2265. OPTS=['BUILDING_PANDA', 'NSPR']
  2266. CompileC(ipath=IPATH, opts=OPTS, src='geomIssuer.cxx', obj='gsgmisc_geomIssuer.obj')
  2267. #
  2268. # DIRECTORY: panda/src/helix/
  2269. #
  2270. if (OMIT.count("HELIX")==0):
  2271. IPATH=['panda/src/helix']
  2272. OPTS=['BUILDING_PANDA', 'NSPR', 'HELIX']
  2273. CompileC(ipath=IPATH, opts=OPTS, src='config_helix.cxx', obj='helix_config_helix.obj')
  2274. CompileC(ipath=IPATH, opts=OPTS, src='fivemmap.cxx', obj='helix_fivemmap.obj')
  2275. CompileC(ipath=IPATH, opts=OPTS, src='HelixClient.cxx', obj='helix_HelixClient.obj')
  2276. CompileC(ipath=IPATH, opts=OPTS, src='HxAdviseSink.cxx', obj='helix_HxAdviseSink.obj')
  2277. CompileC(ipath=IPATH, opts=OPTS, src='HxAuthenticationManager.cxx', obj='helix_HxAuthenticationManager.obj')
  2278. CompileC(ipath=IPATH, opts=OPTS, src='HxClientContext.cxx', obj='helix_HxClientContext.obj')
  2279. CompileC(ipath=IPATH, opts=OPTS, src='HxErrorSink.cxx', obj='helix_HxErrorSink.obj')
  2280. CompileC(ipath=IPATH, opts=OPTS, src='HxSiteSupplier.cxx', obj='helix_HxSiteSupplier.obj')
  2281. CompileC(ipath=IPATH, opts=OPTS, src='iids.cxx', obj='helix_iids.obj')
  2282. CompileC(ipath=IPATH, opts=OPTS, src='print.cxx', obj='helix_print.obj')
  2283. Interrogate(ipath=IPATH, opts=OPTS, outd='libhelix.in', outc='libhelix_igate.cxx',
  2284. src='panda/src/helix', module='panda', library='libhelix', files=['HelixClient.cxx'])
  2285. CompileC(ipath=IPATH, opts=OPTS, src='libhelix_igate.cxx', obj='libhelix_igate.obj')
  2286. CompileLIB(lib='libhelix.ilb', obj=[
  2287. 'helix_config_helix.obj',
  2288. 'helix_fivemmap.obj',
  2289. 'helix_HelixClient.obj',
  2290. 'helix_HxAdviseSink.obj',
  2291. 'helix_HxAuthenticationManager.obj',
  2292. 'helix_HxClientContext.obj',
  2293. 'helix_HxErrorSink.obj',
  2294. 'helix_HxSiteSupplier.obj',
  2295. 'helix_iids.obj',
  2296. 'helix_print.obj',
  2297. 'libhelix_igate.obj'])
  2298. #
  2299. # DIRECTORY: panda/src/parametrics/
  2300. #
  2301. IPATH=['panda/src/parametrics']
  2302. OPTS=['BUILDING_PANDA', 'NSPR']
  2303. CompileC(ipath=IPATH, opts=OPTS, src='parametrics_composite1.cxx', obj='parametrics_composite1.obj')
  2304. CompileC(ipath=IPATH, opts=OPTS, src='parametrics_composite2.cxx', obj='parametrics_composite2.obj')
  2305. Interrogate(ipath=IPATH, opts=OPTS, outd='libparametrics.in', outc='libparametrics_igate.cxx',
  2306. src='panda/src/parametrics', module='panda', library='libparametrics', files=[
  2307. 'classicNurbsCurve.h', 'config_parametrics.h', 'cubicCurveseg.h', 'parametricCurveDrawer.h',
  2308. 'curveFitter.h', 'hermiteCurve.h', 'nurbsCurve.h', 'nurbsCurveDrawer.h', 'nurbsCurveEvaluator.h',
  2309. 'nurbsCurveInterface.h', 'nurbsCurveResult.h', 'nurbsBasisVector.h', 'nurbsSurfaceEvaluator.h',
  2310. 'nurbsSurfaceResult.h', 'nurbsVertex.h', 'parametricCurve.h', 'parametricCurveCollection.h',
  2311. 'piecewiseCurve.h', 'ropeNode.h', 'sheetNode.h', 'parametrics_composite1.cxx', 'parametrics_composite2.cxx'])
  2312. CompileC(ipath=IPATH, opts=OPTS, src='libparametrics_igate.cxx', obj='libparametrics_igate.obj')
  2313. #
  2314. # DIRECTORY: panda/src/pgui/
  2315. #
  2316. IPATH=['panda/src/pgui']
  2317. OPTS=['BUILDING_PANDA', 'NSPR']
  2318. CompileC(ipath=IPATH, opts=OPTS, src='pgui_composite1.cxx', obj='pgui_composite1.obj')
  2319. CompileC(ipath=IPATH, opts=OPTS, src='pgui_composite2.cxx', obj='pgui_composite2.obj')
  2320. Interrogate(ipath=IPATH, opts=OPTS, outd='libpgui.in', outc='libpgui_igate.cxx',
  2321. src='panda/src/pgui', module='panda', library='libpgui', files=[
  2322. 'config_pgui.h', 'pgButton.h', 'pgSliderButton.h', 'pgCullTraverser.h', 'pgEntry.h',
  2323. 'pgMouseWatcherGroup.h', 'pgMouseWatcherParameter.h', 'pgFrameStyle.h', 'pgItem.h',
  2324. 'pgMouseWatcherBackground.h', 'pgMouseWatcherRegion.h', 'pgTop.h', 'pgWaitBar.h', 'pgSliderBar.h',
  2325. 'pgui_composite1.cxx', 'pgui_composite2.cxx'])
  2326. CompileC(ipath=IPATH, opts=OPTS, src='libpgui_igate.cxx', obj='libpgui_igate.obj')
  2327. #
  2328. # DIRECTORY: panda/src/pnmimagetypes/
  2329. #
  2330. IPATH=['panda/src/pnmimagetypes', 'panda/src/pnmimage']
  2331. OPTS=['BUILDING_PANDA', 'PNG', 'ZLIB', 'JPEG', 'ZLIB', 'NSPR', 'JPEG', 'TIFF']
  2332. CompileC(ipath=IPATH, opts=OPTS, src='pnmFileTypePNG.cxx', obj='pnmimagetypes_pnmFileTypePNG.obj')
  2333. CompileC(ipath=IPATH, opts=OPTS, src='pnmFileTypeTIFF.cxx', obj='pnmimagetypes_pnmFileTypeTIFF.obj')
  2334. CompileC(ipath=IPATH, opts=OPTS, src='pnmimagetypes_composite1.cxx', obj='pnmimagetypes_composite1.obj')
  2335. CompileC(ipath=IPATH, opts=OPTS, src='pnmimagetypes_composite2.cxx', obj='pnmimagetypes_composite2.obj')
  2336. #
  2337. # DIRECTORY: panda/src/recorder/
  2338. #
  2339. IPATH=['panda/src/recorder']
  2340. OPTS=['BUILDING_PANDA', 'NSPR']
  2341. CompileC(ipath=IPATH, opts=OPTS, src='recorder_composite1.cxx', obj='recorder_composite1.obj')
  2342. CompileC(ipath=IPATH, opts=OPTS, src='recorder_composite2.cxx', obj='recorder_composite2.obj')
  2343. Interrogate(ipath=IPATH, opts=OPTS, outd='librecorder.in', outc='librecorder_igate.cxx',
  2344. src='panda/src/recorder', module='panda', library='librecorder', files=[
  2345. 'config_recorder.h', 'mouseRecorder.h', 'recorderBase.h', 'recorderController.h', 'recorderFrame.h', 'recorderHeader.h', 'recorderTable.h', 'socketStreamRecorder.h', 'recorder_composite1.cxx', 'recorder_composite2.cxx'])
  2346. CompileC(ipath=IPATH, opts=OPTS, src='librecorder_igate.cxx', obj='librecorder_igate.obj')
  2347. #
  2348. # DIRECTORY: panda/src/vrpn/
  2349. #
  2350. if (OMIT.count("VRPN")==0):
  2351. IPATH=['panda/src/vrpn']
  2352. OPTS=['BUILDING_PANDA', 'NSPR', 'VRPN']
  2353. CompileC(ipath=IPATH, opts=OPTS, src='vrpn_composite1.cxx', obj='pvrpn_composite1.obj')
  2354. Interrogate(ipath=IPATH, opts=OPTS, outd='libpvrpn.in', outc='libpvrpn_igate.cxx',
  2355. src='panda/src/vrpn', module='panda', library='libpvrpn', files=[
  2356. 'config_vrpn.cxx', 'config_vrpn.h', 'vrpnClient.cxx', 'vrpnAnalog.cxx', 'vrpnAnalog.h',
  2357. 'vrpnAnalogDevice.cxx', 'vrpnAnalogDevice.h', 'vrpnButton.cxx', 'vrpnButton.h',
  2358. 'vrpnButtonDevice.cxx', 'vrpnButtonDevice.h', 'vrpnClient.h', 'vrpnDial.cxx', 'vrpnDial.h',
  2359. 'vrpnDialDevice.cxx', 'vrpnDialDevice.h', 'vrpnTracker.cxx', 'vrpnTracker.h', 'vrpnTrackerDevice.cxx',
  2360. 'vrpnTrackerDevice.h', 'vrpn_interface.h'])
  2361. CompileC(ipath=IPATH, opts=OPTS, src='libpvrpn_igate.cxx', obj='libpvrpn_igate.obj')
  2362. #
  2363. # DIRECTORY: panda/metalibs/panda/
  2364. #
  2365. IPATH=['panda/metalibs/panda']
  2366. OPTS=['BUILDING_PANDA', 'ZLIB', 'VRPN', 'JPEG', 'PNG', 'TIFF', 'NSPR', 'FREETYPE', 'HELIX', 'FFTW',
  2367. 'ADVAPI', 'WINSOCK2', 'WINUSER', 'WINMM']
  2368. INFILES=['librecorder.in', 'libpgraph.in', 'libgrutil.in', 'libchan.in', 'libpstatclient.in',
  2369. 'libchar.in', 'libcollide.in', 'libdevice.in', 'libdgraph.in', 'libdisplay.in', 'libevent.in',
  2370. 'libgobj.in', 'libgsgbase.in', 'liblinmath.in', 'libmathutil.in', 'libparametrics.in',
  2371. 'libpnmimage.in', 'libtext.in', 'libtform.in', 'liblerp.in', 'libputil.in', 'libaudio.in',
  2372. 'libpgui.in']
  2373. OBJFILES=['panda_panda.obj', 'libpanda_module.obj', 'recorder_composite1.obj',
  2374. 'recorder_composite2.obj', 'librecorder_igate.obj',
  2375. 'pgraph_nodePath.obj', 'pgraph_composite1.obj', 'pgraph_composite2.obj', 'libpgraph_igate.obj',
  2376. 'grutil_multitexReducer.obj', 'grutil_composite1.obj', 'libgrutil_igate.obj',
  2377. 'chan_composite1.obj', 'chan_composite2.obj', 'libchan_igate.obj', 'pstatclient_composite1.obj',
  2378. 'pstatclient_composite2.obj', 'libpstatclient_igate.obj', 'char_composite1.obj',
  2379. 'char_composite2.obj', 'libchar_igate.obj', 'collide_composite1.obj', 'collide_composite2.obj',
  2380. 'libcollide_igate.obj', 'device_composite1.obj', 'device_composite2.obj', 'libdevice_igate.obj',
  2381. 'dgraph_composite1.obj', 'dgraph_composite2.obj', 'libdgraph_igate.obj', 'display_composite1.obj',
  2382. 'display_composite2.obj', 'libdisplay_igate.obj', 'event_composite1.obj', 'libevent_igate.obj',
  2383. 'gobj_composite1.obj', 'gobj_composite2.obj', 'libgobj_igate.obj', 'gsgbase_composite1.obj',
  2384. 'libgsgbase_igate.obj', 'gsgmisc_geomIssuer.obj', 'linmath_composite1.obj',
  2385. 'linmath_composite2.obj', 'liblinmath_igate.obj',
  2386. 'mathutil_composite1.obj', 'mathutil_composite2.obj', 'libmathutil_igate.obj',
  2387. 'parametrics_composite1.obj', 'parametrics_composite2.obj', 'libparametrics_igate.obj',
  2388. 'pnmimagetypes_pnmFileTypePNG.obj', 'pnmimagetypes_pnmFileTypeTIFF.obj', 'pnmimagetypes_composite1.obj',
  2389. 'pnmimagetypes_composite2.obj', 'pnmimage_composite1.obj', 'pnmimage_composite2.obj', 'libpnmimage_igate.obj',
  2390. 'text_composite1.obj', 'text_composite2.obj', 'libtext_igate.obj',
  2391. 'tform_composite1.obj', 'tform_composite2.obj',
  2392. 'libtform_igate.obj', 'lerp_composite1.obj', 'liblerp_igate.obj',
  2393. 'putil_composite1.obj', 'putil_composite2.obj', 'libputil_igate.obj',
  2394. 'audio_composite1.obj', 'libaudio_igate.obj', 'pgui_composite1.obj', 'pgui_composite2.obj',
  2395. 'libpgui_igate.obj', 'pandabase_pandabase.obj', 'libpandaexpress.dll', 'libdtoolconfig.dll', 'libdtool.dll']
  2396. if OMIT.count("HELIX")==0:
  2397. OBJFILES.append("libhelix.ilb")
  2398. INFILES.append("libhelix.in")
  2399. if OMIT.count("VRPN")==0:
  2400. OBJFILES.append("pvrpn_composite1.obj")
  2401. OBJFILES.append("libpvrpn_igate.obj")
  2402. INFILES.append("libpvrpn.in")
  2403. if OMIT.count("NSPR")==0:
  2404. OBJFILES.append("net_composite1.obj")
  2405. OBJFILES.append("net_composite2.obj")
  2406. OBJFILES.append("libnet_igate.obj")
  2407. INFILES.append("libnet.in")
  2408. if OMIT.count("FREETYPE")==0:
  2409. OBJFILES.append("pnmtext_config_pnmtext.obj")
  2410. OBJFILES.append("pnmtext_freetypeFont.obj")
  2411. OBJFILES.append("pnmtext_pnmTextGlyph.obj")
  2412. OBJFILES.append("pnmtext_pnmTextMaker.obj")
  2413. InterrogateModule(outc='libpanda_module.cxx', module='panda', library='libpanda', files=INFILES)
  2414. CompileC(ipath=IPATH, opts=OPTS, src='panda.cxx', obj='panda_panda.obj')
  2415. CompileC(ipath=IPATH, opts=OPTS, src='libpanda_module.cxx', obj='libpanda_module.obj')
  2416. CompileLink(opts=OPTS, dll='libpanda.dll', obj=OBJFILES, xdep=[
  2417. PREFIX+'/tmp/dtool_have_helix.dat',
  2418. PREFIX+'/tmp/dtool_have_vrpn.dat',
  2419. PREFIX+'/tmp/dtool_have_nspr.dat',
  2420. PREFIX+'/tmp/dtool_have_freetype.dat',
  2421. ])
  2422. #
  2423. # DIRECTORY: panda/src/audiotraits/
  2424. #
  2425. if OMIT.count("FMOD") == 0:
  2426. IPATH=['panda/src/audiotraits']
  2427. OPTS=['BUILDING_FMOD_AUDIO', 'NSPR', 'FMOD']
  2428. CompileC(ipath=IPATH, opts=OPTS, src='fmod_audio_composite1.cxx', obj='fmod_audio_fmod_audio_composite1.obj')
  2429. CompileLink(opts=['ADVAPI', 'WINUSER', 'WINMM', 'FMOD', 'NSPR'], dll='libfmod_audio.dll', obj=[
  2430. 'fmod_audio_fmod_audio_composite1.obj',
  2431. 'libpanda.dll',
  2432. 'libpandaexpress.dll',
  2433. 'libdtoolconfig.dll',
  2434. 'libdtool.dll',
  2435. ])
  2436. if OMIT.count("MILES") == 0:
  2437. IPATH=['panda/src/audiotraits']
  2438. OPTS=['BUILDING_MILES_AUDIO', 'NSPR', 'MILES']
  2439. CompileC(ipath=IPATH, opts=OPTS, src='miles_audio_composite1.cxx', obj='miles_audio_miles_audio_composite1.obj')
  2440. CompileLink(opts=['ADVAPI', 'WINUSER', 'WINMM', 'MILES', 'NSPR'], dll='libmiles_audio.dll', obj=[
  2441. 'miles_audio_miles_audio_composite1.obj',
  2442. 'libpanda.dll',
  2443. 'libpandaexpress.dll',
  2444. 'libdtoolconfig.dll',
  2445. 'libdtool.dll',
  2446. ])
  2447. #
  2448. # DIRECTORY: panda/src/builder/
  2449. #
  2450. IPATH=['panda/src/builder']
  2451. OPTS=['BUILDING_PANDAEGG', 'NSPR']
  2452. CompileC(ipath=IPATH, opts=OPTS, src='builder_composite1.cxx', obj='builder_composite1.obj')
  2453. CompileC(ipath=IPATH, opts=OPTS, src='builder_composite2.cxx', obj='builder_composite2.obj')
  2454. #
  2455. # DIRECTORY: panda/src/distort/
  2456. #
  2457. IPATH=['panda/src/distort']
  2458. OPTS=['BUILDING_PANDAFX', 'NSPR']
  2459. CompileC(ipath=IPATH, opts=OPTS, src='distort_composite1.cxx', obj='distort_composite1.obj')
  2460. Interrogate(ipath=IPATH, opts=OPTS, outd='libdistort.in', outc='libdistort_igate.cxx',
  2461. src='panda/src/distort', module='pandafx', library='libdistort',
  2462. files=['config_distort.h', 'projectionScreen.h', 'cylindricalLens.h', 'fisheyeLens.h', 'nonlinearImager.h', 'pSphereLens.h', 'distort_composite1.cxx'])
  2463. CompileC(ipath=IPATH, opts=OPTS, src='libdistort_igate.cxx', obj='libdistort_igate.obj')
  2464. #
  2465. # DIRECTORY: panda/src/downloadertools/
  2466. #
  2467. if OMIT.count("SSL")==0:
  2468. IPATH=['panda/src/downloadertools']
  2469. OPTS=['SSL', 'ZLIB', 'NSPR']
  2470. CompileC(ipath=IPATH, opts=OPTS, src='apply_patch.cxx', obj='apply_patch_apply_patch.obj')
  2471. CompileLink(dll='apply_patch.exe', opts=['ADVAPI', 'NSPR'], obj=[
  2472. 'apply_patch_apply_patch.obj',
  2473. 'libpandaexpress.dll',
  2474. 'libpanda.dll',
  2475. 'libdtoolconfig.dll',
  2476. 'libdtool.dll',
  2477. 'libpystub.dll',
  2478. ])
  2479. CompileC(ipath=IPATH, opts=OPTS, src='build_patch.cxx', obj='build_patch_build_patch.obj')
  2480. CompileLink(dll='build_patch.exe', opts=['ADVAPI', 'NSPR'], obj=[
  2481. 'build_patch_build_patch.obj',
  2482. 'libpandaexpress.dll',
  2483. 'libpanda.dll',
  2484. 'libdtoolconfig.dll',
  2485. 'libdtool.dll',
  2486. 'libpystub.dll',
  2487. ])
  2488. IPATH=['panda/src/downloadertools']
  2489. OPTS=['SSL', 'ZLIB', 'ZLIB', 'NSPR']
  2490. CompileC(ipath=IPATH, opts=OPTS, src='check_adler.cxx', obj='check_adler_check_adler.obj')
  2491. CompileLink(dll='check_adler.exe', opts=['ADVAPI', 'NSPR', 'ZLIB'], obj=[
  2492. 'check_adler_check_adler.obj',
  2493. 'libpandaexpress.dll',
  2494. 'libpanda.dll',
  2495. 'libdtoolconfig.dll',
  2496. 'libdtool.dll',
  2497. 'libpystub.dll',
  2498. ])
  2499. CompileC(ipath=IPATH, opts=OPTS, src='check_crc.cxx', obj='check_crc_check_crc.obj')
  2500. CompileLink(dll='check_crc.exe', opts=['ADVAPI', 'NSPR', 'ZLIB'], obj=[
  2501. 'check_crc_check_crc.obj',
  2502. 'libpandaexpress.dll',
  2503. 'libpanda.dll',
  2504. 'libdtoolconfig.dll',
  2505. 'libdtool.dll',
  2506. 'libpystub.dll',
  2507. ])
  2508. IPATH=['panda/src/downloadertools']
  2509. OPTS=['SSL', 'ZLIB', 'NSPR']
  2510. CompileC(ipath=IPATH, opts=OPTS, src='check_md5.cxx', obj='check_md5_check_md5.obj')
  2511. CompileLink(dll='check_md5.exe', opts=['ADVAPI', 'NSPR', 'SSL'], obj=[
  2512. 'check_md5_check_md5.obj',
  2513. 'libpandaexpress.dll',
  2514. 'libpanda.dll',
  2515. 'libdtoolconfig.dll',
  2516. 'libdtool.dll',
  2517. 'libpystub.dll',
  2518. ])
  2519. CompileC(ipath=IPATH, opts=OPTS, src='multify.cxx', obj='multify_multify.obj')
  2520. CompileLink(dll='multify.exe', opts=['ADVAPI', 'NSPR'], obj=[
  2521. 'multify_multify.obj',
  2522. 'libpandaexpress.dll',
  2523. 'libpanda.dll',
  2524. 'libdtoolconfig.dll',
  2525. 'libdtool.dll',
  2526. 'libpystub.dll',
  2527. ])
  2528. IPATH=['panda/src/downloadertools']
  2529. OPTS=['SSL', 'ZLIB', 'ZLIB', 'NSPR']
  2530. CompileC(ipath=IPATH, opts=OPTS, src='pcompress.cxx', obj='pcompress_pcompress.obj')
  2531. CompileLink(dll='pcompress.exe', opts=['ADVAPI', 'NSPR', 'ZLIB'], obj=[
  2532. 'pcompress_pcompress.obj',
  2533. 'libpandaexpress.dll',
  2534. 'libpanda.dll',
  2535. 'libdtoolconfig.dll',
  2536. 'libdtool.dll',
  2537. 'libpystub.dll',
  2538. ])
  2539. CompileC(ipath=IPATH, opts=OPTS, src='pdecompress.cxx', obj='pdecompress_pdecompress.obj')
  2540. CompileLink(dll='pdecompress.exe', opts=['ADVAPI', 'NSPR', 'ZLIB'], obj=[
  2541. 'pdecompress_pdecompress.obj',
  2542. 'libpandaexpress.dll',
  2543. 'libpanda.dll',
  2544. 'libdtoolconfig.dll',
  2545. 'libdtool.dll',
  2546. 'libpystub.dll',
  2547. ])
  2548. IPATH=['panda/src/downloadertools']
  2549. OPTS=['SSL', 'ZLIB', 'NSPR']
  2550. CompileC(ipath=IPATH, opts=OPTS, src='pdecrypt.cxx', obj='pdecrypt_pdecrypt.obj')
  2551. CompileLink(dll='pdecrypt.exe', opts=['ADVAPI', 'NSPR', 'SSL'], obj=[
  2552. 'pdecrypt_pdecrypt.obj',
  2553. 'libpandaexpress.dll',
  2554. 'libpanda.dll',
  2555. 'libdtoolconfig.dll',
  2556. 'libdtool.dll',
  2557. 'libpystub.dll',
  2558. ])
  2559. CompileC(ipath=IPATH, opts=OPTS, src='pencrypt.cxx', obj='pencrypt_pencrypt.obj')
  2560. CompileLink(dll='pencrypt.exe', opts=['ADVAPI', 'NSPR', 'SSL'], obj=[
  2561. 'pencrypt_pencrypt.obj',
  2562. 'libpandaexpress.dll',
  2563. 'libpanda.dll',
  2564. 'libdtoolconfig.dll',
  2565. 'libdtool.dll',
  2566. 'libpystub.dll',
  2567. ])
  2568. CompileC(ipath=IPATH, opts=OPTS, src='show_ddb.cxx', obj='show_ddb_show_ddb.obj')
  2569. CompileLink(dll='show_ddb.exe', opts=['ADVAPI', 'NSPR'], obj=[
  2570. 'show_ddb_show_ddb.obj',
  2571. 'libpandaexpress.dll',
  2572. 'libpanda.dll',
  2573. 'libdtoolconfig.dll',
  2574. 'libdtool.dll',
  2575. 'libpystub.dll',
  2576. ])
  2577. #
  2578. # DIRECTORY: panda/src/glgsg/
  2579. #
  2580. IPATH=['panda/src/glgsg', 'panda/src/glstuff', 'panda/src/gobj']
  2581. OPTS=['BUILDING_PANDAGL', 'NSPR', 'NVIDIACG']
  2582. CompileC(ipath=IPATH, opts=OPTS, src='config_glgsg.cxx', obj='glgsg_config_glgsg.obj')
  2583. CompileC(ipath=IPATH, opts=OPTS, src='glgsg.cxx', obj='glgsg_glgsg.obj')
  2584. #
  2585. # DIRECTORY: panda/src/effects/
  2586. #
  2587. IPATH=['panda/src/effects']
  2588. OPTS=['BUILDING_PANDAFX', 'NSPR', 'NVIDIACG']
  2589. CompileC(ipath=IPATH, opts=OPTS, src='effects_composite1.cxx', obj='effects_composite1.obj')
  2590. Interrogate(ipath=IPATH, opts=OPTS, outd='libeffects.in', outc='libeffects_igate.cxx',
  2591. src='panda/src/effects', module='pandafx', library='libeffects',
  2592. files=['config_effects.h', 'cgShader.h', 'cgShaderAttrib.h', 'cgShaderContext.h', 'lensFlareNode.h', 'effects_composite1.cxx'])
  2593. CompileC(ipath=IPATH, opts=OPTS, src='libeffects_igate.cxx', obj='libeffects_igate.obj')
  2594. #
  2595. # DIRECTORY: panda/metalibs/pandafx/
  2596. #
  2597. IPATH=['panda/metalibs/pandafx', 'panda/src/distort']
  2598. OPTS=['BUILDING_PANDAFX', 'NSPR', 'NVIDIACG']
  2599. CompileC(ipath=IPATH, opts=OPTS, src='pandafx.cxx', obj='pandafx_pandafx.obj')
  2600. InterrogateModule(outc='libpandafx_module.cxx', module='pandafx', library='libpandafx',
  2601. files=['libdistort.in', 'libeffects.in'])
  2602. CompileC(ipath=IPATH, opts=OPTS, src='libpandafx_module.cxx', obj='libpandafx_module.obj')
  2603. CompileLink(dll='libpandafx.dll', opts=['ADVAPI', 'NSPR', 'NVIDIACG'], obj=[
  2604. 'pandafx_pandafx.obj',
  2605. 'libpandafx_module.obj',
  2606. 'distort_composite1.obj',
  2607. 'libdistort_igate.obj',
  2608. 'effects_composite1.obj',
  2609. 'libeffects_igate.obj',
  2610. 'libpanda.dll',
  2611. 'libpandaexpress.dll',
  2612. 'libdtoolconfig.dll',
  2613. 'libdtool.dll',
  2614. ])
  2615. #
  2616. # DIRECTORY: panda/src/glstuff/
  2617. #
  2618. IPATH=['panda/src/glstuff']
  2619. OPTS=['NSPR', 'NVIDIACG', 'CGGL']
  2620. CompileC(ipath=IPATH, opts=OPTS, src='glpure.cxx', obj='glstuff_glpure.obj')
  2621. CompileLink(dll='libglstuff.dll', opts=['ADVAPI', 'GLUT', 'NSPR', 'NVIDIACG', 'CGGL'], obj=[
  2622. 'glstuff_glpure.obj',
  2623. 'libpanda.dll',
  2624. 'libpandafx.dll',
  2625. 'libpandaexpress.dll',
  2626. 'libdtoolconfig.dll',
  2627. 'libdtool.dll',
  2628. ])
  2629. #
  2630. # DIRECTORY: panda/src/windisplay/
  2631. #
  2632. if (sys.platform == "win32"):
  2633. IPATH=['panda/src/windisplay']
  2634. OPTS=['BUILDING_PANDAWIN', 'NSPR']
  2635. CompileC(ipath=IPATH, opts=OPTS, src='winGraphicsWindow.cxx', obj='windisplay_winGraphicsWindow.obj')
  2636. CompileC(ipath=IPATH, opts=OPTS, src='config_windisplay.cxx', obj='windisplay_config_windisplay.obj')
  2637. CompileC(ipath=IPATH, opts=OPTS, src='winGraphicsPipe.cxx', obj='windisplay_winGraphicsPipe.obj')
  2638. CompileLink(opts=['WINIMM', 'WINGDI', 'WINKERNEL', 'WINOLDNAMES', 'WINUSER', 'WINMM', 'NSPR'],
  2639. dll='libwindisplay.dll', obj=[
  2640. 'windisplay_winGraphicsWindow.obj',
  2641. 'windisplay_config_windisplay.obj',
  2642. 'windisplay_winGraphicsPipe.obj',
  2643. 'libpanda.dll',
  2644. 'libpandaexpress.dll',
  2645. 'libdtoolconfig.dll',
  2646. 'libdtool.dll',
  2647. ])
  2648. #
  2649. # DIRECTORY: panda/src/glxdisplay/
  2650. #
  2651. if (sys.platform != "win32"):
  2652. IPATH=['panda/src/glxdisplay', 'panda/src/gobj']
  2653. OPTS=['BUILDING_PANDAGLUT', 'NSPR', 'GLUT', 'NVIDIACG', 'CGGL']
  2654. CompileC(ipath=IPATH, opts=OPTS, src='glxdisplay_composite1.cxx', obj='glxdisplay_composite1.obj')
  2655. Interrogate(ipath=IPATH, opts=OPTS, outd='libglxdisplay.in', outc='libglxdisplay_igate.cxx',
  2656. src='panda/src/glxdisplay', module='pandagl', library='libglxdisplay', files=['glxGraphicsPipe.h'])
  2657. CompileC(ipath=IPATH, opts=OPTS, src='libglxdisplay_igate.cxx', obj='libglxdisplay_igate.obj')
  2658. IPATH=['panda/metalibs/pandagl']
  2659. OPTS=['BUILDING_PANDAGL', 'NSPR', 'NVIDIACG', 'CGGL']
  2660. CompileC(ipath=IPATH, opts=OPTS, src='pandagl.cxx', obj='pandagl_pandagl.obj')
  2661. CompileLink(opts=['GLUT', 'NVIDIACG', 'CGGL', 'NSPR'], dll='libpandagl.dll', obj=[
  2662. 'pandagl_pandagl.obj',
  2663. 'glgsg_config_glgsg.obj',
  2664. 'glgsg_glgsg.obj',
  2665. 'glxdisplay_composite1.obj',
  2666. 'libglxdisplay_igate.obj',
  2667. 'libpanda.dll',
  2668. 'libpandaexpress.dll',
  2669. 'libglstuff.dll',
  2670. 'libpandafx.dll',
  2671. 'libdtoolconfig.dll',
  2672. 'libdtool.dll',
  2673. ])
  2674. #
  2675. # DIRECTORY: panda/src/wgldisplay/
  2676. #
  2677. if (sys.platform == "win32"):
  2678. IPATH=['panda/src/wgldisplay', 'panda/src/glstuff', 'panda/src/gobj']
  2679. OPTS=['BUILDING_PANDAGL', 'NSPR', 'NVIDIACG', 'CGGL']
  2680. CompileC(ipath=IPATH, opts=OPTS, src='wgldisplay_composite1.cxx', obj='wgldisplay_composite1.obj')
  2681. IPATH=['panda/metalibs/pandagl']
  2682. OPTS=['BUILDING_PANDAGL', 'NSPR', 'NVIDIACG', 'CGGL']
  2683. CompileC(ipath=IPATH, opts=OPTS, src='pandagl.cxx', obj='pandagl_pandagl.obj')
  2684. CompileLink(opts=['WINGDI', 'GLUT', 'WINKERNEL', 'WINOLDNAMES', 'WINUSER', 'WINMM', 'NSPR', 'NVIDIACG', 'CGGL'],
  2685. dll='libpandagl.dll', obj=[
  2686. 'pandagl_pandagl.obj',
  2687. 'glgsg_config_glgsg.obj',
  2688. 'glgsg_glgsg.obj',
  2689. 'wgldisplay_composite1.obj',
  2690. 'libwindisplay.dll',
  2691. 'libpanda.dll',
  2692. 'libpandaexpress.dll',
  2693. 'libglstuff.dll',
  2694. 'libpandafx.dll',
  2695. 'libdtoolconfig.dll',
  2696. 'libdtool.dll',
  2697. ])
  2698. #
  2699. # DIRECTORY: panda/metalibs/pandadx7/
  2700. #
  2701. if (sys.platform == "win32"):
  2702. IPATH=['panda/src/dxgsg7']
  2703. OPTS=['BUILDING_PANDADX', 'DXSDK', 'NSPR']
  2704. CompileC(ipath=IPATH, opts=OPTS, src='dxGraphicsStateGuardian7.cxx', obj='dxgsg7_dxGraphicsStateGuardian7.obj')
  2705. CompileC(ipath=IPATH, opts=OPTS, src='dxgsg7_composite1.cxx', obj='dxgsg7_composite1.obj')
  2706. IPATH=['panda/metalibs/pandadx7']
  2707. OPTS=['BUILDING_PANDADX', 'DXSDK', 'NSPR']
  2708. CompileC(ipath=IPATH, opts=OPTS, src='pandadx7.cxx', obj='pandadx7_pandadx7.obj')
  2709. CompileLink(dll='libpandadx7.dll', opts=['ADVAPI', 'WINGDI', 'WINKERNEL', 'WINUSER', 'WINMM', 'DXDRAW', 'DXGUID', 'D3D8', 'NSPR'], obj=[
  2710. 'pandadx7_pandadx7.obj',
  2711. 'dxgsg7_dxGraphicsStateGuardian7.obj',
  2712. 'dxgsg7_composite1.obj',
  2713. 'libpanda.dll',
  2714. 'libpandaexpress.dll',
  2715. 'libwindisplay.dll',
  2716. 'libdtoolconfig.dll',
  2717. 'libdtool.dll',
  2718. ])
  2719. #
  2720. # DIRECTORY: panda/metalibs/pandadx8/
  2721. #
  2722. if (sys.platform == "win32"):
  2723. IPATH=['panda/src/dxgsg8']
  2724. OPTS=['BUILDING_PANDADX', 'DXSDK', 'NSPR']
  2725. CompileC(ipath=IPATH, opts=OPTS, src='dxGraphicsStateGuardian8.cxx', obj='dxgsg8_dxGraphicsStateGuardian8.obj')
  2726. CompileC(ipath=IPATH, opts=OPTS, src='dxgsg8_composite1.cxx', obj='dxgsg8_composite1.obj')
  2727. IPATH=['panda/metalibs/pandadx8']
  2728. OPTS=['BUILDING_PANDADX', 'DXSDK', 'NSPR']
  2729. CompileC(ipath=IPATH, opts=OPTS, src='pandadx8.cxx', obj='pandadx8_pandadx8.obj')
  2730. CompileLink(dll='libpandadx8.dll',
  2731. opts=['ADVAPI', 'WINGDI', 'WINKERNEL', 'WINUSER', 'WINMM', 'DXDRAW', 'DXGUID', 'D3D8', 'NSPR'], obj=[
  2732. 'pandadx8_pandadx8.obj',
  2733. 'dxgsg8_dxGraphicsStateGuardian8.obj',
  2734. 'dxgsg8_composite1.obj',
  2735. 'libpanda.dll',
  2736. 'libpandaexpress.dll',
  2737. 'libwindisplay.dll',
  2738. 'libdtoolconfig.dll',
  2739. 'libdtool.dll',
  2740. ])
  2741. #
  2742. # DIRECTORY: panda/metalibs/pandadx9/
  2743. #
  2744. if (sys.platform == "win32"):
  2745. IPATH=['panda/src/dxgsg9']
  2746. OPTS=['BUILDING_PANDADX', 'DXSDK', 'NSPR']
  2747. CompileC(ipath=IPATH, opts=OPTS, src='dxGraphicsStateGuardian9.cxx', obj='dxgsg9_dxGraphicsStateGuardian9.obj')
  2748. CompileC(ipath=IPATH, opts=OPTS, src='dxgsg9_composite1.cxx', obj='dxgsg9_composite1.obj')
  2749. IPATH=['panda/metalibs/pandadx9']
  2750. OPTS=['BUILDING_PANDADX', 'DXSDK', 'NSPR']
  2751. CompileC(ipath=IPATH, opts=OPTS, src='pandadx9.cxx', obj='pandadx9_pandadx9.obj')
  2752. CompileLink(dll='libpandadx9.dll',
  2753. opts=['ADVAPI', 'WINGDI', 'WINKERNEL', 'WINUSER', 'WINMM', 'DXDRAW', 'DXGUID', 'D3D9', 'NSPR'], obj=[
  2754. 'pandadx9_pandadx9.obj',
  2755. 'dxgsg9_dxGraphicsStateGuardian9.obj',
  2756. 'dxgsg9_composite1.obj',
  2757. 'libpanda.dll',
  2758. 'libpandaexpress.dll',
  2759. 'libwindisplay.dll',
  2760. 'libdtoolconfig.dll',
  2761. 'libdtool.dll',
  2762. ])
  2763. #
  2764. # DIRECTORY: panda/src/egg/
  2765. #
  2766. IPATH=['panda/src/egg']
  2767. CompileBison(pre='eggyy', dstc='parser.cxx', dsth='parser.h', src='panda/src/egg/parser.yxx')
  2768. CompileFlex(pre='eggyy', dst='lexer.cxx', src='panda/src/egg/lexer.lxx', dashi=1)
  2769. OPTS=['BUILDING_PANDAEGG', 'NSPR']
  2770. CompileC(ipath=IPATH, opts=OPTS, src='egg_composite1.cxx', obj='egg_composite1.obj')
  2771. CompileC(ipath=IPATH, opts=OPTS, src='egg_composite2.cxx', obj='egg_composite2.obj')
  2772. CompileC(ipath=IPATH, opts=OPTS, src='parser.cxx', obj='egg_parser.obj')
  2773. CompileC(ipath=IPATH, opts=OPTS, src='lexer.cxx', obj='egg_lexer.obj')
  2774. Interrogate(ipath=IPATH, opts=OPTS, outd='libegg.in', outc='libegg_igate.cxx',
  2775. src='panda/src/egg', module='pandaegg', library='libegg', files=[
  2776. 'config_egg.h', 'eggAnimData.h', 'eggAttributes.h', 'eggBin.h', 'eggBinMaker.h', 'eggComment.h',
  2777. 'eggCoordinateSystem.h', 'eggCurve.h', 'eggData.h', 'eggExternalReference.h', 'eggFilenameNode.h',
  2778. 'eggGroup.h', 'eggGroupNode.h', 'eggGroupUniquifier.h', 'eggLine.h', 'eggMaterial.h',
  2779. 'eggMaterialCollection.h', 'eggMiscFuncs.h', 'eggMorph.h', 'eggMorphList.h', 'eggNamedObject.h',
  2780. 'eggNameUniquifier.h', 'eggNode.h', 'eggNurbsCurve.h', 'eggNurbsSurface.h', 'eggObject.h',
  2781. 'eggParameters.h', 'eggPoint.h', 'eggPolygon.h', 'eggPolysetMaker.h', 'eggPoolUniquifier.h',
  2782. 'eggPrimitive.h', 'eggRenderMode.h', 'eggSAnimData.h', 'eggSurface.h', 'eggSwitchCondition.h',
  2783. 'eggTable.h', 'eggTexture.h', 'eggTextureCollection.h', 'eggTransform3d.h', 'eggUserData.h',
  2784. 'eggUtilities.h', 'eggVertex.h', 'eggVertexPool.h', 'eggVertexUV.h', 'eggXfmAnimData.h',
  2785. 'eggXfmSAnim.h', 'parserDefs.h', 'lexerDefs.h', 'pt_EggMaterial.h', 'vector_PT_EggMaterial.h',
  2786. 'pt_EggTexture.h', 'vector_PT_EggTexture.h', 'pt_EggVertex.h', 'vector_PT_EggVertex.h',
  2787. 'egg_composite1.cxx', 'egg_composite2.cxx'])
  2788. CompileC(ipath=IPATH, opts=OPTS, src='libegg_igate.cxx', obj='libegg_igate.obj')
  2789. #
  2790. # DIRECTORY: panda/src/egg2pg/
  2791. #
  2792. IPATH=['panda/src/egg2pg']
  2793. OPTS=['BUILDING_PANDAEGG', 'NSPR']
  2794. CompileC(ipath=IPATH, opts=OPTS, src='egg2pg_composite1.cxx', obj='egg2pg_composite1.obj')
  2795. CompileC(ipath=IPATH, opts=OPTS, src='egg2pg_composite2.cxx', obj='egg2pg_composite2.obj')
  2796. Interrogate(ipath=IPATH, opts=OPTS, outd='libegg2pg.in', outc='libegg2pg_igate.cxx',
  2797. src='panda/src/egg2pg', module='pandaegg', library='libegg2pg', files=['load_egg_file.h'])
  2798. CompileC(ipath=IPATH, opts=OPTS, src='libegg2pg_igate.cxx', obj='libegg2pg_igate.obj')
  2799. #
  2800. # DIRECTORY: panda/src/framework/
  2801. #
  2802. IPATH=['panda/src/framework']
  2803. OPTS=['BUILDING_FRAMEWORK', 'NSPR']
  2804. CompileC(ipath=IPATH, opts=OPTS, src='config_framework.cxx', obj='framework_config_framework.obj')
  2805. CompileC(ipath=IPATH, opts=OPTS, src='pandaFramework.cxx', obj='framework_pandaFramework.obj')
  2806. CompileC(ipath=IPATH, opts=OPTS, src='windowFramework.cxx', obj='framework_windowFramework.obj')
  2807. CompileLink(dll='libframework.dll', opts=['ADVAPI', 'NSPR'], obj=[
  2808. 'framework_config_framework.obj',
  2809. 'framework_pandaFramework.obj',
  2810. 'framework_windowFramework.obj',
  2811. 'libpanda.dll',
  2812. 'libpandaexpress.dll',
  2813. 'libdtoolconfig.dll',
  2814. 'libdtool.dll',
  2815. ])
  2816. #
  2817. # DIRECTORY: panda/metalibs/pandaegg/
  2818. #
  2819. IPATH=['panda/metalibs/pandaegg', 'panda/src/egg']
  2820. OPTS=['BUILDING_PANDAEGG', 'NSPR']
  2821. CompileC(ipath=IPATH, opts=OPTS, src='pandaegg.cxx', obj='pandaegg_pandaegg.obj')
  2822. InterrogateModule(outc='libpandaegg_module.cxx', module='pandaegg', library='libpandaegg',
  2823. files=['libegg2pg.in', 'libegg.in'])
  2824. CompileC(ipath=IPATH, opts=OPTS, src='libpandaegg_module.cxx', obj='libpandaegg_module.obj')
  2825. CompileLink(dll='libpandaegg.dll', opts=['ADVAPI', 'NSPR'], obj=[
  2826. 'pandaegg_pandaegg.obj',
  2827. 'libpandaegg_module.obj',
  2828. 'egg2pg_composite1.obj',
  2829. 'egg2pg_composite2.obj',
  2830. 'libegg2pg_igate.obj',
  2831. 'egg_composite1.obj',
  2832. 'egg_composite2.obj',
  2833. 'egg_parser.obj',
  2834. 'egg_lexer.obj',
  2835. 'libegg_igate.obj',
  2836. 'builder_composite1.obj',
  2837. 'builder_composite2.obj',
  2838. 'libpanda.dll',
  2839. 'libpandaexpress.dll',
  2840. 'libdtoolconfig.dll',
  2841. 'libdtool.dll',
  2842. ])
  2843. #
  2844. # DIRECTORY: panda/src/physics/
  2845. #
  2846. IPATH=['panda/src/physics']
  2847. OPTS=['BUILDING_PANDAPHYSICS', 'NSPR']
  2848. CompileC(ipath=IPATH, opts=OPTS, src='physics_composite1.cxx', obj='physics_composite1.obj')
  2849. CompileC(ipath=IPATH, opts=OPTS, src='physics_composite2.cxx', obj='physics_composite2.obj')
  2850. Interrogate(ipath=IPATH, opts=OPTS, outd='libphysics.in', outc='libphysics_igate.cxx',
  2851. src='panda/src/physics', module='pandaphysics', library='libphysics',
  2852. files=['actorNode.h', 'angularEulerIntegrator.h', 'angularForce.h', 'angularIntegrator.h', 'angularVectorForce.h', 'baseForce.h', 'baseIntegrator.h', 'config_physics.h', 'forceNode.h', 'linearCylinderVortexForce.h', 'linearDistanceForce.h', 'linearEulerIntegrator.h', 'linearForce.h', 'linearFrictionForce.h', 'linearIntegrator.h', 'linearJitterForce.h', 'linearNoiseForce.h', 'linearRandomForce.h', 'linearSinkForce.h', 'linearSourceForce.h', 'linearUserDefinedForce.h', 'linearVectorForce.h', 'physical.h', 'physicalNode.h', 'physicsCollisionHandler.h', 'physicsManager.h', 'physicsObject.h', 'physics_composite1.cxx', 'physics_composite2.cxx'])
  2853. CompileC(ipath=IPATH, opts=OPTS, src='libphysics_igate.cxx', obj='libphysics_igate.obj')
  2854. #
  2855. # DIRECTORY: panda/src/particlesystem/
  2856. #
  2857. IPATH=['panda/src/particlesystem']
  2858. OPTS=['BUILDING_PANDAPHYSICS', 'NSPR']
  2859. CompileC(ipath=IPATH, opts=OPTS, src='particlesystem_composite1.cxx', obj='particlesystem_composite1.obj')
  2860. CompileC(ipath=IPATH, opts=OPTS, src='particlesystem_composite2.cxx', obj='particlesystem_composite2.obj')
  2861. Interrogate(ipath=IPATH, opts=OPTS, outd='libparticlesystem.in', outc='libparticlesystem_igate.cxx',
  2862. src='panda/src/particlesystem', module='pandaphysics', library='libparticlesystem',
  2863. files=['baseParticle.h', 'baseParticleEmitter.h', 'baseParticleFactory.h', 'baseParticleRenderer.h', 'boxEmitter.h', 'config_particlesystem.h', 'discEmitter.h', 'geomParticleRenderer.h', 'lineEmitter.h', 'lineParticleRenderer.h', 'particleSystem.h', 'particleSystemManager.h', 'pointEmitter.h', 'pointParticle.h', 'pointParticleFactory.h', 'pointParticleRenderer.h', 'rectangleEmitter.h', 'ringEmitter.h', 'sparkleParticleRenderer.h', 'sphereSurfaceEmitter.h', 'sphereVolumeEmitter.h', 'spriteParticleRenderer.h', 'tangentRingEmitter.h', 'zSpinParticle.h', 'zSpinParticleFactory.h', 'particleCommonFuncs.h', 'particlesystem_composite1.cxx', 'particlesystem_composite2.cxx'])
  2864. CompileC(ipath=IPATH, opts=OPTS, src='libparticlesystem_igate.cxx', obj='libparticlesystem_igate.obj')
  2865. #
  2866. # DIRECTORY: panda/metalibs/pandaphysics/
  2867. #
  2868. IPATH=['panda/metalibs/pandaphysics']
  2869. OPTS=['BUILDING_PANDAPHYSICS', 'NSPR']
  2870. CompileC(ipath=IPATH, opts=OPTS, src='pandaphysics.cxx', obj='pandaphysics_pandaphysics.obj')
  2871. InterrogateModule(outc='libpandaphysics_module.cxx', module='pandaphysics', library='libpandaphysics',
  2872. files=['libphysics.in', 'libparticlesystem.in'])
  2873. CompileC(ipath=IPATH, opts=OPTS, src='libpandaphysics_module.cxx', obj='libpandaphysics_module.obj')
  2874. CompileLink(dll='libpandaphysics.dll', opts=['ADVAPI', 'NSPR'], obj=[
  2875. 'pandaphysics_pandaphysics.obj',
  2876. 'libpandaphysics_module.obj',
  2877. 'physics_composite1.obj',
  2878. 'physics_composite2.obj',
  2879. 'libphysics_igate.obj',
  2880. 'particlesystem_composite1.obj',
  2881. 'particlesystem_composite2.obj',
  2882. 'libparticlesystem_igate.obj',
  2883. 'libpanda.dll',
  2884. 'libpandaexpress.dll',
  2885. 'libdtoolconfig.dll',
  2886. 'libdtool.dll',
  2887. ])
  2888. #
  2889. # DIRECTORY: panda/src/testbed/
  2890. #
  2891. IPATH=['panda/src/testbed']
  2892. OPTS=['NSPR']
  2893. CompileC(ipath=IPATH, opts=OPTS, src='pview.cxx', obj='pview_pview.obj')
  2894. CompileLink(dll='pview.exe', opts=['ADVAPI', 'NSPR'], obj=[
  2895. 'pview_pview.obj',
  2896. 'libframework.dll',
  2897. 'libpanda.dll',
  2898. 'libpandafx.dll',
  2899. 'libpandaexpress.dll',
  2900. 'libdtoolconfig.dll',
  2901. 'libdtool.dll',
  2902. 'libpystub.dll',
  2903. ])
  2904. #
  2905. # DIRECTORY: direct/src/directbase/
  2906. #
  2907. IPATH=['direct/src/directbase']
  2908. OPTS=['BUILDING_DIRECT', 'NSPR']
  2909. CompileC(ipath=IPATH, opts=OPTS, src='directbase.cxx', obj='directbase_directbase.obj')
  2910. #
  2911. # DIRECTORY: direct/src/dcparser/
  2912. #
  2913. CompileBison(pre='dcyy', dstc='dcParser.cxx', dsth='dcParser.h', src='direct/src/dcparser/dcParser.yxx')
  2914. CompileFlex(pre='dcyy', dst='dcLexer.cxx', src='direct/src/dcparser/dcLexer.lxx', dashi=0)
  2915. IPATH=['direct/src/dcparser']
  2916. OPTS=['WITHINPANDA', 'BUILDING_DIRECT', 'NSPR']
  2917. CompileC(ipath=IPATH, opts=OPTS, src='dcparser_composite1.cxx', obj='dcparser_composite1.obj')
  2918. CompileC(ipath=IPATH, opts=OPTS, src='dcparser_composite2.cxx', obj='dcparser_composite2.obj')
  2919. CompileC(ipath=IPATH, opts=OPTS, src='dcParser.cxx', obj='dcparser_dcParser.obj')
  2920. CompileC(ipath=IPATH, opts=OPTS, src='dcLexer.cxx', obj='dcparser_dcLexer.obj')
  2921. Interrogate(ipath=IPATH, opts=OPTS, outd='libdcparser.in', outc='libdcparser_igate.cxx',
  2922. src='direct/src/dcparser', module='direct', library='libdcparser',
  2923. files=['dcAtomicField.h', 'dcClass.h', 'dcDeclaration.h', 'dcField.h', 'dcFile.h',
  2924. 'dcLexerDefs.h', 'dcMolecularField.h', 'dcParserDefs.h', 'dcSubatomicType.h',
  2925. 'dcPackData.h', 'dcPacker.h', 'dcPackerCatalog.h', 'dcPackerInterface.h',
  2926. 'dcParameter.h', 'dcClassParameter.h', 'dcArrayParameter.h', 'dcSimpleParameter.h',
  2927. 'dcSwitchParameter.h', 'dcNumericRange.h', 'dcSwitch.h', 'dcTypedef.h', 'dcPython.h',
  2928. 'dcbase.h', 'dcindent.h', 'hashGenerator.h', 'primeNumberGenerator.h',
  2929. 'dcparser_composite1.cxx', 'dcparser_composite2.cxx'])
  2930. CompileC(ipath=IPATH, opts=OPTS, src='libdcparser_igate.cxx', obj='libdcparser_igate.obj')
  2931. #
  2932. # DIRECTORY: direct/src/deadrec/
  2933. #
  2934. IPATH=['direct/src/deadrec']
  2935. OPTS=['BUILDING_DIRECT', 'NSPR']
  2936. CompileC(ipath=IPATH, opts=OPTS, src='deadrec_composite1.cxx', obj='deadrec_composite1.obj')
  2937. Interrogate(ipath=IPATH, opts=OPTS, outd='libdeadrec.in', outc='libdeadrec_igate.cxx',
  2938. src='direct/src/deadrec', module='direct', library='libdeadrec',
  2939. files=['smoothMover.h', 'deadrec_composite1.cxx'])
  2940. CompileC(ipath=IPATH, opts=OPTS, src='libdeadrec_igate.cxx', obj='libdeadrec_igate.obj')
  2941. #
  2942. # DIRECTORY: direct/src/distributed/
  2943. #
  2944. IPATH=['direct/src/distributed', 'direct/src/dcparser']
  2945. OPTS=['WITHINPANDA', 'BUILDING_DIRECT', 'SSL', 'NSPR']
  2946. CompileC(ipath=IPATH, opts=OPTS, src='config_distributed.cxx', obj='distributed_config_distributed.obj')
  2947. CompileC(ipath=IPATH, opts=OPTS, src='cConnectionRepository.cxx', obj='distributed_cConnectionRepository.obj')
  2948. CompileC(ipath=IPATH, opts=OPTS, src='cDistributedSmoothNodeBase.cxx', obj='distributed_cDistributedSmoothNodeBase.obj')
  2949. Interrogate(ipath=IPATH, opts=OPTS, outd='libdistributed.in', outc='libdistributed_igate.cxx',
  2950. src='direct/src/distributed', module='direct', library='libdistributed',
  2951. files=['config_distributed.cxx', 'config_distributed.h', 'cConnectionRepository.cxx',
  2952. 'cConnectionRepository.h', 'cDistributedSmoothNodeBase.cxx', 'cDistributedSmoothNodeBase.h'])
  2953. CompileC(ipath=IPATH, opts=OPTS, src='libdistributed_igate.cxx', obj='libdistributed_igate.obj')
  2954. #
  2955. # DIRECTORY: direct/src/interval/
  2956. #
  2957. IPATH=['direct/src/interval']
  2958. OPTS=['BUILDING_DIRECT', 'NSPR']
  2959. #CompileC(ipath=IPATH, opts=OPTS, src='config_interval.cxx', obj='interval_config_interval.obj')
  2960. #CompileC(ipath=IPATH, opts=OPTS, src='cInterval.cxx', obj='interval_cInterval.obj')
  2961. #CompileC(ipath=IPATH, opts=OPTS, src='cIntervalManager.cxx', obj='interval_cIntervalManager.obj')
  2962. #CompileC(ipath=IPATH, opts=OPTS, src='cLerpInterval.cxx', obj='interval_cLerpInterval.obj')
  2963. #CompileC(ipath=IPATH, opts=OPTS, src='cLerpNodePathInterval.cxx', obj='interval_cLerpNodePathInterval.obj')
  2964. #CompileC(ipath=IPATH, opts=OPTS, src='cLerpAnimEffectInterval.cxx', obj='interval_cLerpAnimEffectInterval.obj')
  2965. #CompileC(ipath=IPATH, opts=OPTS, src='cMetaInterval.cxx', obj='interval_cMetaInterval.obj')
  2966. #CompileC(ipath=IPATH, opts=OPTS, src='hideInterval.cxx', obj='interval_hideInterval.obj')
  2967. #CompileC(ipath=IPATH, opts=OPTS, src='showInterval.cxx', obj='interval_showInterval.obj')
  2968. #CompileC(ipath=IPATH, opts=OPTS, src='waitInterval.cxx', obj='interval_waitInterval.obj')
  2969. CompileC(ipath=IPATH, opts=OPTS, src='interval_composite1.cxx', obj='interval_composite1.obj')
  2970. Interrogate(ipath=IPATH, opts=OPTS, outd='libinterval.in', outc='libinterval_igate.cxx',
  2971. src='direct/src/interval', module='direct', library='libinterval',
  2972. files=['config_interval.cxx', 'config_interval.h', 'cInterval.cxx', 'cInterval.h',
  2973. 'cIntervalManager.cxx', 'cIntervalManager.h', 'cLerpInterval.cxx', 'cLerpInterval.h',
  2974. 'cLerpNodePathInterval.cxx', 'cLerpNodePathInterval.h', 'cLerpAnimEffectInterval.cxx',
  2975. 'cLerpAnimEffectInterval.h', 'cMetaInterval.cxx', 'cMetaInterval.h', 'hideInterval.cxx',
  2976. 'hideInterval.h', 'showInterval.cxx', 'showInterval.h', 'waitInterval.cxx', 'waitInterval.h',
  2977. 'lerp_helpers.h'])
  2978. CompileC(ipath=IPATH, opts=OPTS, src='libinterval_igate.cxx', obj='libinterval_igate.obj')
  2979. #
  2980. # DIRECTORY: direct/src/showbase/
  2981. #
  2982. IPATH=['direct/src/showbase']
  2983. OPTS=['BUILDING_DIRECT', 'NSPR']
  2984. CompileC(ipath=IPATH, opts=OPTS, src='showBase.cxx', obj='showbase_showBase.obj')
  2985. CompileC(ipath=IPATH, opts=OPTS, src='mersenne.cxx', obj='showbase_mersenne.obj')
  2986. Interrogate(ipath=IPATH, opts=OPTS, outd='libshowbase.in', outc='libshowbase_igate.cxx',
  2987. src='direct/src/showbase', module='direct', library='libshowbase',
  2988. files=['showBase.cxx', 'showBase.h', 'mersenne.cxx', 'mersenne.h'])
  2989. CompileC(ipath=IPATH, opts=OPTS, src='libshowbase_igate.cxx', obj='libshowbase_igate.obj')
  2990. #
  2991. # DIRECTORY: direct/metalibs/direct/
  2992. #
  2993. IPATH=['direct/metalibs/direct']
  2994. OPTS=['BUILDING_DIRECT', 'NSPR']
  2995. CompileC(ipath=IPATH, opts=OPTS, src='direct.cxx', obj='direct_direct.obj')
  2996. InterrogateModule(outc='libdirect_module.cxx', module='direct', library='libdirect',
  2997. files=['libdcparser.in', 'libshowbase.in', 'libdeadrec.in', 'libinterval.in', 'libdistributed.in'])
  2998. CompileC(ipath=IPATH, opts=OPTS, src='libdirect_module.cxx', obj='libdirect_module.obj')
  2999. CompileLink(dll='libdirect.dll', opts=['ADVAPI', 'NSPR', 'SSL'], obj=[
  3000. 'direct_direct.obj',
  3001. 'libdirect_module.obj',
  3002. 'directbase_directbase.obj',
  3003. 'dcparser_composite1.obj',
  3004. 'dcparser_composite2.obj',
  3005. 'dcparser_dcParser.obj',
  3006. 'dcparser_dcLexer.obj',
  3007. 'libdcparser_igate.obj',
  3008. 'showbase_showBase.obj',
  3009. 'showbase_mersenne.obj',
  3010. 'libshowbase_igate.obj',
  3011. 'deadrec_composite1.obj',
  3012. 'libdeadrec_igate.obj',
  3013. 'interval_composite1.obj',
  3014. 'libinterval_igate.obj',
  3015. 'distributed_config_distributed.obj',
  3016. 'distributed_cConnectionRepository.obj',
  3017. 'distributed_cDistributedSmoothNodeBase.obj',
  3018. 'libdistributed_igate.obj',
  3019. 'libpanda.dll',
  3020. 'libpandaexpress.dll',
  3021. 'libdtoolconfig.dll',
  3022. 'libdtool.dll',
  3023. ])
  3024. #
  3025. # DIRECTORY: direct/src/dcparse/
  3026. #
  3027. IPATH=['direct/src/dcparse', 'direct/src/dcparser']
  3028. OPTS=['WITHINPANDA', 'NSPR']
  3029. CompileC(ipath=IPATH, opts=OPTS, src='dcparse.cxx', obj='dcparse_dcparse.obj')
  3030. CompileLink(dll='dcparse.exe', opts=['ADVAPI', 'NSPR'], obj=[
  3031. 'dcparse_dcparse.obj',
  3032. 'libdirect.dll',
  3033. 'libpandaexpress.dll',
  3034. 'libdtoolconfig.dll',
  3035. 'libdtool.dll',
  3036. 'libpystub.dll',
  3037. ])
  3038. #
  3039. # DIRECTORY: direct/src/heapq/
  3040. #
  3041. IPATH=['direct/src/heapq']
  3042. OPTS=['NSPR']
  3043. CompileC(ipath=IPATH, opts=OPTS, src='heapq.cxx', obj='heapq_heapq.obj')
  3044. CompileLink(dll='libheapq.dll', opts=['ADVAPI', 'NSPR'], obj=[
  3045. 'heapq_heapq.obj',
  3046. 'libpandaexpress.dll',
  3047. 'libdtoolconfig.dll',
  3048. 'libdtool.dll',
  3049. ])
  3050. #
  3051. # DIRECTORY: pandatool/src/pandatoolbase/
  3052. #
  3053. IPATH=['pandatool/src/pandatoolbase']
  3054. OPTS=['NSPR']
  3055. CompileC(ipath=IPATH, opts=OPTS, src='pandatoolbase_composite1.cxx', obj='pandatoolbase_composite1.obj')
  3056. CompileLIB(lib='libpandatoolbase.lib', obj=['pandatoolbase_composite1.obj'])
  3057. #
  3058. # DIRECTORY: pandatool/src/converter/
  3059. #
  3060. IPATH=['pandatool/src/converter']
  3061. OPTS=['NSPR']
  3062. CompileC(ipath=IPATH, opts=OPTS, src='somethingToEggConverter.cxx', obj='converter_somethingToEggConverter.obj')
  3063. CompileLIB(lib='libconverter.lib', obj=['converter_somethingToEggConverter.obj'])
  3064. #
  3065. # DIRECTORY: pandatool/src/progbase/
  3066. #
  3067. IPATH=['pandatool/src/progbase']
  3068. OPTS=['NSPR']
  3069. CompileC(ipath=IPATH, opts=OPTS, src='progbase_composite1.cxx', obj='progbase_composite1.obj')
  3070. CompileLIB(lib='libprogbase.lib', obj=['progbase_composite1.obj'])
  3071. #
  3072. # DIRECTORY: pandatool/src/eggbase/
  3073. #
  3074. IPATH=['pandatool/src/eggbase']
  3075. OPTS=['NSPR']
  3076. CompileC(ipath=IPATH, opts=OPTS, src='eggbase_composite1.cxx', obj='eggbase_composite1.obj')
  3077. CompileLIB(lib='libeggbase.lib', obj=['eggbase_composite1.obj'])
  3078. #
  3079. # DIRECTORY: pandatool/src/bam/
  3080. #
  3081. IPATH=['pandatool/src/bam']
  3082. OPTS=['NSPR']
  3083. CompileC(ipath=IPATH, opts=OPTS, src='bamInfo.cxx', obj='bam-info_bamInfo.obj')
  3084. CompileLink(dll='bam-info.exe', opts=['ADVAPI', 'NSPR', 'FFTW'], obj=[
  3085. 'bam-info_bamInfo.obj',
  3086. 'libprogbase.lib',
  3087. 'libpandatoolbase.lib',
  3088. 'libpandaegg.dll',
  3089. 'libpanda.dll',
  3090. 'libpandaexpress.dll',
  3091. 'libdtoolconfig.dll',
  3092. 'libdtool.dll',
  3093. 'libpystub.dll',
  3094. ])
  3095. CompileC(ipath=IPATH, opts=OPTS, src='bamToEgg.cxx', obj='bam2egg_bamToEgg.obj')
  3096. CompileLink(dll='bam2egg.exe', opts=['ADVAPI', 'NSPR', 'FFTW'], obj=[
  3097. 'bam2egg_bamToEgg.obj',
  3098. 'libconverter.lib',
  3099. 'libeggbase.lib',
  3100. 'libprogbase.lib',
  3101. 'libpandatoolbase.lib',
  3102. 'libpandaegg.dll',
  3103. 'libpanda.dll',
  3104. 'libpandaexpress.dll',
  3105. 'libdtoolconfig.dll',
  3106. 'libdtool.dll',
  3107. 'libpystub.dll',
  3108. ])
  3109. CompileC(ipath=IPATH, opts=OPTS, src='eggToBam.cxx', obj='egg2bam_eggToBam.obj')
  3110. CompileLink(dll='egg2bam.exe', opts=['ADVAPI', 'NSPR', 'FFTW'], obj=[
  3111. 'egg2bam_eggToBam.obj',
  3112. 'libeggbase.lib',
  3113. 'libprogbase.lib',
  3114. 'libconverter.lib',
  3115. 'libpandatoolbase.lib',
  3116. 'libpandaegg.dll',
  3117. 'libpanda.dll',
  3118. 'libpandaexpress.dll',
  3119. 'libdtoolconfig.dll',
  3120. 'libdtool.dll',
  3121. 'libpystub.dll',
  3122. ])
  3123. #
  3124. # DIRECTORY: pandatool/src/cvscopy/
  3125. #
  3126. IPATH=['pandatool/src/cvscopy']
  3127. OPTS=['NSPR']
  3128. CompileC(ipath=IPATH, opts=OPTS, src='cvscopy_composite1.cxx', obj='cvscopy_composite1.obj')
  3129. CompileLIB(lib='libcvscopy.lib', obj=['cvscopy_composite1.obj'])
  3130. #
  3131. # DIRECTORY: pandatool/src/dxf/
  3132. #
  3133. IPATH=['pandatool/src/dxf']
  3134. OPTS=['NSPR']
  3135. CompileC(ipath=IPATH, opts=OPTS, src='dxf_composite1.cxx', obj='dxf_composite1.obj')
  3136. CompileLIB(lib='libdxf.lib', obj=['dxf_composite1.obj'])
  3137. #
  3138. # DIRECTORY: pandatool/src/dxfegg/
  3139. #
  3140. IPATH=['pandatool/src/dxfegg']
  3141. OPTS=['NSPR']
  3142. CompileC(ipath=IPATH, opts=OPTS, src='dxfToEggConverter.cxx', obj='dxfegg_dxfToEggConverter.obj')
  3143. CompileC(ipath=IPATH, opts=OPTS, src='dxfToEggLayer.cxx', obj='dxfegg_dxfToEggLayer.obj')
  3144. CompileLIB(lib='libdxfegg.lib', obj=[
  3145. 'dxfegg_dxfToEggConverter.obj',
  3146. 'dxfegg_dxfToEggLayer.obj',
  3147. ])
  3148. #
  3149. # DIRECTORY: pandatool/src/dxfprogs/
  3150. #
  3151. IPATH=['pandatool/src/dxfprogs']
  3152. OPTS=['NSPR']
  3153. CompileC(ipath=IPATH, opts=OPTS, src='dxfPoints.cxx', obj='dxf-points_dxfPoints.obj')
  3154. CompileLink(dll='dxf-points.exe', opts=['ADVAPI', 'NSPR', 'FFTW'], obj=[
  3155. 'dxf-points_dxfPoints.obj',
  3156. 'libprogbase.lib',
  3157. 'libdxf.lib',
  3158. 'libpandatoolbase.lib',
  3159. 'libpanda.dll',
  3160. 'libpandaexpress.dll',
  3161. 'libdtoolconfig.dll',
  3162. 'libdtool.dll',
  3163. 'libpystub.dll',
  3164. ])
  3165. CompileC(ipath=IPATH, opts=OPTS, src='dxfToEgg.cxx', obj='dxf2egg_dxfToEgg.obj')
  3166. CompileLink(dll='dxf2egg.exe', opts=['ADVAPI', 'NSPR', 'FFTW'], obj=[
  3167. 'dxf2egg_dxfToEgg.obj',
  3168. 'libdxfegg.lib',
  3169. 'libdxf.lib',
  3170. 'libeggbase.lib',
  3171. 'libprogbase.lib',
  3172. 'libpandatoolbase.lib',
  3173. 'libconverter.lib',
  3174. 'libpandaegg.dll',
  3175. 'libpanda.dll',
  3176. 'libpandaexpress.dll',
  3177. 'libdtoolconfig.dll',
  3178. 'libdtool.dll',
  3179. 'libpystub.dll',
  3180. ])
  3181. CompileC(ipath=IPATH, opts=OPTS, src='eggToDXF.cxx', obj='egg2dxf_eggToDXF.obj')
  3182. CompileC(ipath=IPATH, opts=OPTS, src='eggToDXFLayer.cxx', obj='egg2dxf_eggToDXFLayer.obj')
  3183. CompileLink(dll='egg2dxf.exe', opts=['ADVAPI', 'NSPR', 'FFTW'], obj=[
  3184. 'egg2dxf_eggToDXF.obj',
  3185. 'egg2dxf_eggToDXFLayer.obj',
  3186. 'libdxf.lib',
  3187. 'libeggbase.lib',
  3188. 'libprogbase.lib',
  3189. 'libpandatoolbase.lib',
  3190. 'libconverter.lib',
  3191. 'libpandaegg.dll',
  3192. 'libpanda.dll',
  3193. 'libpandaexpress.dll',
  3194. 'libdtoolconfig.dll',
  3195. 'libdtool.dll',
  3196. 'libpystub.dll',
  3197. ])
  3198. #
  3199. # DIRECTORY: pandatool/src/palettizer/
  3200. #
  3201. IPATH=['pandatool/src/palettizer']
  3202. OPTS=['NSPR']
  3203. CompileC(ipath=IPATH, opts=OPTS, src='palettizer_composite1.cxx', obj='palettizer_composite1.obj')
  3204. CompileLIB(lib='libpalettizer.lib', obj=['palettizer_composite1.obj'])
  3205. #
  3206. # DIRECTORY: pandatool/src/egg-mkfont/
  3207. #
  3208. if OMIT.count("FREETYPE")==0:
  3209. IPATH=['pandatool/src/egg-mkfont', 'pandatool/src/palettizer']
  3210. OPTS=['NSPR', 'FREETYPE']
  3211. CompileC(ipath=IPATH, opts=OPTS, src='eggMakeFont.cxx', obj='egg-mkfont_eggMakeFont.obj')
  3212. CompileC(ipath=IPATH, opts=OPTS, src='rangeDescription.cxx', obj='egg-mkfont_rangeDescription.obj')
  3213. CompileC(ipath=IPATH, opts=OPTS, src='rangeIterator.cxx', obj='egg-mkfont_rangeIterator.obj')
  3214. CompileLink(dll='egg-mkfont.exe', opts=['ADVAPI', 'NSPR', 'FREETYPE'], obj=[
  3215. 'egg-mkfont_eggMakeFont.obj',
  3216. 'egg-mkfont_rangeDescription.obj',
  3217. 'egg-mkfont_rangeIterator.obj',
  3218. 'libpalettizer.lib',
  3219. 'libeggbase.lib',
  3220. 'libprogbase.lib',
  3221. 'libpandatoolbase.lib',
  3222. 'libconverter.lib',
  3223. 'libpandaegg.dll',
  3224. 'libpanda.dll',
  3225. 'libpandaexpress.dll',
  3226. 'libdtoolconfig.dll',
  3227. 'libdtool.dll',
  3228. 'libpystub.dll',
  3229. ])
  3230. #
  3231. # DIRECTORY: pandatool/src/eggcharbase/
  3232. #
  3233. IPATH=['pandatool/src/eggcharbase']
  3234. OPTS=['ZLIB', 'NSPR']
  3235. CompileC(ipath=IPATH, opts=OPTS, src='eggcharbase_composite1.cxx', obj='eggcharbase_composite1.obj')
  3236. CompileLIB(lib='libeggcharbase.lib', obj=['eggcharbase_composite1.obj'])
  3237. #
  3238. # DIRECTORY: pandatool/src/egg-optchar/
  3239. #
  3240. IPATH=['pandatool/src/egg-optchar']
  3241. OPTS=['NSPR']
  3242. CompileC(ipath=IPATH, opts=OPTS, src='config_egg_optchar.cxx', obj='egg-optchar_config_egg_optchar.obj')
  3243. CompileC(ipath=IPATH, opts=OPTS, src='eggOptchar.cxx', obj='egg-optchar_eggOptchar.obj')
  3244. CompileC(ipath=IPATH, opts=OPTS, src='eggOptcharUserData.cxx', obj='egg-optchar_eggOptcharUserData.obj')
  3245. CompileC(ipath=IPATH, opts=OPTS, src='vertexMembership.cxx', obj='egg-optchar_vertexMembership.obj')
  3246. CompileLink(dll='egg-optchar.exe', opts=['ADVAPI', 'NSPR'], obj=[
  3247. 'egg-optchar_config_egg_optchar.obj',
  3248. 'egg-optchar_eggOptchar.obj',
  3249. 'egg-optchar_eggOptcharUserData.obj',
  3250. 'egg-optchar_vertexMembership.obj',
  3251. 'libeggcharbase.lib',
  3252. 'libconverter.lib',
  3253. 'libeggbase.lib',
  3254. 'libprogbase.lib',
  3255. 'libpandatoolbase.lib',
  3256. 'libpandaegg.dll',
  3257. 'libpanda.dll',
  3258. 'libpandaexpress.dll',
  3259. 'libdtoolconfig.dll',
  3260. 'libdtool.dll',
  3261. 'libpystub.dll',
  3262. ])
  3263. #
  3264. # DIRECTORY: pandatool/src/egg-palettize/
  3265. #
  3266. IPATH=['pandatool/src/egg-palettize', 'pandatool/src/palettizer']
  3267. OPTS=['NSPR']
  3268. CompileC(ipath=IPATH, opts=OPTS, src='eggPalettize.cxx', obj='egg-palettize_eggPalettize.obj')
  3269. CompileLink(dll='egg-palettize.exe', opts=['ADVAPI', 'NSPR'], obj=[
  3270. 'egg-palettize_eggPalettize.obj',
  3271. 'libpalettizer.lib',
  3272. 'libeggbase.lib',
  3273. 'libprogbase.lib',
  3274. 'libpandatoolbase.lib',
  3275. 'libconverter.lib',
  3276. 'libpandaegg.dll',
  3277. 'libpanda.dll',
  3278. 'libpandaexpress.dll',
  3279. 'libdtoolconfig.dll',
  3280. 'libdtool.dll',
  3281. 'libpystub.dll',
  3282. ])
  3283. #
  3284. # DIRECTORY: pandatool/src/egg-qtess/
  3285. #
  3286. IPATH=['pandatool/src/egg-qtess']
  3287. OPTS=['NSPR']
  3288. CompileC(ipath=IPATH, opts=OPTS, src='egg-qtess_composite1.cxx', obj='egg-qtess_composite1.obj')
  3289. CompileLink(dll='egg-qtess.exe', opts=['ADVAPI', 'NSPR'], obj=[
  3290. 'egg-qtess_composite1.obj',
  3291. 'libeggbase.lib',
  3292. 'libprogbase.lib',
  3293. 'libconverter.lib',
  3294. 'libpandatoolbase.lib',
  3295. 'libpandaegg.dll',
  3296. 'libpanda.dll',
  3297. 'libpandaexpress.dll',
  3298. 'libdtoolconfig.dll',
  3299. 'libdtool.dll',
  3300. 'libpystub.dll',
  3301. ])
  3302. #
  3303. # DIRECTORY: pandatool/src/eggprogs/
  3304. #
  3305. IPATH=['pandatool/src/eggprogs']
  3306. OPTS=['NSPR']
  3307. CompileC(ipath=IPATH, opts=OPTS, src='eggCrop.cxx', obj='egg-crop_eggCrop.obj')
  3308. CompileLink(dll='egg-crop.exe', opts=['ADVAPI', 'NSPR'], obj=[
  3309. 'egg-crop_eggCrop.obj',
  3310. 'libconverter.lib',
  3311. 'libeggbase.lib',
  3312. 'libprogbase.lib',
  3313. 'libpandatoolbase.lib',
  3314. 'libpandaegg.dll',
  3315. 'libpanda.dll',
  3316. 'libpandaexpress.dll',
  3317. 'libdtoolconfig.dll',
  3318. 'libdtool.dll',
  3319. 'libpystub.dll',
  3320. ])
  3321. CompileC(ipath=IPATH, opts=OPTS, src='eggMakeTube.cxx', obj='egg-make-tube_eggMakeTube.obj')
  3322. CompileLink(dll='egg-make-tube.exe', opts=['ADVAPI', 'NSPR'], obj=[
  3323. 'egg-make-tube_eggMakeTube.obj',
  3324. 'libconverter.lib',
  3325. 'libeggbase.lib',
  3326. 'libprogbase.lib',
  3327. 'libpandatoolbase.lib',
  3328. 'libpandaegg.dll',
  3329. 'libpanda.dll',
  3330. 'libpandaexpress.dll',
  3331. 'libdtoolconfig.dll',
  3332. 'libdtool.dll',
  3333. 'libpystub.dll',
  3334. ])
  3335. CompileC(ipath=IPATH, opts=OPTS, src='eggTextureCards.cxx', obj='egg-texture-cards_eggTextureCards.obj')
  3336. CompileLink(dll='egg-texture-cards.exe', opts=['ADVAPI', 'NSPR'], obj=[
  3337. 'egg-texture-cards_eggTextureCards.obj',
  3338. 'libconverter.lib',
  3339. 'libeggbase.lib',
  3340. 'libprogbase.lib',
  3341. 'libpandatoolbase.lib',
  3342. 'libpandaegg.dll',
  3343. 'libpanda.dll',
  3344. 'libpandaexpress.dll',
  3345. 'libdtoolconfig.dll',
  3346. 'libdtool.dll',
  3347. 'libpystub.dll',
  3348. ])
  3349. CompileC(ipath=IPATH, opts=OPTS, src='eggTopstrip.cxx', obj='egg-topstrip_eggTopstrip.obj')
  3350. CompileLink(dll='egg-topstrip.exe', opts=['ADVAPI', 'NSPR'], obj=[
  3351. 'egg-topstrip_eggTopstrip.obj',
  3352. 'libeggcharbase.lib',
  3353. 'libconverter.lib',
  3354. 'libeggbase.lib',
  3355. 'libprogbase.lib',
  3356. 'libpandatoolbase.lib',
  3357. 'libpandaegg.dll',
  3358. 'libpanda.dll',
  3359. 'libpandaexpress.dll',
  3360. 'libdtoolconfig.dll',
  3361. 'libdtool.dll',
  3362. 'libpystub.dll',
  3363. ])
  3364. CompileC(ipath=IPATH, opts=OPTS, src='eggTrans.cxx', obj='egg-trans_eggTrans.obj')
  3365. CompileLink(dll='egg-trans.exe', opts=['ADVAPI', 'NSPR'], obj=[
  3366. 'egg-trans_eggTrans.obj',
  3367. 'libconverter.lib',
  3368. 'libeggbase.lib',
  3369. 'libprogbase.lib',
  3370. 'libpandatoolbase.lib',
  3371. 'libpandaegg.dll',
  3372. 'libpanda.dll',
  3373. 'libpandaexpress.dll',
  3374. 'libdtoolconfig.dll',
  3375. 'libdtool.dll',
  3376. 'libpystub.dll',
  3377. ])
  3378. CompileC(ipath=IPATH, opts=OPTS, src='eggToC.cxx', obj='egg2c_eggToC.obj')
  3379. CompileLink(dll='egg2c.exe', opts=['ADVAPI', 'NSPR'], obj=[
  3380. 'egg2c_eggToC.obj',
  3381. 'libconverter.lib',
  3382. 'libeggbase.lib',
  3383. 'libprogbase.lib',
  3384. 'libpandatoolbase.lib',
  3385. 'libpandaegg.dll',
  3386. 'libpanda.dll',
  3387. 'libpandaexpress.dll',
  3388. 'libdtoolconfig.dll',
  3389. 'libdtool.dll',
  3390. 'libpystub.dll',
  3391. ])
  3392. #
  3393. # DIRECTORY: pandatool/src/flt/
  3394. #
  3395. IPATH=['pandatool/src/flt']
  3396. OPTS=['NSPR']
  3397. CompileC(ipath=IPATH, opts=OPTS, src='fltVectorRecord.cxx', obj='flt_fltVectorRecord.obj')
  3398. CompileC(ipath=IPATH, opts=OPTS, src='flt_composite1.cxx', obj='flt_composite1.obj')
  3399. CompileLIB(lib='libflt.lib', obj=['flt_fltVectorRecord.obj', 'flt_composite1.obj'])
  3400. #
  3401. # DIRECTORY: pandatool/src/fltegg/
  3402. #
  3403. IPATH=['pandatool/src/fltegg']
  3404. OPTS=['NSPR']
  3405. CompileC(ipath=IPATH, opts=OPTS, src='fltToEggConverter.cxx', obj='fltegg_fltToEggConverter.obj')
  3406. CompileC(ipath=IPATH, opts=OPTS, src='fltToEggLevelState.cxx', obj='fltegg_fltToEggLevelState.obj')
  3407. CompileLIB(lib='libfltegg.lib', obj=['fltegg_fltToEggConverter.obj', 'fltegg_fltToEggLevelState.obj'])
  3408. #
  3409. # DIRECTORY: pandatool/src/fltprogs/
  3410. #
  3411. IPATH=['pandatool/src/fltprogs', 'pandatool/src/flt', 'pandatool/src/cvscopy']
  3412. OPTS=['NSPR']
  3413. CompileC(ipath=IPATH, opts=OPTS, src='eggToFlt.cxx', obj='egg2flt_eggToFlt.obj')
  3414. CompileLink(dll='egg2flt.exe', opts=['ADVAPI', 'NSPR'], obj=[
  3415. 'egg2flt_eggToFlt.obj',
  3416. 'libflt.lib',
  3417. 'libeggbase.lib',
  3418. 'libprogbase.lib',
  3419. 'libconverter.lib',
  3420. 'libpandatoolbase.lib',
  3421. 'libpandaegg.dll',
  3422. 'libpanda.dll',
  3423. 'libpandaexpress.dll',
  3424. 'libdtoolconfig.dll',
  3425. 'libdtool.dll',
  3426. 'libpystub.dll',
  3427. ])
  3428. CompileC(ipath=IPATH, opts=OPTS, src='fltInfo.cxx', obj='flt-info_fltInfo.obj')
  3429. CompileLink(dll='flt-info.exe', opts=['ADVAPI', 'NSPR'], obj=[
  3430. 'flt-info_fltInfo.obj',
  3431. 'libprogbase.lib',
  3432. 'libflt.lib',
  3433. 'libpandatoolbase.lib',
  3434. 'libconverter.lib',
  3435. 'libpandaegg.dll',
  3436. 'libpanda.dll',
  3437. 'libpandaexpress.dll',
  3438. 'libdtoolconfig.dll',
  3439. 'libdtool.dll',
  3440. 'libpystub.dll',
  3441. ])
  3442. CompileC(ipath=IPATH, opts=OPTS, src='fltTrans.cxx', obj='flt-trans_fltTrans.obj')
  3443. CompileLink(dll='flt-trans.exe', opts=['ADVAPI', 'NSPR'], obj=[
  3444. 'flt-trans_fltTrans.obj',
  3445. 'libprogbase.lib',
  3446. 'libflt.lib',
  3447. 'libpandatoolbase.lib',
  3448. 'libconverter.lib',
  3449. 'libpandaegg.dll',
  3450. 'libpanda.dll',
  3451. 'libpandaexpress.dll',
  3452. 'libdtoolconfig.dll',
  3453. 'libdtool.dll',
  3454. 'libpystub.dll',
  3455. ])
  3456. CompileC(ipath=IPATH, opts=OPTS, src='fltToEgg.cxx', obj='flt2egg_fltToEgg.obj')
  3457. CompileLink(dll='flt2egg.exe', opts=['ADVAPI', 'NSPR'], obj=[
  3458. 'flt2egg_fltToEgg.obj',
  3459. 'libflt.lib',
  3460. 'libfltegg.lib',
  3461. 'libeggbase.lib',
  3462. 'libprogbase.lib',
  3463. 'libconverter.lib',
  3464. 'libpandatoolbase.lib',
  3465. 'libpandaegg.dll',
  3466. 'libpanda.dll',
  3467. 'libpandaexpress.dll',
  3468. 'libdtoolconfig.dll',
  3469. 'libdtool.dll',
  3470. 'libpystub.dll',
  3471. ])
  3472. CompileC(ipath=IPATH, opts=OPTS, src='fltCopy.cxx', obj='fltcopy_fltCopy.obj')
  3473. CompileLink(dll='fltcopy.exe', opts=['ADVAPI', 'NSPR'], obj=[
  3474. 'fltcopy_fltCopy.obj',
  3475. 'libcvscopy.lib',
  3476. 'libflt.lib',
  3477. 'libprogbase.lib',
  3478. 'libpandatoolbase.lib',
  3479. 'libconverter.lib',
  3480. 'libpandaegg.dll',
  3481. 'libpanda.dll',
  3482. 'libpandaexpress.dll',
  3483. 'libdtoolconfig.dll',
  3484. 'libdtool.dll',
  3485. 'libpystub.dll',
  3486. ])
  3487. #
  3488. # DIRECTORY: pandatool/src/imagebase/
  3489. #
  3490. IPATH=['pandatool/src/imagebase']
  3491. OPTS=['NSPR']
  3492. CompileC(ipath=IPATH, opts=OPTS, src='imagebase_composite1.cxx', obj='imagebase_composite1.obj')
  3493. CompileLIB(lib='libimagebase.lib', obj=['imagebase_composite1.obj'])
  3494. #
  3495. # DIRECTORY: pandatool/src/imageprogs/
  3496. #
  3497. IPATH=['pandatool/src/imageprogs']
  3498. OPTS=['NSPR']
  3499. CompileC(ipath=IPATH, opts=OPTS, src='imageInfo.cxx', obj='image-info_imageInfo.obj')
  3500. CompileLink(dll='image-info.exe', opts=['ADVAPI', 'NSPR'], obj=[
  3501. 'image-info_imageInfo.obj',
  3502. 'libimagebase.lib',
  3503. 'libprogbase.lib',
  3504. 'libpandatoolbase.lib',
  3505. 'libpandaegg.dll',
  3506. 'libpanda.dll',
  3507. 'libpandaexpress.dll',
  3508. 'libdtoolconfig.dll',
  3509. 'libdtool.dll',
  3510. 'libpystub.dll',
  3511. ])
  3512. CompileC(ipath=IPATH, opts=OPTS, src='imageResize.cxx', obj='image-resize_imageResize.obj')
  3513. CompileLink(dll='image-resize.exe', opts=['ADVAPI', 'NSPR'], obj=[
  3514. 'image-resize_imageResize.obj',
  3515. 'libimagebase.lib',
  3516. 'libprogbase.lib',
  3517. 'libpandatoolbase.lib',
  3518. 'libpandaegg.dll',
  3519. 'libpanda.dll',
  3520. 'libpandaexpress.dll',
  3521. 'libdtoolconfig.dll',
  3522. 'libdtool.dll',
  3523. 'libpystub.dll',
  3524. ])
  3525. CompileC(ipath=IPATH, opts=OPTS, src='imageTrans.cxx', obj='image-trans_imageTrans.obj')
  3526. CompileLink(dll='image-trans.exe', opts=['ADVAPI', 'NSPR'], obj=[
  3527. 'image-trans_imageTrans.obj',
  3528. 'libimagebase.lib',
  3529. 'libprogbase.lib',
  3530. 'libpandatoolbase.lib',
  3531. 'libpandaegg.dll',
  3532. 'libpanda.dll',
  3533. 'libpandaexpress.dll',
  3534. 'libdtoolconfig.dll',
  3535. 'libdtool.dll',
  3536. 'libpystub.dll',
  3537. ])
  3538. #
  3539. # DIRECTORY: pandatool/src/lwo/
  3540. #
  3541. IPATH=['pandatool/src/lwo']
  3542. OPTS=['NSPR']
  3543. CompileC(ipath=IPATH, opts=OPTS, src='lwo_composite1.cxx', obj='lwo_composite1.obj')
  3544. CompileLIB(lib='liblwo.lib', obj=['lwo_composite1.obj'])
  3545. #
  3546. # DIRECTORY: pandatool/src/lwoegg/
  3547. #
  3548. IPATH=['pandatool/src/lwoegg']
  3549. OPTS=['NSPR']
  3550. CompileC(ipath=IPATH, opts=OPTS, src='lwoegg_composite1.cxx', obj='lwoegg_composite1.obj')
  3551. CompileLIB(lib='liblwoegg.lib', obj=['lwoegg_composite1.obj'])
  3552. #
  3553. # DIRECTORY: pandatool/src/lwoprogs/
  3554. #
  3555. IPATH=['pandatool/src/lwoprogs', 'pandatool/src/lwo']
  3556. OPTS=['NSPR']
  3557. CompileC(ipath=IPATH, opts=OPTS, src='lwoScan.cxx', obj='lwo-scan_lwoScan.obj')
  3558. CompileLink(dll='lwo-scan.exe', opts=['ADVAPI', 'NSPR'], obj=[
  3559. 'lwo-scan_lwoScan.obj',
  3560. 'liblwo.lib',
  3561. 'libprogbase.lib',
  3562. 'libpandatoolbase.lib',
  3563. 'libpandaegg.dll',
  3564. 'libpanda.dll',
  3565. 'libpandaexpress.dll',
  3566. 'libdtoolconfig.dll',
  3567. 'libdtool.dll',
  3568. 'libpystub.dll',
  3569. ])
  3570. CompileC(ipath=IPATH, opts=OPTS, src='lwoToEgg.cxx', obj='lwo2egg_lwoToEgg.obj')
  3571. CompileLink(dll='lwo2egg.exe', opts=['ADVAPI', 'NSPR'], obj=[
  3572. 'lwo2egg_lwoToEgg.obj',
  3573. 'liblwo.lib',
  3574. 'liblwoegg.lib',
  3575. 'libeggbase.lib',
  3576. 'libprogbase.lib',
  3577. 'libpandatoolbase.lib',
  3578. 'libconverter.lib',
  3579. 'libpandaegg.dll',
  3580. 'libpanda.dll',
  3581. 'libpandaexpress.dll',
  3582. 'libdtoolconfig.dll',
  3583. 'libdtool.dll',
  3584. 'libpystub.dll',
  3585. ])
  3586. #
  3587. # DIRECTORY: pandatool/src/maya/
  3588. #
  3589. for VER in ["5","6","65"]:
  3590. if (OMIT.count("MAYA"+VER)==0):
  3591. IPATH=['pandatool/src/maya']
  3592. OPTS=['MAYA'+VER, 'NSPR']
  3593. CompileC(ipath=IPATH, opts=OPTS, src='maya_composite1.cxx', obj='maya'+VER+'_composite1.obj')
  3594. CompileLIB(lib='libmaya'+VER+'.lib', obj=[ 'maya'+VER+'_composite1.obj' ])
  3595. #
  3596. # DIRECTORY: pandatool/src/mayaegg/
  3597. #
  3598. for VER in ["5","6","65"]:
  3599. if (OMIT.count("MAYA"+VER)==0):
  3600. IPATH=['pandatool/src/mayaegg', 'pandatool/src/maya']
  3601. OPTS=['MAYA'+VER, 'NSPR']
  3602. CompileC(ipath=IPATH, opts=OPTS, src='mayaegg_composite1.cxx', obj='mayaegg'+VER+'_composite1.obj')
  3603. CompileLIB(lib='libmayaegg'+VER+'.lib', obj=[ 'mayaegg'+VER+'_composite1.obj' ])
  3604. #
  3605. # DIRECTORY: pandatool/src/maxegg/
  3606. #
  3607. for VER in ["5", "6", "7"]:
  3608. if (OMIT.count("MAX"+VER)==0):
  3609. IPATH=['pandatool/src/maxegg']
  3610. OPTS=['MAX'+VER, 'NSPR', "WINCOMCTL", "WINCOMDLG", "WINUSER", "MAXEGGDEF"]
  3611. CompileRES(ipath=IPATH, opts=OPTS, src='MaxEgg.rc', obj='maxegg'+VER+'_MaxEgg.res')
  3612. CompileC(ipath=IPATH, opts=OPTS, src='maxegg_composite1.cxx',obj='maxegg'+VER+'_composite1.obj')
  3613. CompileLink(opts=OPTS, dll='maxegg'+VER+'.dlo', obj=[
  3614. 'maxegg'+VER+'_composite1.obj',
  3615. 'maxegg'+VER+'_MaxEgg.res',
  3616. 'libeggbase.lib',
  3617. 'libprogbase.lib',
  3618. 'libpandatoolbase.lib',
  3619. 'libconverter.lib',
  3620. 'libpandaegg.dll',
  3621. 'libpanda.dll',
  3622. 'libpandaexpress.dll',
  3623. 'libdtoolconfig.dll',
  3624. 'libdtool.dll',
  3625. 'libpystub.dll'
  3626. ])
  3627. #
  3628. # DIRECTORY: pandatool/src/vrml/
  3629. #
  3630. CompileBison(pre='vrmlyy', dstc='vrmlParser.cxx', dsth='vrmlParser.h', src='pandatool/src/vrml/vrmlParser.yxx')
  3631. CompileFlex(pre='vrmlyy', dst='vrmlLexer.cxx', src='pandatool/src/vrml/vrmlLexer.lxx', dashi=0)
  3632. IPATH=['pandatool/src/vrml']
  3633. OPTS=['ZLIB', 'NSPR']
  3634. CompileC(ipath=IPATH, opts=OPTS, src='parse_vrml.cxx', obj='pvrml_parse_vrml.obj')
  3635. CompileC(ipath=IPATH, opts=OPTS, src='standard_nodes.cxx', obj='pvrml_standard_nodes.obj')
  3636. CompileC(ipath=IPATH, opts=OPTS, src='vrmlNode.cxx', obj='pvrml_vrmlNode.obj')
  3637. CompileC(ipath=IPATH, opts=OPTS, src='vrmlNodeType.cxx', obj='pvrml_vrmlNodeType.obj')
  3638. CompileC(ipath=IPATH, opts=OPTS, src='vrmlParser.cxx', obj='pvrml_vrmlParser.obj')
  3639. CompileC(ipath=IPATH, opts=OPTS, src='vrmlLexer.cxx', obj='pvrml_vrmlLexer.obj')
  3640. CompileLIB(lib='libpvrml.lib', obj=[
  3641. 'pvrml_parse_vrml.obj',
  3642. 'pvrml_standard_nodes.obj',
  3643. 'pvrml_vrmlNode.obj',
  3644. 'pvrml_vrmlNodeType.obj',
  3645. 'pvrml_vrmlParser.obj',
  3646. 'pvrml_vrmlLexer.obj',
  3647. ])
  3648. #
  3649. # DIRECTORY: pandatool/src/vrmlegg/
  3650. #
  3651. IPATH=['pandatool/src/vrmlegg', 'pandatool/src/vrml']
  3652. OPTS=['NSPR']
  3653. CompileC(ipath=IPATH, opts=OPTS, src='indexedFaceSet.cxx', obj='vrmlegg_indexedFaceSet.obj')
  3654. CompileC(ipath=IPATH, opts=OPTS, src='vrmlAppearance.cxx', obj='vrmlegg_vrmlAppearance.obj')
  3655. CompileC(ipath=IPATH, opts=OPTS, src='vrmlToEggConverter.cxx', obj='vrmlegg_vrmlToEggConverter.obj')
  3656. CompileLIB(lib='libvrmlegg.lib', obj=[
  3657. 'vrmlegg_indexedFaceSet.obj',
  3658. 'vrmlegg_vrmlAppearance.obj',
  3659. 'vrmlegg_vrmlToEggConverter.obj',
  3660. ])
  3661. #
  3662. # DIRECTORY: pandatool/src/xfile/
  3663. #
  3664. CompileBison(pre='xyy', dstc='xParser.cxx', dsth='xParser.h', src='pandatool/src/xfile/xParser.yxx')
  3665. CompileFlex(pre='xyy', dst='xLexer.cxx', src='pandatool/src/xfile/xLexer.lxx', dashi=1)
  3666. IPATH=['pandatool/src/xfile']
  3667. OPTS=['ZLIB', 'NSPR']
  3668. CompileC(ipath=IPATH, opts=OPTS, src='xfile_composite1.cxx', obj='xfile_composite1.obj')
  3669. CompileC(ipath=IPATH, opts=OPTS, src='xParser.cxx', obj='xfile_xParser.obj')
  3670. CompileC(ipath=IPATH, opts=OPTS, src='xLexer.cxx', obj='xfile_xLexer.obj')
  3671. CompileLIB(lib='libxfile.lib', obj=[
  3672. 'xfile_composite1.obj',
  3673. 'xfile_xParser.obj',
  3674. 'xfile_xLexer.obj',
  3675. ])
  3676. #
  3677. # DIRECTORY: pandatool/src/xfileegg/
  3678. #
  3679. IPATH=['pandatool/src/xfileegg', 'pandatool/src/xfile']
  3680. OPTS=['NSPR']
  3681. CompileC(ipath=IPATH, opts=OPTS, src='xfileegg_composite1.cxx', obj='xfileegg_composite1.obj')
  3682. CompileLIB(lib='libxfileegg.lib', obj=[
  3683. 'xfileegg_composite1.obj',
  3684. ])
  3685. #
  3686. # DIRECTORY: pandatool/src/ptloader/
  3687. #
  3688. IPATH=['pandatool/src/ptloader', 'pandatool/src/flt', 'pandatool/src/lwo', 'pandatool/src/xfile', 'pandatool/src/xfileegg']
  3689. OPTS=['BUILDING_PTLOADER', 'NSPR']
  3690. CompileC(ipath=IPATH, opts=OPTS, src='config_ptloader.cxx', obj='ptloader_config_ptloader.obj')
  3691. CompileC(ipath=IPATH, opts=OPTS, src='loaderFileTypePandatool.cxx', obj='ptloader_loaderFileTypePandatool.obj')
  3692. CompileLink(dll='libptloader.dll', opts=['ADVAPI', 'NSPR'], obj=[
  3693. 'ptloader_config_ptloader.obj',
  3694. 'ptloader_loaderFileTypePandatool.obj',
  3695. 'libfltegg.lib',
  3696. 'libflt.lib',
  3697. 'liblwoegg.lib',
  3698. 'liblwo.lib',
  3699. 'libdxfegg.lib',
  3700. 'libdxf.lib',
  3701. 'libvrmlegg.lib',
  3702. 'libpvrml.lib',
  3703. 'libxfileegg.lib',
  3704. 'libxfile.lib',
  3705. 'libconverter.lib',
  3706. 'libpandatoolbase.lib',
  3707. 'libeggbase.lib',
  3708. 'libprogbase.lib',
  3709. 'libpandaegg.dll',
  3710. 'libpanda.dll',
  3711. 'libpandaexpress.dll',
  3712. 'libdtoolconfig.dll',
  3713. 'libdtool.dll',
  3714. ])
  3715. #
  3716. # DIRECTORY: pandatool/src/mayaprogs/
  3717. #
  3718. for VER in ["5","6","65"]:
  3719. if (OMIT.count('MAYA'+VER)==0):
  3720. IPATH=['pandatool/src/mayaprogs', 'pandatool/src/maya', 'pandatool/src/mayaegg',
  3721. 'pandatool/src/cvscopy']
  3722. OPTS=['BUILDING_MISC', 'MAYA'+VER, 'NSPR']
  3723. CompileC(ipath=IPATH, opts=OPTS, src='config_mayaloader.cxx', obj='mayaloader'+VER+'_config_mayaloader.obj')
  3724. CompileLink(dll='libmayaloader'+VER+'.dll', opts=['ADVAPI', 'NSPR', 'MAYA'+VER], obj=[
  3725. 'mayaloader'+VER+'_config_mayaloader.obj',
  3726. 'libmayaegg'+VER+'.lib',
  3727. 'libptloader.lib',
  3728. 'libconverter.lib',
  3729. 'libpandatoolbase.lib',
  3730. 'libmaya'+VER+'.lib',
  3731. 'libfltegg.lib',
  3732. 'libflt.lib',
  3733. 'liblwoegg.lib',
  3734. 'liblwo.lib',
  3735. 'libdxfegg.lib',
  3736. 'libdxf.lib',
  3737. 'libvrmlegg.lib',
  3738. 'libpvrml.lib',
  3739. 'libxfileegg.lib',
  3740. 'libxfile.lib',
  3741. 'libeggbase.lib',
  3742. 'libprogbase.lib',
  3743. 'libpandaegg.dll',
  3744. 'libpanda.dll',
  3745. 'libpandaexpress.dll',
  3746. 'libdtoolconfig.dll',
  3747. 'libdtool.dll',
  3748. ])
  3749. CompileC(ipath=IPATH, opts=OPTS, src='mayaPview.cxx', obj='mayapview'+VER+'_mayaPview.obj')
  3750. CompileLink(dll='libmayapview'+VER+'.mll', opts=['ADVAPI', 'NSPR', 'MAYA'+VER], obj=[
  3751. 'mayapview'+VER+'_mayaPview.obj',
  3752. 'libmayaegg'+VER+'.lib',
  3753. 'libmaya'+VER+'.lib',
  3754. 'libconverter.lib',
  3755. 'libpandatoolbase.lib',
  3756. 'libpandaegg.dll',
  3757. 'libframework.dll',
  3758. 'libpanda.dll',
  3759. 'libpandaexpress.dll',
  3760. 'libdtoolconfig.dll',
  3761. 'libdtool.dll',
  3762. 'libpystub.dll',
  3763. ])
  3764. IPATH=['pandatool/src/mayaprogs', 'pandatool/src/maya', 'pandatool/src/mayaegg',
  3765. 'pandatool/src/cvscopy']
  3766. OPTS=['MAYA'+VER, 'NSPR']
  3767. CompileC(ipath=IPATH, opts=OPTS, src='mayaSavePview.cxx', obj='mayasavepview'+VER+'_mayaSavePview.obj')
  3768. CompileLink(dll='libmayasavepview'+VER+'.mll', opts=['ADVAPI', 'NSPR', 'MAYA'+VER], obj=[
  3769. 'mayasavepview'+VER+'_mayaSavePview.obj',
  3770. ])
  3771. CompileC(ipath=IPATH, opts=OPTS, src='mayaToEgg.cxx', obj='maya2egg'+VER+'_mayaToEgg.obj')
  3772. CompileLink(dll='maya2egg'+VER+'.exe', opts=['ADVAPI', 'NSPR', 'MAYA'+VER], obj=[
  3773. 'maya2egg'+VER+'_mayaToEgg.obj',
  3774. 'libmayaegg'+VER+'.lib',
  3775. 'libmaya'+VER+'.lib',
  3776. 'libeggbase.lib',
  3777. 'libprogbase.lib',
  3778. 'libconverter.lib',
  3779. 'libpandatoolbase.lib',
  3780. 'libpandaegg.dll',
  3781. 'libpanda.dll',
  3782. 'libpandaexpress.dll',
  3783. 'libdtoolconfig.dll',
  3784. 'libdtool.dll',
  3785. 'libpystub.dll',
  3786. ])
  3787. CompileC(ipath=IPATH, opts=OPTS, src='mayaCopy.cxx', obj='mayacopy'+VER+'_mayaCopy.obj')
  3788. CompileLink(dll='mayacopy'+VER+'.exe', opts=['ADVAPI', 'NSPR', 'MAYA'+VER], obj=[
  3789. 'mayacopy'+VER+'_mayaCopy.obj',
  3790. 'libcvscopy.lib',
  3791. 'libmaya'+VER+'.lib',
  3792. 'libprogbase.lib',
  3793. 'libpandatoolbase.lib',
  3794. 'libconverter.lib',
  3795. 'libpandaegg.dll',
  3796. 'libpanda.dll',
  3797. 'libpandaexpress.dll',
  3798. 'libdtoolconfig.dll',
  3799. 'libdtool.dll',
  3800. 'libpystub.dll',
  3801. ])
  3802. #
  3803. # DIRECTORY: pandatool/src/miscprogs/
  3804. #
  3805. IPATH=['pandatool/src/miscprogs']
  3806. OPTS=['NSPR']
  3807. CompileC(ipath=IPATH, opts=OPTS, src='binToC.cxx', obj='bin2c_binToC.obj')
  3808. CompileLink(dll='bin2c.exe', opts=['ADVAPI', 'NSPR'], obj=[
  3809. 'bin2c_binToC.obj',
  3810. 'libprogbase.lib',
  3811. 'libpandatoolbase.lib',
  3812. 'libpanda.dll',
  3813. 'libpandaexpress.dll',
  3814. 'libdtoolconfig.dll',
  3815. 'libdtool.dll',
  3816. 'libpystub.dll',
  3817. ])
  3818. #
  3819. # DIRECTORY: pandatool/src/pstatserver/
  3820. #
  3821. if OMIT.count("NSPR")==0:
  3822. IPATH=['pandatool/src/pstatserver']
  3823. OPTS=['NSPR']
  3824. CompileC(ipath=IPATH, opts=OPTS, src='pstatserver_composite1.cxx', obj='pstatserver_composite1.obj')
  3825. CompileLIB(lib='libpstatserver.lib', obj=[ 'pstatserver_composite1.obj' ])
  3826. #
  3827. # DIRECTORY: pandatool/src/softprogs/
  3828. #
  3829. IPATH=['pandatool/src/softprogs']
  3830. OPTS=['NSPR']
  3831. CompileC(ipath=IPATH, opts=OPTS, src='softCVS.cxx', obj='softcvs_softCVS.obj')
  3832. CompileC(ipath=IPATH, opts=OPTS, src='softFilename.cxx', obj='softcvs_softFilename.obj')
  3833. CompileLink(opts=['ADVAPI', 'NSPR'], dll='softcvs.exe', obj=[
  3834. 'softcvs_softCVS.obj',
  3835. 'softcvs_softFilename.obj',
  3836. 'libprogbase.lib',
  3837. 'libpandatoolbase.lib',
  3838. 'libpandaegg.dll',
  3839. 'libpanda.dll',
  3840. 'libpandaexpress.dll',
  3841. 'libdtoolconfig.dll',
  3842. 'libdtool.dll',
  3843. 'libpystub.dll',
  3844. ])
  3845. #
  3846. # DIRECTORY: pandatool/src/text-stats/
  3847. #
  3848. if OMIT.count("NSPR")==0:
  3849. IPATH=['pandatool/src/text-stats']
  3850. OPTS=['NSPR']
  3851. CompileC(ipath=IPATH, opts=OPTS, src='textMonitor.cxx', obj='text-stats_textMonitor.obj')
  3852. CompileC(ipath=IPATH, opts=OPTS, src='textStats.cxx', obj='text-stats_textStats.obj')
  3853. CompileLink(opts=['ADVAPI', 'NSPR'], dll='text-stats.exe', obj=[
  3854. 'text-stats_textMonitor.obj',
  3855. 'text-stats_textStats.obj',
  3856. 'libprogbase.lib',
  3857. 'libpstatserver.lib',
  3858. 'libpandatoolbase.lib',
  3859. 'libpandaegg.dll',
  3860. 'libpanda.dll',
  3861. 'libpandaexpress.dll',
  3862. 'libdtoolconfig.dll',
  3863. 'libdtool.dll',
  3864. 'libpystub.dll',
  3865. ])
  3866. #
  3867. # DIRECTORY: pandatool/src/vrmlprogs/
  3868. #
  3869. IPATH=['pandatool/src/vrmlprogs', 'pandatool/src/vrml', 'pandatool/src/vrmlegg']
  3870. OPTS=['NSPR']
  3871. CompileC(ipath=IPATH, opts=OPTS, src='vrmlTrans.cxx', obj='vrml-trans_vrmlTrans.obj')
  3872. CompileLink(opts=['ADVAPI', 'NSPR'], dll='vrml-trans.exe', obj=[
  3873. 'vrml-trans_vrmlTrans.obj',
  3874. 'libprogbase.lib',
  3875. 'libpvrml.lib',
  3876. 'libpandatoolbase.lib',
  3877. 'libpanda.dll',
  3878. 'libpandaexpress.dll',
  3879. 'libdtoolconfig.dll',
  3880. 'libdtool.dll',
  3881. 'libpystub.dll',
  3882. ])
  3883. CompileC(ipath=IPATH, opts=OPTS, src='vrmlToEgg.cxx', obj='vrml2egg_vrmlToEgg.obj')
  3884. CompileLink(opts=['ADVAPI', 'NSPR'], dll='vrml2egg.exe', obj=[
  3885. 'vrml2egg_vrmlToEgg.obj',
  3886. 'libvrmlegg.lib',
  3887. 'libpvrml.lib',
  3888. 'libeggbase.lib',
  3889. 'libprogbase.lib',
  3890. 'libpandatoolbase.lib',
  3891. 'libconverter.lib',
  3892. 'libpandaegg.dll',
  3893. 'libpanda.dll',
  3894. 'libpandaexpress.dll',
  3895. 'libdtoolconfig.dll',
  3896. 'libdtool.dll',
  3897. 'libpystub.dll',
  3898. ])
  3899. #
  3900. # DIRECTORY: pandatool/src/win-stats/
  3901. #
  3902. if (OMIT.count("NSPR")==0) and (sys.platform == "win32"):
  3903. IPATH=['pandatool/src/win-stats']
  3904. OPTS=['NSPR']
  3905. CompileC(ipath=IPATH, opts=OPTS, src='winstats_composite1.cxx', obj='pstats_composite1.obj')
  3906. CompileLink(opts=['WINSOCK', 'WINIMM', 'WINGDI', 'WINKERNEL', 'WINOLDNAMES', 'WINUSER', 'WINMM', 'NSPR'],
  3907. dll='pstats.exe', obj=[
  3908. 'pstats_composite1.obj',
  3909. 'libprogbase.lib',
  3910. 'libpstatserver.lib',
  3911. 'libpandatoolbase.lib',
  3912. 'libpandaexpress.dll',
  3913. 'libpanda.dll',
  3914. 'libdtoolconfig.dll',
  3915. 'libdtool.dll',
  3916. 'libpystub.dll',
  3917. ])
  3918. #
  3919. # DIRECTORY: pandatool/src/xfileprogs/
  3920. #
  3921. IPATH=['pandatool/src/xfileprogs', 'pandatool/src/xfile', 'pandatool/src/xfileegg']
  3922. OPTS=['NSPR']
  3923. CompileC(ipath=IPATH, opts=OPTS, src='eggToX.cxx', obj='egg2x_eggToX.obj')
  3924. CompileLink(dll='egg2x.exe', opts=['ADVAPI', 'NSPR'], obj=[
  3925. 'egg2x_eggToX.obj',
  3926. 'libxfileegg.lib',
  3927. 'libxfile.lib',
  3928. 'libeggbase.lib',
  3929. 'libprogbase.lib',
  3930. 'libpandatoolbase.lib',
  3931. 'libconverter.lib',
  3932. 'libpandaegg.dll',
  3933. 'libpanda.dll',
  3934. 'libpandaexpress.dll',
  3935. 'libdtoolconfig.dll',
  3936. 'libdtool.dll',
  3937. 'libpystub.dll',
  3938. ])
  3939. CompileC(ipath=IPATH, opts=OPTS, src='xFileTrans.cxx', obj='x-trans_xFileTrans.obj')
  3940. CompileLink(dll='x-trans.exe', opts=['ADVAPI', 'NSPR'], obj=[
  3941. 'x-trans_xFileTrans.obj',
  3942. 'libprogbase.lib',
  3943. 'libxfile.lib',
  3944. 'libpandatoolbase.lib',
  3945. 'libpanda.dll',
  3946. 'libpandaexpress.dll',
  3947. 'libdtoolconfig.dll',
  3948. 'libdtool.dll',
  3949. 'libpystub.dll',
  3950. ])
  3951. CompileC(ipath=IPATH, opts=OPTS, src='xFileToEgg.cxx', obj='x2egg_xFileToEgg.obj')
  3952. CompileLink(opts=['ADVAPI', 'NSPR'], dll='x2egg.exe', obj=[
  3953. 'x2egg_xFileToEgg.obj',
  3954. 'libxfileegg.lib',
  3955. 'libxfile.lib',
  3956. 'libconverter.lib',
  3957. 'libeggbase.lib',
  3958. 'libprogbase.lib',
  3959. 'libpandatoolbase.lib',
  3960. 'libpandaegg.dll',
  3961. 'libpanda.dll',
  3962. 'libpandaexpress.dll',
  3963. 'libdtoolconfig.dll',
  3964. 'libdtool.dll',
  3965. 'libpystub.dll',
  3966. ])
  3967. #
  3968. # DIRECTORY: pandaapp/src/pandaappbase/
  3969. #
  3970. IPATH=['pandaapp/src/pandaappbase']
  3971. OPTS=['NSPR']
  3972. CompileC(ipath=IPATH, opts=OPTS, src='pandaappbase.cxx', obj='pandaappbase_pandaappbase.obj')
  3973. CompileLIB(lib='libpandaappbase.lib', obj=['pandaappbase_pandaappbase.obj'])
  3974. #
  3975. # DIRECTORY: pandaapp/src/httpbackup/
  3976. #
  3977. if OMIT.count("SSL")==0:
  3978. IPATH=['pandaapp/src/httpbackup', 'pandaapp/src/pandaappbase']
  3979. OPTS=['SSL', 'NSPR']
  3980. CompileC(ipath=IPATH, opts=OPTS, src='backupCatalog.cxx', obj='httpbackup_backupCatalog.obj')
  3981. CompileC(ipath=IPATH, opts=OPTS, src='httpBackup.cxx', obj='httpbackup_httpBackup.obj')
  3982. CompileLink(opts=['ADVAPI', 'NSPR', 'SSL'], dll='httpbackup.exe', obj=[
  3983. 'httpbackup_backupCatalog.obj',
  3984. 'httpbackup_httpBackup.obj',
  3985. 'libpandaappbase.lib',
  3986. 'libpandaexpress.dll',
  3987. 'libpanda.dll',
  3988. 'libdtool.dll',
  3989. 'libdtoolconfig.dll',
  3990. 'libprogbase.lib',
  3991. 'libpandatoolbase.lib',
  3992. 'libpystub.dll',
  3993. ])
  3994. #
  3995. # DIRECTORY: pandaapp/src/indexify/
  3996. #
  3997. if OMIT.count("FREETYPE")==0:
  3998. IPATH=['pandaapp/src/indexify']
  3999. OPTS=['NSPR', 'FREETYPE']
  4000. CompileC(ipath=IPATH, opts=OPTS, src='default_font.cxx', obj='font-samples_default_font.obj')
  4001. CompileC(ipath=IPATH, opts=OPTS, src='fontSamples.cxx', obj='font-samples_fontSamples.obj')
  4002. CompileLink(opts=['ADVAPI', 'NSPR', 'FREETYPE'], dll='font-samples.exe', obj=[
  4003. 'font-samples_default_font.obj',
  4004. 'font-samples_fontSamples.obj',
  4005. 'libpanda.dll',
  4006. 'libpandaexpress.dll',
  4007. 'libdtool.dll',
  4008. 'libdtoolconfig.dll',
  4009. 'libprogbase.lib',
  4010. 'libpandatoolbase.lib',
  4011. 'libpystub.dll',
  4012. ])
  4013. CompileC(ipath=IPATH, opts=OPTS, src='default_index_icons.cxx', obj='indexify_default_index_icons.obj')
  4014. CompileC(ipath=IPATH, opts=OPTS, src='default_font.cxx', obj='indexify_default_font.obj')
  4015. CompileC(ipath=IPATH, opts=OPTS, src='indexImage.cxx', obj='indexify_indexImage.obj')
  4016. CompileC(ipath=IPATH, opts=OPTS, src='indexParameters.cxx', obj='indexify_indexParameters.obj')
  4017. CompileC(ipath=IPATH, opts=OPTS, src='indexify.cxx', obj='indexify_indexify.obj')
  4018. CompileC(ipath=IPATH, opts=OPTS, src='photo.cxx', obj='indexify_photo.obj')
  4019. CompileC(ipath=IPATH, opts=OPTS, src='rollDirectory.cxx', obj='indexify_rollDirectory.obj')
  4020. CompileLink(opts=['ADVAPI', 'NSPR', 'FREETYPE'], dll='indexify.exe', obj=[
  4021. 'indexify_default_index_icons.obj',
  4022. 'indexify_default_font.obj',
  4023. 'indexify_indexImage.obj',
  4024. 'indexify_indexParameters.obj',
  4025. 'indexify_indexify.obj',
  4026. 'indexify_photo.obj',
  4027. 'indexify_rollDirectory.obj',
  4028. 'libpanda.dll',
  4029. 'libpandaexpress.dll',
  4030. 'libdtool.dll',
  4031. 'libdtoolconfig.dll',
  4032. 'libprogbase.lib',
  4033. 'libpandatoolbase.lib',
  4034. 'libpystub.dll',
  4035. ])
  4036. #
  4037. # DIRECTORY: pandaapp/src/stitchbase/
  4038. #
  4039. CompileBison(pre='stitchyy', dstc='stitchParser.cxx', dsth='stitchParser.h', src='pandaapp/src/stitchbase/stitchParser.yxx')
  4040. CompileFlex(pre='stitchyy', dst='stitchLexer.cxx', src='pandaapp/src/stitchbase/stitchLexer.lxx', dashi=1)
  4041. IPATH=['pandaapp/src/stitchbase', 'pandaapp/src/pandaappbase']
  4042. OPTS=['NSPR']
  4043. CompileC(ipath=IPATH, opts=OPTS, src='stitchbase_composite1.cxx', obj='stitchbase_composite1.obj')
  4044. CompileC(ipath=IPATH, opts=OPTS, src='stitchbase_composite2.cxx', obj='stitchbase_composite2.obj')
  4045. CompileC(ipath=IPATH, opts=OPTS, src='stitchParser.cxx', obj='stitchbase_stitchParser.obj')
  4046. CompileC(ipath=IPATH, opts=OPTS, src='stitchLexer.cxx', obj='stitchbase_stitchLexer.obj')
  4047. CompileLIB(lib='libstitchbase.lib', obj=[
  4048. 'stitchbase_composite1.obj',
  4049. 'stitchbase_composite2.obj',
  4050. 'stitchbase_stitchParser.obj',
  4051. 'stitchbase_stitchLexer.obj',
  4052. ])
  4053. #
  4054. # DIRECTORY: pandaapp/src/stitch/
  4055. #
  4056. IPATH=['pandaapp/src/stitch', 'pandaapp/src/stitchbase', 'pandaapp/src/pandaappbase']
  4057. OPTS=['NSPR']
  4058. CompileC(ipath=IPATH, opts=OPTS, src='stitchCommandProgram.cxx', obj='stitch-command_stitchCommandProgram.obj')
  4059. CompileLink(opts=['ADVAPI', 'NSPR', 'FFTW'], dll='stitch-command.exe', obj=[
  4060. 'stitch-command_stitchCommandProgram.obj',
  4061. 'libstitchbase.lib',
  4062. 'libpandaappbase.lib',
  4063. 'libpanda.dll',
  4064. 'libpandaexpress.dll',
  4065. 'libdtoolconfig.dll',
  4066. 'libdtool.dll',
  4067. 'libprogbase.lib',
  4068. 'libpandatoolbase.lib',
  4069. 'libconverter.lib',
  4070. 'libpystub.dll',
  4071. ])
  4072. CompileC(ipath=IPATH, opts=OPTS, src='stitchImageProgram.cxx', obj='stitch-image_stitchImageProgram.obj')
  4073. CompileLink(opts=['ADVAPI', 'NSPR', 'FFTW'], dll='stitch-image.exe', obj=[
  4074. 'stitch-image_stitchImageProgram.obj',
  4075. 'libstitchbase.lib',
  4076. 'libpandaappbase.lib',
  4077. 'libpanda.dll',
  4078. 'libpandaexpress.dll',
  4079. 'libdtoolconfig.dll',
  4080. 'libdtool.dll',
  4081. 'libprogbase.lib',
  4082. 'libpandatoolbase.lib',
  4083. 'libconverter.lib',
  4084. 'libpystub.dll',
  4085. ])
  4086. ##########################################################################################
  4087. #
  4088. # Copy Sounds, Icons, and Models into the build.
  4089. #
  4090. ##########################################################################################
  4091. MakeDirectory(PREFIX+"/models")
  4092. MakeDirectory(PREFIX+"/models/audio")
  4093. MakeDirectory(PREFIX+"/models/audio/sfx")
  4094. MakeDirectory(PREFIX+"/models/icons")
  4095. MakeDirectory(PREFIX+"/models/maps")
  4096. MakeDirectory(PREFIX+"/models/misc")
  4097. MakeDirectory(PREFIX+"/models/gui")
  4098. CopyAllFiles(PREFIX+"/models/audio/sfx/", "dmodels/src/audio/sfx/", ".wav")
  4099. CopyAllFiles(PREFIX+"/models/icons/", "dmodels/src/icons/", ".gif")
  4100. CopyAllFiles(PREFIX+"/models/", "models/", ".egg")
  4101. CopyAllFiles(PREFIX+"/models/", "models/", ".bam")
  4102. CopyAllFiles(PREFIX+"/models/maps/", "models/maps/", ".jpg")
  4103. CopyAllFiles(PREFIX+"/models/maps/", "models/maps/", ".png")
  4104. CopyAllFiles(PREFIX+"/models/maps/", "models/maps/", ".rgb")
  4105. CopyAllFiles(PREFIX+"/models/maps/", "models/maps/", ".rgba")
  4106. CopyAllFiles(PREFIX+"/models/maps/", "dmodels/src/maps/", ".jpg")
  4107. CopyAllFiles(PREFIX+"/models/maps/", "dmodels/src/maps/", ".png")
  4108. CopyAllFiles(PREFIX+"/models/maps/", "dmodels/src/maps/", ".rgb")
  4109. CopyAllFiles(PREFIX+"/models/maps/", "dmodels/src/maps/", ".rgba")
  4110. CompileBAM("../=", PREFIX+"/models/gui/dialog_box_gui.bam", "dmodels/src/gui/dialog_box_gui.flt")
  4111. CompileBAM("../=", PREFIX+"/models/misc/camera.bam", "dmodels/src/misc/camera.flt")
  4112. CompileBAM("../=", PREFIX+"/models/misc/fade.bam", "dmodels/src/misc/fade.flt")
  4113. CompileBAM("../=", PREFIX+"/models/misc/fade_sphere.bam", "dmodels/src/misc/fade_sphere.flt")
  4114. CompileBAM("../=", PREFIX+"/models/misc/gridBack.bam", "dmodels/src/misc/gridBack.flt")
  4115. CompileBAM("../=", PREFIX+"/models/misc/iris.bam", "dmodels/src/misc/iris.flt")
  4116. CompileBAM("../=", PREFIX+"/models/misc/lilsmiley.bam", "dmodels/src/misc/lilsmiley.egg")
  4117. CompileBAM("../=", PREFIX+"/models/misc/objectHandles.bam", "dmodels/src/misc/objectHandles.flt")
  4118. CompileBAM("../=", PREFIX+"/models/misc/rgbCube.bam", "dmodels/src/misc/rgbCube.flt")
  4119. CompileBAM("../=", PREFIX+"/models/misc/smiley.bam", "dmodels/src/misc/smiley.egg")
  4120. CompileBAM("../=", PREFIX+"/models/misc/sphere.bam", "dmodels/src/misc/sphere.flt")
  4121. CompileBAM("../=", PREFIX+"/models/misc/xyzAxis.bam", "dmodels/src/misc/xyzAxis.flt")
  4122. CompileBAM("../=", PREFIX+"/models/misc/Pointlight.bam", "dmodels/src/misc/Pointlight.egg")
  4123. CompileBAM("../=", PREFIX+"/models/misc/Dirlight.bam", "dmodels/src/misc/Dirlight.egg")
  4124. CompileBAM("../=", PREFIX+"/models/misc/Spotlight.bam", "dmodels/src/misc/Spotlight.egg")
  4125. ##########################################################################################
  4126. #
  4127. # Run genpycode
  4128. #
  4129. ##########################################################################################
  4130. if (older(PREFIX+'/pandac/PandaModules.pyz',xpaths(PREFIX+"/pandac/input/",ALLIN,""))):
  4131. ALLTARGETS.append(PREFIX+'/pandac/PandaModules.pyz')
  4132. if (sys.platform=="win32"):
  4133. if (GENMAN): oscmd(PREFIX+"/bin/genpycode.exe -m")
  4134. else : oscmd(PREFIX+"/bin/genpycode.exe")
  4135. else:
  4136. if (GENMAN): oscmd(PREFIX+"/bin/genpycode -m")
  4137. else : oscmd(PREFIX+"/bin/genpycode")
  4138. updatefiledate(PREFIX+'/pandac/PandaModules.pyz')
  4139. ########################################################################
  4140. ##
  4141. ## Save the CXX include-cache for next time.
  4142. ##
  4143. ########################################################################
  4144. try: icache = open(iCachePath,'wb')
  4145. except: icache = 0
  4146. if (icache!=0):
  4147. cPickle.dump(CxxIncludeCache, icache, 1)
  4148. icache.close()
  4149. ##########################################################################################
  4150. #
  4151. # 'Complete' mode.
  4152. #
  4153. # Copies the samples and direct into the build. Note that
  4154. # this isn't usually what you want. It is usually better to let the
  4155. # compiled panda load this stuff directly from the source tree.
  4156. # The only time you really want to do this is if you plan to move
  4157. # the build somewhere and leave the source tree behind.
  4158. #
  4159. ##########################################################################################
  4160. if (COMPLETE):
  4161. CopyFile(PREFIX+'/', 'InstallerNotes')
  4162. CopyFile(PREFIX+'/', 'LICENSE')
  4163. CopyFile(PREFIX+'/', 'README')
  4164. CopyTree(PREFIX+'/samples', 'samples')
  4165. CopyTree(PREFIX+'/direct/src', 'direct/src')
  4166. CopyTree(PREFIX+'/SceneEditor', 'SceneEditor')
  4167. ##########################################################################################
  4168. #
  4169. # The Installers
  4170. #
  4171. ##########################################################################################
  4172. if (sys.platform == "win32"):
  4173. def MakeInstaller(file,fullname,smdirectory,uninstallkey,installdir,ppgame):
  4174. if (older(file, ALLTARGETS)):
  4175. print "Building "+fullname+" installer. This can take up to an hour."
  4176. if (COMPRESSOR != "lzma"):
  4177. print("Note: you are using zlib, which is faster, but lzma gives better compression.")
  4178. if (os.path.exists(file)):
  4179. os.remove(file)
  4180. if (os.path.exists("nsis-output.exe")):
  4181. os.remove("nsis-output.exe")
  4182. def0 = '/DCOMPRESSOR="' + COMPRESSOR + '" '
  4183. def1 = '/DFULLNAME="' + fullname + '" '
  4184. def2 = '/DSMDIRECTORY="' + smdirectory + '" '
  4185. def3 = '/DUNINSTALLKEY="' + uninstallkey + '" '
  4186. def4 = '/DINSTALLDIR="' + installdir + '" '
  4187. def5 = ''
  4188. if (ppgame): def5 = '/DPPGAME="' + ppgame + '" '
  4189. oscmd("thirdparty/win-nsis/makensis.exe /V2 "+def0+def1+def2+def3+def4+def5+" makepanda/panda.nsi")
  4190. os.rename("nsis-output.exe", file)
  4191. if (INSTALLER!=0):
  4192. MakeInstaller("Panda3D-"+VERSION+".exe", "Panda3D", "Panda3D "+VERSION,
  4193. "Panda3D "+VERSION, "C:\\Panda3D-"+VERSION, 0)
  4194. if (PPGAME!=0):
  4195. if (os.path.isdir(PPGAME)==0):
  4196. sys.exit("No such directory "+PPGAME)
  4197. if (os.path.exists(os.path.join(PPGAME,PPGAME+".py"))==0):
  4198. sys.exit("No such file "+PPGAME+"/"+PPGAME+".py")
  4199. MakeInstaller(PPGAME+"-"+VERSION+".exe", PPGAME, PPGAME+" "+VERSION,
  4200. PPGAME+" "+VERSION, "C:\\"+PPGAME+"-"+VERSION, PPGAME)
  4201. ##########################################################################################
  4202. #
  4203. # Print final status report.
  4204. #
  4205. ##########################################################################################
  4206. WARNINGS.append("Elapsed Time: "+prettyTime(time.time() - STARTTIME))
  4207. printStatus("Makepanda Final Status Report", WARNINGS)