2
0

makepanda.py 185 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757
  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,fnmatch,threading,Queue,signal
  15. from glob import glob
  16. ########################################################################
  17. ##
  18. ## PARSING THE COMMAND LINE OPTIONS
  19. ##
  20. ## You might be tempted to change the defaults by editing them
  21. ## here. Don't do it. Instead, create a script that compiles
  22. ## panda with your preferred options. Or, create
  23. ## a 'makepandaPreferences' file and put it into your python path.
  24. ##
  25. ########################################################################
  26. COMPILER=0
  27. THIRDPARTYLIBS=0
  28. VC80CRTVERSION=""
  29. OPTIMIZE="3"
  30. INSTALLER=0
  31. GENMAN=0
  32. VERSION=0
  33. VERBOSE=1
  34. COMPRESSOR="zlib"
  35. PACKAGES=["PYTHON","ZLIB","PNG","JPEG","TIFF","VRPN","FMODEX","NVIDIACG",
  36. "OPENSSL","FREETYPE","FFTW","MILES",
  37. "MAYA6","MAYA65","MAYA7","MAYA8","MAYA85","MAX6","MAX7","MAX8","MAX9",
  38. "FFMPEG","PANDATOOL","PANDAAPP","DX8","DX9"]
  39. OMIT=PACKAGES[:]
  40. WARNINGS=[]
  41. DIRECTXSDK = {}
  42. MAYASDK = {}
  43. MAXSDK = {}
  44. MAXSDKCS = {}
  45. PYTHONSDK=0
  46. STARTTIME=time.time()
  47. SLAVEFILE=0
  48. DEPENDENCYQUEUE=[]
  49. TIMESTAMPCACHE = {}
  50. FINDSOURCESTUBS = {}
  51. BUILTFROMCACHE = {}
  52. CXXINCLUDECACHE = {}
  53. THREADCOUNT=0
  54. DXVERSIONS=["8","9"]
  55. MAYAVERSIONS=["6","65","7","8","85"]
  56. MAXVERSIONS=["6","7","8","9"]
  57. ICACHEPATH="built/tmp/makepanda-dcache"
  58. INTERRUPT=0
  59. MAINTHREAD=threading.currentThread()
  60. ##########################################################################################
  61. #
  62. # If there is a makepandaPreferences.py, import it
  63. #
  64. ##########################################################################################
  65. try:
  66. from makepandaPreferences import *
  67. except ImportError:
  68. pass
  69. ########################################################################
  70. ##
  71. ## The Timestamp Cache
  72. ##
  73. ## The make utility is constantly fetching the timestamps of files.
  74. ## This can represent the bulk of the file accesses during the make
  75. ## process. The timestamp cache eliminates redundant checks.
  76. ##
  77. ########################################################################
  78. def GetTimestamp(path):
  79. if TIMESTAMPCACHE.has_key(path):
  80. return TIMESTAMPCACHE[path]
  81. try: date = os.path.getmtime(path)
  82. except: date = 0
  83. TIMESTAMPCACHE[path] = date
  84. return date
  85. def ClearTimestamp(path):
  86. del TIMESTAMPCACHE[path]
  87. ########################################################################
  88. ##
  89. ## The Dependency cache.
  90. ##
  91. ## Makepanda's strategy for file dependencies is different from most
  92. ## make-utilities. Whenever a file is built, makepanda records
  93. ## that the file was built, and it records what the input files were,
  94. ## and what their dates were. Whenever a file is about to be built,
  95. ## panda compares the current list of input files and their dates,
  96. ## to the previous list of input files and their dates. If they match,
  97. ## there is no need to build the file.
  98. ##
  99. ########################################################################
  100. def JustBuilt(files,others):
  101. dates = []
  102. for file in files:
  103. del TIMESTAMPCACHE[file]
  104. dates.append(GetTimestamp(file))
  105. for file in others:
  106. dates.append(GetTimestamp(file))
  107. key = tuple(files)
  108. BUILTFROMCACHE[key] = [others,dates]
  109. def NeedsBuild(files,others):
  110. dates = []
  111. for file in files:
  112. dates.append(GetTimestamp(file))
  113. for file in others:
  114. dates.append(GetTimestamp(file))
  115. key = tuple(files)
  116. if (BUILTFROMCACHE.has_key(key)):
  117. if (BUILTFROMCACHE[key] == [others,dates]):
  118. return 0
  119. else:
  120. oldothers = BUILTFROMCACHE[key][0]
  121. if (oldothers != others):
  122. for f in files:
  123. print "CAUTION: file dependencies changed: "+f
  124. if (VERBOSE > 1):
  125. add = SetDifference(others, oldothers)
  126. sub = SetDifference(oldothers, others)
  127. print " - Add: "+str(add)
  128. print " - Sub: "+str(sub)
  129. return 1
  130. ########################################################################
  131. ##
  132. ## The CXX include cache:
  133. ##
  134. ## The following routine scans a CXX file and returns a list of
  135. ## the include-directives inside that file. It's not recursive:
  136. ## it just returns the includes that are immediately inside the file.
  137. ##
  138. ## Since scanning a CXX file is slow, we cache the result. It records
  139. ## the date of the source file and the list of includes that it
  140. ## contains. It assumes that if the file date hasn't changed, that
  141. ## the list of include-statements inside the file has not changed
  142. ## either.
  143. ##
  144. ########################################################################
  145. global CxxIncludeRegex
  146. CxxIncludeRegex = re.compile('^[ \t]*[#][ \t]*include[ \t]+"([^"]+)"[ \t\r\n]*$')
  147. def CxxGetIncludes(path):
  148. date = GetTimestamp(path)
  149. if (CXXINCLUDECACHE.has_key(path)):
  150. cached = CXXINCLUDECACHE[path]
  151. if (cached[0]==date): return cached[1]
  152. try: sfile = open(path, 'rb')
  153. except:
  154. exit("Cannot open source file \""+path+"\" for reading.")
  155. include = []
  156. for line in sfile:
  157. match = CxxIncludeRegex.match(line,0)
  158. if (match):
  159. incname = match.group(1)
  160. include.append(incname)
  161. sfile.close()
  162. CXXINCLUDECACHE[path] = [date, include]
  163. return include
  164. ########################################################################
  165. ##
  166. ## Error exit has to be done carefully, because the
  167. ## dependency cache must be saved, and because this can
  168. ## only be done by the main thread.
  169. ##
  170. ########################################################################
  171. def SaveDependencyCache():
  172. try: icache = open(ICACHEPATH,'wb')
  173. except: icache = 0
  174. if (icache!=0):
  175. print "Storing dependency cache."
  176. cPickle.dump(CXXINCLUDECACHE, icache, 1)
  177. cPickle.dump(BUILTFROMCACHE, icache, 1)
  178. icache.close()
  179. def LoadDependencyCache():
  180. global CXXINCLUDECACHE
  181. global BUILTFROMCACHE
  182. try: icache = open(ICACHEPATH,'rb')
  183. except: icache = 0
  184. if (icache!=0):
  185. CXXINCLUDECACHE = cPickle.load(icache)
  186. BUILTFROMCACHE = cPickle.load(icache)
  187. icache.close()
  188. LoadDependencyCache()
  189. def exit(msg):
  190. if (threading.currentThread() == MAINTHREAD):
  191. SaveDependencyCache()
  192. print "Elapsed Time: "+PrettyTime(time.time() - STARTTIME)
  193. print msg
  194. sys.stdout.flush()
  195. sys.stderr.flush()
  196. os._exit(1)
  197. else:
  198. print msg
  199. raise "initiate-exit"
  200. ########################################################################
  201. ##
  202. ## GetDirectoryContents
  203. ##
  204. ## At times, makepanda will use a function like "os.listdir" to process
  205. ## all the files in a directory. Unfortunately, that means that any
  206. ## accidental addition of a file to a directory could cause makepanda
  207. ## to misbehave without warning.
  208. ##
  209. ## To alleviate this weakness, we created GetDirectoryContents. This
  210. ## uses "os.listdir" to fetch the directory contents, but then it
  211. ## compares the results to the appropriate CVS/Entries to see if
  212. ## they match. If not, it prints a big warning message.
  213. ##
  214. ########################################################################
  215. def GetDirectoryContents(dir, filters="*", skip=[]):
  216. if (type(filters)==str):
  217. filters = [filters]
  218. actual = {}
  219. files = os.listdir(dir)
  220. for filter in filters:
  221. for file in fnmatch.filter(files, filter):
  222. if (skip.count(file)==0) and (os.path.isfile(dir + "/" + file)):
  223. actual[file] = 1
  224. if (os.path.isfile(dir + "/CVS/Entries")):
  225. cvs = {}
  226. srchandle = open(dir+"/CVS/Entries", "r")
  227. files = []
  228. for line in srchandle:
  229. if (line[0]=="/"):
  230. s = line.split("/",2)
  231. if (len(s)==3):
  232. files.append(s[1])
  233. srchandle.close()
  234. for filter in filters:
  235. for file in fnmatch.filter(files, filter):
  236. if (skip.count(file)==0):
  237. cvs[file] = 1
  238. for file in actual.keys():
  239. if (cvs.has_key(file)==0):
  240. msg = "WARNING: %s is in %s, but not in CVS"%(file, dir)
  241. print msg
  242. WARNINGS.append(msg)
  243. for file in cvs.keys():
  244. if (actual.has_key(file)==0):
  245. msg = "WARNING: %s is not in %s, but is in CVS"%(file, dir)
  246. print msg
  247. WARNINGS.append(msg)
  248. results = actual.keys()
  249. results.sort()
  250. return results
  251. ########################################################################
  252. ##
  253. ## Utility routines.
  254. ##
  255. ########################################################################
  256. if sys.platform == "win32":
  257. import _winreg
  258. def ListRegistryKeys(path):
  259. result=[]
  260. index=0
  261. try:
  262. key = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, path, 0, _winreg.KEY_READ)
  263. while (1):
  264. result.append(_winreg.EnumKey(key, index))
  265. index = index + 1
  266. except: pass
  267. if (key!=0): _winreg.CloseKey(key)
  268. return result
  269. def GetRegistryKey(path, subkey):
  270. k1=0
  271. key=0
  272. try:
  273. key = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, path, 0, _winreg.KEY_READ)
  274. k1, k2 = _winreg.QueryValueEx(key, subkey)
  275. except: pass
  276. if (key!=0): _winreg.CloseKey(key)
  277. return k1
  278. def oscmd(cmd):
  279. print cmd
  280. sys.stdout.flush()
  281. if sys.platform == "win32":
  282. exe = cmd.split()[0]+".exe"
  283. if os.path.isfile(exe)==0:
  284. for i in os.environ["PATH"].split(";"):
  285. if os.path.isfile(os.path.join(i, exe)):
  286. exe = os.path.join(i, exe)
  287. break
  288. if os.path.isfile(exe)==0:
  289. exit("Cannot find "+exe+" on search path")
  290. res = os.spawnl(os.P_WAIT, exe, cmd)
  291. else:
  292. res = os.system(cmd)
  293. if res != 0:
  294. exit("")
  295. def getbuilding(opts):
  296. building = 0
  297. for x in opts:
  298. if (x[:9]=="BUILDING_"): building = x[9:]
  299. return building
  300. def getoptlevel(opts,defval):
  301. for x in opts:
  302. if (x[:3]=="OPT"):
  303. n = int(x[3:])
  304. if (n > defval): defval = n
  305. return defval
  306. def PrettyTime(t):
  307. t = int(t)
  308. hours = t/3600
  309. t -= hours*3600
  310. minutes = t/60
  311. t -= minutes*60
  312. seconds = t
  313. if (hours): return str(hours)+" hours "+str(minutes)+" min"
  314. if (minutes): return str(minutes)+" min "+str(seconds)+" sec"
  315. return str(seconds)+" sec"
  316. def MakeDirectory(path):
  317. if os.path.isdir(path): return 0
  318. os.mkdir(path)
  319. def ReadFile(wfile):
  320. try:
  321. srchandle = open(wfile, "rb")
  322. data = srchandle.read()
  323. srchandle.close()
  324. return data
  325. except: exit("Cannot read "+wfile)
  326. def WriteFile(wfile,data):
  327. try:
  328. dsthandle = open(wfile, "wb")
  329. dsthandle.write(data)
  330. dsthandle.close()
  331. except: exit("Cannot write "+wfile)
  332. def ConditionalWriteFile(dest,desiredcontents):
  333. try:
  334. rfile = open(dest, 'rb')
  335. contents = rfile.read(-1)
  336. rfile.close()
  337. except:
  338. contents=0
  339. if contents != desiredcontents:
  340. if VERBOSE:
  341. print "Regenerating file: "+dest
  342. sys.stdout.flush()
  343. WriteFile(dest,desiredcontents)
  344. def SetDifference(add, sub):
  345. set = {}
  346. for x in add: set[x]=1
  347. for x in sub:
  348. if (set.has_key(x)):
  349. del set[x]
  350. return set.keys()
  351. def PkgSelected(pkglist, pkg):
  352. if (pkglist.count(pkg)==0): return 0
  353. if (OMIT.count(pkg)): return 0
  354. return 1
  355. def keyboardInterruptHandler(x,y):
  356. exit("keyboard interrupt")
  357. signal.signal(signal.SIGINT, keyboardInterruptHandler)
  358. ########################################################################
  359. ##
  360. ## Visual Studio Manifest Manipulation.
  361. ##
  362. ########################################################################
  363. VC80CRTVERSIONRE=re.compile(" name=['\"]Microsoft.VC80.CRT['\"] version=['\"]([0-9.]+)['\"] ")
  364. def getVC80CRTVersion(fn):
  365. manifest = ReadFile(fn)
  366. version = VC80CRTVERSIONRE.search(manifest)
  367. if (version == None):
  368. exit("Cannot locate version number in "+manifn)
  369. return version.group(1)
  370. def setVC80CRTVersion(fn, ver):
  371. manifest = ReadFile(fn)
  372. subst = " name='Microsoft.VC80.CRT' version='"+ver+"' "
  373. manifest = VC80CRTVERSIONRE.sub(subst, manifest)
  374. WriteFile(fn, manifest)
  375. ########################################################################
  376. ##
  377. ## Command-line parser.
  378. ##
  379. ## You can type "makepanda --help" to see all the options.
  380. ##
  381. ########################################################################
  382. def usage(problem):
  383. if (problem):
  384. print ""
  385. print problem
  386. print ""
  387. print "Makepanda generates a 'built' subdirectory containing a"
  388. print "compiled copy of Panda3D. Command-line arguments are:"
  389. print ""
  390. print " --help (print the help message you're reading now)"
  391. print " --package-info (help info about the optional packages)"
  392. print " --optimize X (optimization level can be 1,2,3,4)"
  393. print " --installer (build an installer)"
  394. print " --v1 X (set the major version number)"
  395. print " --v2 X (set the minor version number)"
  396. print " --v3 X (set the sequence version number)"
  397. print " --lzma (use lzma compression when building installer)"
  398. print " --slaves X (use the distributed build system. see manual)"
  399. print " --threads N (use the multithreaded build system. see manual)"
  400. print ""
  401. for pkg in PACKAGES:
  402. p = pkg.lower()
  403. print " --use-%-9s --no-%-9s (enable/disable use of %s)"%(p, p, pkg)
  404. print ""
  405. print " --nothing (disable every third-party lib)"
  406. print " --everything (enable every third-party lib)"
  407. print ""
  408. print " --quiet (print less output)"
  409. print " --verbose (print more output and debugging info)"
  410. print ""
  411. print "The simplest way to compile panda is to just type:"
  412. print ""
  413. print " makepanda --everything"
  414. print ""
  415. exit("")
  416. def parseopts(args):
  417. global OPTIMIZE,OMIT,INSTALLER,GENMAN
  418. global VERSION,COMPRESSOR,VERBOSE,SLAVEFILE,THREADCOUNT
  419. longopts = [
  420. "help","package-info",
  421. "optimize=","everything","nothing","installer","quiet","verbose",
  422. "version=","lzma","no-python","slaves=","threads="]
  423. anything = 0
  424. for pkg in PACKAGES: longopts.append("no-"+pkg.lower())
  425. for pkg in PACKAGES: longopts.append("use-"+pkg.lower())
  426. try:
  427. opts, extras = getopt.getopt(args, "", longopts)
  428. for option,value in opts:
  429. if (option=="--help"): raise "usage"
  430. elif (option=="--optimize"): OPTIMIZE=value
  431. elif (option=="--quiet"): VERBOSE-=1
  432. elif (option=="--verbose"): VERBOSE+=1
  433. elif (option=="--installer"): INSTALLER=1
  434. elif (option=="--genman"): GENMAN=1
  435. elif (option=="--everything"): OMIT=[]
  436. elif (option=="--nothing"): OMIT=PACKAGES[:]
  437. elif (option=="--slaves"): SLAVEFILE=value
  438. elif (option=="--threads"): THREADCOUNT=int(value)
  439. elif (option=="--version"):
  440. VERSION=value
  441. if (len(VERSION.split(".")) != 3): raise "usage"
  442. elif (option=="--lzma"): COMPRESSOR="lzma"
  443. else:
  444. for pkg in PACKAGES:
  445. if (option=="--use-"+pkg.lower()):
  446. if (OMIT.count(pkg)): OMIT.remove(pkg)
  447. break
  448. for pkg in PACKAGES:
  449. if (option=="--no-"+pkg.lower()):
  450. if (OMIT.count(pkg)==0): OMIT.append(pkg)
  451. break
  452. anything = 1
  453. except: usage(0)
  454. if (anything==0): usage(0)
  455. if (OPTIMIZE=="1"): OPTIMIZE=1
  456. elif (OPTIMIZE=="2"): OPTIMIZE=2
  457. elif (OPTIMIZE=="3"): OPTIMIZE=3
  458. elif (OPTIMIZE=="4"): OPTIMIZE=4
  459. else: usage("Invalid setting for OPTIMIZE")
  460. parseopts(sys.argv[1:])
  461. ########################################################################
  462. #
  463. # Locate the root of the panda tree
  464. #
  465. ########################################################################
  466. PANDASOURCE=os.path.dirname(os.path.abspath(sys.path[0]))
  467. if ((os.path.exists(os.path.join(PANDASOURCE,"makepanda/makepanda.py"))==0) or
  468. (os.path.exists(os.path.join(PANDASOURCE,"dtool","src","dtoolbase","dtoolbase.h"))==0) or
  469. (os.path.exists(os.path.join(PANDASOURCE,"panda","src","pandabase","pandabase.h"))==0)):
  470. exit("I am unable to locate the root of the panda source tree.")
  471. os.chdir(PANDASOURCE)
  472. ########################################################################
  473. ##
  474. ## If you have the "sdks" directory, supply all sdks
  475. ##
  476. ## This is a temporary hack, it may go away.
  477. ##
  478. ########################################################################
  479. if (os.path.isdir("sdks")):
  480. DIRECTXSDK["DX8"] = "sdks/directx8"
  481. DIRECTXSDK["DX9"] = "sdks/directx9"
  482. MAXSDKCS["MAX6"] = "sdks/maxsdk6"
  483. MAXSDKCS["MAX7"] = "sdks/maxsdk7"
  484. MAXSDKCS["MAX8"] = "sdks/maxsdk8"
  485. MAXSDKCS["MAX9"] = "sdks/maxsdk9"
  486. MAXSDK["MAX6"] = "sdks/maxsdk6"
  487. MAXSDK["MAX7"] = "sdks/maxsdk7"
  488. MAXSDK["MAX8"] = "sdks/maxsdk8"
  489. MAXSDK["MAX9"] = "sdks/maxsdk9"
  490. MAYASDK["MAYA6"] = "sdks/maya6"
  491. MAYASDK["MAYA65"] = "sdks/maya65"
  492. MAYASDK["MAYA7"] = "sdks/maya7"
  493. MAYASDK["MAYA8"] = "sdks/maya8"
  494. MAYASDK["MAYA85"] = "sdks/maya85"
  495. ########################################################################
  496. ##
  497. ## Locate the DirectX SDK
  498. ##
  499. ## Microsoft keeps changing the &*#$*& registry key for the DirectX SDK.
  500. ## The only way to reliably find it is to search through the installer's
  501. ## uninstall-directories, look in each one, and see if it contains the
  502. ## relevant files.
  503. ##
  504. ########################################################################
  505. if sys.platform == "win32":
  506. uninstaller = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall";
  507. for subdir in ListRegistryKeys(uninstaller):
  508. if (subdir[0]=="{"):
  509. dir = GetRegistryKey(uninstaller+"\\"+subdir, "InstallLocation")
  510. if (dir != 0):
  511. if ((DIRECTXSDK.has_key("DX8")==0) and
  512. (os.path.isfile(dir+"\\Include\\d3d8.h")) and
  513. (os.path.isfile(dir+"\\Include\\d3dx8.h")) and
  514. (os.path.isfile(dir+"\\Lib\\d3d8.lib")) and
  515. (os.path.isfile(dir+"\\Lib\\d3dx8.lib"))):
  516. DIRECTXSDK["DX8"] = dir.replace("\\", "/").rstrip("/")
  517. if ((DIRECTXSDK.has_key("DX9")==0) and
  518. (os.path.isfile(dir+"\\Include\\d3d9.h")) and
  519. (os.path.isfile(dir+"\\Include\\d3dx9.h")) and
  520. (os.path.isfile(dir+"\\Include\\dxsdkver.h")) and
  521. (os.path.isfile(dir+"\\Lib\\x86\\d3d9.lib")) and
  522. (os.path.isfile(dir+"\\Lib\\x86\\d3dx9.lib"))):
  523. DIRECTXSDK["DX9"] = dir.replace("\\", "/").rstrip("/")
  524. for ver in DXVERSIONS:
  525. if (OMIT.count("DX"+ver)==0):
  526. if (DIRECTXSDK.has_key("DX"+ver)==0):
  527. WARNINGS.append("I cannot locate SDK for DX"+ver)
  528. WARNINGS.append("I have automatically added this command-line option: --no-dx"+ver)
  529. OMIT.append("DX"+ver)
  530. else:
  531. WARNINGS.append("Using DX"+ver+" sdk: "+DIRECTXSDK["DX"+ver])
  532. ########################################################################
  533. ##
  534. ## Locate the Maya SDK
  535. ##
  536. ########################################################################
  537. MAYAVERSIONINFO=[("MAYA6", "SOFTWARE\\Alias|Wavefront\\Maya\\6.0\\Setup\\InstallPath"),
  538. ("MAYA65", "SOFTWARE\\Alias|Wavefront\\Maya\\6.5\\Setup\\InstallPath"),
  539. ("MAYA7", "SOFTWARE\\Alias|Wavefront\\Maya\\7.0\\Setup\\InstallPath"),
  540. ("MAYA8", "SOFTWARE\\Alias\\Maya\\8.0\\Setup\\InstallPath"),
  541. ("MAYA85", "SOFTWARE\\Alias\\Maya\\8.5\\Setup\\InstallPath")
  542. ]
  543. for (ver,key) in MAYAVERSIONINFO:
  544. print "Checking for "+ver
  545. if (OMIT.count(ver)==0):
  546. if (sys.platform == "win32"):
  547. if (MAYASDK.has_key(ver)==0):
  548. MAYASDK[ver]=GetRegistryKey(key, "MAYA_INSTALL_LOCATION")
  549. if (MAYASDK[ver] == 0):
  550. WARNINGS.append("The registry does not appear to contain a pointer to the "+ver+" SDK.")
  551. WARNINGS.append("I have automatically added this command-line option: --no-"+ver.lower())
  552. OMIT.append(ver)
  553. else:
  554. MAYASDK[ver] = MAYASDK[ver].replace("\\", "/").rstrip("/")
  555. else:
  556. WARNINGS.append(ver+" not yet supported under linux")
  557. WARNINGS.append("I have automatically added this command-line option: --no-"+ver.lower())
  558. OMIT.append(ver)
  559. ########################################################################
  560. ##
  561. ## Locate the 3D Studio Max and Character Studio SDKs
  562. ##
  563. ########################################################################
  564. MAXVERSIONINFO = [("MAX6", "SOFTWARE\\Autodesk\\3DSMAX\\6.0", "installdir", "maxsdk\\cssdk\\include"),
  565. ("MAX7", "SOFTWARE\\Autodesk\\3DSMAX\\7.0", "Installdir", "maxsdk\\include\\CS"),
  566. ("MAX8", "SOFTWARE\\Autodesk\\3DSMAX\\8.0", "Installdir", "maxsdk\\include\\CS"),
  567. ("MAX9", "SOFTWARE\\Autodesk\\3DSMAX\\9.0", "Installdir", "maxsdk\\include\\CS"),
  568. ]
  569. for version,key1,key2,subdir in MAXVERSIONINFO:
  570. if (OMIT.count(version)==0):
  571. if (sys.platform == "win32"):
  572. if (MAXSDK.has_key(version)==0):
  573. top = GetRegistryKey(key1,key2)
  574. if (top == 0):
  575. WARNINGS.append("The registry does not appear to contain a pointer to "+version)
  576. WARNINGS.append("I have automatically added this command-line option: --no-"+version.lower())
  577. OMIT.append(version)
  578. else:
  579. if (os.path.isdir(top + "\\" + subdir)==0):
  580. WARNINGS.append("Your copy of "+version+" does not include the character studio SDK")
  581. WARNINGS.append("I have automatically added this command-line option: --no-"+version.lower())
  582. OMIT.append(version)
  583. else:
  584. MAXSDK[version] = top + "maxsdk"
  585. MAXSDKCS[version] = top + subdir
  586. else:
  587. WARNINGS.append(version+" not yet supported under linux")
  588. WARNINGS.append("I have automatically added this command-line option: --no-"+version.lower())
  589. OMIT.append(version)
  590. ########################################################################
  591. ##
  592. ## Locate the Python SDK
  593. ##
  594. ########################################################################
  595. if (OMIT.count("PYTHON")==0):
  596. if (sys.platform == "win32"):
  597. PYTHONSDK="thirdparty/win-python"
  598. else:
  599. if (os.path.isdir("/usr/include/python2.5")): PYTHONSDK = "/usr/include/python2.5"
  600. elif (os.path.isdir("/usr/include/python2.4")): PYTHONSDK = "/usr/include/python2.4"
  601. elif (os.path.isdir("/usr/include/python2.3")): PYTHONSDK = "/usr/include/python2.3"
  602. elif (os.path.isdir("/usr/include/python2.2")): PYTHONSDK = "/usr/include/python2.2"
  603. else: exit("Cannot find the python SDK")
  604. ########################################################################
  605. ##
  606. ## Choose a Compiler.
  607. ##
  608. ## This should also set up any environment variables needed to make
  609. ## the compiler work.
  610. ##
  611. ########################################################################
  612. def AddToPathEnv(path,add):
  613. if (os.environ.has_key(path)):
  614. os.environ[path] = add + ";" + os.environ[path]
  615. else:
  616. os.environ[path] = add
  617. def ChooseCompiler():
  618. global COMPILER, THIRDPARTYLIBS, VC80CRTVERSION
  619. # Try to use Linux GCC
  620. if (sys.platform[:5] == "linux"):
  621. COMPILER="LINUX"
  622. THIRDPARTYLIBS="thirdparty/linux-libs-a/"
  623. return
  624. # Panda now depends on visual studio 2005 or visual studio express 2005.
  625. vcdir = GetRegistryKey("SOFTWARE\\Microsoft\\VisualStudio\\SxS\\VC7", "8.0")
  626. print "VCDIR=",vcdir
  627. if (vcdir != 0) and (vcdir[-4:] == "\\VC\\"):
  628. vcdir = vcdir[:-3]
  629. platsdk=GetRegistryKey("SOFTWARE\\Microsoft\\MicrosoftSDK\\InstalledSDKs\\D2FF9F89-8AA2-4373-8A31-C838BF4DBBE1",
  630. "Install Dir")
  631. if (platsdk == 0): exit("Found VC Toolkit, but cannot locate MS Platform SDK")
  632. WARNINGS.append("Using visual studio: "+vcdir)
  633. AddToPathEnv("PATH", vcdir + "VC\\bin")
  634. AddToPathEnv("PATH", vcdir + "Common7\\IDE")
  635. AddToPathEnv("INCLUDE", vcdir + "VC\\include")
  636. AddToPathEnv("LIB", vcdir + "VC\\lib")
  637. AddToPathEnv("INCLUDE", platsdk + "include")
  638. AddToPathEnv("LIB", platsdk + "lib")
  639. COMPILER="MSVC"
  640. THIRDPARTYLIBS="thirdparty/win-libs-vc8/"
  641. VC80CRTVERSION = getVC80CRTVersion(THIRDPARTYLIBS+"extras/bin/Microsoft.VC80.CRT.manifest")
  642. return
  643. # Give up
  644. exit("Cannot locate Microsoft Visual Studio 2005 or Visual Studio Express 2005")
  645. ChooseCompiler()
  646. ##########################################################################################
  647. #
  648. # Disable packages that are currently broken or not supported.
  649. #
  650. ##########################################################################################
  651. if (OMIT.count("MILES")==0):
  652. WARNINGS.append("makepanda currently does not support miles sound system")
  653. WARNINGS.append("I have automatically added this command-line option: --no-miles")
  654. OMIT.append("MILES")
  655. if (sys.platform != "win32"):
  656. if (OMIT.count("DX8")==0): OMIT.append("DX8")
  657. if (OMIT.count("DX9")==0): OMIT.append("DX9")
  658. ##########################################################################################
  659. #
  660. # Verify that LD_LIBRARY_PATH contains the built/lib directory.
  661. #
  662. # If not, add it on a temporary basis, and issue a warning.
  663. #
  664. ##########################################################################################
  665. if (sys.platform != "win32"):
  666. BUILTLIB = os.path.abspath("built/lib")
  667. try:
  668. LDPATH = []
  669. f = file("/etc/ld.so.conf","r")
  670. for line in f: LDPATH.append(line.rstrip())
  671. f.close()
  672. except: LDPATH = []
  673. if (os.environ.has_key("LD_LIBRARY_PATH")):
  674. LDPATH = LDPATH + os.environ["LD_LIBRARY_PATH"].split(":")
  675. if (LDPATH.count(BUILTLIB)==0):
  676. WARNINGS.append("Caution: the built/lib directory is not in LD_LIBRARY_PATH")
  677. WARNINGS.append("or /etc/ld.so.conf. You must add it before using panda.")
  678. if (os.environ.has_key("LD_LIBRARY_PATH")):
  679. os.environ["LD_LIBRARY_PATH"] = BUILTLIB + ":" + os.environ["LD_LIBRARY_PATH"]
  680. else:
  681. os.environ["LD_LIBRARY_PATH"] = BUILTLIB
  682. #######################################################################
  683. #
  684. # Ensure that bison can find its skeleton file
  685. #
  686. #######################################################################
  687. if (sys.platform == "win32"):
  688. os.environ["BISON_SIMPLE"] = "thirdparty/win-util/bison.simple"
  689. ########################################################################
  690. ##
  691. ## Choose a version number for the installer
  692. ##
  693. ########################################################################
  694. if (VERSION == 0):
  695. try:
  696. f = file("dtool/PandaVersion.pp","r")
  697. pattern = re.compile('^[ \t]*[#][ \t]*define[ \t]+PANDA_VERSION[ \t]+([0-9]+)[ \t]+([0-9]+)[ \t]+([0-9]+)')
  698. for line in f:
  699. match = pattern.match(line,0)
  700. if (match):
  701. VERSION = match.group(1)+"."+match.group(2)+"."+match.group(3)
  702. break
  703. f.close()
  704. except: VERSION="0.0.0"
  705. ########################################################################
  706. #
  707. # Sanity check some command-line arguments.
  708. #
  709. ########################################################################
  710. if (INSTALLER) and (OMIT.count("PYTHON")):
  711. exit("Cannot build installer without python")
  712. ########################################################################
  713. ##
  714. ## Give a Status Report on Command-Line Options
  715. ##
  716. ########################################################################
  717. def printStatus(header,warnings):
  718. global VERBOSE
  719. if VERBOSE >= -2:
  720. print ""
  721. print "-------------------------------------------------------------------"
  722. print header
  723. tkeep = ""
  724. tomit = ""
  725. for x in PACKAGES:
  726. if (OMIT.count(x)==0): tkeep = tkeep + x + " "
  727. else: tomit = tomit + x + " "
  728. print "Makepanda: Compiler:",COMPILER
  729. print "Makepanda: Optimize:",OPTIMIZE
  730. print "Makepanda: Keep Pkg:",tkeep
  731. print "Makepanda: Omit Pkg:",tomit
  732. print "Makepanda: Verbose vs. Quiet Level:",VERBOSE
  733. if (GENMAN): print "Makepanda: Generate API reference manual"
  734. else : print "Makepanda: Don't generate API reference manual"
  735. if (sys.platform == "win32"):
  736. if INSTALLER: print "Makepanda: Build installer, using",COMPRESSOR
  737. else : print "Makepanda: Don't build installer"
  738. print "Makepanda: Version ID: "+VERSION
  739. for x in warnings: print "Makepanda: "+x
  740. print "-------------------------------------------------------------------"
  741. print ""
  742. sys.stdout.flush()
  743. printStatus("Makepanda Initial Status Report", WARNINGS)
  744. ########################################################################
  745. ##
  746. ## CxxFindSource: given a source file name and a directory list,
  747. ## searches the directory list for the given source file. Returns
  748. ## the full pathname of the located file.
  749. ##
  750. ## CxxFindHeader: given a source file, an include directive, and a
  751. ## directory list, searches the directory list for the given header
  752. ## file. Returns the full pathname of the located file.
  753. ##
  754. ## Of course, CxxFindSource and CxxFindHeader cannot find a source
  755. ## file that has not been created yet. This can cause dependency
  756. ## problems. So the function CreateStubHeader can be used to create
  757. ## a file that CxxFindSource or CxxFindHeader can subsequently find.
  758. ##
  759. ########################################################################
  760. def CxxFindSource(name, ipath):
  761. for dir in ipath:
  762. if (dir == "."): full = name
  763. else: full = dir + "/" + name
  764. if GetTimestamp(full) > 0: return full
  765. exit("Could not find source file: "+name)
  766. def CxxFindHeader(srcfile, incfile, ipath):
  767. if (incfile.startswith(".")):
  768. last = srcfile.rfind("/")
  769. if (last < 0): exit("CxxFindHeader cannot handle this case #1")
  770. srcdir = srcfile[:last+1]
  771. while (incfile[:1]=="."):
  772. if (incfile[:2]=="./"):
  773. incfile = incfile[2:]
  774. elif (incfile[:3]=="../"):
  775. incfile = incfile[3:]
  776. last = srcdir[:-1].rfind("/")
  777. if (last < 0): exit("CxxFindHeader cannot handle this case #2")
  778. srcdir = srcdir[:last+1]
  779. else: exit("CxxFindHeader cannot handle this case #3")
  780. full = srcdir + incfile
  781. if GetTimestamp(full) > 0: return full
  782. return 0
  783. else:
  784. for dir in ipath:
  785. full = dir + "/" + incfile
  786. if GetTimestamp(full) > 0: return full
  787. return 0
  788. def CreateStubHeader(file):
  789. if (os.path.exists(file)==0):
  790. WriteFile(file,"/* stub header */")
  791. ########################################################################
  792. ##
  793. ## FindLocation
  794. ##
  795. ########################################################################
  796. def FindLocation(fn, ipath):
  797. if (COMPILER=="LINUX"):
  798. if (fn.endswith(".cxx")): return CxxFindSource(fn, ipath)
  799. if (fn.endswith(".I")): return CxxFindSource(fn, ipath)
  800. if (fn.endswith(".h")): return CxxFindSource(fn, ipath)
  801. if (fn.endswith(".c")): return CxxFindSource(fn, ipath)
  802. if (fn.endswith(".yxx")): return CxxFindSource(fn, ipath)
  803. if (fn.endswith(".lxx")): return CxxFindSource(fn, ipath)
  804. if (fn.endswith(".obj")): return "built/tmp/"+fn[:-4]+".o"
  805. if (fn.endswith(".dll")): return "built/lib/"+fn[:-4]+".so"
  806. if (fn.endswith(".exe")): return "built/bin/"+fn[:-4]
  807. if (fn.endswith(".lib")): return "built/lib/"+fn[:-4]+".a"
  808. if (fn.endswith(".ilb")): return "built/tmp/"+fn[:-4]+".a"
  809. if (fn.endswith(".dat")): return "built/tmp/"+fn
  810. if (fn.endswith(".in")): return "built/pandac/input/"+fn
  811. if (COMPILER=="MSVC"):
  812. if (fn.endswith(".cxx")): return CxxFindSource(fn, ipath)
  813. if (fn.endswith(".I")): return CxxFindSource(fn, ipath)
  814. if (fn.endswith(".h")): return CxxFindSource(fn, ipath)
  815. if (fn.endswith(".c")): return CxxFindSource(fn, ipath)
  816. if (fn.endswith(".yxx")): return CxxFindSource(fn, ipath)
  817. if (fn.endswith(".lxx")): return CxxFindSource(fn, ipath)
  818. if (fn.endswith(".obj")): return "built/tmp/"+fn
  819. if (fn.endswith(".dll")): return "built/bin/"+fn
  820. if (fn.endswith(".dlo")): return "built/plugins/"+fn
  821. if (fn.endswith(".dli")): return "built/plugins/"+fn
  822. if (fn.endswith(".dle")): return "built/plugins/"+fn
  823. if (fn.endswith(".mll")): return "built/plugins/"+fn
  824. if (fn.endswith(".exe")): return "built/bin/"+fn
  825. if (fn.endswith(".lib")): return "built/lib/"+fn
  826. if (fn.endswith(".ilb")): return "built/tmp/"+fn[:-4]+".lib"
  827. if (fn.endswith(".dat")): return "built/tmp/"+fn
  828. if (fn.endswith(".in")): return "built/pandac/input/"+fn
  829. return fn
  830. def FindLocations(files, ipath):
  831. result = []
  832. for x in files:
  833. result.append(FindLocation(x, ipath))
  834. return result
  835. ########################################################################
  836. ##
  837. ## CxxCalcDependencies(srcfile, ipath, ignore)
  838. ##
  839. ## Calculate the dependencies of a source file given a
  840. ## particular include-path. Any file in the list of files to
  841. ## ignore is not considered.
  842. ##
  843. ########################################################################
  844. global CxxIgnoreHeader
  845. global CxxDependencyCache
  846. CxxIgnoreHeader = {}
  847. CxxDependencyCache = {}
  848. def CxxCalcDependencies(srcfile, ipath, ignore):
  849. if (CxxDependencyCache.has_key(srcfile)):
  850. return CxxDependencyCache[srcfile]
  851. if (ignore.count(srcfile)): return []
  852. dep = {}
  853. dep[srcfile] = 1
  854. includes = CxxGetIncludes(srcfile)
  855. for include in includes:
  856. if (CxxIgnoreHeader.has_key(include)==0):
  857. header = CxxFindHeader(srcfile, include, ipath)
  858. if (header!=0):
  859. if (ignore.count(header)==0):
  860. hdeps = CxxCalcDependencies(header, ipath, [srcfile]+ignore)
  861. for x in hdeps: dep[x] = 1
  862. else:
  863. if (VERBOSE > 1):
  864. print "CAUTION: header file "+include+" cannot be found in "+srcfile+" IPATH="+str(ipath)
  865. result = dep.keys()
  866. CxxDependencyCache[srcfile] = result
  867. return result
  868. ########################################################################
  869. ##
  870. ##
  871. ##
  872. ########################################################################
  873. def SDependencyQueue(ipath, call, targets, sources):
  874. xipath = ["built/tmp"] + ipath + ["built/include"]
  875. osources = {}
  876. for x in sources:
  877. file = FindLocation(x, xipath)
  878. if (x.endswith(".cxx")) or (x.endswith(".I")) or (x.endswith(".h")) or (x.endswith(".c")):
  879. for dep in CxxCalcDependencies(file, xipath, []):
  880. osources[dep] = 1
  881. else:
  882. osources[file] = 1
  883. osources = osources.keys()
  884. osources.sort()
  885. otargets = FindLocations(targets, xipath)
  886. DEPENDENCYQUEUE.append([call[0],call[1:],otargets,osources,[]])
  887. ########################################################################
  888. ##
  889. ## Routines to copy files into the build tree
  890. ##
  891. ########################################################################
  892. def CopyFile(dstfile,srcfile):
  893. if (dstfile[-1]=='/'):
  894. dstdir = dstfile
  895. fnl = srcfile.rfind("/")
  896. if (fnl < 0): fn = srcfile
  897. else: fn = srcfile[fnl+1:]
  898. dstfile = dstdir + fn
  899. if (NeedsBuild([dstfile],[srcfile])):
  900. global VERBOSE
  901. if VERBOSE >= 1:
  902. print "Copying \"%s\" --> \"%s\""%(srcfile, dstfile)
  903. WriteFile(dstfile,ReadFile(srcfile))
  904. JustBuilt([dstfile], [srcfile])
  905. def CopyAllFiles(dstdir, srcdir, suffix=""):
  906. for x in GetDirectoryContents(srcdir, ["*"+suffix]):
  907. CopyFile(dstdir+x, srcdir+x)
  908. def CompileAllModels(dstdir, srcdir):
  909. for x in GetDirectoryContents(srcdir, ["*.egg", "*.flt"]):
  910. eggpz = os.path.basename(x[:-4] + ".egg.pz")
  911. EnqueueEggPZ(dstdir + eggpz, srcdir + x)
  912. def CopyAllHeaders(dir, skip=[]):
  913. for filename in GetDirectoryContents(dir, ["*.h", "*.I", "*.T"], skip):
  914. srcfile = dir + "/" + filename
  915. dstfile = "built/include/" + filename
  916. if (NeedsBuild([dstfile],[srcfile])):
  917. WriteFile(dstfile,ReadFile(srcfile))
  918. JustBuilt([dstfile],[srcfile])
  919. def CopyTree(dstdir,srcdir):
  920. if (os.path.isdir(dstdir)): return 0
  921. if (COMPILER=="MSVC"): cmd = 'xcopy /I/Y/E/Q "' + srcdir + '" "' + dstdir + '"'
  922. if (COMPILER=="LINUX"): cmd = 'cp --recursive --force ' + srcdir + ' ' + dstdir
  923. oscmd(cmd)
  924. ########################################################################
  925. ##
  926. ## EnqueueCxx
  927. ##
  928. ########################################################################
  929. def CompileCxx(obj,src,ipath,opts):
  930. ipath = ["built/tmp"] + ipath + ["built/include"]
  931. wobj = FindLocation(obj, ipath)
  932. wsrc = FindLocation(src, ipath)
  933. if (COMPILER=="MSVC"):
  934. cmd = "cl /wd4996 /Fo" + wobj + " /nologo /c "
  935. if (OMIT.count("PYTHON")==0): cmd = cmd + " /Ithirdparty/win-python/include"
  936. for ver in DXVERSIONS:
  937. if (PkgSelected(opts,"DX"+ver)):
  938. cmd = cmd + ' /I"' + DIRECTXSDK["DX"+ver] + '/include"'
  939. for ver in MAYAVERSIONS:
  940. if (PkgSelected(opts,"MAYA"+ver)):
  941. cmd = cmd + ' /I"' + MAYASDK["MAYA"+ver] + '/include"'
  942. cmd = cmd + " /DMAYAVERSION=" + ver
  943. for ver in MAXVERSIONS:
  944. if (PkgSelected(opts,"MAX"+ver)):
  945. cmd = cmd + ' /I"' + MAXSDK["MAX"+ver] + '/include" /I"' + MAXSDKCS["MAX"+ver] + '" /DMAX' + ver
  946. for pkg in PACKAGES:
  947. if (pkg[:4] != "MAYA") and (pkg[:3]!="MAX") and (pkg[:2]!="DX") and PkgSelected(opts,pkg):
  948. cmd = cmd + " /I" + THIRDPARTYLIBS + pkg.lower() + "/include"
  949. for x in ipath: cmd = cmd + " /I" + x
  950. if (opts.count('NOFLOATWARN')): cmd = cmd + ' /wd4244 /wd4305'
  951. if (opts.count("WITHINPANDA")): cmd = cmd + ' /DWITHIN_PANDA'
  952. if (opts.count("MSFORSCOPE")): cmd = cmd + ' /Zc:forScope-'
  953. optlevel = getoptlevel(opts,OPTIMIZE)
  954. if (optlevel==1): cmd = cmd + " /MD /Zi /RTCs /GS"
  955. if (optlevel==2): cmd = cmd + " /MD /Zi /DNDEBUG "
  956. if (optlevel==3): cmd = cmd + " /MD /Zi /O2 /Ob2 /DFORCE_INLINING /DNDEBUG "
  957. if (optlevel==4): cmd = cmd + " /MD /Zi /Ox /Ob2 /DFORCE_INLINING /DNDEBUG /GL "
  958. cmd = cmd + " /Fd" + wobj[:-4] + ".pdb"
  959. building = getbuilding(opts)
  960. if (building): cmd = cmd + " /DBUILDING_" + building
  961. cmd = cmd + " /EHsc /Zm300 /DWIN32_VC /DWIN32 /W3 " + wsrc
  962. oscmd(cmd)
  963. if (COMPILER=="LINUX"):
  964. if (wsrc.endswith(".c")): cmd = 'gcc -fPIC -c -o ' + wobj
  965. else: cmd = 'g++ -ftemplate-depth-30 -fPIC -c -o ' + wobj
  966. if (OMIT.count("PYTHON")==0): cmd = cmd + ' -I"' + PYTHONSDK + '"'
  967. if (PkgSelected(opts,"VRPN")): cmd = cmd + ' -I' + THIRDPARTYLIBS + 'vrpn/include'
  968. if (PkgSelected(opts,"FFTW")): cmd = cmd + ' -I' + THIRDPARTYLIBS + 'fftw/include'
  969. if (PkgSelected(opts,"FMODEX")): cmd = cmd + ' -I' + THIRDPARTYLIBS + 'fmodex/include'
  970. if (PkgSelected(opts,"NVIDIACG")): cmd = cmd + ' -I' + THIRDPARTYLIBS + 'nvidiacg/include'
  971. if (PkgSelected(opts,"FFMPEG")): cmd = cmd + ' -I' + THIRDPARTYLIBS + 'ffmpeg/include'
  972. if (PkgSelected(opts,"FREETYPE")): cmd = cmd + ' -I/usr/include/freetype2'
  973. for x in ipath: cmd = cmd + ' -I' + x
  974. if (opts.count("WITHINPANDA")): cmd = cmd + ' -DWITHIN_PANDA'
  975. optlevel = getoptlevel(opts,OPTIMIZE)
  976. if (optlevel==1): cmd = cmd + " -g"
  977. if (optlevel==2): cmd = cmd + " -O1 -DNDEBUG"
  978. if (optlevel==3): cmd = cmd + " -O2 -DNDEBUG"
  979. if (optlevel==4): cmd = cmd + " -O2 -DNDEBUG"
  980. building = getbuilding(opts)
  981. if (building): cmd = cmd + " -DBUILDING_" + building
  982. cmd = cmd + ' ' + wsrc
  983. oscmd(cmd)
  984. def EnqueueCxx(obj=0,src=0,ipath=[],opts=[],xdep=[]):
  985. if ((obj==0)|(src==0)):
  986. exit("syntax error in EnqueueCxx directive")
  987. SDependencyQueue(ipath, [CompileCxx,obj,src,ipath,opts], [obj], [src]+xdep)
  988. ########################################################################
  989. ##
  990. ## CompileBison
  991. ##
  992. ########################################################################
  993. def CompileBison(pre, dsth, obj, ipath, opts, src):
  994. ifile = os.path.basename(src)
  995. wsrc = FindLocation(src, ipath)
  996. wobj = FindLocation(obj, ipath)
  997. wdstc = "built/tmp/" + obj[:-4] + ".cxx"
  998. wdsth = "built/include/" + dsth
  999. ipath = ["built/tmp"] + ipath + ["built/include"]
  1000. if (COMPILER == "MSVC"):
  1001. oscmd('thirdparty/win-util/bison -y -d -obuilt/tmp/'+ifile+'.c -p '+pre+' '+wsrc)
  1002. CopyFile(wdstc, "built/tmp/"+ifile+".c")
  1003. CopyFile(wdsth, "built/tmp/"+ifile+".h")
  1004. if (COMPILER == "LINUX"):
  1005. oscmd("bison -y -d -obuilt/tmp/"+ifile+".c -p "+pre+" "+wsrc)
  1006. CopyFile(wdstc, "built/tmp/"+ifile+".c")
  1007. CopyFile(wdsth, "built/tmp/"+ifile+".h")
  1008. CompileCxx(obj,obj[:-4]+".cxx",ipath,opts)
  1009. def EnqueueBison(ipath=0,opts=0,pre=0,obj=0,dsth=0,src=0):
  1010. if ((ipath==0)|(opts==0)|(pre==0)|(obj==0)|(dsth==0)|(src==0)):
  1011. exit("syntax error in EnqueueBison directive")
  1012. SDependencyQueue(ipath, [CompileBison,pre,dsth,obj,ipath,opts,src], [obj, dsth], [src])
  1013. ########################################################################
  1014. ##
  1015. ## CompileFlex
  1016. ##
  1017. ########################################################################
  1018. def CompileFlex(pre,src,obj,ipath,opts,dashi):
  1019. wsrc=FindLocation(src, ipath)
  1020. wobj=FindLocation(obj, ipath)
  1021. wdst="built/tmp/"+obj[:-4]+".cxx"
  1022. ipath = ["built/tmp"] + ipath + ["built/include"]
  1023. if (COMPILER == "MSVC"):
  1024. if (dashi): oscmd("thirdparty/win-util/flex -i -P" + pre + " -o"+wdst+" "+wsrc)
  1025. else: oscmd("thirdparty/win-util/flex -P" + pre + " -o"+wdst+" "+wsrc)
  1026. if (COMPILER == "LINUX"):
  1027. if (dashi): oscmd("flex -i -P" + pre + " -o"+wdst+" "+wsrc)
  1028. else: oscmd("flex -P" + pre + " -o"+wdst+" "+wsrc)
  1029. CompileCxx(obj,obj[:-4]+".cxx",ipath,opts)
  1030. def EnqueueFlex(ipath=0,opts=0,pre=0,obj=0,src=0,dashi=0):
  1031. if ((ipath==0)|(opts==0)|(pre==0)|(obj==0)|(src==0)):
  1032. exit("syntax error in EnqueueFlex directive")
  1033. SDependencyQueue(ipath, [CompileFlex,pre,src,obj,ipath,opts,dashi], [obj], [src])
  1034. ########################################################################
  1035. ##
  1036. ## EnqueueIgate
  1037. ##
  1038. ########################################################################
  1039. def CompileIgate(ipath,opts,outd,obj,src,module,library,files):
  1040. outc = obj[:-4]+".cxx"
  1041. wobj = FindLocation(obj, ipath)
  1042. woutd = FindLocation(outd, ipath)
  1043. woutc = "built/tmp/"+outc
  1044. xipath = ipath + ["built/include"]
  1045. if (OMIT.count("PYTHON")):
  1046. WriteFile(woutc,"")
  1047. WriteFile(woutd,"")
  1048. CompileCxx(obj,outc,ipath,opts)
  1049. return
  1050. if (COMPILER=="MSVC"):
  1051. cmd = "built/bin/interrogate -srcdir "+src+" -I"+src
  1052. cmd = cmd + ' -DCPPPARSER -D__STDC__=1 -D__cplusplus -longlong __int64 -D_X86_ -DWIN32_VC -D_WIN32'
  1053. cmd = cmd + ' -D"_declspec(param)=" -D_near -D_far -D__near -D__far -D__stdcall'
  1054. optlevel=getoptlevel(opts,OPTIMIZE)
  1055. if (optlevel==1): cmd = cmd + ' '
  1056. if (optlevel==2): cmd = cmd + ' -DNDEBUG '
  1057. if (optlevel==3): cmd = cmd + ' -DNDEBUG -DFORCE_INLINING'
  1058. if (optlevel==4): cmd = cmd + ' -DNDEBUG -DFORCE_INLINING'
  1059. cmd = cmd + ' -oc ' + woutc + ' -od ' + woutd
  1060. cmd = cmd + ' -fnames -string -refcount -assert -python-native'
  1061. for x in xipath: cmd = cmd + ' -I' + x
  1062. cmd = cmd + ' -Sbuilt/include/parser-inc'
  1063. cmd = cmd + ' -Sthirdparty/win-python/include'
  1064. for ver in DXVERSIONS:
  1065. if ((COMPILER=="MSVC") and PkgSelected(opts,"DX"+ver)):
  1066. cmd = cmd + ' -S"' + DIRECTXSDK["DX"+ver] + '/include"'
  1067. for ver in MAYAVERSIONS:
  1068. if ((COMPILER=="MSVC") and PkgSelected(opts,"MAYA"+ver)):
  1069. cmd = cmd + ' -S"' + MAYASDK["MAYA"+ver] + '/include"'
  1070. for pkg in PACKAGES:
  1071. if (PkgSelected(opts,pkg)):
  1072. cmd = cmd + " -S" + THIRDPARTYLIBS + pkg.lower() + "/include"
  1073. building = getbuilding(opts)
  1074. if (building): cmd = cmd + " -DBUILDING_"+building
  1075. if (opts.count("WITHINPANDA")): cmd = cmd + " -DWITHIN_PANDA"
  1076. cmd = cmd + ' -module ' + module + ' -library ' + library
  1077. for x in files: cmd = cmd + ' ' + x
  1078. oscmd(cmd)
  1079. CompileCxx(obj,outc,ipath,opts)
  1080. return
  1081. if (COMPILER=="LINUX"):
  1082. cmd = 'built/bin/interrogate -srcdir '+src
  1083. cmd = cmd + ' -DCPPPARSER -D__STDC__=1 -D__cplusplus -D__i386__ -D__const=const'
  1084. optlevel = getoptlevel(opts,OPTIMIZE)
  1085. if (optlevel==1): cmd = cmd + ' '
  1086. if (optlevel==2): cmd = cmd + ' -DNDEBUG '
  1087. if (optlevel==3): cmd = cmd + ' -DNDEBUG '
  1088. if (optlevel==4): cmd = cmd + ' -DNDEBUG '
  1089. cmd = cmd + ' -oc ' + woutc + ' -od ' + woutd
  1090. cmd = cmd + ' -fnames -string -refcount -assert -python-native'
  1091. for x in xipath: cmd = cmd + ' -I' + x
  1092. cmd = cmd + ' -Sbuilt/include/parser-inc'
  1093. cmd = cmd + ' -S'+PYTHONSDK
  1094. for pkg in PACKAGES:
  1095. if (PkgSelected(opts,pkg)):
  1096. cmd = cmd + " -S" + THIRDPARTYLIBS + pkg.lower() + "/include"
  1097. cmd = cmd + ' -S/usr/include'
  1098. building = getbuilding(opts)
  1099. if (building): cmd = cmd + " -DBUILDING_"+building
  1100. if (opts.count("WITHINPANDA")): cmd = cmd + " -DWITHIN_PANDA"
  1101. cmd = cmd + ' -module ' + module + ' -library ' + library
  1102. for ver in MAYAVERSIONS:
  1103. if (PkgSelected(opts, "MAYA"+ver)):
  1104. cmd = cmd + ' -I"' + MAYASDK["MAYA"+ver] + '/include"'
  1105. for x in files: cmd = cmd + ' ' + x
  1106. oscmd(cmd)
  1107. CompileCxx(obj,outc,ipath,opts)
  1108. return
  1109. def FindInterrogateInputs(dir, skip, also):
  1110. if (skip == "ALL"):
  1111. files = []
  1112. else:
  1113. files = GetDirectoryContents(dir, ["*.h"], skip)
  1114. files.sort()
  1115. for x in also: files.append(x)
  1116. return files
  1117. def EnqueueIgate(ipath=0, opts=0, outd=0, obj=0, src=0, module=0, library=0, also=0, skip=0):
  1118. if ((ipath==0)|(opts==0)|(outd==0)|(obj==0)|(src==0)|(module==0)|(library==0)|(also==0)|(skip==0)):
  1119. exit("syntax error in EnqueueIgate directive")
  1120. files = FindInterrogateInputs(src, skip, also)
  1121. dep = files + ["dtool_have_python.dat", "interrogate.exe"]
  1122. SDependencyQueue(ipath, [CompileIgate,ipath,opts,outd,obj,src,module,library,files], [obj, outd], dep)
  1123. ########################################################################
  1124. ##
  1125. ## EnqueueImod
  1126. ##
  1127. ########################################################################
  1128. def CompileImod(obj, module, library, ipath, opts, files):
  1129. outc = obj[:-4]+".cxx"
  1130. woutc = "built/tmp/"+outc
  1131. wfiles = FindLocations(files, ipath)
  1132. if (OMIT.count("PYTHON")):
  1133. WriteFile(woutc,"")
  1134. CompileCxx(obj,outc,ipath,opts)
  1135. return
  1136. if (COMPILER=="MSVC"):
  1137. cmd = 'built/bin/interrogate_module '
  1138. cmd = cmd + ' -oc ' + woutc + ' -module ' + module + ' -library ' + library + ' -python-native '
  1139. for x in wfiles: cmd = cmd + ' ' + x
  1140. oscmd(cmd)
  1141. CompileCxx(obj,outc,ipath,opts)
  1142. return
  1143. if (COMPILER=="LINUX"):
  1144. cmd = 'built/bin/interrogate_module '
  1145. cmd = cmd + ' -oc ' + woutc + ' -module ' + module + ' -library ' + library + ' -python-native '
  1146. for x in wfiles: cmd = cmd + ' ' + x
  1147. oscmd(cmd)
  1148. CompileCxx(obj,outc,ipath,opts)
  1149. return
  1150. def EnqueueImod(ipath=0, opts=0, obj=0, module=0, library=0, files=0):
  1151. if ((ipath==0)|(opts==0)|(obj==0)|(module==0)|(library==0)|(files==0)):
  1152. exit("syntax error in EnqueueImod directive")
  1153. dep = files + ["dtool_have_python.dat", "interrogate_module.exe"]
  1154. SDependencyQueue(ipath, [CompileImod, obj, module, library, ipath, opts, files], [obj], dep)
  1155. ########################################################################
  1156. ##
  1157. ## EnqueueLib
  1158. ##
  1159. ########################################################################
  1160. def CompileLib(lib, obj, opts):
  1161. wlib = FindLocation(lib, [])
  1162. wobj = FindLocations(obj, [])
  1163. if (COMPILER=="MSVC"):
  1164. cmd = 'link /lib /nologo /OUT:' + wlib
  1165. optlevel = getoptlevel(opts,OPTIMIZE)
  1166. if (optlevel==4): cmd = cmd + " /LTCG "
  1167. for x in wobj: cmd = cmd + ' ' + x
  1168. oscmd(cmd)
  1169. if (COMPILER=="LINUX"):
  1170. cmd = 'ar cru ' + wlib
  1171. for x in wobj: cmd=cmd + ' ' + x
  1172. oscmd(cmd)
  1173. def EnqueueLib(lib=0, obj=[], opts=[]):
  1174. if (lib==0): exit("syntax error in EnqueueLib directive")
  1175. SDependencyQueue([], [CompileLib,lib,obj,opts], [lib], obj)
  1176. ########################################################################
  1177. ##
  1178. ## EnqueueLink
  1179. ##
  1180. ########################################################################
  1181. def CompileLink(dll, obj, opts, ldef):
  1182. wdll = FindLocation(dll, [])
  1183. if (COMPILER=="MSVC"):
  1184. cmd = 'link /nologo /NOD:MFC80.LIB /NOD:LIBCI.LIB /NOD:MSVCRTD.LIB /DEBUG '
  1185. if (THIRDPARTYLIBS=="thirdparty/win-libs-vc8/"): cmd = cmd + " /nod:libc /nod:libcmtd"
  1186. if (wdll.endswith(".exe")==0): cmd = cmd + " /DLL"
  1187. optlevel = getoptlevel(opts,OPTIMIZE)
  1188. if (optlevel==1): cmd = cmd + " /MAP /MAPINFO:EXPORTS"
  1189. if (optlevel==2): cmd = cmd + " /MAP:NUL "
  1190. if (optlevel==3): cmd = cmd + " /MAP:NUL "
  1191. if (optlevel==4): cmd = cmd + " /MAP:NUL /LTCG "
  1192. cmd = cmd + " /FIXED:NO /OPT:REF /STACK:4194304 /INCREMENTAL:NO "
  1193. if (ldef!=0): cmd = cmd + ' /DEF:"' + ldef + '"'
  1194. cmd = cmd + ' /OUT:' + wdll
  1195. if (dll.endswith(".dll")):
  1196. cmd = cmd + ' /IMPLIB:built/lib/'+dll[:-4]+".lib"
  1197. if (OMIT.count("PYTHON")==0): cmd = cmd + ' /LIBPATH:thirdparty/win-python/libs '
  1198. for x in obj:
  1199. if (x.endswith(".dll")): cmd = cmd + ' built/lib/' + x[:-4] + ".lib"
  1200. else: cmd = cmd + ' ' + FindLocation(x,[])
  1201. if (wdll[-4:]==".exe"): cmd = cmd + ' panda/src/configfiles/pandaIcon.obj'
  1202. for ver in DXVERSIONS:
  1203. if (PkgSelected(opts,"DX"+ver)):
  1204. cmd = cmd + ' /LIBPATH:"' + DIRECTXSDK["DX"+ver] + '/lib/x86"'
  1205. cmd = cmd + ' /LIBPATH:"' + DIRECTXSDK["DX"+ver] + '/lib"'
  1206. cmd = cmd + ' d3dVER.lib d3dxVER.lib dxerrVER.lib ddraw.lib dxguid.lib'.replace("VER",ver)
  1207. if (opts.count("WINSOCK")): cmd = cmd + " wsock32.lib"
  1208. if (opts.count("WINSOCK2")): cmd = cmd + " wsock32.lib ws2_32.lib"
  1209. if (opts.count("WINCOMCTL")): cmd = cmd + ' comctl32.lib'
  1210. if (opts.count("WINCOMDLG")): cmd = cmd + ' comdlg32.lib'
  1211. if (opts.count("WINUSER")): cmd = cmd + " user32.lib"
  1212. if (opts.count("WINMM")): cmd = cmd + " winmm.lib"
  1213. if (opts.count("WINIMM")): cmd = cmd + " imm32.lib"
  1214. if (opts.count("WINKERNEL")): cmd = cmd + " kernel32.lib"
  1215. if (opts.count("WINOLDNAMES")): cmd = cmd + " oldnames.lib"
  1216. if (opts.count("WINGDI")): cmd = cmd + " gdi32.lib"
  1217. if (opts.count("ADVAPI")): cmd = cmd + " advapi32.lib"
  1218. if (opts.count("GLUT")): cmd = cmd + " opengl32.lib glu32.lib"
  1219. if (PkgSelected(opts,"PNG")): cmd = cmd + ' ' + THIRDPARTYLIBS + 'png/lib/libpandapng.lib'
  1220. if (PkgSelected(opts,"JPEG")): cmd = cmd + ' ' + THIRDPARTYLIBS + 'jpeg/lib/libpandajpeg.lib'
  1221. if (PkgSelected(opts,"TIFF")): cmd = cmd + ' ' + THIRDPARTYLIBS + 'tiff/lib/libpandatiff.lib'
  1222. if (PkgSelected(opts,"ZLIB")): cmd = cmd + ' ' + THIRDPARTYLIBS + 'zlib/lib/libpandazlib1.lib'
  1223. if (PkgSelected(opts,"VRPN")):
  1224. cmd = cmd + ' ' + THIRDPARTYLIBS + 'vrpn/lib/vrpn.lib'
  1225. cmd = cmd + ' ' + THIRDPARTYLIBS + 'vrpn/lib/quat.lib'
  1226. if (PkgSelected(opts,"FMODEX")):
  1227. cmd = cmd + ' ' + THIRDPARTYLIBS + 'fmodex/lib/fmodex_vc.lib'
  1228. if (PkgSelected(opts,"MILES")):
  1229. cmd = cmd + ' ' + THIRDPARTYLIBS + 'miles/lib/mss32.lib'
  1230. if (PkgSelected(opts,"NVIDIACG")):
  1231. if (opts.count("CGGL")):
  1232. cmd = cmd + ' ' + THIRDPARTYLIBS + 'nvidiacg/lib/cgGL.lib'
  1233. if (opts.count("CGDX9")):
  1234. cmd = cmd + ' ' + THIRDPARTYLIBS + 'nvidiacg/lib/cgD3D9.lib'
  1235. cmd = cmd + ' ' + THIRDPARTYLIBS + 'nvidiacg/lib/cg.lib'
  1236. if (PkgSelected(opts,"OPENSSL")):
  1237. cmd = cmd + ' ' + THIRDPARTYLIBS + 'openssl/lib/libpandassl.lib'
  1238. cmd = cmd + ' ' + THIRDPARTYLIBS + 'openssl/lib/libpandaeay.lib'
  1239. if (PkgSelected(opts,"FREETYPE")):
  1240. cmd = cmd + ' ' + THIRDPARTYLIBS + 'freetype/lib/freetype.lib'
  1241. if (PkgSelected(opts,"FFTW")):
  1242. cmd = cmd + ' ' + THIRDPARTYLIBS + 'fftw/lib/rfftw.lib'
  1243. cmd = cmd + ' ' + THIRDPARTYLIBS + 'fftw/lib/fftw.lib'
  1244. if (PkgSelected(opts,"FFMPEG")):
  1245. cmd = cmd + ' ' + THIRDPARTYLIBS + 'ffmpeg/lib/avcodec-51-panda.lib'
  1246. cmd = cmd + ' ' + THIRDPARTYLIBS + 'ffmpeg/lib/avformat-50-panda.lib'
  1247. cmd = cmd + ' ' + THIRDPARTYLIBS + 'ffmpeg/lib/avutil-49-panda.lib'
  1248. for ver in MAYAVERSIONS:
  1249. if (PkgSelected(opts,"MAYA"+ver)):
  1250. cmd = cmd + ' "' + MAYASDK["MAYA"+ver] + '/lib/Foundation.lib"'
  1251. cmd = cmd + ' "' + MAYASDK["MAYA"+ver] + '/lib/OpenMaya.lib"'
  1252. cmd = cmd + ' "' + MAYASDK["MAYA"+ver] + '/lib/OpenMayaAnim.lib"'
  1253. cmd = cmd + ' "' + MAYASDK["MAYA"+ver] + '/lib/OpenMayaUI.lib"'
  1254. for ver in MAXVERSIONS:
  1255. if (PkgSelected(opts,"MAX"+ver)):
  1256. cmd = cmd + ' "' + MAXSDK["MAX"+ver] + '/lib/core.lib"'
  1257. cmd = cmd + ' "' + MAXSDK["MAX"+ver] + '/lib/edmodel.lib"'
  1258. cmd = cmd + ' "' + MAXSDK["MAX"+ver] + '/lib/gfx.lib"'
  1259. cmd = cmd + ' "' + MAXSDK["MAX"+ver] + '/lib/geom.lib"'
  1260. cmd = cmd + ' "' + MAXSDK["MAX"+ver] + '/lib/mesh.lib"'
  1261. cmd = cmd + ' "' + MAXSDK["MAX"+ver] + '/lib/maxutil.lib"'
  1262. cmd = cmd + ' "' + MAXSDK["MAX"+ver] + '/lib/paramblk2.lib"'
  1263. oscmd(cmd)
  1264. setVC80CRTVersion(wdll+".manifest", VC80CRTVERSION)
  1265. mtcmd = 'mt -manifest ' + wdll + '.manifest -outputresource:' + wdll
  1266. if (wdll.endswith(".exe")==0): mtcmd = mtcmd + ';2'
  1267. else: mtcmd = mtcmd + ';1'
  1268. oscmd(mtcmd)
  1269. if (COMPILER=="LINUX"):
  1270. if (dll.endswith(".exe")): cmd = 'g++ -o ' + wdll + ' -Lbuilt/lib -L/usr/X11R6/lib'
  1271. else: cmd = 'g++ -shared -o ' + wdll + ' -Lbuilt/lib -L/usr/X11R6/lib'
  1272. for x in obj:
  1273. suffix = x[-4:]
  1274. if (suffix==".obj"): cmd = cmd + ' built/tmp/' + x[:-4] + '.o'
  1275. elif (suffix==".dll"): cmd = cmd + ' -l' + x[3:-4]
  1276. elif (suffix==".lib"): cmd = cmd + ' built/lib/' + x[:-4] + '.a'
  1277. elif (suffix==".ilb"): cmd = cmd + ' built/tmp/' + x[:-4] + '.a'
  1278. if (PkgSelected(opts,"FMODEX")): cmd = cmd + ' -L' + THIRDPARTYLIBS + 'fmodex/lib -lfmodex'
  1279. if (PkgSelected(opts,"NVIDIACG")):
  1280. cmd = cmd + ' -Lthirdparty/nvidiacg/lib '
  1281. if (opts.count("CGGL")): cmd = cmd + " -lCgGL"
  1282. cmd = cmd + " -lCg "
  1283. if (PkgSelected(opts,"FFMPEG")): cmd = cmd + ' -L' + THIRDPARTYLIBS + 'ffmpeg/lib -lavformat -lavcodec -lavformat -lavutil'
  1284. if (PkgSelected(opts,"ZLIB")): cmd = cmd + " -lz"
  1285. if (PkgSelected(opts,"PNG")): cmd = cmd + " -lpng"
  1286. if (PkgSelected(opts,"JPEG")): cmd = cmd + " -ljpeg"
  1287. if (PkgSelected(opts,"TIFF")): cmd = cmd + " -ltiff"
  1288. if (PkgSelected(opts,"OPENSSL")): cmd = cmd + " -lssl"
  1289. if (PkgSelected(opts,"FREETYPE")): cmd = cmd + " -lfreetype"
  1290. if (PkgSelected(opts,"VRPN")): cmd = cmd + ' -L' + THIRDPARTYLIBS + 'vrpn/lib -lvrpn -lquat'
  1291. if (PkgSelected(opts,"FFTW")): cmd = cmd + ' -L' + THIRDPARTYLIBS + 'fftw/lib -lrfftw -lfftw'
  1292. if (opts.count("GLUT")): cmd = cmd + " -lGL -lGLU"
  1293. cmd = cmd + " -lpthread"
  1294. oscmd(cmd)
  1295. def EnqueueLink(dll=0, obj=[], opts=[], xdep=[], ldef=0):
  1296. if (dll==0): exit("syntax error in EnqueueLink directive")
  1297. SDependencyQueue([], [CompileLink, dll, obj, opts, ldef], [dll], obj + xdep)
  1298. ##########################################################################################
  1299. #
  1300. # EnqueueEggPZ
  1301. #
  1302. ##########################################################################################
  1303. def CompileEggPZ(eggpz, src):
  1304. if (src.endswith(".egg")):
  1305. CopyFile(eggpz[:-3], src)
  1306. elif (src.endswith(".flt")):
  1307. oscmd("built/bin/flt2egg -ps keep -o " + eggpz[:-3] + " " + src)
  1308. oscmd("built/bin/pzip " + eggpz[:-3])
  1309. def EnqueueEggPZ(eggpz, src):
  1310. dep = [src, "flt2egg.exe"]
  1311. SDependencyQueue([], [CompileEggPZ, eggpz, src], [eggpz], dep)
  1312. ##########################################################################################
  1313. #
  1314. # EnqueueBamPZ
  1315. #
  1316. ##########################################################################################
  1317. #
  1318. # def CompileBamPZ(preconv, bampz, src):
  1319. # oscmd("built/bin/egg2bam " + preconv + " -o " + bampz[:-3] + " " + src)
  1320. # oscmd("built/bin/pzip " + bampz[:-3])
  1321. #
  1322. # def EnqueueBamPZ(preconv, bampz, src):
  1323. # dep = [src, "egg2bam.exe"]
  1324. # SDependencyQueue([], [CompileBamPZ, preconv, bampz, src], [bampz], dep)
  1325. ##########################################################################################
  1326. #
  1327. # If the 'make depend' process discovers an 'include'
  1328. # directive that includes one of the following files,
  1329. # the specified file is not added as a dependency,
  1330. # nor is it traversed.
  1331. #
  1332. ##########################################################################################
  1333. CxxIgnoreHeader["Python.h"] = 1
  1334. CxxIgnoreHeader["Python/Python.h"] = 1
  1335. CxxIgnoreHeader["Cg/cg.h"] = 1
  1336. CxxIgnoreHeader["Cg/cgGL.h"] = 1
  1337. CxxIgnoreHeader["alloc.h"] = 1
  1338. CxxIgnoreHeader["ctype.h"] = 1
  1339. CxxIgnoreHeader["stdlib.h"] = 1
  1340. CxxIgnoreHeader["ipc_thread.h"] = 1
  1341. CxxIgnoreHeader["platform/symbian/symbian_print.h"] = 1
  1342. CxxIgnoreHeader["hxtypes.h"] = 1
  1343. CxxIgnoreHeader["hxcom.h"] = 1
  1344. CxxIgnoreHeader["hxiids.h"] = 1
  1345. CxxIgnoreHeader["hxpiids.h"] = 1
  1346. CxxIgnoreHeader["dsound.h"] = 1
  1347. CxxIgnoreHeader["hlxosstr.h"] = 1
  1348. CxxIgnoreHeader["ddraw.h"] = 1
  1349. CxxIgnoreHeader["mss.h"] = 1
  1350. CxxIgnoreHeader["MacSocket.h"] = 1
  1351. CxxIgnoreHeader["textureTransition.h"] = 1
  1352. CxxIgnoreHeader["transformTransition.h"] = 1
  1353. CxxIgnoreHeader["billboardTransition.h"] = 1
  1354. CxxIgnoreHeader["transformTransition.h"] = 1
  1355. CxxIgnoreHeader["transparencyTransition.h"] = 1
  1356. CxxIgnoreHeader["allTransitionsWrapper.h"] = 1
  1357. CxxIgnoreHeader["allTransitionsWrapper.h"] = 1
  1358. CxxIgnoreHeader["namedNode.h"] = 1
  1359. CxxIgnoreHeader["renderRelation.h"] = 1
  1360. CxxIgnoreHeader["renderTraverser.h"] = 1
  1361. CxxIgnoreHeader["get_rel_pos.h"] = 1
  1362. # Ignore Windows headers.
  1363. CxxIgnoreHeader["windows.h"] = 1
  1364. CxxIgnoreHeader["windef.h"] = 1
  1365. CxxIgnoreHeader["afxres.h"] = 1
  1366. # Ignore MAX headers
  1367. CxxIgnoreHeader["Max.h"] = 1
  1368. CxxIgnoreHeader["iparamb2.h"] = 1
  1369. CxxIgnoreHeader["iparamm2.h"] = 1
  1370. CxxIgnoreHeader["istdplug.h"] = 1
  1371. CxxIgnoreHeader["iskin.h"] = 1
  1372. CxxIgnoreHeader["stdmat.h"] = 1
  1373. CxxIgnoreHeader["phyexp.h"] = 1
  1374. CxxIgnoreHeader["bipexp.h"] = 1
  1375. CxxIgnoreHeader["modstack.h"] = 1
  1376. CxxIgnoreHeader["decomp.h"] = 1
  1377. CxxIgnoreHeader["shape.h"] = 1
  1378. CxxIgnoreHeader["simpobj.h"] = 1
  1379. CxxIgnoreHeader["surf_api.h"] = 1
  1380. # OpenSSL headers
  1381. CxxIgnoreHeader["openssl/evp.h"] = 1
  1382. CxxIgnoreHeader["openssl/rand.h"] = 1
  1383. CxxIgnoreHeader["openssl/md5.h"] = 1
  1384. CxxIgnoreHeader["openssl/err.h"] = 1
  1385. CxxIgnoreHeader["openssl/ssl.h"] = 1
  1386. CxxIgnoreHeader["openssl/pem.h"] = 1
  1387. CxxIgnoreHeader["openssl/rsa.h"] = 1
  1388. CxxIgnoreHeader["openssl/bio.h"] = 1
  1389. CxxIgnoreHeader["openssl/x509.h"] = 1
  1390. # STD headers
  1391. CxxIgnoreHeader["map"] = 1
  1392. CxxIgnoreHeader["vector"] = 1
  1393. CxxIgnoreHeader["set"] = 1
  1394. CxxIgnoreHeader["algorithm"] = 1
  1395. ##########################################################################################
  1396. #
  1397. # Create the directory tree
  1398. #
  1399. ##########################################################################################
  1400. MakeDirectory("built")
  1401. MakeDirectory("built/bin")
  1402. MakeDirectory("built/lib")
  1403. MakeDirectory("built/etc")
  1404. MakeDirectory("built/plugins")
  1405. MakeDirectory("built/modelcache")
  1406. MakeDirectory("built/include")
  1407. MakeDirectory("built/include/parser-inc")
  1408. MakeDirectory("built/include/parser-inc/openssl")
  1409. MakeDirectory("built/include/parser-inc/netinet")
  1410. MakeDirectory("built/include/parser-inc/Cg")
  1411. MakeDirectory("built/include/openssl")
  1412. MakeDirectory("built/tmp")
  1413. MakeDirectory("built/models")
  1414. MakeDirectory("built/models/audio")
  1415. MakeDirectory("built/models/audio/sfx")
  1416. MakeDirectory("built/models/icons")
  1417. MakeDirectory("built/models/maps")
  1418. MakeDirectory("built/models/misc")
  1419. MakeDirectory("built/models/gui")
  1420. MakeDirectory("built/direct")
  1421. MakeDirectory("built/pandac")
  1422. MakeDirectory("built/pandac/input")
  1423. ##########################################################################################
  1424. #
  1425. # Generate dtool_config.h, prc_parameters.h, and dtool_have_xxx.dat
  1426. #
  1427. ##########################################################################################
  1428. DEFAULT_SETTINGS=[
  1429. #_Variable_________________________Windows___________________Unix__________
  1430. ("HAVE_PYTHON", '1', '1'),
  1431. ("PYTHON_FRAMEWORK", 'UNDEF', 'UNDEF'),
  1432. ("COMPILE_IN_DEFAULT_FONT", '1', '1'),
  1433. ("HAVE_MAYA", '1', '1'),
  1434. ("MAYA_PRE_5_0", 'UNDEF', 'UNDEF'),
  1435. ("HAVE_SOFTIMAGE", 'UNDEF', 'UNDEF'),
  1436. ("SSL_097", 'UNDEF', 'UNDEF'),
  1437. ("REPORT_OPENSSL_ERRORS", '1', '1'),
  1438. ("HAVE_GL", '1', '1'),
  1439. ("HAVE_MESA", 'UNDEF', 'UNDEF'),
  1440. ("MESA_MGL", 'UNDEF', 'UNDEF'),
  1441. ("HAVE_SGIGL", 'UNDEF', 'UNDEF'),
  1442. ("HAVE_GLX", 'UNDEF', '1'),
  1443. ("HAVE_WGL", '1', 'UNDEF'),
  1444. ("HAVE_DX8", 'UNDEF', 'UNDEF'),
  1445. ("HAVE_DX9", 'UNDEF', 'UNDEF'),
  1446. ("HAVE_CHROMIUM", 'UNDEF', 'UNDEF'),
  1447. ("HAVE_THREADS", 'UNDEF', 'UNDEF'),
  1448. ("HAVE_AUDIO", '1', '1'),
  1449. ("NOTIFY_DEBUG", 'UNDEF', 'UNDEF'),
  1450. ("DO_PSTATS", 'UNDEF', 'UNDEF'),
  1451. ("DO_COLLISION_RECORDING", 'UNDEF', 'UNDEF'),
  1452. ("TRACK_IN_INTERPRETER", 'UNDEF', 'UNDEF'),
  1453. ("DO_MEMORY_USAGE", 'UNDEF', 'UNDEF'),
  1454. ("DO_PIPELINING", 'UNDEF', 'UNDEF'),
  1455. ("EXPORT_TEMPLATES", 'yes', 'yes'),
  1456. ("LINK_IN_GL", 'UNDEF', 'UNDEF'),
  1457. ("LINK_IN_PHYSICS", 'UNDEF', 'UNDEF'),
  1458. ("DEFAULT_PATHSEP", '";"', '":"'),
  1459. ("WORDS_BIGENDIAN", 'UNDEF', 'UNDEF'),
  1460. ("HAVE_NAMESPACE", '1', '1'),
  1461. ("HAVE_OPEN_MASK", 'UNDEF', 'UNDEF'),
  1462. ("HAVE_WCHAR_T", '1', '1'),
  1463. ("HAVE_WSTRING", '1', '1'),
  1464. ("HAVE_TYPENAME", '1', '1'),
  1465. ("SIMPLE_STRUCT_POINTERS", '1', 'UNDEF'),
  1466. ("HAVE_DINKUM", 'UNDEF', 'UNDEF'),
  1467. ("HAVE_STL_HASH", 'UNDEF', 'UNDEF'),
  1468. ("HAVE_GETTIMEOFDAY", 'UNDEF', '1'),
  1469. ("GETTIMEOFDAY_ONE_PARAM", 'UNDEF', 'UNDEF'),
  1470. ("HAVE_GETOPT", 'UNDEF', '1'),
  1471. ("HAVE_GETOPT_LONG_ONLY", 'UNDEF', '1'),
  1472. ("HAVE_GETOPT_H", 'UNDEF', '1'),
  1473. ("HAVE_LINUX_INPUT_H", 'UNDEF', '1'),
  1474. ("IOCTL_TERMINAL_WIDTH", 'UNDEF', '1'),
  1475. ("HAVE_STREAMSIZE", '1', '1'),
  1476. ("HAVE_IOS_TYPEDEFS", '1', '1'),
  1477. ("HAVE_IOS_BINARY", '1', '1'),
  1478. ("STATIC_INIT_GETENV", '1', 'UNDEF'),
  1479. ("HAVE_PROC_SELF_EXE", 'UNDEF', '1'),
  1480. ("HAVE_PROC_SELF_MAPS", 'UNDEF', '1'),
  1481. ("HAVE_PROC_SELF_ENVIRON", 'UNDEF', '1'),
  1482. ("HAVE_PROC_SELF_CMDLINE", 'UNDEF', '1'),
  1483. ("HAVE_GLOBAL_ARGV", '1', 'UNDEF'),
  1484. ("PROTOTYPE_GLOBAL_ARGV", 'UNDEF', 'UNDEF'),
  1485. ("GLOBAL_ARGV", '__argv', 'UNDEF'),
  1486. ("GLOBAL_ARGC", '__argc', 'UNDEF'),
  1487. ("HAVE_IO_H", '1', 'UNDEF'),
  1488. ("HAVE_IOSTREAM", '1', '1'),
  1489. ("HAVE_MALLOC_H", '1', '1'),
  1490. ("HAVE_SYS_MALLOC_H", 'UNDEF', 'UNDEF'),
  1491. ("HAVE_ALLOCA_H", 'UNDEF', '1'),
  1492. ("HAVE_LOCALE_H", 'UNDEF', '1'),
  1493. ("HAVE_MINMAX_H", '1', 'UNDEF'),
  1494. ("HAVE_SSTREAM", '1', '1'),
  1495. ("HAVE_NEW", '1', '1'),
  1496. ("HAVE_SYS_TYPES_H", '1', '1'),
  1497. ("HAVE_SYS_TIME_H", 'UNDEF', '1'),
  1498. ("HAVE_UNISTD_H", 'UNDEF', '1'),
  1499. ("HAVE_UTIME_H", 'UNDEF', '1'),
  1500. ("HAVE_GLOB_H", 'UNDEF', '1'),
  1501. ("HAVE_DIRENT_H", 'UNDEF', '1'),
  1502. ("HAVE_SYS_SOUNDCARD_H", 'UNDEF', '1'),
  1503. ("HAVE_RTTI", '1', '1'),
  1504. ("IS_LINUX", 'UNDEF', '1'),
  1505. ("GLOBAL_OPERATOR_NEW_EXCEPTIONS", 'UNDEF', '1'),
  1506. ("USE_STL_ALLOCATOR", '1', '1'),
  1507. ("USE_MEMORY_DLMALLOC", '1', 'UNDEF'),
  1508. ("USE_MEMORY_PTMALLOC", 'UNDEF', 'UNDEF'),
  1509. ("USE_MEMORY_MALLOC", 'UNDEF', '1'),
  1510. ("HAVE_ZLIB", 'UNDEF', 'UNDEF'),
  1511. ("HAVE_PNG", 'UNDEF', 'UNDEF'),
  1512. ("HAVE_JPEG", 'UNDEF', 'UNDEF'),
  1513. ("HAVE_TIFF", 'UNDEF', 'UNDEF'),
  1514. ("HAVE_VRPN", 'UNDEF', 'UNDEF'),
  1515. ("HAVE_FMODEX", 'UNDEF', 'UNDEF'),
  1516. ("HAVE_NVIDIACG", 'UNDEF', 'UNDEF'),
  1517. ("HAVE_FREETYPE", 'UNDEF', 'UNDEF'),
  1518. ("HAVE_FFTW", 'UNDEF', 'UNDEF'),
  1519. ("HAVE_OPENSSL", 'UNDEF', 'UNDEF'),
  1520. ("HAVE_NET", 'UNDEF', 'UNDEF'),
  1521. ("HAVE_CG", 'UNDEF', 'UNDEF'),
  1522. ("HAVE_CGGL", 'UNDEF', 'UNDEF'),
  1523. ("HAVE_CGDX9", 'UNDEF', 'UNDEF'),
  1524. ("HAVE_FFMPEG", 'UNDEF', 'UNDEF'),
  1525. ("DEFAULT_PRC_DIR", '"<auto>etc"', '"<auto>etc"'),
  1526. ("PRC_DIR_ENVVARS", '"PANDA_PRC_DIR"', '"PANDA_PRC_DIR"'),
  1527. ("PRC_PATH_ENVVARS", '"PANDA_PRC_PATH"', '"PANDA_PRC_PATH"'),
  1528. ("PRC_PATTERNS", '"*.prc"', '"*.prc"'),
  1529. ("PRC_ENCRYPTED_PATTERNS", '"*.prc.pe"', '"*.prc.pe"'),
  1530. ("PRC_ENCRYPTION_KEY", '""', '""'),
  1531. ("PRC_EXECUTABLE_PATTERNS", '""', '""'),
  1532. ("PRC_EXECUTABLE_ARGS_ENVVAR", '"PANDA_PRC_XARGS"', '"PANDA_PRC_XARGS"'),
  1533. ("PRC_PUBLIC_KEYS_FILENAME", '""', '""'),
  1534. ("PRC_RESPECT_TRUST_LEVEL", 'UNDEF', 'UNDEF'),
  1535. ("PRC_DCONFIG_TRUST_LEVEL", '0', '0'),
  1536. ("PRC_INC_TRUST_LEVEL", '0', '0'),
  1537. ("PRC_SAVE_DESCRIPTIONS", '1', '1'),
  1538. ]
  1539. def WriteConfigSettings():
  1540. settings={}
  1541. if (sys.platform == "win32"):
  1542. for key,win,unix in DEFAULT_SETTINGS:
  1543. settings[key] = win
  1544. else:
  1545. for key,win,unix in DEFAULT_SETTINGS:
  1546. settings[key] = unix
  1547. for x in PACKAGES:
  1548. if (OMIT.count(x)==0):
  1549. if (settings.has_key("HAVE_"+x)):
  1550. settings["HAVE_"+x] = '1'
  1551. settings["HAVE_NET"] = '1'
  1552. if (OMIT.count("NVIDIACG")==0):
  1553. settings["HAVE_CG"] = '1'
  1554. settings["HAVE_CGGL"] = '1'
  1555. settings["HAVE_CGDX9"] = '1'
  1556. if (OPTIMIZE <= 3):
  1557. if (settings["HAVE_NET"] != 'UNDEF'):
  1558. settings["DO_PSTATS"] = '1'
  1559. if (OPTIMIZE <= 3):
  1560. settings["DO_COLLISION_RECORDING"] = '1'
  1561. #if (OPTIMIZE <= 2):
  1562. # settings["TRACK_IN_INTERPRETER"] = '1'
  1563. if (OPTIMIZE <= 3):
  1564. settings["DO_MEMORY_USAGE"] = '1'
  1565. #if (OPTIMIZE <= 1):
  1566. # settings["DO_PIPELINING"] = '1'
  1567. if (OPTIMIZE <= 3):
  1568. settings["NOTIFY_DEBUG"] = '1'
  1569. conf = "/* prc_parameters.h. Generated automatically by makepanda.py */\n"
  1570. for key in settings.keys():
  1571. if ((key == "DEFAULT_PRC_DIR") or (key[:4]=="PRC_")):
  1572. val = settings[key]
  1573. if (val == 'UNDEF'): conf = conf + "#undef " + key + "\n"
  1574. else: conf = conf + "#define " + key + " " + val + "\n"
  1575. del settings[key]
  1576. ConditionalWriteFile('built/include/prc_parameters.h', conf)
  1577. conf = "/* dtool_config.h. Generated automatically by makepanda.py */\n"
  1578. for key in settings.keys():
  1579. val = settings[key]
  1580. if (val == 'UNDEF'): conf = conf + "#undef " + key + "\n"
  1581. else: conf = conf + "#define " + key + " " + val + "\n"
  1582. del settings[key]
  1583. ConditionalWriteFile('built/include/dtool_config.h', conf)
  1584. for x in PACKAGES:
  1585. if (OMIT.count(x)): ConditionalWriteFile('built/tmp/dtool_have_'+x.lower()+'.dat',"0\n")
  1586. else: ConditionalWriteFile('built/tmp/dtool_have_'+x.lower()+'.dat',"1\n")
  1587. WriteConfigSettings()
  1588. ##########################################################################################
  1589. #
  1590. # Generate pandaVersion.h, pythonversion, null.cxx
  1591. #
  1592. ##########################################################################################
  1593. PANDAVERSION_H="""
  1594. #define PANDA_MAJOR_VERSION VERSION1
  1595. #define PANDA_MINOR_VERSION VERSION2
  1596. #define PANDA_SEQUENCE_VERSION VERSION2
  1597. #undef PANDA_OFFICIAL_VERSION
  1598. #define PANDA_VERSION NVERSION
  1599. #define PANDA_VERSION_STR "VERSION1.VERSION2.VERSION3"
  1600. #define PANDA_DISTRIBUTOR "makepanda"
  1601. """
  1602. CHECKPANDAVERSION_CXX="""
  1603. # include "dtoolbase.h"
  1604. EXPCL_DTOOL int panda_version_VERSION1_VERSION2_VERSION3 = 0;
  1605. """
  1606. CHECKPANDAVERSION_H="""
  1607. # include "dtoolbase.h"
  1608. extern EXPCL_DTOOL int panda_version_VERSION1_VERSION2_VERSION3;
  1609. # ifndef WIN32
  1610. /* For Windows, exporting the symbol from the DLL is sufficient; the
  1611. DLL will not load unless all expected public symbols are defined.
  1612. Other systems may not mind if the symbol is absent unless we
  1613. explictly write code that references it. */
  1614. static int check_panda_version = panda_version_VERSION1_VERSION2_VERSION3;
  1615. # endif
  1616. """
  1617. def CreatePandaVersionFiles():
  1618. version1=int(VERSION.split(".")[0])
  1619. version2=int(VERSION.split(".")[1])
  1620. version3=int(VERSION.split(".")[2])
  1621. nversion=version1*1000000+version2*1000+version3
  1622. pandaversion_h = PANDAVERSION_H.replace("VERSION1",str(version1))
  1623. pandaversion_h = pandaversion_h.replace("VERSION2",str(version2))
  1624. pandaversion_h = pandaversion_h.replace("VERSION3",str(version3))
  1625. pandaversion_h = pandaversion_h.replace("NVERSION",str(nversion))
  1626. checkpandaversion_cxx = CHECKPANDAVERSION_CXX.replace("VERSION1",str(version1))
  1627. checkpandaversion_cxx = checkpandaversion_cxx.replace("VERSION2",str(version2))
  1628. checkpandaversion_cxx = checkpandaversion_cxx.replace("VERSION3",str(version3))
  1629. checkpandaversion_cxx = checkpandaversion_cxx.replace("NVERSION",str(nversion))
  1630. checkpandaversion_h = CHECKPANDAVERSION_H.replace("VERSION1",str(version1))
  1631. checkpandaversion_h = checkpandaversion_h.replace("VERSION2",str(version2))
  1632. checkpandaversion_h = checkpandaversion_h.replace("VERSION3",str(version3))
  1633. checkpandaversion_h = checkpandaversion_h.replace("NVERSION",str(nversion))
  1634. ConditionalWriteFile('built/include/pandaVersion.h', pandaversion_h)
  1635. ConditionalWriteFile('built/include/checkPandaVersion.cxx', checkpandaversion_cxx)
  1636. ConditionalWriteFile('built/include/checkPandaVersion.h', checkpandaversion_h)
  1637. if (OMIT.count("PYTHON")==0):
  1638. ConditionalWriteFile("built/tmp/pythonversion", os.path.basename(PYTHONSDK))
  1639. ConditionalWriteFile("built/tmp/null.cxx","")
  1640. CreatePandaVersionFiles()
  1641. ##########################################################################################
  1642. #
  1643. # Generate direct/__init__.py
  1644. #
  1645. ##########################################################################################
  1646. DIRECTINIT="""
  1647. import os,sys
  1648. srcdir1 = os.path.join(__path__[0], 'src')
  1649. srcdir2 = os.path.join(__path__[0], '..', '..', 'direct', 'src')
  1650. if (os.path.isdir(srcdir1)): __path__[0] = srcdir1
  1651. elif (os.path.isdir(srcdir2)): __path__[0] = srcdir2
  1652. else: exit("Cannot find the 'direct' tree")
  1653. """
  1654. if (OMIT.count("PYTHON")==0):
  1655. ConditionalWriteFile('built/direct/__init__.py', DIRECTINIT)
  1656. ##########################################################################################
  1657. #
  1658. # Generate the PRC files into the ETC directory.
  1659. #
  1660. ##########################################################################################
  1661. confautoprc=ReadFile("makepanda/confauto.in")
  1662. if (os.path.isfile("makepanda/myconfig.in")):
  1663. configprc=ReadFile("makepanda/myconfig.in")
  1664. else:
  1665. configprc=ReadFile("makepanda/config.in")
  1666. if (sys.platform != "win32"):
  1667. confautoprc = confautoprc.replace("aux-display pandadx9","")
  1668. confautoprc = confautoprc.replace("aux-display pandadx8","")
  1669. confautoprc = confautoprc.replace("aux-display pandadx7","")
  1670. ConditionalWriteFile("built/etc/Config.prc", configprc)
  1671. ConditionalWriteFile("built/etc/Confauto.prc", confautoprc)
  1672. ##########################################################################################
  1673. #
  1674. # Copy the precompiled binaries and DLLs into the build.
  1675. #
  1676. ##########################################################################################
  1677. for pkg in (PACKAGES + ["extras"]):
  1678. if (OMIT.count(pkg)==0):
  1679. if (COMPILER == "MSVC"):
  1680. if (os.path.exists(THIRDPARTYLIBS+pkg.lower()+"/bin")):
  1681. CopyAllFiles("built/bin/",THIRDPARTYLIBS+pkg.lower()+"/bin/")
  1682. if (COMPILER == "LINUX"):
  1683. if (os.path.exists(THIRDPARTYLIBS+pkg.lower()+"/lib")):
  1684. CopyAllFiles("built/lib/",THIRDPARTYLIBS+pkg.lower()+"/lib/")
  1685. if (sys.platform == "win32"):
  1686. if (OMIT.count("PYTHON")==0):
  1687. CopyFile('built/bin/python24.dll', 'thirdparty/win-python/python24.dll')
  1688. CopyTree('built/python', 'thirdparty/win-python')
  1689. ConditionalWriteFile('built/python/panda.pth',"..\n../bin\n")
  1690. ########################################################################
  1691. ##
  1692. ## Copy various stuff into the build.
  1693. ##
  1694. ########################################################################
  1695. CopyFile("built/", "doc/LICENSE")
  1696. CopyFile("built/", "doc/ReleaseNotes")
  1697. CopyAllFiles("built/plugins/", "pandatool/src/scripts/", ".mel")
  1698. CopyAllFiles("built/plugins/", "pandatool/src/scripts/", ".ms")
  1699. if (OMIT.count("PYTHON")==0):
  1700. CopyTree('built/Pmw', 'thirdparty/Pmw')
  1701. CopyTree('built/SceneEditor', 'SceneEditor')
  1702. ConditionalWriteFile('built/include/ctl3d.h', '/* dummy file to make MAX happy */')
  1703. ########################################################################
  1704. #
  1705. # Copy header files to the built/include/parser-inc directory.
  1706. #
  1707. ########################################################################
  1708. CopyAllFiles('built/include/parser-inc/','dtool/src/parser-inc/')
  1709. CopyAllFiles('built/include/parser-inc/openssl/','dtool/src/parser-inc/')
  1710. CopyAllFiles('built/include/parser-inc/netinet/','dtool/src/parser-inc/')
  1711. CopyFile('built/include/parser-inc/Cg/','dtool/src/parser-inc/cg.h')
  1712. CopyFile('built/include/parser-inc/Cg/','dtool/src/parser-inc/cgGL.h')
  1713. ########################################################################
  1714. #
  1715. # Transfer all header files to the built/include directory.
  1716. #
  1717. ########################################################################
  1718. CopyAllHeaders('dtool/src/dtoolbase')
  1719. CopyAllHeaders('dtool/src/dtoolutil', skip=["pandaVersion.h", "checkPandaVersion.h"])
  1720. CopyAllHeaders('dtool/metalibs/dtool')
  1721. CopyAllHeaders('dtool/src/cppparser')
  1722. CopyAllHeaders('dtool/src/prc')
  1723. CopyAllHeaders('dtool/src/dconfig')
  1724. CopyAllHeaders('dtool/src/interrogatedb')
  1725. CopyAllHeaders('dtool/metalibs/dtoolconfig')
  1726. CopyAllHeaders('dtool/src/pystub')
  1727. CopyAllHeaders('dtool/src/interrogate')
  1728. CopyAllHeaders('dtool/src/test_interrogate')
  1729. CopyAllHeaders('panda/src/putil')
  1730. CopyAllHeaders('panda/src/pandabase')
  1731. CopyAllHeaders('panda/src/express')
  1732. CopyAllHeaders('panda/src/downloader')
  1733. CopyAllHeaders('panda/metalibs/pandaexpress')
  1734. CopyAllHeaders('panda/src/pipeline')
  1735. CopyAllHeaders('panda/src/putil')
  1736. CopyAllHeaders('dtool/src/prckeys')
  1737. CopyAllHeaders('panda/src/audio')
  1738. CopyAllHeaders('panda/src/event')
  1739. CopyAllHeaders('panda/src/linmath')
  1740. CopyAllHeaders('panda/src/mathutil')
  1741. CopyAllHeaders('panda/src/gsgbase')
  1742. CopyAllHeaders('panda/src/pnmimage')
  1743. CopyAllHeaders('panda/src/nativenet')
  1744. CopyAllHeaders('panda/src/net')
  1745. CopyAllHeaders('panda/src/pstatclient')
  1746. CopyAllHeaders('panda/src/gobj')
  1747. CopyAllHeaders('panda/src/lerp')
  1748. CopyAllHeaders('panda/src/pgraph')
  1749. CopyAllHeaders('panda/src/cull')
  1750. CopyAllHeaders('panda/src/effects')
  1751. CopyAllHeaders('panda/src/chan')
  1752. CopyAllHeaders('panda/src/char')
  1753. CopyAllHeaders('panda/src/dgraph')
  1754. CopyAllHeaders('panda/src/display')
  1755. CopyAllHeaders('panda/src/device')
  1756. CopyAllHeaders('panda/src/pnmtext')
  1757. CopyAllHeaders('panda/src/text')
  1758. CopyAllHeaders('panda/src/grutil')
  1759. CopyAllHeaders('panda/src/tform')
  1760. CopyAllHeaders('panda/src/collide')
  1761. CopyAllHeaders('panda/src/parametrics')
  1762. CopyAllHeaders('panda/src/pgui')
  1763. CopyAllHeaders('panda/src/pnmimagetypes')
  1764. CopyAllHeaders('panda/src/recorder')
  1765. CopyAllHeaders('panda/src/vrpn')
  1766. CopyAllHeaders('panda/src/helix')
  1767. CopyAllHeaders('panda/src/glgsg')
  1768. CopyAllHeaders('panda/src/wgldisplay')
  1769. CopyAllHeaders('panda/src/physics')
  1770. CopyAllHeaders('panda/src/particlesystem')
  1771. CopyAllHeaders('panda/metalibs/panda')
  1772. CopyAllHeaders('panda/src/audiotraits')
  1773. CopyAllHeaders('panda/src/audiotraits')
  1774. CopyAllHeaders('panda/src/distort')
  1775. CopyAllHeaders('panda/src/downloadertools')
  1776. CopyAllHeaders('panda/src/windisplay')
  1777. # CopyAllHeaders('panda/src/dxgsg7')
  1778. # CopyAllHeaders('panda/metalibs/pandadx7')
  1779. CopyAllHeaders('panda/src/dxgsg8')
  1780. CopyAllHeaders('panda/metalibs/pandadx8')
  1781. CopyAllHeaders('panda/src/dxgsg9')
  1782. CopyAllHeaders('panda/metalibs/pandadx9')
  1783. CopyAllHeaders('panda/src/egg')
  1784. CopyAllHeaders('panda/src/egg2pg')
  1785. CopyAllHeaders('panda/src/framework')
  1786. CopyAllHeaders('panda/metalibs/pandafx')
  1787. CopyAllHeaders('panda/src/glstuff')
  1788. CopyAllHeaders('panda/src/glgsg')
  1789. CopyAllHeaders('panda/metalibs/pandaegg')
  1790. if (sys.platform != "win32"):
  1791. CopyAllHeaders('panda/src/glxdisplay')
  1792. else:
  1793. CopyAllHeaders('panda/src/wgldisplay')
  1794. CopyAllHeaders('panda/metalibs/pandagl')
  1795. CopyAllHeaders('panda/src/physics')
  1796. CopyAllHeaders('panda/src/particlesystem')
  1797. CopyAllHeaders('panda/metalibs/pandaphysics')
  1798. CopyAllHeaders('panda/src/testbed')
  1799. CopyAllHeaders('direct/src/directbase')
  1800. CopyAllHeaders('direct/src/dcparser')
  1801. CopyAllHeaders('direct/src/deadrec')
  1802. CopyAllHeaders('direct/src/distributed')
  1803. CopyAllHeaders('direct/src/interval')
  1804. CopyAllHeaders('direct/src/showbase')
  1805. CopyAllHeaders('direct/metalibs/direct')
  1806. CopyAllHeaders('direct/src/dcparse')
  1807. CopyAllHeaders('direct/src/heapq')
  1808. CopyAllHeaders('pandatool/src/pandatoolbase')
  1809. CopyAllHeaders('pandatool/src/converter')
  1810. CopyAllHeaders('pandatool/src/progbase')
  1811. CopyAllHeaders('pandatool/src/eggbase')
  1812. CopyAllHeaders('pandatool/src/bam')
  1813. CopyAllHeaders('pandatool/src/cvscopy')
  1814. CopyAllHeaders('pandatool/src/dxf')
  1815. CopyAllHeaders('pandatool/src/dxfegg')
  1816. CopyAllHeaders('pandatool/src/dxfprogs')
  1817. CopyAllHeaders('pandatool/src/palettizer')
  1818. CopyAllHeaders('pandatool/src/egg-mkfont')
  1819. CopyAllHeaders('pandatool/src/eggcharbase')
  1820. CopyAllHeaders('pandatool/src/egg-optchar')
  1821. CopyAllHeaders('pandatool/src/egg-palettize')
  1822. CopyAllHeaders('pandatool/src/egg-qtess')
  1823. CopyAllHeaders('pandatool/src/eggprogs')
  1824. CopyAllHeaders('pandatool/src/flt')
  1825. CopyAllHeaders('pandatool/src/fltegg')
  1826. CopyAllHeaders('pandatool/src/fltprogs')
  1827. CopyAllHeaders('pandatool/src/imagebase')
  1828. CopyAllHeaders('pandatool/src/imageprogs')
  1829. CopyAllHeaders('pandatool/src/lwo')
  1830. CopyAllHeaders('pandatool/src/lwoegg')
  1831. CopyAllHeaders('pandatool/src/lwoprogs')
  1832. CopyAllHeaders('pandatool/src/maya')
  1833. CopyAllHeaders('pandatool/src/mayaegg')
  1834. CopyAllHeaders('pandatool/src/maxegg')
  1835. CopyAllHeaders('pandatool/src/maxprogs')
  1836. CopyAllHeaders('pandatool/src/vrml')
  1837. CopyAllHeaders('pandatool/src/vrmlegg')
  1838. CopyAllHeaders('pandatool/src/xfile')
  1839. CopyAllHeaders('pandatool/src/xfileegg')
  1840. CopyAllHeaders('pandatool/src/ptloader')
  1841. CopyAllHeaders('pandatool/src/miscprogs')
  1842. CopyAllHeaders('pandatool/src/pstatserver')
  1843. CopyAllHeaders('pandatool/src/softprogs')
  1844. CopyAllHeaders('pandatool/src/text-stats')
  1845. CopyAllHeaders('pandatool/src/vrmlprogs')
  1846. CopyAllHeaders('pandatool/src/win-stats')
  1847. CopyAllHeaders('pandatool/src/xfileprogs')
  1848. ########################################################################
  1849. #
  1850. # This section contains a list of all the files that need to be compiled.
  1851. #
  1852. ########################################################################
  1853. print "Generating dependencies..."
  1854. sys.stdout.flush()
  1855. #
  1856. # DIRECTORY: dtool/src/dtoolbase/
  1857. #
  1858. IPATH=['dtool/src/dtoolbase']
  1859. OPTS=['BUILDING_DTOOL', 'OPT3']
  1860. EnqueueCxx(ipath=IPATH, opts=OPTS, src='dtoolbase_composite1.cxx', obj='dtoolbase_composite1.obj')
  1861. EnqueueCxx(ipath=IPATH, opts=OPTS, src='dtoolbase_composite2.cxx', obj='dtoolbase_composite2.obj')
  1862. EnqueueCxx(ipath=IPATH, opts=OPTS, src='lookup3.c', obj='dtoolbase_lookup3.obj')
  1863. EnqueueCxx(ipath=IPATH, opts=OPTS, src='indent.cxx', obj='dtoolbase_indent.obj')
  1864. if (sys.platform == "win32"):
  1865. EnqueueCxx(ipath=IPATH, opts=OPTS, src='dlmalloc.c', obj='dtoolbase_allocator.obj')
  1866. else:
  1867. EnqueueCxx(ipath=IPATH, opts=OPTS, src='null.cxx', obj='dtoolbase_allocator.obj')
  1868. #
  1869. # DIRECTORY: dtool/src/dtoolutil/
  1870. #
  1871. IPATH=['dtool/src/dtoolutil']
  1872. OPTS=['BUILDING_DTOOL', 'OPT3']
  1873. CopyFile('built/include/','dtool/src/dtoolutil/vector_src.cxx')
  1874. EnqueueCxx(ipath=IPATH, opts=OPTS, src='gnu_getopt.c', obj='dtoolutil_gnu_getopt.obj')
  1875. EnqueueCxx(ipath=IPATH, opts=OPTS, src='gnu_getopt1.c', obj='dtoolutil_gnu_getopt1.obj')
  1876. EnqueueCxx(ipath=IPATH, opts=OPTS, src='dtoolutil_composite.cxx', obj='dtoolutil_composite.obj')
  1877. #
  1878. # DIRECTORY: dtool/metalibs/dtool/
  1879. #
  1880. IPATH=['dtool/metalibs/dtool']
  1881. OPTS=['BUILDING_DTOOL', 'OPT3']
  1882. EnqueueCxx(ipath=IPATH, opts=OPTS, src='dtool.cxx', obj='dtool_dtool.obj')
  1883. EnqueueLink(opts=['ADVAPI', 'OPT3'], dll='libp3dtool.dll', obj=[
  1884. 'dtool_dtool.obj',
  1885. 'dtoolutil_gnu_getopt.obj',
  1886. 'dtoolutil_gnu_getopt1.obj',
  1887. 'dtoolutil_composite.obj',
  1888. 'dtoolbase_allocator.obj',
  1889. 'dtoolbase_composite1.obj',
  1890. 'dtoolbase_composite2.obj',
  1891. 'dtoolbase_indent.obj',
  1892. 'dtoolbase_lookup3.obj'
  1893. ])
  1894. #
  1895. # DIRECTORY: dtool/src/cppparser/
  1896. #
  1897. IPATH=['dtool/src/cppparser']
  1898. OPTS=['OPT3']
  1899. CreateStubHeader("built/include/cppBison.h")
  1900. EnqueueBison(ipath=IPATH, opts=OPTS, pre='cppyy', src='cppBison.yxx', dsth='cppBison.h', obj='cppParser_cppBison.obj')
  1901. EnqueueCxx(ipath=IPATH, opts=OPTS, src='cppParser_composite.cxx', obj='cppParser_composite.obj')
  1902. EnqueueLib(lib='libcppParser.ilb', obj=[
  1903. 'cppParser_composite.obj',
  1904. 'cppParser_cppBison.obj',
  1905. ])
  1906. #
  1907. # DIRECTORY: dtool/src/prc/
  1908. #
  1909. IPATH=['dtool/src/prc']
  1910. OPTS=['BUILDING_DTOOLCONFIG', 'OPENSSL', 'OPT3']
  1911. EnqueueCxx(ipath=IPATH, opts=OPTS, src='prc_composite.cxx', obj='prc_composite.obj')
  1912. #
  1913. # DIRECTORY: dtool/src/dconfig/
  1914. #
  1915. IPATH=['dtool/src/dconfig']
  1916. OPTS=['BUILDING_DTOOLCONFIG', 'OPT3']
  1917. EnqueueCxx(ipath=IPATH, opts=OPTS, src='dconfig_composite.cxx', obj='dconfig_composite.obj')
  1918. #
  1919. # DIRECTORY: dtool/src/interrogatedb/
  1920. #
  1921. IPATH=['dtool/src/interrogatedb']
  1922. OPTS=['BUILDING_DTOOLCONFIG', 'OPT3']
  1923. EnqueueCxx(ipath=IPATH, opts=OPTS, src='interrogatedb_composite.cxx', obj='interrogatedb_composite.obj')
  1924. #
  1925. # DIRECTORY: dtool/metalibs/dtoolconfig/
  1926. #
  1927. IPATH=['dtool/metalibs/dtoolconfig']
  1928. OPTS=['BUILDING_DTOOLCONFIG', 'OPT3']
  1929. SRCFILE="pydtool.cxx"
  1930. if (OMIT.count("PYTHON")): SRCFILE="null.cxx"
  1931. EnqueueCxx(ipath=IPATH, opts=OPTS, src='dtoolconfig.cxx', obj='dtoolconfig_dtoolconfig.obj')
  1932. EnqueueCxx(ipath=IPATH, opts=OPTS, src=SRCFILE, obj='dtoolconfig_pydtool.obj', xdep=["dtool_have_python.dat"])
  1933. EnqueueLink(opts=['ADVAPI', 'OPENSSL', 'OPT3'], dll='libp3dtoolconfig.dll', obj=[
  1934. 'dtoolconfig_dtoolconfig.obj',
  1935. 'dtoolconfig_pydtool.obj',
  1936. 'interrogatedb_composite.obj',
  1937. 'dconfig_composite.obj',
  1938. 'prc_composite.obj',
  1939. 'libp3dtool.dll',
  1940. ])
  1941. #
  1942. # DIRECTORY: dtool/src/pystub/
  1943. #
  1944. IPATH=['dtool/src/pystub']
  1945. OPTS=['BUILDING_DTOOLCONFIG', 'OPT3']
  1946. EnqueueCxx(ipath=IPATH, opts=OPTS, src='pystub.cxx', obj='pystub_pystub.obj')
  1947. EnqueueLink(opts=['ADVAPI', 'OPT3'], dll='libp3pystub.dll', obj=[
  1948. 'pystub_pystub.obj',
  1949. 'libp3dtool.dll',
  1950. ])
  1951. #
  1952. # DIRECTORY: dtool/src/interrogate/
  1953. #
  1954. IPATH=['dtool/src/interrogate', 'dtool/src/cppparser', 'dtool/src/interrogatedb']
  1955. OPTS=[ 'OPT3']
  1956. EnqueueCxx(ipath=IPATH, opts=OPTS, src='interrogate_composite.cxx', obj='interrogate_composite.obj')
  1957. EnqueueLink(opts=['ADVAPI', 'OPENSSL', 'OPT3'], dll='interrogate.exe', obj=[
  1958. 'interrogate_composite.obj',
  1959. 'libcppParser.ilb',
  1960. 'libp3pystub.dll',
  1961. 'libp3dtoolconfig.dll',
  1962. 'libp3dtool.dll',
  1963. ])
  1964. EnqueueCxx(ipath=IPATH, opts=OPTS, src='interrogate_module.cxx', obj='interrogate_module_interrogate_module.obj')
  1965. EnqueueLink(opts=['ADVAPI', 'OPENSSL', 'OPT3'], dll='interrogate_module.exe', obj=[
  1966. 'interrogate_module_interrogate_module.obj',
  1967. 'libcppParser.ilb',
  1968. 'libp3pystub.dll',
  1969. 'libp3dtoolconfig.dll',
  1970. 'libp3dtool.dll',
  1971. ])
  1972. EnqueueCxx(ipath=IPATH, opts=OPTS, src='parse_file.cxx', obj='parse_file_parse_file.obj')
  1973. EnqueueLink(opts=['ADVAPI', 'OPENSSL', 'OPT3'], dll='parse_file.exe', obj=[
  1974. 'parse_file_parse_file.obj',
  1975. 'libcppParser.ilb',
  1976. 'libp3pystub.dll',
  1977. 'libp3dtoolconfig.dll',
  1978. 'libp3dtool.dll',
  1979. ])
  1980. #
  1981. # DIRECTORY: dtool/src/prckeys/
  1982. #
  1983. if (OMIT.count("OPENSSL")==0):
  1984. IPATH=['dtool/src/prckeys']
  1985. OPTS=['OPENSSL']
  1986. EnqueueCxx(ipath=IPATH, opts=OPTS, src='makePrcKey.cxx', obj='make-prc-key_makePrcKey.obj')
  1987. EnqueueLink(opts=['ADVAPI', 'OPENSSL'], dll='make-prc-key.exe', obj=[
  1988. 'make-prc-key_makePrcKey.obj',
  1989. 'libp3pystub.dll',
  1990. 'libp3dtool.dll',
  1991. 'libp3dtoolconfig.dll',
  1992. ])
  1993. #
  1994. # DIRECTORY: dtool/src/test_interrogate/
  1995. #
  1996. IPATH=['dtool/src/test_interrogate']
  1997. OPTS=[]
  1998. EnqueueCxx(ipath=IPATH, opts=OPTS, src='test_interrogate.cxx', obj='test_interrogate_test_interrogate.obj')
  1999. EnqueueLink(opts=['ADVAPI', 'OPENSSL'], dll='test_interrogate.exe', obj=[
  2000. 'test_interrogate_test_interrogate.obj',
  2001. 'libp3pystub.dll',
  2002. 'libp3dtoolconfig.dll',
  2003. 'libp3dtool.dll',
  2004. ])
  2005. #
  2006. # DIRECTORY: panda/src/pandabase/
  2007. #
  2008. IPATH=['panda/src/pandabase']
  2009. OPTS=['BUILDING_PANDAEXPRESS']
  2010. EnqueueCxx(ipath=IPATH, opts=OPTS, src='pandabase.cxx', obj='pandabase_pandabase.obj')
  2011. #
  2012. # DIRECTORY: panda/src/express/
  2013. #
  2014. IPATH=['panda/src/express']
  2015. OPTS=['BUILDING_PANDAEXPRESS', 'OPENSSL', 'ZLIB']
  2016. EnqueueCxx(ipath=IPATH, opts=OPTS, src='express_composite1.cxx', obj='express_composite1.obj')
  2017. EnqueueCxx(ipath=IPATH, opts=OPTS, src='express_composite2.cxx', obj='express_composite2.obj')
  2018. EnqueueIgate(ipath=IPATH, opts=OPTS, outd='libexpress.in', obj='libexpress_igate.obj',
  2019. src='panda/src/express', module='pandaexpress', library='libexpress',
  2020. skip=[], also=["express_composite.cxx"])
  2021. #
  2022. # DIRECTORY: panda/src/downloader/
  2023. #
  2024. IPATH=['panda/src/downloader']
  2025. OPTS=['BUILDING_PANDAEXPRESS', 'OPENSSL', 'ZLIB']
  2026. EnqueueCxx(ipath=IPATH, opts=OPTS, src='downloader_composite.cxx', obj='downloader_composite.obj')
  2027. EnqueueIgate(ipath=IPATH, opts=OPTS, outd='libdownloader.in', obj='libdownloader_igate.obj',
  2028. src='panda/src/downloader', module='pandaexpress', library='libdownloader',
  2029. skip=[], also=["downloader_composite.cxx"])
  2030. #
  2031. # DIRECTORY: panda/metalibs/pandaexpress/
  2032. #
  2033. IPATH=['panda/metalibs/pandaexpress']
  2034. OPTS=['BUILDING_PANDAEXPRESS', 'ZLIB']
  2035. EnqueueCxx(ipath=IPATH, opts=OPTS, src='pandaexpress.cxx', obj='pandaexpress_pandaexpress.obj')
  2036. EnqueueImod(ipath=IPATH, opts=OPTS, obj='libpandaexpress_module.obj',
  2037. module='pandaexpress', library='libpandaexpress',
  2038. files=['libdownloader.in', 'libexpress.in'])
  2039. EnqueueLink(opts=['ADVAPI', 'WINSOCK2', 'OPENSSL', 'ZLIB'], dll='libpandaexpress.dll', obj=[
  2040. 'pandaexpress_pandaexpress.obj',
  2041. 'libpandaexpress_module.obj',
  2042. 'downloader_composite.obj',
  2043. 'libdownloader_igate.obj',
  2044. 'express_composite1.obj',
  2045. 'express_composite2.obj',
  2046. 'libexpress_igate.obj',
  2047. 'pandabase_pandabase.obj',
  2048. 'libp3dtoolconfig.dll',
  2049. 'libp3dtool.dll',
  2050. ])
  2051. #
  2052. # DIRECTORY: panda/src/pipeline/
  2053. #
  2054. IPATH=['panda/src/pipeline']
  2055. OPTS=['BUILDING_PANDA']
  2056. EnqueueCxx(ipath=IPATH, opts=OPTS, src='pipeline_composite.cxx', obj='pipeline_composite.obj')
  2057. EnqueueIgate(ipath=IPATH, opts=OPTS, outd='libpipeline.in', obj='libpipeline_igate.obj',
  2058. src='panda/src/pipeline', module='panda', library='libpipeline',
  2059. skip=[], also=["pipeline_composite.cxx"])
  2060. #
  2061. # DIRECTORY: panda/src/putil/
  2062. #
  2063. IPATH=['panda/src/putil']
  2064. OPTS=['BUILDING_PANDA', 'ZLIB']
  2065. EnqueueCxx(ipath=IPATH, opts=OPTS, src='putil_composite1.cxx', obj='putil_composite1.obj')
  2066. EnqueueCxx(ipath=IPATH, opts=OPTS, src='putil_composite2.cxx', obj='putil_composite2.obj')
  2067. EnqueueIgate(ipath=IPATH, opts=OPTS, outd='libputil.in', obj='libputil_igate.obj',
  2068. src='panda/src/putil', module='panda', library='libputil',
  2069. skip=["test_bam.h"], also=["putil_composite.cxx"])
  2070. #
  2071. # DIRECTORY: panda/src/audio/
  2072. #
  2073. IPATH=['panda/src/audio']
  2074. OPTS=['BUILDING_PANDA']
  2075. EnqueueCxx(ipath=IPATH, opts=OPTS, src='audio_composite.cxx', obj='audio_composite.obj')
  2076. EnqueueIgate(ipath=IPATH, opts=OPTS, outd='libaudio.in', obj='libaudio_igate.obj',
  2077. src='panda/src/audio', module='panda', library='libaudio',
  2078. skip="ALL", also=["audio.h"])
  2079. #
  2080. # DIRECTORY: panda/src/event/
  2081. #
  2082. IPATH=['panda/src/event']
  2083. OPTS=['BUILDING_PANDA']
  2084. EnqueueCxx(ipath=IPATH, opts=OPTS, src='event_composite.cxx', obj='event_composite.obj')
  2085. EnqueueIgate(ipath=IPATH, opts=OPTS, outd='libevent.in', obj='libevent_igate.obj',
  2086. src='panda/src/event', module='panda', library='libevent',
  2087. skip=[], also=["event_composite.cxx"])
  2088. #
  2089. # DIRECTORY: panda/src/linmath/
  2090. #
  2091. IPATH=['panda/src/linmath']
  2092. OPTS=['BUILDING_PANDA']
  2093. EnqueueCxx(ipath=IPATH, opts=OPTS, src='linmath_composite.cxx', obj='linmath_composite.obj')
  2094. EnqueueIgate(ipath=IPATH, opts=OPTS, outd='liblinmath.in', obj='liblinmath_igate.obj',
  2095. src='panda/src/linmath', module='panda', library='liblinmath',
  2096. skip=['lmat_ops_src.h', 'cast_to_double.h', 'lmat_ops.h', 'cast_to_float.h'],
  2097. also=["linmath_composite.cxx"])
  2098. #
  2099. # DIRECTORY: panda/src/mathutil/
  2100. #
  2101. IPATH=['panda/src/mathutil']
  2102. OPTS=['BUILDING_PANDA', 'FFTW']
  2103. EnqueueCxx(ipath=IPATH, opts=OPTS, src='mathutil_composite.cxx', obj='mathutil_composite.obj')
  2104. EnqueueIgate(ipath=IPATH, opts=OPTS, outd='libmathutil.in', obj='libmathutil_igate.obj',
  2105. src='panda/src/mathutil', module='panda', library='libmathutil',
  2106. skip=['mathHelpers.h'], also=["mathutil_composite.cxx"])
  2107. #
  2108. # DIRECTORY: panda/src/gsgbase/
  2109. #
  2110. IPATH=['panda/src/gsgbase']
  2111. OPTS=['BUILDING_PANDA']
  2112. EnqueueCxx(ipath=IPATH, opts=OPTS, src='gsgbase_composite.cxx', obj='gsgbase_composite.obj')
  2113. EnqueueIgate(ipath=IPATH, opts=OPTS, outd='libgsgbase.in', obj='libgsgbase_igate.obj',
  2114. src='panda/src/gsgbase', module='panda', library='libgsgbase',
  2115. skip=[], also=["gsgbase_composite.cxx"])
  2116. #
  2117. # DIRECTORY: panda/src/pnmimage/
  2118. #
  2119. IPATH=['panda/src/pnmimage']
  2120. OPTS=['BUILDING_PANDA', 'ZLIB']
  2121. EnqueueCxx(ipath=IPATH, opts=OPTS, src='pnmimage_composite.cxx', obj='pnmimage_composite.obj')
  2122. EnqueueIgate(ipath=IPATH, opts=OPTS, outd='libpnmimage.in', obj='libpnmimage_igate.obj',
  2123. src='panda/src/pnmimage', module='panda', library='libpnmimage',
  2124. skip=[], also=["pnmimage_composite.cxx"])
  2125. #
  2126. # DIRECTORY: panda/src/nativenet/
  2127. #
  2128. IPATH=['panda/src/nativenet']
  2129. OPTS=['OPENSSL', 'BUILDING_PANDA']
  2130. EnqueueCxx(ipath=IPATH, opts=OPTS, src='nativenet_composite1.cxx', obj='nativenet_composite.obj')
  2131. EnqueueIgate(ipath=IPATH, opts=OPTS, outd='libnativenet.in', obj='libnativenet_igate.obj',
  2132. src='panda/src/nativenet', module='panda', library='libnativenet',
  2133. skip=[], also=["nativenet_composite1.cxx"])
  2134. #
  2135. # DIRECTORY: panda/src/net/
  2136. #
  2137. IPATH=['panda/src/net']
  2138. OPTS=['BUILDING_PANDA']
  2139. EnqueueCxx(ipath=IPATH, opts=OPTS, src='net_composite.cxx', obj='net_composite.obj')
  2140. EnqueueIgate(ipath=IPATH, opts=OPTS, outd='libnet.in', obj='libnet_igate.obj',
  2141. src='panda/src/net', module='panda', library='libnet',
  2142. skip=["datagram_ui.h"], also=["net_composite.cxx"])
  2143. #
  2144. # DIRECTORY: panda/src/pstatclient/
  2145. #
  2146. IPATH=['panda/src/pstatclient']
  2147. OPTS=['BUILDING_PANDA']
  2148. EnqueueCxx(ipath=IPATH, opts=OPTS, src='pstatclient_composite.cxx', obj='pstatclient_composite.obj')
  2149. EnqueueIgate(ipath=IPATH, opts=OPTS, outd='libpstatclient.in', obj='libpstatclient_igate.obj',
  2150. src='panda/src/pstatclient', module='panda', library='libpstatclient',
  2151. skip=[], also=["pstatclient_composite.cxx"])
  2152. #
  2153. # DIRECTORY: panda/src/gobj/
  2154. #
  2155. IPATH=['panda/src/gobj']
  2156. OPTS=['BUILDING_PANDA', 'NVIDIACG', 'ZLIB']
  2157. EnqueueCxx(ipath=IPATH, opts=OPTS, src='gobj_composite1.cxx', obj='gobj_composite1.obj')
  2158. EnqueueCxx(ipath=IPATH, opts=OPTS, src='gobj_composite2.cxx', obj='gobj_composite2.obj')
  2159. EnqueueIgate(ipath=IPATH, opts=OPTS, outd='libgobj.in', obj='libgobj_igate.obj',
  2160. src='panda/src/gobj', module='panda', library='libgobj',
  2161. skip=[], also=["gobj_composite.cxx"])
  2162. #
  2163. # DIRECTORY: panda/src/lerp/
  2164. #
  2165. IPATH=['panda/src/lerp']
  2166. OPTS=['BUILDING_PANDA']
  2167. EnqueueCxx(ipath=IPATH, opts=OPTS, src='lerp_composite.cxx', obj='lerp_composite.obj')
  2168. EnqueueIgate(ipath=IPATH, opts=OPTS, outd='liblerp.in', obj='liblerp_igate.obj',
  2169. src='panda/src/lerp', module='panda', library='liblerp',
  2170. skip=["lerp_headers.h","lerpchans.h"], also=["lerp_composite.cxx"])
  2171. #
  2172. # DIRECTORY: panda/src/pgraph/
  2173. #
  2174. IPATH=['panda/src/pgraph']
  2175. OPTS=['BUILDING_PANDA']
  2176. EnqueueCxx(ipath=IPATH, opts=OPTS, src='nodePath.cxx', obj='pgraph_nodePath.obj')
  2177. EnqueueCxx(ipath=IPATH, opts=OPTS, src='pgraph_composite1.cxx', obj='pgraph_composite1.obj')
  2178. EnqueueCxx(ipath=IPATH, opts=OPTS, src='pgraph_composite2.cxx', obj='pgraph_composite2.obj')
  2179. EnqueueCxx(ipath=IPATH, opts=OPTS, src='pgraph_composite3.cxx', obj='pgraph_composite3.obj')
  2180. EnqueueCxx(ipath=IPATH, opts=OPTS, src='pgraph_composite4.cxx', obj='pgraph_composite4.obj')
  2181. EnqueueIgate(ipath=IPATH, opts=OPTS, outd='libpgraph.in', obj='libpgraph_igate.obj',
  2182. src='panda/src/pgraph', module='panda', library='libpgraph',
  2183. skip=["antialiasAttrib.h"],
  2184. also=["nodePath.cxx", "pgraph_composite.cxx"])
  2185. #
  2186. # DIRECTORY: panda/src/cull/
  2187. #
  2188. IPATH=['panda/src/cull']
  2189. OPTS=['BUILDING_PANDA']
  2190. EnqueueCxx(ipath=IPATH, opts=OPTS, src='cull_composite.cxx', obj='cull_composite.obj')
  2191. EnqueueIgate(ipath=IPATH, opts=OPTS, outd='libcull.in', obj='libcull_igate.obj',
  2192. src='panda/src/cull', module='panda', library='libcull',
  2193. skip=[], also=["cull_composite.cxx"])
  2194. #
  2195. # DIRECTORY: panda/src/effects/
  2196. #
  2197. IPATH=['panda/src/effects']
  2198. OPTS=['BUILDING_PANDAFX', 'NVIDIACG']
  2199. EnqueueCxx(ipath=IPATH, opts=OPTS, src='effects_composite.cxx', obj='effects_composite.obj')
  2200. EnqueueIgate(ipath=IPATH, opts=OPTS, outd='libeffects.in', obj='libeffects_igate.obj',
  2201. src='panda/src/effects', module='pandafx', library='libeffects',
  2202. skip=["cgShader.h", "cgShaderAttrib.h", "cgShaderContext.h"],
  2203. also=["effects_composite.cxx"])
  2204. #
  2205. # DIRECTORY: panda/src/chan/
  2206. #
  2207. IPATH=['panda/src/chan']
  2208. OPTS=['BUILDING_PANDA']
  2209. EnqueueCxx(ipath=IPATH, opts=OPTS, src='chan_composite.cxx', obj='chan_composite.obj')
  2210. EnqueueIgate(ipath=IPATH, opts=OPTS, outd='libchan.in', obj='libchan_igate.obj',
  2211. src='panda/src/chan', module='panda', library='libchan',
  2212. skip=['movingPart.h', 'chan_headers.h', 'animChannelFixed.h'],
  2213. also=["chan_composite.cxx"])
  2214. #
  2215. # DIRECTORY: panda/src/char/
  2216. #
  2217. IPATH=['panda/src/char']
  2218. OPTS=['BUILDING_PANDA']
  2219. EnqueueCxx(ipath=IPATH, opts=OPTS, src='char_composite.cxx', obj='char_composite.obj')
  2220. EnqueueIgate(ipath=IPATH, opts=OPTS, outd='libchar.in', obj='libchar_igate.obj',
  2221. src='panda/src/char', module='panda', library='libchar',
  2222. skip=[], also=["char_composite.cxx"])
  2223. #
  2224. # DIRECTORY: panda/src/dgraph/
  2225. #
  2226. IPATH=['panda/src/dgraph']
  2227. OPTS=['BUILDING_PANDA']
  2228. EnqueueCxx(ipath=IPATH, opts=OPTS, src='dgraph_composite.cxx', obj='dgraph_composite.obj')
  2229. EnqueueIgate(ipath=IPATH, opts=OPTS, outd='libdgraph.in', obj='libdgraph_igate.obj',
  2230. src='panda/src/dgraph', module='panda', library='libdgraph',
  2231. skip=[], also=["dgraph_composite.cxx"])
  2232. #
  2233. # DIRECTORY: panda/src/display/
  2234. #
  2235. IPATH=['panda/src/display']
  2236. OPTS=['BUILDING_PANDA']
  2237. EnqueueCxx(ipath=IPATH, opts=OPTS, src='display_composite.cxx', obj='display_composite.obj')
  2238. EnqueueIgate(ipath=IPATH, opts=OPTS, outd='libdisplay.in', obj='libdisplay_igate.obj',
  2239. src='panda/src/display', module='panda', library='libdisplay',
  2240. skip=['renderBuffer.h'], also=["display_composite.cxx"])
  2241. #
  2242. # DIRECTORY: panda/src/device/
  2243. #
  2244. IPATH=['panda/src/device']
  2245. OPTS=['BUILDING_PANDA']
  2246. EnqueueCxx(ipath=IPATH, opts=OPTS, src='device_composite.cxx', obj='device_composite.obj')
  2247. EnqueueIgate(ipath=IPATH, opts=OPTS, outd='libdevice.in', obj='libdevice_igate.obj',
  2248. src='panda/src/device', module='panda', library='libdevice',
  2249. skip=[], also=["device_composite.cxx"])
  2250. #
  2251. # DIRECTORY: panda/src/pnmtext/
  2252. #
  2253. if (OMIT.count("FREETYPE")==0):
  2254. IPATH=['panda/src/pnmtext']
  2255. OPTS=['BUILDING_PANDA', 'FREETYPE']
  2256. EnqueueCxx(ipath=IPATH, opts=OPTS, src='pnmtext_composite.cxx', obj='pnmtext_composite.obj')
  2257. EnqueueIgate(ipath=IPATH, opts=OPTS, outd='libpnmtext.in', obj='libpnmtext_igate.obj',
  2258. src='panda/src/pnmtext', module='panda', library='libpnmtext',
  2259. skip=[], also=["pnmtext_composite.cxx"])
  2260. #
  2261. # DIRECTORY: panda/src/text/
  2262. #
  2263. IPATH=['panda/src/text']
  2264. OPTS=['BUILDING_PANDA', 'ZLIB', 'FREETYPE']
  2265. EnqueueCxx(ipath=IPATH, opts=OPTS, src='text_composite.cxx', obj='text_composite.obj')
  2266. EnqueueIgate(ipath=IPATH, opts=OPTS, outd='libtext.in', obj='libtext_igate.obj',
  2267. src='panda/src/text', module='panda', library='libtext',
  2268. skip=[], also=["text_composite.cxx"])
  2269. #
  2270. # DIRECTORY: panda/src/grutil/
  2271. #
  2272. IPATH=['panda/src/grutil']
  2273. OPTS=['BUILDING_PANDA', 'FFMPEG']
  2274. EnqueueCxx(ipath=IPATH, opts=OPTS, src='multitexReducer.cxx', obj='grutil_multitexReducer.obj')
  2275. EnqueueCxx(ipath=IPATH, opts=OPTS, src='grutil_composite.cxx', obj='grutil_composite.obj')
  2276. EnqueueIgate(ipath=IPATH, opts=OPTS, outd='libgrutil.in', obj='libgrutil_igate.obj',
  2277. src='panda/src/grutil', module='panda', library='libgrutil',
  2278. skip=[], also=["multitexReducer.cxx","grutil_composite.cxx"])
  2279. #
  2280. # DIRECTORY: panda/src/tform/
  2281. #
  2282. IPATH=['panda/src/tform']
  2283. OPTS=['BUILDING_PANDA']
  2284. EnqueueCxx(ipath=IPATH, opts=OPTS, src='tform_composite.cxx', obj='tform_composite.obj')
  2285. EnqueueIgate(ipath=IPATH, opts=OPTS, outd='libtform.in', obj='libtform_igate.obj',
  2286. src='panda/src/tform', module='panda', library='libtform',
  2287. skip=[], also=["tform_composite.cxx"])
  2288. #
  2289. # DIRECTORY: panda/src/collide/
  2290. #
  2291. IPATH=['panda/src/collide']
  2292. OPTS=['BUILDING_PANDA']
  2293. EnqueueCxx(ipath=IPATH, opts=OPTS, src='collide_composite.cxx', obj='collide_composite.obj')
  2294. EnqueueIgate(ipath=IPATH, opts=OPTS, outd='libcollide.in', obj='libcollide_igate.obj',
  2295. src='panda/src/collide', module='panda', library='libcollide',
  2296. skip=["collide_headers.h"], also=["collide_composite.cxx"])
  2297. #
  2298. # DIRECTORY: panda/src/parametrics/
  2299. #
  2300. IPATH=['panda/src/parametrics']
  2301. OPTS=['BUILDING_PANDA']
  2302. EnqueueCxx(ipath=IPATH, opts=OPTS, src='parametrics_composite.cxx', obj='parametrics_composite.obj')
  2303. EnqueueIgate(ipath=IPATH, opts=OPTS, outd='libparametrics.in', obj='libparametrics_igate.obj',
  2304. src='panda/src/parametrics', module='panda', library='libparametrics',
  2305. skip=['nurbsPPCurve.h'], also=["parametrics_composite.cxx"])
  2306. #
  2307. # DIRECTORY: panda/src/pgui/
  2308. #
  2309. IPATH=['panda/src/pgui']
  2310. OPTS=['BUILDING_PANDA']
  2311. EnqueueCxx(ipath=IPATH, opts=OPTS, src='pgui_composite.cxx', obj='pgui_composite.obj')
  2312. EnqueueIgate(ipath=IPATH, opts=OPTS, outd='libpgui.in', obj='libpgui_igate.obj',
  2313. src='panda/src/pgui', module='panda', library='libpgui',
  2314. skip=[], also=["pgui_composite.cxx"])
  2315. #
  2316. # DIRECTORY: panda/src/pnmimagetypes/
  2317. #
  2318. IPATH=['panda/src/pnmimagetypes', 'panda/src/pnmimage']
  2319. OPTS=['BUILDING_PANDA', 'PNG', 'ZLIB', 'JPEG', 'ZLIB', 'JPEG', 'TIFF']
  2320. EnqueueCxx(ipath=IPATH, opts=OPTS, src='pnmFileTypePNG.cxx', obj='pnmimagetypes_pnmFileTypePNG.obj')
  2321. EnqueueCxx(ipath=IPATH, opts=OPTS, src='pnmFileTypeTIFF.cxx', obj='pnmimagetypes_pnmFileTypeTIFF.obj')
  2322. EnqueueCxx(ipath=IPATH, opts=OPTS, src='pnmimagetypes_composite.cxx', obj='pnmimagetypes_composite.obj')
  2323. #
  2324. # DIRECTORY: panda/src/recorder/
  2325. #
  2326. IPATH=['panda/src/recorder']
  2327. OPTS=['BUILDING_PANDA']
  2328. EnqueueCxx(ipath=IPATH, opts=OPTS, src='recorder_composite.cxx', obj='recorder_composite.obj')
  2329. EnqueueIgate(ipath=IPATH, opts=OPTS, outd='librecorder.in', obj='librecorder_igate.obj',
  2330. src='panda/src/recorder', module='panda', library='librecorder',
  2331. skip=[], also=["recorder_composite.cxx"])
  2332. #
  2333. # DIRECTORY: panda/src/vrpn/
  2334. #
  2335. if (OMIT.count("VRPN")==0):
  2336. IPATH=['panda/src/vrpn']
  2337. OPTS=['BUILDING_PANDA', 'VRPN']
  2338. EnqueueCxx(ipath=IPATH, opts=OPTS, src='vrpn_composite.cxx', obj='pvrpn_composite.obj')
  2339. EnqueueIgate(ipath=IPATH, opts=OPTS, outd='libpvrpn.in', obj='libpvrpn_igate.obj',
  2340. src='panda/src/vrpn', module='panda', library='libpvrpn',
  2341. skip=[], also=["vrpn_composite.cxx"])
  2342. #
  2343. # DIRECTORY: panda/metalibs/panda/
  2344. #
  2345. IPATH=['panda/metalibs/panda']
  2346. OPTS=['BUILDING_PANDA', 'ZLIB', 'VRPN', 'JPEG', 'PNG', 'TIFF', 'ZLIB', 'NVIDIACG', 'OPENSSL', 'FREETYPE', 'FFTW', 'ADVAPI', 'WINSOCK2', 'WINUSER', 'WINMM', 'FFMPEG']
  2347. INFILES=['librecorder.in', 'libpgraph.in', 'libcull.in', 'libgrutil.in', 'libchan.in', 'libpstatclient.in',
  2348. 'libchar.in', 'libcollide.in', 'libdevice.in', 'libdgraph.in', 'libdisplay.in', 'libpipeline.in', 'libevent.in',
  2349. 'libgobj.in', 'libgsgbase.in', 'liblinmath.in', 'libmathutil.in', 'libparametrics.in',
  2350. 'libpnmimage.in', 'libtext.in', 'libtform.in', 'liblerp.in', 'libputil.in', 'libaudio.in',
  2351. 'libnativenet.in', 'libnet.in', 'libpgui.in']
  2352. OBJFILES=['panda_panda.obj', 'libpanda_module.obj',
  2353. 'recorder_composite.obj', 'librecorder_igate.obj',
  2354. 'pgraph_nodePath.obj',
  2355. 'pgraph_composite1.obj', 'pgraph_composite2.obj', 'pgraph_composite3.obj', 'pgraph_composite4.obj', 'libpgraph_igate.obj',
  2356. 'cull_composite.obj',
  2357. 'grutil_multitexReducer.obj', 'grutil_composite.obj', 'libgrutil_igate.obj',
  2358. 'chan_composite.obj', 'libchan_igate.obj',
  2359. 'pstatclient_composite.obj', 'libpstatclient_igate.obj',
  2360. 'char_composite.obj', 'libchar_igate.obj',
  2361. 'collide_composite.obj', 'libcollide_igate.obj',
  2362. 'device_composite.obj', 'libdevice_igate.obj',
  2363. 'dgraph_composite.obj', 'libdgraph_igate.obj',
  2364. 'display_composite.obj', 'libdisplay_igate.obj',
  2365. 'pipeline_composite.obj', 'libpipeline_igate.obj',
  2366. 'event_composite.obj', 'libevent_igate.obj',
  2367. 'gobj_composite1.obj', 'gobj_composite2.obj', 'libgobj_igate.obj',
  2368. 'gsgbase_composite.obj', 'libgsgbase_igate.obj',
  2369. 'linmath_composite.obj', 'liblinmath_igate.obj',
  2370. 'mathutil_composite.obj', 'libmathutil_igate.obj',
  2371. 'parametrics_composite.obj', 'libparametrics_igate.obj',
  2372. 'pnmimagetypes_composite.obj', 'pnmimagetypes_pnmFileTypePNG.obj', 'pnmimagetypes_pnmFileTypeTIFF.obj',
  2373. 'pnmimage_composite.obj', 'libpnmimage_igate.obj',
  2374. 'text_composite.obj', 'libtext_igate.obj',
  2375. 'tform_composite.obj', 'libtform_igate.obj',
  2376. 'lerp_composite.obj', 'liblerp_igate.obj',
  2377. 'putil_composite1.obj', 'putil_composite2.obj', 'libputil_igate.obj',
  2378. 'audio_composite.obj', 'libaudio_igate.obj',
  2379. 'pgui_composite.obj', 'libpgui_igate.obj',
  2380. 'net_composite.obj', 'libnet_igate.obj',
  2381. 'nativenet_composite.obj', 'libnativenet_igate.obj',
  2382. 'pandabase_pandabase.obj', 'libpandaexpress.dll', 'libp3dtoolconfig.dll', 'libp3dtool.dll']
  2383. if OMIT.count("VRPN")==0:
  2384. OBJFILES.append("pvrpn_composite.obj")
  2385. OBJFILES.append("libpvrpn_igate.obj")
  2386. INFILES.append("libpvrpn.in")
  2387. if OMIT.count("FREETYPE")==0:
  2388. OBJFILES.append("pnmtext_composite.obj")
  2389. OBJFILES.append("libpnmtext_igate.obj")
  2390. EnqueueImod(ipath=IPATH, opts=OPTS, obj='libpanda_module.obj',
  2391. module='panda', library='libpanda', files=INFILES)
  2392. EnqueueCxx(ipath=IPATH, opts=OPTS, src='panda.cxx', obj='panda_panda.obj')
  2393. EnqueueLink(opts=OPTS, dll='libpanda.dll', obj=OBJFILES, xdep=[
  2394. 'dtool_have_helix.dat',
  2395. 'dtool_have_vrpn.dat',
  2396. 'dtool_have_nspr.dat',
  2397. 'dtool_have_freetype.dat',
  2398. ])
  2399. #
  2400. # DIRECTORY: panda/src/skel
  2401. #
  2402. IPATH=['panda/src/skel']
  2403. OPTS=['BUILDING_PANDASKEL']
  2404. EnqueueCxx(ipath=IPATH, opts=OPTS, src='skel_composite.cxx', obj='skel_composite.obj')
  2405. EnqueueIgate(ipath=IPATH, opts=OPTS, outd='libskel.in', obj='libskel_igate.obj',
  2406. src='panda/src/skel', module='pandaskel', library='libskel',
  2407. skip=[], also=["skel_composite.cxx"])
  2408. EnqueueImod(ipath=IPATH, opts=OPTS, obj='libpandaskel_module.obj',
  2409. module='pandaskel', library='libpandaskel', files=["libskel.in"])
  2410. EnqueueLink(dll='libpandaskel.dll', opts=['ADVAPI'], obj=[
  2411. 'skel_composite.obj',
  2412. 'libskel_igate.obj',
  2413. 'libpandaskel_module.obj',
  2414. 'libpanda.dll',
  2415. 'libpandaexpress.dll',
  2416. 'libp3dtoolconfig.dll',
  2417. 'libp3dtool.dll',
  2418. ])
  2419. #
  2420. # DIRECTORY: panda/src/audiotraits/
  2421. #
  2422. if OMIT.count("FMODEX") == 0:
  2423. IPATH=['panda/src/audiotraits']
  2424. OPTS=['BUILDING_FMOD_AUDIO', 'FMODEX']
  2425. EnqueueCxx(ipath=IPATH, opts=OPTS, src='fmod_audio_composite.cxx', obj='fmod_audio_fmod_audio_composite.obj')
  2426. EnqueueLink(opts=['ADVAPI', 'WINUSER', 'WINMM', 'FMODEX'], dll='libp3fmod_audio.dll', obj=[
  2427. 'fmod_audio_fmod_audio_composite.obj',
  2428. 'libpanda.dll',
  2429. 'libpandaexpress.dll',
  2430. 'libp3dtoolconfig.dll',
  2431. 'libp3dtool.dll',
  2432. ])
  2433. if OMIT.count("MILES") == 0:
  2434. IPATH=['panda/src/audiotraits']
  2435. OPTS=['BUILDING_MILES_AUDIO', 'MILES']
  2436. EnqueueCxx(ipath=IPATH, opts=OPTS, src='miles_audio_composite.cxx', obj='miles_audio_miles_audio_composite.obj')
  2437. EnqueueLink(opts=['ADVAPI', 'WINUSER', 'WINMM', 'MILES'], dll='libp3miles_audio.dll', obj=[
  2438. 'miles_audio_miles_audio_composite.obj',
  2439. 'libpanda.dll',
  2440. 'libpandaexpress.dll',
  2441. 'libp3dtoolconfig.dll',
  2442. 'libp3dtool.dll',
  2443. ])
  2444. #
  2445. # DIRECTORY: panda/src/distort/
  2446. #
  2447. IPATH=['panda/src/distort']
  2448. OPTS=['BUILDING_PANDAFX']
  2449. EnqueueCxx(ipath=IPATH, opts=OPTS, src='distort_composite.cxx', obj='distort_composite.obj')
  2450. EnqueueIgate(ipath=IPATH, opts=OPTS, outd='libdistort.in', obj='libdistort_igate.obj',
  2451. src='panda/src/distort', module='pandafx', library='libdistort',
  2452. skip=[], also=["distort_composite.cxx"])
  2453. #
  2454. # DIRECTORY: panda/src/downloadertools/
  2455. #
  2456. # There's something funny about this OMIT.count('OPENSSL')... check it out.
  2457. #
  2458. if OMIT.count("OPENSSL")==0:
  2459. IPATH=['panda/src/downloadertools']
  2460. OPTS=['OPENSSL', 'ZLIB', 'ADVAPI']
  2461. LIBS=['libpandaexpress.dll', 'libpanda.dll', 'libp3dtoolconfig.dll', 'libp3dtool.dll', 'libp3pystub.dll']
  2462. EnqueueCxx(ipath=IPATH, opts=OPTS, src='apply_patch.cxx', obj='apply_patch_apply_patch.obj')
  2463. EnqueueLink(dll='apply_patch.exe', opts=OPTS, obj=['apply_patch_apply_patch.obj']+LIBS)
  2464. EnqueueCxx(ipath=IPATH, opts=OPTS, src='build_patch.cxx', obj='build_patch_build_patch.obj')
  2465. EnqueueLink(dll='build_patch.exe', opts=OPTS, obj=['build_patch_build_patch.obj']+LIBS)
  2466. EnqueueCxx(ipath=IPATH, opts=OPTS, src='check_adler.cxx', obj='check_adler_check_adler.obj')
  2467. EnqueueLink(dll='check_adler.exe', opts=OPTS, obj=['check_adler_check_adler.obj']+LIBS)
  2468. EnqueueCxx(ipath=IPATH, opts=OPTS, src='check_crc.cxx', obj='check_crc_check_crc.obj')
  2469. EnqueueLink(dll='check_crc.exe', opts=OPTS, obj=['check_crc_check_crc.obj']+LIBS)
  2470. EnqueueCxx(ipath=IPATH, opts=OPTS, src='check_md5.cxx', obj='check_md5_check_md5.obj')
  2471. EnqueueLink(dll='check_md5.exe', opts=OPTS, obj=['check_md5_check_md5.obj']+LIBS)
  2472. EnqueueCxx(ipath=IPATH, opts=OPTS, src='multify.cxx', obj='multify_multify.obj')
  2473. EnqueueLink(dll='multify.exe', opts=OPTS, obj=['multify_multify.obj']+LIBS)
  2474. EnqueueCxx(ipath=IPATH, opts=OPTS, src='pzip.cxx', obj='pzip_pzip.obj')
  2475. EnqueueLink(dll='pzip.exe', opts=OPTS, obj=['pzip_pzip.obj']+LIBS)
  2476. EnqueueCxx(ipath=IPATH, opts=OPTS, src='punzip.cxx', obj='punzip_punzip.obj')
  2477. EnqueueLink(dll='punzip.exe', opts=OPTS, obj=['punzip_punzip.obj']+LIBS)
  2478. EnqueueCxx(ipath=IPATH, opts=OPTS, src='pdecrypt.cxx', obj='pdecrypt_pdecrypt.obj')
  2479. EnqueueLink(dll='pdecrypt.exe', opts=OPTS, obj=['pdecrypt_pdecrypt.obj']+LIBS)
  2480. EnqueueCxx(ipath=IPATH, opts=OPTS, src='pencrypt.cxx', obj='pencrypt_pencrypt.obj')
  2481. EnqueueLink(dll='pencrypt.exe', opts=OPTS, obj=['pencrypt_pencrypt.obj']+LIBS)
  2482. EnqueueCxx(ipath=IPATH, opts=OPTS, src='show_ddb.cxx', obj='show_ddb_show_ddb.obj')
  2483. EnqueueLink(dll='show_ddb.exe', opts=OPTS, obj=['show_ddb_show_ddb.obj']+LIBS)
  2484. #
  2485. # DIRECTORY: panda/src/windisplay/
  2486. #
  2487. if (sys.platform == "win32"):
  2488. IPATH=['panda/src/windisplay']
  2489. OPTS=['BUILDING_PANDAWIN']
  2490. EnqueueCxx(ipath=IPATH, opts=OPTS, src='windisplay_composite.cxx', obj='windisplay_composite.obj')
  2491. EnqueueCxx(ipath=IPATH, opts=OPTS + ["DX8"], src='winDetectDx8.cxx', obj='windisplay_windetectdx8.obj')
  2492. EnqueueCxx(ipath=IPATH, opts=OPTS + ["DX9"], src='winDetectDx9.cxx', obj='windisplay_windetectdx9.obj')
  2493. EnqueueLink(opts=['WINIMM', 'WINGDI', 'WINKERNEL', 'WINOLDNAMES', 'WINUSER', 'WINMM'],
  2494. dll='libp3windisplay.dll', obj=[
  2495. 'windisplay_composite.obj',
  2496. 'windisplay_windetectdx8.obj',
  2497. 'windisplay_windetectdx9.obj',
  2498. 'libpanda.dll',
  2499. 'libpandaexpress.dll',
  2500. 'libp3dtoolconfig.dll',
  2501. 'libp3dtool.dll',
  2502. ])
  2503. #
  2504. # DIRECTORY: panda/metalibs/pandadx8/
  2505. #
  2506. if OMIT.count("DX8")==0:
  2507. IPATH=['panda/src/dxgsg8', 'panda/metalibs/pandadx8']
  2508. OPTS=['BUILDING_PANDADX', 'DX8']
  2509. EnqueueCxx(ipath=IPATH, opts=OPTS, src='dxGraphicsStateGuardian8.cxx', obj='dxgsg8_dxGraphicsStateGuardian8.obj')
  2510. EnqueueCxx(ipath=IPATH, opts=OPTS, src='dxgsg8_composite.cxx', obj='dxgsg8_composite.obj')
  2511. EnqueueCxx(ipath=IPATH, opts=OPTS, src='pandadx8.cxx', obj='pandadx8_pandadx8.obj')
  2512. EnqueueLink(dll='libpandadx8.dll',
  2513. opts=['ADVAPI', 'WINGDI', 'WINKERNEL', 'WINUSER', 'WINMM', 'DX8'], obj=[
  2514. 'pandadx8_pandadx8.obj',
  2515. 'dxgsg8_dxGraphicsStateGuardian8.obj',
  2516. 'dxgsg8_composite.obj',
  2517. 'libpanda.dll',
  2518. 'libpandaexpress.dll',
  2519. 'libp3windisplay.dll',
  2520. 'libp3dtoolconfig.dll',
  2521. 'libp3dtool.dll',
  2522. ])
  2523. #
  2524. # DIRECTORY: panda/metalibs/pandadx9/
  2525. #
  2526. if OMIT.count("DX9")==0:
  2527. IPATH=['panda/src/dxgsg9']
  2528. OPTS=['BUILDING_PANDADX', 'DX9', 'NVIDIACG', 'CGDX9']
  2529. EnqueueCxx(ipath=IPATH, opts=OPTS, src='dxGraphicsStateGuardian9.cxx', obj='dxgsg9_dxGraphicsStateGuardian9.obj')
  2530. EnqueueCxx(ipath=IPATH, opts=OPTS, src='dxgsg9_composite.cxx', obj='dxgsg9_composite.obj')
  2531. IPATH=['panda/metalibs/pandadx9']
  2532. EnqueueCxx(ipath=IPATH, opts=OPTS, src='pandadx9.cxx', obj='pandadx9_pandadx9.obj')
  2533. EnqueueLink(dll='libpandadx9.dll',
  2534. opts=['ADVAPI', 'WINGDI', 'WINKERNEL', 'WINUSER', 'WINMM', 'DX9', 'NVIDIACG', 'CGDX9'], obj=[
  2535. 'pandadx9_pandadx9.obj',
  2536. 'dxgsg9_dxGraphicsStateGuardian9.obj',
  2537. 'dxgsg9_composite.obj',
  2538. 'libpanda.dll',
  2539. 'libpandaexpress.dll',
  2540. 'libp3windisplay.dll',
  2541. 'libp3dtoolconfig.dll',
  2542. 'libp3dtool.dll',
  2543. ])
  2544. #
  2545. # DIRECTORY: panda/src/egg/
  2546. #
  2547. IPATH=['panda/src/egg']
  2548. OPTS=['BUILDING_PANDAEGG', 'ZLIB']
  2549. CreateStubHeader("built/include/parser.h")
  2550. EnqueueBison(ipath=IPATH, opts=OPTS, pre='eggyy', src='parser.yxx', dsth='parser.h', obj='egg_parser.obj')
  2551. EnqueueFlex(ipath=IPATH, opts=OPTS, pre='eggyy', src='lexer.lxx', obj='egg_lexer.obj', dashi=1)
  2552. EnqueueCxx(ipath=IPATH, opts=OPTS, src='egg_composite1.cxx', obj='egg_composite1.obj')
  2553. EnqueueCxx(ipath=IPATH, opts=OPTS, src='egg_composite2.cxx', obj='egg_composite2.obj')
  2554. EnqueueIgate(ipath=IPATH, opts=OPTS, outd='libegg.in', obj='libegg_igate.obj',
  2555. src='panda/src/egg', module='pandaegg', library='libegg',
  2556. skip=["parser.h"], also=["egg_composite.cxx"])
  2557. #
  2558. # DIRECTORY: panda/src/egg2pg/
  2559. #
  2560. IPATH=['panda/src/egg2pg']
  2561. OPTS=['BUILDING_PANDAEGG']
  2562. EnqueueCxx(ipath=IPATH, opts=OPTS, src='egg2pg_composite.cxx', obj='egg2pg_composite.obj')
  2563. EnqueueIgate(ipath=IPATH, opts=OPTS, outd='libegg2pg.in', obj='libegg2pg_igate.obj',
  2564. src='panda/src/egg2pg', module='pandaegg', library='libegg2pg',
  2565. skip="ALL", also=['load_egg_file.h'])
  2566. #
  2567. # DIRECTORY: panda/src/framework/
  2568. #
  2569. IPATH=['panda/src/framework']
  2570. OPTS=['BUILDING_FRAMEWORK']
  2571. EnqueueCxx(ipath=IPATH, opts=OPTS, src='framework_composite.cxx', obj='framework_composite.obj')
  2572. EnqueueLink(dll='libp3framework.dll', opts=['ADVAPI'], obj=[
  2573. 'framework_composite.obj',
  2574. 'libpanda.dll',
  2575. 'libpandaexpress.dll',
  2576. 'libp3dtoolconfig.dll',
  2577. 'libp3dtool.dll',
  2578. ])
  2579. #
  2580. # DIRECTORY: panda/metalibs/pandafx/
  2581. #
  2582. IPATH=['panda/metalibs/pandafx', 'panda/src/distort']
  2583. OPTS=['BUILDING_PANDAFX', 'NVIDIACG']
  2584. EnqueueCxx(ipath=IPATH, opts=OPTS, src='pandafx.cxx', obj='pandafx_pandafx.obj')
  2585. EnqueueImod(ipath=IPATH, opts=OPTS, obj='libpandafx_module.obj',
  2586. module='pandafx', library='libpandafx',
  2587. files=['libdistort.in', 'libeffects.in'])
  2588. EnqueueLink(dll='libpandafx.dll', opts=['ADVAPI', 'NVIDIACG'], obj=[
  2589. 'pandafx_pandafx.obj',
  2590. 'libpandafx_module.obj',
  2591. 'distort_composite.obj',
  2592. 'libdistort_igate.obj',
  2593. 'effects_composite.obj',
  2594. 'libeffects_igate.obj',
  2595. 'libpanda.dll',
  2596. 'libpandaexpress.dll',
  2597. 'libp3dtoolconfig.dll',
  2598. 'libp3dtool.dll',
  2599. ])
  2600. #
  2601. # DIRECTORY: panda/src/glstuff/
  2602. #
  2603. IPATH=['panda/src/glstuff']
  2604. OPTS=[ 'NVIDIACG', 'CGGL']
  2605. EnqueueCxx(ipath=IPATH, opts=OPTS, src='glpure.cxx', obj='glstuff_glpure.obj')
  2606. EnqueueLink(dll='libp3glstuff.dll', opts=['ADVAPI', 'GLUT', 'NVIDIACG', 'CGGL'], obj=[
  2607. 'glstuff_glpure.obj',
  2608. 'libpanda.dll',
  2609. 'libpandafx.dll',
  2610. 'libpandaexpress.dll',
  2611. 'libp3dtoolconfig.dll',
  2612. 'libp3dtool.dll',
  2613. ])
  2614. #
  2615. # DIRECTORY: panda/src/glgsg/
  2616. #
  2617. IPATH=['panda/src/glgsg', 'panda/src/glstuff', 'panda/src/gobj']
  2618. OPTS=['BUILDING_PANDAGL', 'NVIDIACG']
  2619. EnqueueCxx(ipath=IPATH, opts=OPTS, src='config_glgsg.cxx', obj='glgsg_config_glgsg.obj')
  2620. EnqueueCxx(ipath=IPATH, opts=OPTS, src='glgsg.cxx', obj='glgsg_glgsg.obj')
  2621. #
  2622. # DIRECTORY: panda/metalibs/pandaegg/
  2623. #
  2624. IPATH=['panda/metalibs/pandaegg', 'panda/src/egg']
  2625. OPTS=['BUILDING_PANDAEGG']
  2626. EnqueueCxx(ipath=IPATH, opts=OPTS, src='pandaegg.cxx', obj='pandaegg_pandaegg.obj')
  2627. EnqueueImod(ipath=IPATH, opts=OPTS, obj='libpandaegg_module.obj',
  2628. module='pandaegg', library='libpandaegg',
  2629. files=['libegg2pg.in', 'libegg.in'])
  2630. EnqueueLink(dll='libpandaegg.dll', opts=['ADVAPI'], obj=[
  2631. 'pandaegg_pandaegg.obj',
  2632. 'libpandaegg_module.obj',
  2633. 'egg2pg_composite.obj',
  2634. 'libegg2pg_igate.obj',
  2635. 'egg_composite1.obj',
  2636. 'egg_composite2.obj',
  2637. 'egg_parser.obj',
  2638. 'egg_lexer.obj',
  2639. 'libegg_igate.obj',
  2640. 'libpanda.dll',
  2641. 'libpandaexpress.dll',
  2642. 'libp3dtoolconfig.dll',
  2643. 'libp3dtool.dll',
  2644. ])
  2645. #
  2646. # DIRECTORY: panda/metalibs/panda/
  2647. #
  2648. IPATH=['panda/metalibs/panda']
  2649. OPTS=['BUILDING_PANDA', 'FFTW', 'PNG', 'JPEG', 'TIFF', 'ZLIB', 'OPENSSL', 'ADVAPI', 'WINSOCK2', 'WINUSER', 'WINMM']
  2650. OBJFILES=[
  2651. 'pipeline_composite.obj',
  2652. 'event_composite.obj',
  2653. 'net_composite.obj',
  2654. 'nativenet_composite.obj',
  2655. 'pstatclient_composite.obj',
  2656. 'linmath_composite.obj',
  2657. 'mathutil_composite.obj',
  2658. 'putil_composite1.obj', 'putil_composite2.obj',
  2659. 'pnmimagetypes_composite.obj', 'pnmimagetypes_pnmFileTypePNG.obj', 'pnmimagetypes_pnmFileTypeTIFF.obj',
  2660. 'pnmimage_composite.obj',
  2661. 'pandabase_pandabase.obj', 'libpandaexpress.dll', 'libp3dtoolconfig.dll', 'libp3dtool.dll']
  2662. EnqueueLink(opts=OPTS, dll='libpandastripped.dll', obj=OBJFILES, xdep=[
  2663. 'dtool_have_helix.dat',
  2664. 'dtool_have_vrpn.dat',
  2665. 'dtool_have_freetype.dat',
  2666. ])
  2667. #
  2668. # DIRECTORY: panda/metalibs/pandaegg/
  2669. #
  2670. IPATH=['panda/metalibs/pandaegg', 'panda/src/egg']
  2671. OPTS=['BUILDING_PANDAEGG']
  2672. EnqueueCxx(ipath=IPATH, opts=OPTS, src='pandaeggnopg.cxx', obj='pandaegg_pandaeggnopg.obj')
  2673. EnqueueLink(dll='libpandaeggstripped.dll', opts=['ADVAPI'], obj=[
  2674. 'pandaegg_pandaeggnopg.obj',
  2675. # 'egg2pg_composite.obj',
  2676. 'egg_composite1.obj',
  2677. 'egg_composite2.obj',
  2678. 'egg_parser.obj',
  2679. 'egg_lexer.obj',
  2680. 'libpandastripped.dll',
  2681. 'libpandaexpress.dll',
  2682. 'libp3dtoolconfig.dll',
  2683. 'libp3dtool.dll',
  2684. ])
  2685. #
  2686. # DIRECTORY: panda/src/mesadisplay/
  2687. #
  2688. if (sys.platform != "win32"):
  2689. IPATH=['panda/src/mesadisplay', 'panda/src/glstuff']
  2690. OPTS=['BUILDING_PANDAGLUT', 'NVIDIACG', 'GLUT']
  2691. EnqueueCxx(ipath=IPATH, opts=OPTS, src='mesadisplay_composite.cxx', obj='mesadisplay_composite.obj')
  2692. IPATH=['panda/metalibs/pandagl']
  2693. EnqueueLink(opts=['GLUT'], dll='libpandamesa.dll', obj=[
  2694. 'mesadisplay_composite.obj',
  2695. 'libpanda.dll',
  2696. 'libpandaexpress.dll',
  2697. 'libp3glstuff.dll',
  2698. 'libpandafx.dll',
  2699. 'libp3dtoolconfig.dll',
  2700. 'libp3dtool.dll',
  2701. ])
  2702. #
  2703. # DIRECTORY: panda/src/glxdisplay/
  2704. #
  2705. if (sys.platform != "win32"):
  2706. IPATH=['panda/src/glxdisplay']
  2707. OPTS=['BUILDING_PANDAGLUT', 'GLUT', 'NVIDIACG', 'CGGL']
  2708. EnqueueCxx(ipath=IPATH, opts=OPTS, src='glxdisplay_composite.cxx', obj='glxdisplay_composite.obj')
  2709. IPATH=['panda/metalibs/pandagl']
  2710. EnqueueCxx(ipath=IPATH, opts=OPTS, src='pandagl.cxx', obj='pandagl_pandagl.obj')
  2711. EnqueueLink(opts=['GLUT', 'NVIDIACG', 'CGGL'], dll='libpandagl.dll', obj=[
  2712. 'pandagl_pandagl.obj',
  2713. 'glgsg_config_glgsg.obj',
  2714. 'glgsg_glgsg.obj',
  2715. 'glxdisplay_composite.obj',
  2716. 'libpanda.dll',
  2717. 'libpandaexpress.dll',
  2718. 'libp3glstuff.dll',
  2719. 'libpandafx.dll',
  2720. 'libp3dtoolconfig.dll',
  2721. 'libp3dtool.dll',
  2722. ])
  2723. #
  2724. # DIRECTORY: panda/src/wgldisplay/
  2725. #
  2726. if (sys.platform == "win32"):
  2727. IPATH=['panda/src/wgldisplay', 'panda/src/glstuff']
  2728. OPTS=['BUILDING_PANDAGL', 'NVIDIACG', 'CGGL']
  2729. EnqueueCxx(ipath=IPATH, opts=OPTS, src='wgldisplay_composite.cxx', obj='wgldisplay_composite.obj')
  2730. IPATH=['panda/metalibs/pandagl']
  2731. EnqueueCxx(ipath=IPATH, opts=OPTS, src='pandagl.cxx', obj='pandagl_pandagl.obj')
  2732. EnqueueLink(opts=['WINGDI', 'GLUT', 'WINKERNEL', 'WINOLDNAMES', 'WINUSER', 'WINMM', 'NVIDIACG', 'CGGL'],
  2733. dll='libpandagl.dll', obj=[
  2734. 'pandagl_pandagl.obj',
  2735. 'glgsg_config_glgsg.obj',
  2736. 'glgsg_glgsg.obj',
  2737. 'wgldisplay_composite.obj',
  2738. 'libp3windisplay.dll',
  2739. 'libpanda.dll',
  2740. 'libpandaexpress.dll',
  2741. 'libp3glstuff.dll',
  2742. 'libpandafx.dll',
  2743. 'libp3dtoolconfig.dll',
  2744. 'libp3dtool.dll',
  2745. ])
  2746. #
  2747. # DIRECTORY: panda/src/physics/
  2748. #
  2749. IPATH=['panda/src/physics']
  2750. OPTS=['BUILDING_PANDAPHYSICS']
  2751. EnqueueCxx(ipath=IPATH, opts=OPTS, src='physics_composite.cxx', obj='physics_composite.obj')
  2752. EnqueueIgate(ipath=IPATH, opts=OPTS, outd='libphysics.in', obj='libphysics_igate.obj',
  2753. src='panda/src/physics', module='pandaphysics', library='libphysics',
  2754. skip=["forces.h"], also=["physics_composite.cxx"])
  2755. #
  2756. # DIRECTORY: panda/src/particlesystem/
  2757. #
  2758. IPATH=['panda/src/particlesystem']
  2759. OPTS=['BUILDING_PANDAPHYSICS']
  2760. EnqueueCxx(ipath=IPATH, opts=OPTS, src='particlesystem_composite.cxx', obj='particlesystem_composite.obj')
  2761. EnqueueIgate(ipath=IPATH, opts=OPTS, outd='libparticlesystem.in', obj='libparticlesystem_igate.obj',
  2762. src='panda/src/particlesystem', module='pandaphysics', library='libparticlesystem',
  2763. skip=['orientedParticle.h', 'orientedParticleFactory.h', 'particlefactories.h', 'emitters.h', 'particles.h'],
  2764. also=["particlesystem_composite.cxx"])
  2765. #
  2766. # DIRECTORY: panda/metalibs/pandaphysics/
  2767. #
  2768. IPATH=['panda/metalibs/pandaphysics']
  2769. OPTS=['BUILDING_PANDAPHYSICS']
  2770. EnqueueCxx(ipath=IPATH, opts=OPTS, src='pandaphysics.cxx', obj='pandaphysics_pandaphysics.obj')
  2771. EnqueueImod(ipath=IPATH, opts=OPTS, obj='libpandaphysics_module.obj',
  2772. module='pandaphysics', library='libpandaphysics',
  2773. files=['libphysics.in', 'libparticlesystem.in'])
  2774. EnqueueLink(dll='libpandaphysics.dll', opts=['ADVAPI'], obj=[
  2775. 'pandaphysics_pandaphysics.obj',
  2776. 'libpandaphysics_module.obj',
  2777. 'physics_composite.obj',
  2778. 'libphysics_igate.obj',
  2779. 'particlesystem_composite.obj',
  2780. 'libparticlesystem_igate.obj',
  2781. 'libpanda.dll',
  2782. 'libpandaexpress.dll',
  2783. 'libp3dtoolconfig.dll',
  2784. 'libp3dtool.dll',
  2785. ])
  2786. #
  2787. # DIRECTORY: panda/src/testbed/
  2788. #
  2789. IPATH=['panda/src/testbed']
  2790. OPTS=[]
  2791. EnqueueCxx(ipath=IPATH, opts=OPTS, src='pview.cxx', obj='pview_pview.obj')
  2792. EnqueueLink(dll='pview.exe', opts=['ADVAPI'], obj=[
  2793. 'pview_pview.obj',
  2794. 'libp3framework.dll',
  2795. 'libpanda.dll',
  2796. 'libpandafx.dll',
  2797. 'libpandaexpress.dll',
  2798. 'libp3dtoolconfig.dll',
  2799. 'libp3dtool.dll',
  2800. 'libp3pystub.dll',
  2801. ])
  2802. #
  2803. # DIRECTORY: direct/src/directbase/
  2804. #
  2805. if (OMIT.count("PYTHON")==0):
  2806. IPATH=['direct/src/directbase']
  2807. OPTS=['BUILDING_DIRECT']
  2808. EnqueueCxx(ipath=IPATH, opts=OPTS, src='directbase.cxx', obj='directbase_directbase.obj')
  2809. EnqueueCxx(ipath=IPATH, opts=['BUILDING_GENPYCODE'], src='ppython.cxx', obj='genpycode.obj')
  2810. EnqueueLink(opts=['WINUSER'], dll='genpycode.exe', obj=['genpycode.obj'])
  2811. EnqueueCxx(ipath=IPATH, opts=['BUILDING_PACKPANDA'], src='ppython.cxx', obj='packpanda.obj')
  2812. EnqueueLink(opts=['WINUSER'], dll='packpanda.exe', obj=['packpanda.obj'])
  2813. EnqueueCxx(ipath=IPATH, opts=['BUILDING_EGGCACHER'], src='ppython.cxx', obj='eggcacher.obj')
  2814. EnqueueLink(opts=['WINUSER'], dll='eggcacher.exe', obj=['eggcacher.obj'])
  2815. #
  2816. # DIRECTORY: direct/src/dcparser/
  2817. #
  2818. if (OMIT.count("PYTHON")==0):
  2819. IPATH=['direct/src/dcparser']
  2820. OPTS=['WITHINPANDA', 'BUILDING_DIRECT']
  2821. CreateStubHeader("built/include/dcParser.h")
  2822. EnqueueBison(ipath=IPATH, opts=OPTS, pre='dcyy', src='dcParser.yxx', dsth='dcParser.h', obj='dcparser_dcParser.obj')
  2823. EnqueueFlex(ipath=IPATH, opts=OPTS, pre='dcyy', src='dcLexer.lxx', obj='dcparser_dcLexer.obj', dashi=0)
  2824. EnqueueCxx(ipath=IPATH, opts=OPTS, src='dcparser_composite.cxx', obj='dcparser_composite.obj')
  2825. EnqueueIgate(ipath=IPATH, opts=OPTS, outd='libdcparser.in', obj='libdcparser_igate.obj',
  2826. src='direct/src/dcparser', module='p3direct', library='libdcparser',
  2827. skip=['dcmsgtypes.h'],
  2828. also=["dcparser_composite.cxx"])
  2829. #
  2830. # DIRECTORY: direct/src/deadrec/
  2831. #
  2832. if (OMIT.count("PYTHON")==0):
  2833. IPATH=['direct/src/deadrec']
  2834. OPTS=['BUILDING_DIRECT']
  2835. EnqueueCxx(ipath=IPATH, opts=OPTS, src='deadrec_composite.cxx', obj='deadrec_composite.obj')
  2836. EnqueueIgate(ipath=IPATH, opts=OPTS, outd='libdeadrec.in', obj='libdeadrec_igate.obj',
  2837. src='direct/src/deadrec', module='p3direct', library='libdeadrec',
  2838. skip=[], also=["deadrec_composite.cxx"])
  2839. #
  2840. # DIRECTORY: direct/src/distributed/
  2841. #
  2842. if (OMIT.count("PYTHON")==0):
  2843. IPATH=['direct/src/distributed', 'direct/src/dcparser']
  2844. OPTS=['WITHINPANDA', 'BUILDING_DIRECT', 'OPENSSL']
  2845. EnqueueCxx(ipath=IPATH, opts=OPTS, src='config_distributed.cxx', obj='distributed_config_distributed.obj')
  2846. EnqueueCxx(ipath=IPATH, opts=OPTS, src='cConnectionRepository.cxx', obj='distributed_cConnectionRepository.obj')
  2847. EnqueueCxx(ipath=IPATH, opts=OPTS, src='cDistributedSmoothNodeBase.cxx', obj='distributed_cDistributedSmoothNodeBase.obj')
  2848. EnqueueIgate(ipath=IPATH, opts=OPTS, outd='libdistributed.in', obj='libdistributed_igate.obj',
  2849. src='direct/src/distributed', module='p3direct', library='libdistributed',
  2850. skip=[], also=['config_distributed.cxx', 'cConnectionRepository.cxx', 'cDistributedSmoothNodeBase.cxx'])
  2851. #
  2852. # DIRECTORY: direct/src/interval/
  2853. #
  2854. if (OMIT.count("PYTHON")==0):
  2855. IPATH=['direct/src/interval']
  2856. OPTS=['BUILDING_DIRECT']
  2857. EnqueueCxx(ipath=IPATH, opts=OPTS, src='interval_composite.cxx', obj='interval_composite.obj')
  2858. EnqueueIgate(ipath=IPATH, opts=OPTS, outd='libinterval.in', obj='libinterval_igate.obj',
  2859. src='direct/src/interval', module='p3direct', library='libinterval',
  2860. skip=[], also=["interval_composite.cxx"])
  2861. #
  2862. # DIRECTORY: direct/src/showbase/
  2863. #
  2864. if (OMIT.count("PYTHON")==0):
  2865. IPATH=['direct/src/showbase']
  2866. OPTS=['BUILDING_DIRECT']
  2867. EnqueueCxx(ipath=IPATH, opts=OPTS, src='showBase.cxx', obj='showbase_showBase.obj')
  2868. EnqueueIgate(ipath=IPATH, opts=OPTS, outd='libshowbase.in', obj='libshowbase_igate.obj',
  2869. src='direct/src/showbase', module='p3direct', library='libshowbase',
  2870. skip=[], also=["showBase.cxx"])
  2871. #
  2872. # DIRECTORY: direct/metalibs/direct/
  2873. #
  2874. if (OMIT.count("PYTHON")==0):
  2875. IPATH=['direct/metalibs/direct']
  2876. OPTS=['BUILDING_DIRECT']
  2877. EnqueueCxx(ipath=IPATH, opts=OPTS, src='direct.cxx', obj='direct_direct.obj')
  2878. EnqueueImod(ipath=IPATH, opts=OPTS, obj='libp3direct_module.obj',
  2879. module='p3direct', library='libp3direct',
  2880. files=['libdcparser.in', 'libshowbase.in', 'libdeadrec.in', 'libinterval.in', 'libdistributed.in'])
  2881. EnqueueLink(dll='libp3direct.dll', opts=['ADVAPI', 'OPENSSL'], obj=[
  2882. 'direct_direct.obj',
  2883. 'libp3direct_module.obj',
  2884. 'directbase_directbase.obj',
  2885. 'dcparser_composite.obj',
  2886. 'dcparser_dcParser.obj',
  2887. 'dcparser_dcLexer.obj',
  2888. 'libdcparser_igate.obj',
  2889. 'showbase_showBase.obj',
  2890. 'libshowbase_igate.obj',
  2891. 'deadrec_composite.obj',
  2892. 'libdeadrec_igate.obj',
  2893. 'interval_composite.obj',
  2894. 'libinterval_igate.obj',
  2895. 'distributed_config_distributed.obj',
  2896. 'distributed_cConnectionRepository.obj',
  2897. 'distributed_cDistributedSmoothNodeBase.obj',
  2898. 'libdistributed_igate.obj',
  2899. 'libpanda.dll',
  2900. 'libpandaexpress.dll',
  2901. 'libp3dtoolconfig.dll',
  2902. 'libp3dtool.dll',
  2903. ])
  2904. #
  2905. # DIRECTORY: direct/src/dcparse/
  2906. #
  2907. if (OMIT.count("PYTHON")==0):
  2908. IPATH=['direct/src/dcparse', 'direct/src/dcparser']
  2909. OPTS=['WITHINPANDA', 'ADVAPI']
  2910. EnqueueCxx(ipath=IPATH, opts=OPTS, src='dcparse.cxx', obj='dcparse_dcparse.obj')
  2911. EnqueueLink(dll='dcparse.exe', opts=OPTS, obj=[
  2912. 'dcparse_dcparse.obj',
  2913. 'libp3direct.dll',
  2914. 'libpandaexpress.dll',
  2915. 'libp3dtoolconfig.dll',
  2916. 'libp3dtool.dll',
  2917. 'libp3pystub.dll',
  2918. ])
  2919. #
  2920. # DIRECTORY: direct/src/heapq/
  2921. #
  2922. if (OMIT.count("PYTHON")==0):
  2923. IPATH=['direct/src/heapq']
  2924. OPTS=[]
  2925. EnqueueCxx(ipath=IPATH, opts=OPTS, src='heapq.cxx', obj='heapq_heapq.obj')
  2926. EnqueueLink(dll='libp3heapq.dll', opts=['ADVAPI'], obj=[
  2927. 'heapq_heapq.obj',
  2928. 'libpandaexpress.dll',
  2929. 'libp3dtoolconfig.dll',
  2930. 'libp3dtool.dll',
  2931. ])
  2932. #
  2933. # DIRECTORY: pandatool/src/pandatoolbase/
  2934. #
  2935. if (OMIT.count("PANDATOOL")==0):
  2936. IPATH=['pandatool/src/pandatoolbase']
  2937. OPTS=[]
  2938. EnqueueCxx(ipath=IPATH, opts=OPTS, src='pandatoolbase_composite1.cxx', obj='pandatoolbase_composite1.obj')
  2939. EnqueueLib(lib='libpandatoolbase.lib', obj=['pandatoolbase_composite1.obj'])
  2940. #
  2941. # DIRECTORY: pandatool/src/converter/
  2942. #
  2943. if (OMIT.count("PANDATOOL")==0):
  2944. IPATH=['pandatool/src/converter']
  2945. OPTS=[]
  2946. EnqueueCxx(ipath=IPATH, opts=OPTS, src='somethingToEggConverter.cxx', obj='converter_somethingToEggConverter.obj')
  2947. EnqueueLib(lib='libconverter.lib', obj=['converter_somethingToEggConverter.obj'])
  2948. #
  2949. # DIRECTORY: pandatool/src/progbase/
  2950. #
  2951. if (OMIT.count("PANDATOOL")==0):
  2952. IPATH=['pandatool/src/progbase']
  2953. OPTS=[ 'ZLIB']
  2954. EnqueueCxx(ipath=IPATH, opts=OPTS, src='progbase_composite1.cxx', obj='progbase_composite1.obj')
  2955. EnqueueLib(lib='libprogbase.lib', obj=['progbase_composite1.obj'])
  2956. #
  2957. # DIRECTORY: pandatool/src/eggbase/
  2958. #
  2959. if (OMIT.count("PANDATOOL")==0):
  2960. IPATH=['pandatool/src/eggbase']
  2961. OPTS=[]
  2962. EnqueueCxx(ipath=IPATH, opts=OPTS, src='eggbase_composite1.cxx', obj='eggbase_composite1.obj')
  2963. EnqueueLib(lib='libeggbase.lib', obj=['eggbase_composite1.obj'])
  2964. #
  2965. # DIRECTORY: pandatool/src/bam/
  2966. #
  2967. if (OMIT.count("PANDATOOL")==0):
  2968. IPATH=['pandatool/src/bam']
  2969. OPTS=[]
  2970. EnqueueCxx(ipath=IPATH, opts=OPTS, src='bamInfo.cxx', obj='bam-info_bamInfo.obj')
  2971. EnqueueLink(dll='bam-info.exe', opts=['ADVAPI', 'FFTW'], obj=[
  2972. 'bam-info_bamInfo.obj',
  2973. 'libprogbase.lib',
  2974. 'libpandatoolbase.lib',
  2975. 'libpandaegg.dll',
  2976. 'libpanda.dll',
  2977. 'libpandaexpress.dll',
  2978. 'libp3dtoolconfig.dll',
  2979. 'libp3dtool.dll',
  2980. 'libp3pystub.dll',
  2981. ])
  2982. EnqueueCxx(ipath=IPATH, opts=OPTS, src='bamToEgg.cxx', obj='bam2egg_bamToEgg.obj')
  2983. EnqueueLink(dll='bam2egg.exe', opts=['ADVAPI', 'FFTW'], obj=[
  2984. 'bam2egg_bamToEgg.obj',
  2985. 'libconverter.lib',
  2986. 'libeggbase.lib',
  2987. 'libprogbase.lib',
  2988. 'libpandatoolbase.lib',
  2989. 'libpandaegg.dll',
  2990. 'libpanda.dll',
  2991. 'libpandaexpress.dll',
  2992. 'libp3dtoolconfig.dll',
  2993. 'libp3dtool.dll',
  2994. 'libp3pystub.dll',
  2995. ])
  2996. EnqueueCxx(ipath=IPATH, opts=OPTS, src='eggToBam.cxx', obj='egg2bam_eggToBam.obj')
  2997. EnqueueLink(dll='egg2bam.exe', opts=['ADVAPI', 'FFTW'], obj=[
  2998. 'egg2bam_eggToBam.obj',
  2999. 'libeggbase.lib',
  3000. 'libprogbase.lib',
  3001. 'libconverter.lib',
  3002. 'libpandatoolbase.lib',
  3003. 'libpandaegg.dll',
  3004. 'libpanda.dll',
  3005. 'libpandaexpress.dll',
  3006. 'libp3dtoolconfig.dll',
  3007. 'libp3dtool.dll',
  3008. 'libp3pystub.dll',
  3009. ])
  3010. #
  3011. # DIRECTORY: pandatool/src/cvscopy/
  3012. #
  3013. if (OMIT.count("PANDATOOL")==0):
  3014. IPATH=['pandatool/src/cvscopy']
  3015. OPTS=[]
  3016. EnqueueCxx(ipath=IPATH, opts=OPTS, src='cvscopy_composite1.cxx', obj='cvscopy_composite1.obj')
  3017. EnqueueLib(lib='libcvscopy.lib', obj=['cvscopy_composite1.obj'])
  3018. #
  3019. # DIRECTORY: pandatool/src/dxf/
  3020. #
  3021. if (OMIT.count("PANDATOOL")==0):
  3022. IPATH=['pandatool/src/dxf']
  3023. OPTS=[]
  3024. EnqueueCxx(ipath=IPATH, opts=OPTS, src='dxf_composite1.cxx', obj='dxf_composite1.obj')
  3025. EnqueueLib(lib='libdxf.lib', obj=['dxf_composite1.obj'])
  3026. #
  3027. # DIRECTORY: pandatool/src/dxfegg/
  3028. #
  3029. if (OMIT.count("PANDATOOL")==0):
  3030. IPATH=['pandatool/src/dxfegg']
  3031. OPTS=[]
  3032. EnqueueCxx(ipath=IPATH, opts=OPTS, src='dxfToEggConverter.cxx', obj='dxfegg_dxfToEggConverter.obj')
  3033. EnqueueCxx(ipath=IPATH, opts=OPTS, src='dxfToEggLayer.cxx', obj='dxfegg_dxfToEggLayer.obj')
  3034. EnqueueLib(lib='libdxfegg.lib', obj=[
  3035. 'dxfegg_dxfToEggConverter.obj',
  3036. 'dxfegg_dxfToEggLayer.obj',
  3037. ])
  3038. #
  3039. # DIRECTORY: pandatool/src/dxfprogs/
  3040. #
  3041. if (OMIT.count("PANDATOOL")==0):
  3042. IPATH=['pandatool/src/dxfprogs']
  3043. OPTS=[]
  3044. EnqueueCxx(ipath=IPATH, opts=OPTS, src='dxfPoints.cxx', obj='dxf-points_dxfPoints.obj')
  3045. EnqueueLink(dll='dxf-points.exe', opts=['ADVAPI', 'FFTW'], obj=[
  3046. 'dxf-points_dxfPoints.obj',
  3047. 'libprogbase.lib',
  3048. 'libdxf.lib',
  3049. 'libpandatoolbase.lib',
  3050. 'libpanda.dll',
  3051. 'libpandaexpress.dll',
  3052. 'libp3dtoolconfig.dll',
  3053. 'libp3dtool.dll',
  3054. 'libp3pystub.dll',
  3055. ])
  3056. EnqueueCxx(ipath=IPATH, opts=OPTS, src='dxfToEgg.cxx', obj='dxf2egg_dxfToEgg.obj')
  3057. EnqueueLink(dll='dxf2egg.exe', opts=['ADVAPI', 'FFTW'], obj=[
  3058. 'dxf2egg_dxfToEgg.obj',
  3059. 'libdxfegg.lib',
  3060. 'libdxf.lib',
  3061. 'libeggbase.lib',
  3062. 'libprogbase.lib',
  3063. 'libpandatoolbase.lib',
  3064. 'libconverter.lib',
  3065. 'libpandaegg.dll',
  3066. 'libpanda.dll',
  3067. 'libpandaexpress.dll',
  3068. 'libp3dtoolconfig.dll',
  3069. 'libp3dtool.dll',
  3070. 'libp3pystub.dll',
  3071. ])
  3072. EnqueueCxx(ipath=IPATH, opts=OPTS, src='eggToDXF.cxx', obj='egg2dxf_eggToDXF.obj')
  3073. EnqueueCxx(ipath=IPATH, opts=OPTS, src='eggToDXFLayer.cxx', obj='egg2dxf_eggToDXFLayer.obj')
  3074. EnqueueLink(dll='egg2dxf.exe', opts=['ADVAPI', 'FFTW'], obj=[
  3075. 'egg2dxf_eggToDXF.obj',
  3076. 'egg2dxf_eggToDXFLayer.obj',
  3077. 'libdxf.lib',
  3078. 'libeggbase.lib',
  3079. 'libprogbase.lib',
  3080. 'libpandatoolbase.lib',
  3081. 'libconverter.lib',
  3082. 'libpandaegg.dll',
  3083. 'libpanda.dll',
  3084. 'libpandaexpress.dll',
  3085. 'libp3dtoolconfig.dll',
  3086. 'libp3dtool.dll',
  3087. 'libp3pystub.dll',
  3088. ])
  3089. #
  3090. # DIRECTORY: pandatool/src/palettizer/
  3091. #
  3092. if (OMIT.count("PANDATOOL")==0):
  3093. IPATH=['pandatool/src/palettizer']
  3094. OPTS=[]
  3095. EnqueueCxx(ipath=IPATH, opts=OPTS, src='palettizer_composite1.cxx', obj='palettizer_composite1.obj')
  3096. EnqueueLib(lib='libpalettizer.lib', obj=['palettizer_composite1.obj'])
  3097. #
  3098. # DIRECTORY: pandatool/src/egg-mkfont/
  3099. #
  3100. if (OMIT.count("FREETYPE")==0) and (OMIT.count("PANDATOOL")==0):
  3101. IPATH=['pandatool/src/egg-mkfont', 'pandatool/src/palettizer']
  3102. OPTS=[ 'FREETYPE']
  3103. EnqueueCxx(ipath=IPATH, opts=OPTS, src='eggMakeFont.cxx', obj='egg-mkfont_eggMakeFont.obj')
  3104. EnqueueCxx(ipath=IPATH, opts=OPTS, src='rangeDescription.cxx', obj='egg-mkfont_rangeDescription.obj')
  3105. EnqueueCxx(ipath=IPATH, opts=OPTS, src='rangeIterator.cxx', obj='egg-mkfont_rangeIterator.obj')
  3106. EnqueueLink(dll='egg-mkfont.exe', opts=['ADVAPI', 'FREETYPE'], obj=[
  3107. 'egg-mkfont_eggMakeFont.obj',
  3108. 'egg-mkfont_rangeDescription.obj',
  3109. 'egg-mkfont_rangeIterator.obj',
  3110. 'libpalettizer.lib',
  3111. 'libeggbase.lib',
  3112. 'libprogbase.lib',
  3113. 'libpandatoolbase.lib',
  3114. 'libconverter.lib',
  3115. 'libpandaegg.dll',
  3116. 'libpanda.dll',
  3117. 'libpandaexpress.dll',
  3118. 'libp3dtoolconfig.dll',
  3119. 'libp3dtool.dll',
  3120. 'libp3pystub.dll',
  3121. ])
  3122. #
  3123. # DIRECTORY: pandatool/src/eggcharbase/
  3124. #
  3125. if (OMIT.count("PANDATOOL")==0):
  3126. IPATH=['pandatool/src/eggcharbase']
  3127. OPTS=['ZLIB']
  3128. EnqueueCxx(ipath=IPATH, opts=OPTS, src='eggcharbase_composite1.cxx', obj='eggcharbase_composite1.obj')
  3129. EnqueueLib(lib='libeggcharbase.lib', obj=['eggcharbase_composite1.obj'])
  3130. #
  3131. # DIRECTORY: pandatool/src/egg-optchar/
  3132. #
  3133. if (OMIT.count("PANDATOOL")==0):
  3134. IPATH=['pandatool/src/egg-optchar']
  3135. OPTS=[]
  3136. EnqueueCxx(ipath=IPATH, opts=OPTS, src='config_egg_optchar.cxx', obj='egg-optchar_config_egg_optchar.obj')
  3137. EnqueueCxx(ipath=IPATH, opts=OPTS, src='eggOptchar.cxx', obj='egg-optchar_eggOptchar.obj')
  3138. EnqueueCxx(ipath=IPATH, opts=OPTS, src='eggOptcharUserData.cxx', obj='egg-optchar_eggOptcharUserData.obj')
  3139. EnqueueCxx(ipath=IPATH, opts=OPTS, src='vertexMembership.cxx', obj='egg-optchar_vertexMembership.obj')
  3140. EnqueueLink(dll='egg-optchar.exe', opts=['ADVAPI'], obj=[
  3141. 'egg-optchar_config_egg_optchar.obj',
  3142. 'egg-optchar_eggOptchar.obj',
  3143. 'egg-optchar_eggOptcharUserData.obj',
  3144. 'egg-optchar_vertexMembership.obj',
  3145. 'libeggcharbase.lib',
  3146. 'libconverter.lib',
  3147. 'libeggbase.lib',
  3148. 'libprogbase.lib',
  3149. 'libpandatoolbase.lib',
  3150. 'libpandaegg.dll',
  3151. 'libpanda.dll',
  3152. 'libpandaexpress.dll',
  3153. 'libp3dtoolconfig.dll',
  3154. 'libp3dtool.dll',
  3155. 'libp3pystub.dll',
  3156. ])
  3157. #
  3158. # DIRECTORY: pandatool/src/egg-palettize/
  3159. #
  3160. if (OMIT.count("PANDATOOL")==0):
  3161. IPATH=['pandatool/src/egg-palettize', 'pandatool/src/palettizer']
  3162. OPTS=[]
  3163. EnqueueCxx(ipath=IPATH, opts=OPTS, src='eggPalettize.cxx', obj='egg-palettize_eggPalettize.obj')
  3164. EnqueueLink(dll='egg-palettize.exe', opts=['ADVAPI'], obj=[
  3165. 'egg-palettize_eggPalettize.obj',
  3166. 'libpalettizer.lib',
  3167. 'libeggbase.lib',
  3168. 'libprogbase.lib',
  3169. 'libpandatoolbase.lib',
  3170. 'libconverter.lib',
  3171. 'libpandaegg.dll',
  3172. 'libpanda.dll',
  3173. 'libpandaexpress.dll',
  3174. 'libp3dtoolconfig.dll',
  3175. 'libp3dtool.dll',
  3176. 'libp3pystub.dll',
  3177. ])
  3178. #
  3179. # DIRECTORY: pandatool/src/egg-qtess/
  3180. #
  3181. if (OMIT.count("PANDATOOL")==0):
  3182. IPATH=['pandatool/src/egg-qtess']
  3183. OPTS=[]
  3184. EnqueueCxx(ipath=IPATH, opts=OPTS, src='egg-qtess_composite1.cxx', obj='egg-qtess_composite1.obj')
  3185. EnqueueLink(dll='egg-qtess.exe', opts=['ADVAPI'], obj=[
  3186. 'egg-qtess_composite1.obj',
  3187. 'libeggbase.lib',
  3188. 'libprogbase.lib',
  3189. 'libconverter.lib',
  3190. 'libpandatoolbase.lib',
  3191. 'libpandaegg.dll',
  3192. 'libpanda.dll',
  3193. 'libpandaexpress.dll',
  3194. 'libp3dtoolconfig.dll',
  3195. 'libp3dtool.dll',
  3196. 'libp3pystub.dll',
  3197. ])
  3198. #
  3199. # DIRECTORY: pandatool/src/eggprogs/
  3200. #
  3201. if (OMIT.count("PANDATOOL")==0):
  3202. IPATH=['pandatool/src/eggprogs']
  3203. OPTS=[]
  3204. EnqueueCxx(ipath=IPATH, opts=OPTS, src='eggCrop.cxx', obj='egg-crop_eggCrop.obj')
  3205. EnqueueLink(dll='egg-crop.exe', opts=['ADVAPI'], obj=[
  3206. 'egg-crop_eggCrop.obj',
  3207. 'libconverter.lib',
  3208. 'libeggbase.lib',
  3209. 'libprogbase.lib',
  3210. 'libpandatoolbase.lib',
  3211. 'libpandaegg.dll',
  3212. 'libpanda.dll',
  3213. 'libpandaexpress.dll',
  3214. 'libp3dtoolconfig.dll',
  3215. 'libp3dtool.dll',
  3216. 'libp3pystub.dll',
  3217. ])
  3218. EnqueueCxx(ipath=IPATH, opts=OPTS, src='eggMakeTube.cxx', obj='egg-make-tube_eggMakeTube.obj')
  3219. EnqueueLink(dll='egg-make-tube.exe', opts=['ADVAPI'], obj=[
  3220. 'egg-make-tube_eggMakeTube.obj',
  3221. 'libconverter.lib',
  3222. 'libeggbase.lib',
  3223. 'libprogbase.lib',
  3224. 'libpandatoolbase.lib',
  3225. 'libpandaegg.dll',
  3226. 'libpanda.dll',
  3227. 'libpandaexpress.dll',
  3228. 'libp3dtoolconfig.dll',
  3229. 'libp3dtool.dll',
  3230. 'libp3pystub.dll',
  3231. ])
  3232. EnqueueCxx(ipath=IPATH, opts=OPTS, src='eggTextureCards.cxx', obj='egg-texture-cards_eggTextureCards.obj')
  3233. EnqueueLink(dll='egg-texture-cards.exe', opts=['ADVAPI'], obj=[
  3234. 'egg-texture-cards_eggTextureCards.obj',
  3235. 'libconverter.lib',
  3236. 'libeggbase.lib',
  3237. 'libprogbase.lib',
  3238. 'libpandatoolbase.lib',
  3239. 'libpandaegg.dll',
  3240. 'libpanda.dll',
  3241. 'libpandaexpress.dll',
  3242. 'libp3dtoolconfig.dll',
  3243. 'libp3dtool.dll',
  3244. 'libp3pystub.dll',
  3245. ])
  3246. EnqueueCxx(ipath=IPATH, opts=OPTS, src='eggTopstrip.cxx', obj='egg-topstrip_eggTopstrip.obj')
  3247. EnqueueLink(dll='egg-topstrip.exe', opts=['ADVAPI'], obj=[
  3248. 'egg-topstrip_eggTopstrip.obj',
  3249. 'libeggcharbase.lib',
  3250. 'libconverter.lib',
  3251. 'libeggbase.lib',
  3252. 'libprogbase.lib',
  3253. 'libpandatoolbase.lib',
  3254. 'libpandaegg.dll',
  3255. 'libpanda.dll',
  3256. 'libpandaexpress.dll',
  3257. 'libp3dtoolconfig.dll',
  3258. 'libp3dtool.dll',
  3259. 'libp3pystub.dll',
  3260. ])
  3261. EnqueueCxx(ipath=IPATH, opts=OPTS, src='eggTrans.cxx', obj='egg-trans_eggTrans.obj')
  3262. EnqueueLink(dll='egg-trans.exe', opts=['ADVAPI'], obj=[
  3263. 'egg-trans_eggTrans.obj',
  3264. 'libconverter.lib',
  3265. 'libeggbase.lib',
  3266. 'libprogbase.lib',
  3267. 'libpandatoolbase.lib',
  3268. 'libpandaegg.dll',
  3269. 'libpanda.dll',
  3270. 'libpandaexpress.dll',
  3271. 'libp3dtoolconfig.dll',
  3272. 'libp3dtool.dll',
  3273. 'libp3pystub.dll',
  3274. ])
  3275. EnqueueCxx(ipath=IPATH, opts=OPTS, src='eggToC.cxx', obj='egg2c_eggToC.obj')
  3276. EnqueueLink(dll='egg2c.exe', opts=['ADVAPI'], obj=[
  3277. 'egg2c_eggToC.obj',
  3278. 'libconverter.lib',
  3279. 'libeggbase.lib',
  3280. 'libprogbase.lib',
  3281. 'libpandatoolbase.lib',
  3282. 'libpandaegg.dll',
  3283. 'libpanda.dll',
  3284. 'libpandaexpress.dll',
  3285. 'libp3dtoolconfig.dll',
  3286. 'libp3dtool.dll',
  3287. 'libp3pystub.dll',
  3288. ])
  3289. EnqueueCxx(ipath=IPATH, opts=OPTS, src='eggRename.cxx', obj='egg-rename_eggRename.obj')
  3290. EnqueueLink(dll='egg-rename.exe', opts=['ADVAPI'], obj=[
  3291. 'egg-rename_eggRename.obj',
  3292. 'libconverter.lib',
  3293. 'libeggbase.lib',
  3294. 'libprogbase.lib',
  3295. 'libpandatoolbase.lib',
  3296. 'libpandaegg.dll',
  3297. 'libpanda.dll',
  3298. 'libpandaexpress.dll',
  3299. 'libp3dtoolconfig.dll',
  3300. 'libp3dtool.dll',
  3301. 'libp3pystub.dll',
  3302. ])
  3303. EnqueueCxx(ipath=IPATH, opts=OPTS, src='eggRetargetAnim.cxx', obj='egg-retarget-anim_eggRetargetAnim.obj')
  3304. EnqueueLink(dll='egg-retarget-anim.exe', opts=['ADVAPI'], obj=[
  3305. 'egg-retarget-anim_eggRetargetAnim.obj',
  3306. 'libeggcharbase.lib',
  3307. 'libconverter.lib',
  3308. 'libeggbase.lib',
  3309. 'libprogbase.lib',
  3310. 'libpandatoolbase.lib',
  3311. 'libpandaegg.dll',
  3312. 'libpanda.dll',
  3313. 'libpandaexpress.dll',
  3314. 'libp3dtoolconfig.dll',
  3315. 'libp3dtool.dll',
  3316. 'libp3pystub.dll',
  3317. ])
  3318. #
  3319. # DIRECTORY: pandatool/src/flt/
  3320. #
  3321. if (OMIT.count("PANDATOOL")==0):
  3322. IPATH=['pandatool/src/flt']
  3323. OPTS=[ 'ZLIB']
  3324. EnqueueCxx(ipath=IPATH, opts=OPTS, src='fltVectorRecord.cxx', obj='flt_fltVectorRecord.obj')
  3325. EnqueueCxx(ipath=IPATH, opts=OPTS, src='flt_composite1.cxx', obj='flt_composite1.obj')
  3326. EnqueueLib(lib='libflt.lib', obj=['flt_fltVectorRecord.obj', 'flt_composite1.obj'])
  3327. #
  3328. # DIRECTORY: pandatool/src/fltegg/
  3329. #
  3330. if (OMIT.count("PANDATOOL")==0):
  3331. IPATH=['pandatool/src/fltegg']
  3332. OPTS=[]
  3333. EnqueueCxx(ipath=IPATH, opts=OPTS, src='fltToEggConverter.cxx', obj='fltegg_fltToEggConverter.obj')
  3334. EnqueueCxx(ipath=IPATH, opts=OPTS, src='fltToEggLevelState.cxx', obj='fltegg_fltToEggLevelState.obj')
  3335. EnqueueLib(lib='libfltegg.lib', obj=['fltegg_fltToEggConverter.obj', 'fltegg_fltToEggLevelState.obj'])
  3336. #
  3337. # DIRECTORY: pandatool/src/fltprogs/
  3338. #
  3339. if (OMIT.count("PANDATOOL")==0):
  3340. IPATH=['pandatool/src/fltprogs', 'pandatool/src/flt', 'pandatool/src/cvscopy']
  3341. OPTS=[]
  3342. EnqueueCxx(ipath=IPATH, opts=OPTS, src='eggToFlt.cxx', obj='egg2flt_eggToFlt.obj')
  3343. EnqueueLink(dll='egg2flt.exe', opts=['ADVAPI'], obj=[
  3344. 'egg2flt_eggToFlt.obj',
  3345. 'libflt.lib',
  3346. 'libeggbase.lib',
  3347. 'libprogbase.lib',
  3348. 'libconverter.lib',
  3349. 'libpandatoolbase.lib',
  3350. 'libpandaegg.dll',
  3351. 'libpanda.dll',
  3352. 'libpandaexpress.dll',
  3353. 'libp3dtoolconfig.dll',
  3354. 'libp3dtool.dll',
  3355. 'libp3pystub.dll',
  3356. ])
  3357. EnqueueCxx(ipath=IPATH, opts=OPTS, src='fltInfo.cxx', obj='flt-info_fltInfo.obj')
  3358. EnqueueLink(dll='flt-info.exe', opts=['ADVAPI'], obj=[
  3359. 'flt-info_fltInfo.obj',
  3360. 'libprogbase.lib',
  3361. 'libflt.lib',
  3362. 'libpandatoolbase.lib',
  3363. 'libconverter.lib',
  3364. 'libpandaegg.dll',
  3365. 'libpanda.dll',
  3366. 'libpandaexpress.dll',
  3367. 'libp3dtoolconfig.dll',
  3368. 'libp3dtool.dll',
  3369. 'libp3pystub.dll',
  3370. ])
  3371. EnqueueCxx(ipath=IPATH, opts=OPTS, src='fltTrans.cxx', obj='flt-trans_fltTrans.obj')
  3372. EnqueueLink(dll='flt-trans.exe', opts=['ADVAPI'], obj=[
  3373. 'flt-trans_fltTrans.obj',
  3374. 'libprogbase.lib',
  3375. 'libflt.lib',
  3376. 'libpandatoolbase.lib',
  3377. 'libconverter.lib',
  3378. 'libpandaegg.dll',
  3379. 'libpanda.dll',
  3380. 'libpandaexpress.dll',
  3381. 'libp3dtoolconfig.dll',
  3382. 'libp3dtool.dll',
  3383. 'libp3pystub.dll',
  3384. ])
  3385. EnqueueCxx(ipath=IPATH, opts=OPTS, src='fltToEgg.cxx', obj='flt2egg_fltToEgg.obj')
  3386. EnqueueLink(dll='flt2egg.exe', opts=['ADVAPI'], obj=[
  3387. 'flt2egg_fltToEgg.obj',
  3388. 'libflt.lib',
  3389. 'libfltegg.lib',
  3390. 'libeggbase.lib',
  3391. 'libprogbase.lib',
  3392. 'libconverter.lib',
  3393. 'libpandatoolbase.lib',
  3394. 'libpandaegg.dll',
  3395. 'libpanda.dll',
  3396. 'libpandaexpress.dll',
  3397. 'libp3dtoolconfig.dll',
  3398. 'libp3dtool.dll',
  3399. 'libp3pystub.dll',
  3400. ])
  3401. EnqueueCxx(ipath=IPATH, opts=OPTS, src='fltCopy.cxx', obj='fltcopy_fltCopy.obj')
  3402. EnqueueLink(dll='fltcopy.exe', opts=['ADVAPI'], obj=[
  3403. 'fltcopy_fltCopy.obj',
  3404. 'libcvscopy.lib',
  3405. 'libflt.lib',
  3406. 'libprogbase.lib',
  3407. 'libpandatoolbase.lib',
  3408. 'libconverter.lib',
  3409. 'libpandaegg.dll',
  3410. 'libpanda.dll',
  3411. 'libpandaexpress.dll',
  3412. 'libp3dtoolconfig.dll',
  3413. 'libp3dtool.dll',
  3414. 'libp3pystub.dll',
  3415. ])
  3416. #
  3417. # DIRECTORY: pandatool/src/imagebase/
  3418. #
  3419. if (OMIT.count("PANDATOOL")==0):
  3420. IPATH=['pandatool/src/imagebase']
  3421. OPTS=[]
  3422. EnqueueCxx(ipath=IPATH, opts=OPTS, src='imagebase_composite1.cxx', obj='imagebase_composite1.obj')
  3423. EnqueueLib(lib='libimagebase.lib', obj=['imagebase_composite1.obj'])
  3424. #
  3425. # DIRECTORY: pandatool/src/imageprogs/
  3426. #
  3427. if (OMIT.count("PANDATOOL")==0):
  3428. IPATH=['pandatool/src/imageprogs']
  3429. OPTS=[]
  3430. EnqueueCxx(ipath=IPATH, opts=OPTS, src='imageInfo.cxx', obj='image-info_imageInfo.obj')
  3431. EnqueueLink(dll='image-info.exe', opts=['ADVAPI'], obj=[
  3432. 'image-info_imageInfo.obj',
  3433. 'libimagebase.lib',
  3434. 'libprogbase.lib',
  3435. 'libpandatoolbase.lib',
  3436. 'libpandaegg.dll',
  3437. 'libpanda.dll',
  3438. 'libpandaexpress.dll',
  3439. 'libp3dtoolconfig.dll',
  3440. 'libp3dtool.dll',
  3441. 'libp3pystub.dll',
  3442. ])
  3443. EnqueueCxx(ipath=IPATH, opts=OPTS, src='imageResize.cxx', obj='image-resize_imageResize.obj')
  3444. EnqueueLink(dll='image-resize.exe', opts=['ADVAPI'], obj=[
  3445. 'image-resize_imageResize.obj',
  3446. 'libimagebase.lib',
  3447. 'libprogbase.lib',
  3448. 'libpandatoolbase.lib',
  3449. 'libpandaegg.dll',
  3450. 'libpanda.dll',
  3451. 'libpandaexpress.dll',
  3452. 'libp3dtoolconfig.dll',
  3453. 'libp3dtool.dll',
  3454. 'libp3pystub.dll',
  3455. ])
  3456. EnqueueCxx(ipath=IPATH, opts=OPTS, src='imageTrans.cxx', obj='image-trans_imageTrans.obj')
  3457. EnqueueLink(dll='image-trans.exe', opts=['ADVAPI'], obj=[
  3458. 'image-trans_imageTrans.obj',
  3459. 'libimagebase.lib',
  3460. 'libprogbase.lib',
  3461. 'libpandatoolbase.lib',
  3462. 'libpandaegg.dll',
  3463. 'libpanda.dll',
  3464. 'libpandaexpress.dll',
  3465. 'libp3dtoolconfig.dll',
  3466. 'libp3dtool.dll',
  3467. 'libp3pystub.dll',
  3468. ])
  3469. #
  3470. # DIRECTORY: pandatool/src/lwo/
  3471. #
  3472. if (OMIT.count("PANDATOOL")==0):
  3473. IPATH=['pandatool/src/lwo']
  3474. OPTS=[]
  3475. EnqueueCxx(ipath=IPATH, opts=OPTS, src='lwo_composite1.cxx', obj='lwo_composite1.obj')
  3476. EnqueueLib(lib='liblwo.lib', obj=['lwo_composite1.obj'])
  3477. #
  3478. # DIRECTORY: pandatool/src/lwoegg/
  3479. #
  3480. if (OMIT.count("PANDATOOL")==0):
  3481. IPATH=['pandatool/src/lwoegg']
  3482. OPTS=[]
  3483. EnqueueCxx(ipath=IPATH, opts=OPTS, src='lwoegg_composite1.cxx', obj='lwoegg_composite1.obj')
  3484. EnqueueLib(lib='liblwoegg.lib', obj=['lwoegg_composite1.obj'])
  3485. #
  3486. # DIRECTORY: pandatool/src/lwoprogs/
  3487. #
  3488. if (OMIT.count("PANDATOOL")==0):
  3489. IPATH=['pandatool/src/lwoprogs', 'pandatool/src/lwo']
  3490. OPTS=[]
  3491. EnqueueCxx(ipath=IPATH, opts=OPTS, src='lwoScan.cxx', obj='lwo-scan_lwoScan.obj')
  3492. EnqueueLink(dll='lwo-scan.exe', opts=['ADVAPI'], obj=[
  3493. 'lwo-scan_lwoScan.obj',
  3494. 'liblwo.lib',
  3495. 'libprogbase.lib',
  3496. 'libpandatoolbase.lib',
  3497. 'libpandaegg.dll',
  3498. 'libpanda.dll',
  3499. 'libpandaexpress.dll',
  3500. 'libp3dtoolconfig.dll',
  3501. 'libp3dtool.dll',
  3502. 'libp3pystub.dll',
  3503. ])
  3504. EnqueueCxx(ipath=IPATH, opts=OPTS, src='lwoToEgg.cxx', obj='lwo2egg_lwoToEgg.obj')
  3505. EnqueueLink(dll='lwo2egg.exe', opts=['ADVAPI'], obj=[
  3506. 'lwo2egg_lwoToEgg.obj',
  3507. 'liblwo.lib',
  3508. 'liblwoegg.lib',
  3509. 'libeggbase.lib',
  3510. 'libprogbase.lib',
  3511. 'libpandatoolbase.lib',
  3512. 'libconverter.lib',
  3513. 'libpandaegg.dll',
  3514. 'libpanda.dll',
  3515. 'libpandaexpress.dll',
  3516. 'libp3dtoolconfig.dll',
  3517. 'libp3dtool.dll',
  3518. 'libp3pystub.dll',
  3519. ])
  3520. #
  3521. # DIRECTORY: pandatool/src/maya/
  3522. #
  3523. for VER in MAYAVERSIONS:
  3524. if (OMIT.count("MAYA"+VER)==0) and (OMIT.count("PANDATOOL")==0):
  3525. IPATH=['pandatool/src/maya']
  3526. OPTS=['MAYA'+VER]
  3527. EnqueueCxx(ipath=IPATH, opts=OPTS, src='maya_composite1.cxx', obj='maya'+VER+'_composite1.obj')
  3528. EnqueueLib(lib='libmaya'+VER+'.lib', obj=[ 'maya'+VER+'_composite1.obj' ])
  3529. #
  3530. # DIRECTORY: pandatool/src/mayaegg/
  3531. #
  3532. for VER in MAYAVERSIONS:
  3533. if (OMIT.count("MAYA"+VER)==0) and (OMIT.count("PANDATOOL")==0):
  3534. IPATH=['pandatool/src/mayaegg', 'pandatool/src/maya']
  3535. OPTS=['MAYA'+VER]
  3536. EnqueueCxx(ipath=IPATH, opts=OPTS, src='mayaEggLoader.cxx', obj='mayaegg'+VER+'_loader.obj')
  3537. EnqueueCxx(ipath=IPATH, opts=OPTS, src='mayaegg_composite1.cxx', obj='mayaegg'+VER+'_composite1.obj')
  3538. EnqueueLib(lib='libmayaegg'+VER+'.lib', obj=[ 'mayaegg'+VER+'_composite1.obj' ])
  3539. #
  3540. # DIRECTORY: pandatool/src/maxegg/
  3541. #
  3542. for VER in MAXVERSIONS:
  3543. if (OMIT.count("MAX"+VER)==0) and (OMIT.count("PANDATOOL")==0):
  3544. IPATH=['pandatool/src/maxegg']
  3545. OPTS=['MAX'+VER, "WINCOMCTL", "WINCOMDLG", "WINUSER", "MSFORSCOPE"]
  3546. CopyFile("built/tmp/maxEgg.obj", "pandatool/src/maxegg/maxEgg.obj")
  3547. EnqueueCxx(ipath=IPATH, opts=OPTS, src='maxEggLoader.cxx',obj='maxegg'+VER+'_loader.obj')
  3548. EnqueueCxx(ipath=IPATH, opts=OPTS, src='maxegg_composite1.cxx',obj='maxegg'+VER+'_composite1.obj')
  3549. EnqueueLink(opts=OPTS, dll='maxegg'+VER+'.dlo', ldef="pandatool/src/maxegg/maxEgg.def", obj=[
  3550. 'maxegg'+VER+'_composite1.obj',
  3551. 'maxEgg.obj',
  3552. 'libeggbase.lib',
  3553. 'libprogbase.lib',
  3554. 'libpandatoolbase.lib',
  3555. 'libconverter.lib',
  3556. 'libpandaeggstripped.dll',
  3557. 'libpandastripped.dll',
  3558. 'libpandaexpress.dll',
  3559. 'libp3dtoolconfig.dll',
  3560. 'libp3dtool.dll',
  3561. 'libp3pystub.dll'
  3562. ])
  3563. #
  3564. # DIRECTORY: pandatool/src/maxprogs/
  3565. #
  3566. for VER in MAXVERSIONS:
  3567. if (OMIT.count("MAX"+VER)==0) and (OMIT.count("PANDATOOL")==0):
  3568. IPATH=['pandatool/src/maxprogs']
  3569. OPTS=['MAX'+VER, "WINCOMCTL", "WINCOMDLG", "WINUSER", "MSFORSCOPE"]
  3570. CopyFile("built/tmp/maxImportRes.obj", "pandatool/src/maxprogs/maxImportRes.obj")
  3571. EnqueueCxx(ipath=IPATH, opts=OPTS, src='maxEggImport.cxx',obj='maxprogs'+VER+'_maxeggimport.obj')
  3572. EnqueueLink(opts=OPTS, dll='maxeggimport'+VER+'.dle', ldef="pandatool/src/maxprogs/maxEggImport.def", obj=[
  3573. 'maxegg'+VER+'_loader.obj',
  3574. 'maxprogs'+VER+'_maxeggimport.obj',
  3575. 'maxImportRes.obj',
  3576. 'libpandaeggstripped.dll',
  3577. 'libpandastripped.dll',
  3578. 'libpandaexpress.dll',
  3579. 'libp3dtoolconfig.dll',
  3580. 'libp3dtool.dll',
  3581. 'libp3pystub.dll'
  3582. ])
  3583. #
  3584. # DIRECTORY: pandatool/src/vrml/
  3585. #
  3586. if (OMIT.count("PANDATOOL")==0):
  3587. IPATH=['pandatool/src/vrml']
  3588. OPTS=['ZLIB']
  3589. CreateStubHeader("built/include/vrmlParser.h")
  3590. EnqueueBison(ipath=IPATH, opts=OPTS, pre='vrmlyy', src='vrmlParser.yxx', dsth='vrmlParser.h', obj='pvrml_vrmlParser.obj')
  3591. EnqueueFlex(ipath=IPATH, opts=OPTS, pre='vrmlyy', src='vrmlLexer.lxx', obj='pvrml_vrmlLexer.obj', dashi=0)
  3592. EnqueueCxx(ipath=IPATH, opts=OPTS, src='parse_vrml.cxx', obj='pvrml_parse_vrml.obj')
  3593. EnqueueCxx(ipath=IPATH, opts=OPTS, src='standard_nodes.cxx', obj='pvrml_standard_nodes.obj')
  3594. EnqueueCxx(ipath=IPATH, opts=OPTS, src='vrmlNode.cxx', obj='pvrml_vrmlNode.obj')
  3595. EnqueueCxx(ipath=IPATH, opts=OPTS, src='vrmlNodeType.cxx', obj='pvrml_vrmlNodeType.obj')
  3596. EnqueueLib(lib='libpvrml.lib', obj=[
  3597. 'pvrml_parse_vrml.obj',
  3598. 'pvrml_standard_nodes.obj',
  3599. 'pvrml_vrmlNode.obj',
  3600. 'pvrml_vrmlNodeType.obj',
  3601. 'pvrml_vrmlParser.obj',
  3602. 'pvrml_vrmlLexer.obj',
  3603. ])
  3604. #
  3605. # DIRECTORY: pandatool/src/vrmlegg/
  3606. #
  3607. if (OMIT.count("PANDATOOL")==0):
  3608. IPATH=['pandatool/src/vrmlegg', 'pandatool/src/vrml']
  3609. OPTS=[]
  3610. EnqueueCxx(ipath=IPATH, opts=OPTS, src='indexedFaceSet.cxx', obj='vrmlegg_indexedFaceSet.obj')
  3611. EnqueueCxx(ipath=IPATH, opts=OPTS, src='vrmlAppearance.cxx', obj='vrmlegg_vrmlAppearance.obj')
  3612. EnqueueCxx(ipath=IPATH, opts=OPTS, src='vrmlToEggConverter.cxx', obj='vrmlegg_vrmlToEggConverter.obj')
  3613. EnqueueLib(lib='libvrmlegg.lib', obj=[
  3614. 'vrmlegg_indexedFaceSet.obj',
  3615. 'vrmlegg_vrmlAppearance.obj',
  3616. 'vrmlegg_vrmlToEggConverter.obj',
  3617. ])
  3618. #
  3619. # DIRECTORY: pandatool/src/xfile/
  3620. #
  3621. if (OMIT.count("PANDATOOL")==0):
  3622. IPATH=['pandatool/src/xfile']
  3623. OPTS=['ZLIB']
  3624. CreateStubHeader("built/include/xParser.h")
  3625. EnqueueBison(ipath=IPATH, opts=OPTS, pre='xyy', src='xParser.yxx', dsth='xParser.h', obj='xfile_xParser.obj')
  3626. EnqueueFlex(ipath=IPATH, opts=OPTS, pre='xyy', src='xLexer.lxx', obj='xfile_xLexer.obj', dashi=1)
  3627. EnqueueCxx(ipath=IPATH, opts=OPTS, src='xfile_composite1.cxx', obj='xfile_composite1.obj')
  3628. EnqueueLib(lib='libxfile.lib', obj=[
  3629. 'xfile_composite1.obj',
  3630. 'xfile_xParser.obj',
  3631. 'xfile_xLexer.obj',
  3632. ])
  3633. #
  3634. # DIRECTORY: pandatool/src/xfileegg/
  3635. #
  3636. if (OMIT.count("PANDATOOL")==0):
  3637. IPATH=['pandatool/src/xfileegg', 'pandatool/src/xfile']
  3638. OPTS=[]
  3639. EnqueueCxx(ipath=IPATH, opts=OPTS, src='xfileegg_composite1.cxx', obj='xfileegg_composite1.obj')
  3640. EnqueueLib(lib='libxfileegg.lib', obj=[
  3641. 'xfileegg_composite1.obj',
  3642. ])
  3643. #
  3644. # DIRECTORY: pandatool/src/ptloader/
  3645. #
  3646. if (OMIT.count("PANDATOOL")==0):
  3647. IPATH=['pandatool/src/ptloader', 'pandatool/src/flt', 'pandatool/src/lwo', 'pandatool/src/xfile', 'pandatool/src/xfileegg']
  3648. OPTS=['BUILDING_PTLOADER']
  3649. EnqueueCxx(ipath=IPATH, opts=OPTS, src='config_ptloader.cxx', obj='ptloader_config_ptloader.obj')
  3650. EnqueueCxx(ipath=IPATH, opts=OPTS, src='loaderFileTypePandatool.cxx', obj='ptloader_loaderFileTypePandatool.obj')
  3651. EnqueueLink(dll='libp3ptloader.dll', opts=['ADVAPI'], obj=[
  3652. 'ptloader_config_ptloader.obj',
  3653. 'ptloader_loaderFileTypePandatool.obj',
  3654. 'libfltegg.lib',
  3655. 'libflt.lib',
  3656. 'liblwoegg.lib',
  3657. 'liblwo.lib',
  3658. 'libdxfegg.lib',
  3659. 'libdxf.lib',
  3660. 'libvrmlegg.lib',
  3661. 'libpvrml.lib',
  3662. 'libxfileegg.lib',
  3663. 'libxfile.lib',
  3664. 'libconverter.lib',
  3665. 'libpandatoolbase.lib',
  3666. 'libeggbase.lib',
  3667. 'libprogbase.lib',
  3668. 'libpandaegg.dll',
  3669. 'libpanda.dll',
  3670. 'libpandaexpress.dll',
  3671. 'libp3dtoolconfig.dll',
  3672. 'libp3dtool.dll',
  3673. ])
  3674. #
  3675. # DIRECTORY: pandatool/src/mayaprogs/
  3676. #
  3677. for VER in MAYAVERSIONS:
  3678. if (OMIT.count('MAYA'+VER)==0) and (OMIT.count("PANDATOOL")==0):
  3679. IPATH=['pandatool/src/mayaprogs', 'pandatool/src/maya', 'pandatool/src/mayaegg',
  3680. 'pandatool/src/cvscopy']
  3681. OPTS=['BUILDING_MISC', 'MAYA'+VER]
  3682. EnqueueCxx(ipath=IPATH, opts=OPTS, src='mayaEggImport.cxx', obj='mayaeggimport'+VER+'_mayaeggimport.obj')
  3683. EnqueueLink(opts=OPTS, dll='mayaeggimport'+VER+'.mll', obj=[
  3684. 'mayaegg'+VER+'_loader.obj',
  3685. 'mayaeggimport'+VER+'_mayaeggimport.obj',
  3686. 'libpandaegg.dll',
  3687. 'libpanda.dll',
  3688. 'libpandaexpress.dll',
  3689. 'libp3dtoolconfig.dll',
  3690. 'libp3dtool.dll',
  3691. 'libp3pystub.dll'
  3692. ])
  3693. EnqueueCxx(ipath=IPATH, opts=OPTS, src='config_mayaloader.cxx', obj='mayaloader'+VER+'_config_mayaloader.obj')
  3694. EnqueueLink(dll='libp3mayaloader'+VER+'.dll', opts=['ADVAPI', 'MAYA'+VER], obj=[
  3695. 'mayaloader'+VER+'_config_mayaloader.obj',
  3696. 'libmayaegg'+VER+'.lib',
  3697. 'libp3ptloader.lib',
  3698. 'libconverter.lib',
  3699. 'libpandatoolbase.lib',
  3700. 'libmaya'+VER+'.lib',
  3701. 'libfltegg.lib',
  3702. 'libflt.lib',
  3703. 'liblwoegg.lib',
  3704. 'liblwo.lib',
  3705. 'libdxfegg.lib',
  3706. 'libdxf.lib',
  3707. 'libvrmlegg.lib',
  3708. 'libpvrml.lib',
  3709. 'libxfileegg.lib',
  3710. 'libxfile.lib',
  3711. 'libeggbase.lib',
  3712. 'libprogbase.lib',
  3713. 'libpandaegg.dll',
  3714. 'libpanda.dll',
  3715. 'libpandaexpress.dll',
  3716. 'libp3dtoolconfig.dll',
  3717. 'libp3dtool.dll',
  3718. ])
  3719. EnqueueCxx(ipath=IPATH, opts=OPTS, src='mayaPview.cxx', obj='mayapview'+VER+'_mayaPview.obj')
  3720. EnqueueLink(dll='libmayapview'+VER+'.mll', opts=['ADVAPI', 'MAYA'+VER], obj=[
  3721. 'mayapview'+VER+'_mayaPview.obj',
  3722. 'libmayaegg'+VER+'.lib',
  3723. 'libmaya'+VER+'.lib',
  3724. 'libconverter.lib',
  3725. 'libpandatoolbase.lib',
  3726. 'libpandaegg.dll',
  3727. 'libp3framework.dll',
  3728. 'libpanda.dll',
  3729. 'libpandaexpress.dll',
  3730. 'libp3dtoolconfig.dll',
  3731. 'libp3dtool.dll',
  3732. 'libp3pystub.dll',
  3733. ])
  3734. EnqueueCxx(ipath=IPATH, opts=OPTS, src='mayaToEgg.cxx', obj='maya2egg'+VER+'_mayaToEgg.obj')
  3735. EnqueueLink(dll='maya2egg'+VER+'-wrapped.exe', opts=['ADVAPI', 'MAYA'+VER], obj=[
  3736. 'maya2egg'+VER+'_mayaToEgg.obj',
  3737. 'libmayaegg'+VER+'.lib',
  3738. 'libmaya'+VER+'.lib',
  3739. 'libeggbase.lib',
  3740. 'libprogbase.lib',
  3741. 'libconverter.lib',
  3742. 'libpandatoolbase.lib',
  3743. 'libpandaegg.dll',
  3744. 'libpanda.dll',
  3745. 'libpandaexpress.dll',
  3746. 'libp3dtoolconfig.dll',
  3747. 'libp3dtool.dll',
  3748. 'libp3pystub.dll',
  3749. ])
  3750. EnqueueCxx(ipath=IPATH, opts=OPTS, src='mayaCopy.cxx', obj='mayacopy'+VER+'_mayaCopy.obj')
  3751. EnqueueLink(dll='mayacopy'+VER+'-wrapped.exe', opts=['ADVAPI', 'MAYA'+VER], obj=[
  3752. 'mayacopy'+VER+'_mayaCopy.obj',
  3753. 'libcvscopy.lib',
  3754. 'libmaya'+VER+'.lib',
  3755. 'libprogbase.lib',
  3756. 'libpandatoolbase.lib',
  3757. 'libconverter.lib',
  3758. 'libpandaegg.dll',
  3759. 'libpanda.dll',
  3760. 'libpandaexpress.dll',
  3761. 'libp3dtoolconfig.dll',
  3762. 'libp3dtool.dll',
  3763. 'libp3pystub.dll',
  3764. ])
  3765. EnqueueCxx(ipath=IPATH, opts=OPTS, src='mayaWrapper.cxx', obj='mayaWrapper'+VER+'.obj')
  3766. EnqueueLink(dll='maya2egg'+VER+'.exe', opts=['ADVAPI'], obj=['mayaWrapper'+VER+'.obj'])
  3767. EnqueueLink(dll='mayacopy'+VER+'.exe', opts=['ADVAPI'], obj=['mayaWrapper'+VER+'.obj'])
  3768. EnqueueCxx(ipath=IPATH, opts=OPTS, src='mayaSavePview.cxx', obj='mayasavepview'+VER+'_mayaSavePview.obj')
  3769. EnqueueLink(dll='libmayasavepview'+VER+'.mll', opts=['ADVAPI', 'MAYA'+VER], obj=[
  3770. 'mayasavepview'+VER+'_mayaSavePview.obj',
  3771. ])
  3772. #
  3773. # DIRECTORY: pandatool/src/miscprogs/
  3774. #
  3775. if (OMIT.count("PANDATOOL")==0):
  3776. IPATH=['pandatool/src/miscprogs']
  3777. OPTS=[]
  3778. EnqueueCxx(ipath=IPATH, opts=OPTS, src='binToC.cxx', obj='bin2c_binToC.obj')
  3779. EnqueueLink(dll='bin2c.exe', opts=['ADVAPI'], obj=[
  3780. 'bin2c_binToC.obj',
  3781. 'libprogbase.lib',
  3782. 'libpandatoolbase.lib',
  3783. 'libpanda.dll',
  3784. 'libpandaexpress.dll',
  3785. 'libp3dtoolconfig.dll',
  3786. 'libp3dtool.dll',
  3787. 'libp3pystub.dll',
  3788. ])
  3789. #
  3790. # DIRECTORY: pandatool/src/pstatserver/
  3791. #
  3792. if (OMIT.count("PANDATOOL")==0):
  3793. IPATH=['pandatool/src/pstatserver']
  3794. OPTS=[]
  3795. EnqueueCxx(ipath=IPATH, opts=OPTS, src='pstatserver_composite1.cxx', obj='pstatserver_composite1.obj')
  3796. EnqueueLib(lib='libpstatserver.lib', obj=[ 'pstatserver_composite1.obj' ])
  3797. #
  3798. # DIRECTORY: pandatool/src/softprogs/
  3799. #
  3800. if (OMIT.count("PANDATOOL")==0):
  3801. IPATH=['pandatool/src/softprogs']
  3802. OPTS=[]
  3803. EnqueueCxx(ipath=IPATH, opts=OPTS, src='softCVS.cxx', obj='softcvs_softCVS.obj')
  3804. EnqueueCxx(ipath=IPATH, opts=OPTS, src='softFilename.cxx', obj='softcvs_softFilename.obj')
  3805. EnqueueLink(opts=['ADVAPI'], dll='softcvs.exe', obj=[
  3806. 'softcvs_softCVS.obj',
  3807. 'softcvs_softFilename.obj',
  3808. 'libprogbase.lib',
  3809. 'libpandatoolbase.lib',
  3810. 'libpandaegg.dll',
  3811. 'libpanda.dll',
  3812. 'libpandaexpress.dll',
  3813. 'libp3dtoolconfig.dll',
  3814. 'libp3dtool.dll',
  3815. 'libp3pystub.dll',
  3816. ])
  3817. #
  3818. # DIRECTORY: pandatool/src/text-stats/
  3819. #
  3820. if (OMIT.count("PANDATOOL")==0):
  3821. IPATH=['pandatool/src/text-stats']
  3822. OPTS=[]
  3823. EnqueueCxx(ipath=IPATH, opts=OPTS, src='textMonitor.cxx', obj='text-stats_textMonitor.obj')
  3824. EnqueueCxx(ipath=IPATH, opts=OPTS, src='textStats.cxx', obj='text-stats_textStats.obj')
  3825. EnqueueLink(opts=['ADVAPI'], dll='text-stats.exe', obj=[
  3826. 'text-stats_textMonitor.obj',
  3827. 'text-stats_textStats.obj',
  3828. 'libprogbase.lib',
  3829. 'libpstatserver.lib',
  3830. 'libpandatoolbase.lib',
  3831. 'libpandaegg.dll',
  3832. 'libpanda.dll',
  3833. 'libpandaexpress.dll',
  3834. 'libp3dtoolconfig.dll',
  3835. 'libp3dtool.dll',
  3836. 'libp3pystub.dll',
  3837. ])
  3838. #
  3839. # DIRECTORY: pandatool/src/vrmlprogs/
  3840. #
  3841. if (OMIT.count("PANDATOOL")==0):
  3842. IPATH=['pandatool/src/vrmlprogs', 'pandatool/src/vrml', 'pandatool/src/vrmlegg']
  3843. OPTS=[]
  3844. EnqueueCxx(ipath=IPATH, opts=OPTS, src='vrmlTrans.cxx', obj='vrml-trans_vrmlTrans.obj')
  3845. EnqueueLink(opts=['ADVAPI'], dll='vrml-trans.exe', obj=[
  3846. 'vrml-trans_vrmlTrans.obj',
  3847. 'libprogbase.lib',
  3848. 'libpvrml.lib',
  3849. 'libpandatoolbase.lib',
  3850. 'libpanda.dll',
  3851. 'libpandaexpress.dll',
  3852. 'libp3dtoolconfig.dll',
  3853. 'libp3dtool.dll',
  3854. 'libp3pystub.dll',
  3855. ])
  3856. EnqueueCxx(ipath=IPATH, opts=OPTS, src='vrmlToEgg.cxx', obj='vrml2egg_vrmlToEgg.obj')
  3857. EnqueueLink(opts=['ADVAPI'], dll='vrml2egg.exe', obj=[
  3858. 'vrml2egg_vrmlToEgg.obj',
  3859. 'libvrmlegg.lib',
  3860. 'libpvrml.lib',
  3861. 'libeggbase.lib',
  3862. 'libprogbase.lib',
  3863. 'libpandatoolbase.lib',
  3864. 'libconverter.lib',
  3865. 'libpandaegg.dll',
  3866. 'libpanda.dll',
  3867. 'libpandaexpress.dll',
  3868. 'libp3dtoolconfig.dll',
  3869. 'libp3dtool.dll',
  3870. 'libp3pystub.dll',
  3871. ])
  3872. #
  3873. # DIRECTORY: pandatool/src/win-stats/
  3874. #
  3875. if (OMIT.count("PANDATOOL")==0) and (sys.platform == "win32"):
  3876. IPATH=['pandatool/src/win-stats']
  3877. OPTS=[]
  3878. EnqueueCxx(ipath=IPATH, opts=OPTS, src='winstats_composite1.cxx', obj='pstats_composite1.obj')
  3879. EnqueueLink(opts=['WINSOCK', 'WINIMM', 'WINGDI', 'WINKERNEL', 'WINOLDNAMES', 'WINUSER', 'WINMM'],
  3880. dll='pstats.exe', obj=[
  3881. 'pstats_composite1.obj',
  3882. 'libprogbase.lib',
  3883. 'libpstatserver.lib',
  3884. 'libpandatoolbase.lib',
  3885. 'libpandaexpress.dll',
  3886. 'libpanda.dll',
  3887. 'libp3dtoolconfig.dll',
  3888. 'libp3dtool.dll',
  3889. 'libp3pystub.dll',
  3890. ])
  3891. #
  3892. # DIRECTORY: pandatool/src/xfileprogs/
  3893. #
  3894. if (OMIT.count("PANDATOOL")==0):
  3895. IPATH=['pandatool/src/xfileprogs', 'pandatool/src/xfile', 'pandatool/src/xfileegg']
  3896. OPTS=[]
  3897. EnqueueCxx(ipath=IPATH, opts=OPTS, src='eggToX.cxx', obj='egg2x_eggToX.obj')
  3898. EnqueueLink(dll='egg2x.exe', opts=['ADVAPI'], obj=[
  3899. 'egg2x_eggToX.obj',
  3900. 'libxfileegg.lib',
  3901. 'libxfile.lib',
  3902. 'libeggbase.lib',
  3903. 'libprogbase.lib',
  3904. 'libpandatoolbase.lib',
  3905. 'libconverter.lib',
  3906. 'libpandaegg.dll',
  3907. 'libpanda.dll',
  3908. 'libpandaexpress.dll',
  3909. 'libp3dtoolconfig.dll',
  3910. 'libp3dtool.dll',
  3911. 'libp3pystub.dll',
  3912. ])
  3913. EnqueueCxx(ipath=IPATH, opts=OPTS, src='xFileTrans.cxx', obj='x-trans_xFileTrans.obj')
  3914. EnqueueLink(dll='x-trans.exe', opts=['ADVAPI'], obj=[
  3915. 'x-trans_xFileTrans.obj',
  3916. 'libprogbase.lib',
  3917. 'libxfile.lib',
  3918. 'libpandatoolbase.lib',
  3919. 'libpanda.dll',
  3920. 'libpandaexpress.dll',
  3921. 'libp3dtoolconfig.dll',
  3922. 'libp3dtool.dll',
  3923. 'libp3pystub.dll',
  3924. ])
  3925. EnqueueCxx(ipath=IPATH, opts=OPTS, src='xFileToEgg.cxx', obj='x2egg_xFileToEgg.obj')
  3926. EnqueueLink(opts=['ADVAPI'], dll='x2egg.exe', obj=[
  3927. 'x2egg_xFileToEgg.obj',
  3928. 'libxfileegg.lib',
  3929. 'libxfile.lib',
  3930. 'libconverter.lib',
  3931. 'libeggbase.lib',
  3932. 'libprogbase.lib',
  3933. 'libpandatoolbase.lib',
  3934. 'libpandaegg.dll',
  3935. 'libpanda.dll',
  3936. 'libpandaexpress.dll',
  3937. 'libp3dtoolconfig.dll',
  3938. 'libp3dtool.dll',
  3939. 'libp3pystub.dll',
  3940. ])
  3941. #
  3942. # DIRECTORY: pandaapp/src/pandaappbase/
  3943. #
  3944. if (OMIT.count("PANDAAPP")==0):
  3945. IPATH=['pandaapp/src/pandaappbase']
  3946. OPTS=[]
  3947. EnqueueCxx(ipath=IPATH, opts=OPTS, src='pandaappbase.cxx', obj='pandaappbase_pandaappbase.obj')
  3948. EnqueueLib(lib='libpandaappbase.lib', obj=['pandaappbase_pandaappbase.obj'])
  3949. #
  3950. # DIRECTORY: pandaapp/src/httpbackup/
  3951. #
  3952. if (OMIT.count("OPENSSL")==0) and (OMIT.count("PANDAAPP")==0):
  3953. IPATH=['pandaapp/src/httpbackup', 'pandaapp/src/pandaappbase']
  3954. OPTS=['OPENSSL']
  3955. EnqueueCxx(ipath=IPATH, opts=OPTS, src='backupCatalog.cxx', obj='httpbackup_backupCatalog.obj')
  3956. EnqueueCxx(ipath=IPATH, opts=OPTS, src='httpBackup.cxx', obj='httpbackup_httpBackup.obj')
  3957. EnqueueLink(opts=['ADVAPI', 'OPENSSL'], dll='httpbackup.exe', obj=[
  3958. 'httpbackup_backupCatalog.obj',
  3959. 'httpbackup_httpBackup.obj',
  3960. 'libpandaappbase.lib',
  3961. 'libpandaexpress.dll',
  3962. 'libpanda.dll',
  3963. 'libp3dtool.dll',
  3964. 'libp3dtoolconfig.dll',
  3965. 'libprogbase.lib',
  3966. 'libpandatoolbase.lib',
  3967. 'libp3pystub.dll',
  3968. ])
  3969. #
  3970. # DIRECTORY: pandaapp/src/indexify/
  3971. #
  3972. if (OMIT.count("FREETYPE")==0) and (OMIT.count("PANDAAPP")==0):
  3973. IPATH=['pandaapp/src/indexify']
  3974. OPTS=[ 'FREETYPE']
  3975. EnqueueCxx(ipath=IPATH, opts=OPTS, src='default_font.cxx', obj='font-samples_default_font.obj')
  3976. EnqueueCxx(ipath=IPATH, opts=OPTS, src='fontSamples.cxx', obj='font-samples_fontSamples.obj')
  3977. EnqueueLink(opts=['ADVAPI', 'FREETYPE'], dll='font-samples.exe', obj=[
  3978. 'font-samples_default_font.obj',
  3979. 'font-samples_fontSamples.obj',
  3980. 'libpanda.dll',
  3981. 'libpandaexpress.dll',
  3982. 'libp3dtool.dll',
  3983. 'libp3dtoolconfig.dll',
  3984. 'libprogbase.lib',
  3985. 'libpandatoolbase.lib',
  3986. 'libp3pystub.dll',
  3987. ])
  3988. EnqueueCxx(ipath=IPATH, opts=OPTS, src='default_index_icons.cxx', obj='indexify_default_index_icons.obj')
  3989. EnqueueCxx(ipath=IPATH, opts=OPTS, src='default_font.cxx', obj='indexify_default_font.obj')
  3990. EnqueueCxx(ipath=IPATH, opts=OPTS, src='indexImage.cxx', obj='indexify_indexImage.obj')
  3991. EnqueueCxx(ipath=IPATH, opts=OPTS, src='indexParameters.cxx', obj='indexify_indexParameters.obj')
  3992. EnqueueCxx(ipath=IPATH, opts=OPTS, src='indexify.cxx', obj='indexify_indexify.obj')
  3993. EnqueueCxx(ipath=IPATH, opts=OPTS, src='photo.cxx', obj='indexify_photo.obj')
  3994. EnqueueCxx(ipath=IPATH, opts=OPTS, src='rollDirectory.cxx', obj='indexify_rollDirectory.obj')
  3995. EnqueueLink(opts=['ADVAPI', 'FREETYPE'], dll='indexify.exe', obj=[
  3996. 'indexify_default_index_icons.obj',
  3997. 'indexify_default_font.obj',
  3998. 'indexify_indexImage.obj',
  3999. 'indexify_indexParameters.obj',
  4000. 'indexify_indexify.obj',
  4001. 'indexify_photo.obj',
  4002. 'indexify_rollDirectory.obj',
  4003. 'libpanda.dll',
  4004. 'libpandaexpress.dll',
  4005. 'libp3dtool.dll',
  4006. 'libp3dtoolconfig.dll',
  4007. 'libprogbase.lib',
  4008. 'libpandatoolbase.lib',
  4009. 'libp3pystub.dll',
  4010. ])
  4011. #
  4012. # Generate the models directory and samples directory
  4013. #
  4014. if (OMIT.count("PANDATOOL")==0):
  4015. CompileAllModels("built/models/misc/", "dmodels/src/misc/")
  4016. CompileAllModels("built/models/gui/", "dmodels/src/gui/")
  4017. CompileAllModels("built/models/", "models/")
  4018. CopyAllFiles("built/models/audio/sfx/", "dmodels/src/audio/sfx/", ".wav")
  4019. CopyAllFiles("built/models/icons/", "dmodels/src/icons/", ".gif")
  4020. CopyAllFiles("built/models/maps/", "models/maps/", ".jpg")
  4021. CopyAllFiles("built/models/maps/", "models/maps/", ".png")
  4022. CopyAllFiles("built/models/maps/", "models/maps/", ".rgb")
  4023. CopyAllFiles("built/models/maps/", "models/maps/", ".rgba")
  4024. CopyAllFiles("built/models/maps/", "dmodels/src/maps/", ".jpg")
  4025. CopyAllFiles("built/models/maps/", "dmodels/src/maps/", ".png")
  4026. CopyAllFiles("built/models/maps/", "dmodels/src/maps/", ".rgb")
  4027. CopyAllFiles("built/models/maps/", "dmodels/src/maps/", ".rgba")
  4028. ##########################################################################################
  4029. #
  4030. # Dependency-Based Distributed Build System.
  4031. #
  4032. ##########################################################################################
  4033. def BuildWorker(taskqueue, donequeue, slave):
  4034. print "Slave online: "+slave
  4035. while (1):
  4036. task = taskqueue.get()
  4037. sys.stdout.flush()
  4038. if (task == 0): return
  4039. try:
  4040. apply(task[0],task[1])
  4041. donequeue.put(task)
  4042. except:
  4043. donequeue.put(0)
  4044. def AllSourcesReady(task, pending):
  4045. sources = task[3]
  4046. for x in sources:
  4047. if (pending.has_key(x)):
  4048. return 0
  4049. altsources = task[4]
  4050. for x in altsources:
  4051. if (pending.has_key(x)):
  4052. return 0
  4053. return 1
  4054. def ParallelMake(tasklist):
  4055. # Read the slave-file.
  4056. slaves = []
  4057. for i in range(THREADCOUNT):
  4058. slaves.append("local")
  4059. # create the communication queues.
  4060. donequeue=Queue.Queue()
  4061. taskqueue=Queue.Queue()
  4062. # build up a table listing all the pending targets
  4063. pending = {}
  4064. for task in tasklist:
  4065. for target in task[2]:
  4066. pending[target] = 1
  4067. # create the workers
  4068. for slave in slaves:
  4069. th = threading.Thread(target=BuildWorker, args=[taskqueue,donequeue,slave])
  4070. th.setDaemon(1)
  4071. th.start()
  4072. # feed tasks to the workers.
  4073. tasksqueued = 0
  4074. while (1):
  4075. if (tasksqueued < len(slaves)*2):
  4076. extras = []
  4077. for task in tasklist:
  4078. if (tasksqueued < len(slaves)*3) & (AllSourcesReady(task, pending)):
  4079. if (NeedsBuild(task[2], task[3])):
  4080. tasksqueued += 1
  4081. taskqueue.put(task)
  4082. else:
  4083. for target in task[2]:
  4084. del pending[target]
  4085. else:
  4086. extras.append(task)
  4087. tasklist = extras
  4088. sys.stdout.flush()
  4089. if (tasksqueued == 0): break
  4090. donetask = donequeue.get()
  4091. if (donetask == 0):
  4092. exit("Build process aborting.")
  4093. sys.stdout.flush()
  4094. tasksqueued -= 1
  4095. JustBuilt(donetask[2], donetask[3])
  4096. for target in donetask[2]:
  4097. del pending[target]
  4098. # kill the workers.
  4099. for slave in slaves:
  4100. taskqueue.put(0)
  4101. # make sure there aren't any unsatisfied tasks
  4102. if (len(tasklist)>0):
  4103. exit("Dependency problem - task unsatisfied: "+str(tasklist[0][2]))
  4104. def SequentialMake(tasklist):
  4105. for task in tasklist:
  4106. if (NeedsBuild(task[2], task[3])):
  4107. apply(task[0], task[1])
  4108. JustBuilt(task[2], task[3])
  4109. def RunDependencyQueue(tasklist):
  4110. if (THREADCOUNT!=0):
  4111. ParallelMake(tasklist)
  4112. else:
  4113. SequentialMake(tasklist)
  4114. RunDependencyQueue(DEPENDENCYQUEUE)
  4115. ##########################################################################################
  4116. #
  4117. # Run genpycode
  4118. #
  4119. ##########################################################################################
  4120. if (OMIT.count("PYTHON")==0):
  4121. inputs = []
  4122. for x in GetDirectoryContents("built/pandac/input", ["*.in"]):
  4123. inputs.append("built/pandac/input/" + x)
  4124. if (NeedsBuild(['built/pandac/PandaModules.py'],inputs)):
  4125. if (GENMAN): oscmd("built/bin/genpycode -d")
  4126. else : oscmd("built/bin/genpycode")
  4127. JustBuilt(['built/pandac/PandaModules.py'],inputs)
  4128. ##########################################################################################
  4129. #
  4130. # The Installers
  4131. #
  4132. # Under windows, we can build an 'exe' package using NSIS
  4133. # Under linux, we can build an 'deb' package using dpkg-deb
  4134. # Makepanda does not build RPMs. To do that, use 'rpm -tb' on the source tarball.
  4135. #
  4136. ##########################################################################################
  4137. def MakeInstallerNSIS(file,fullname,smdirectory,installdir):
  4138. print "Building "+fullname+" installer. This can take up to an hour."
  4139. if (COMPRESSOR != "lzma"):
  4140. print("Note: you are using zlib, which is faster, but lzma gives better compression.")
  4141. if (os.path.exists(file)):
  4142. os.remove(file)
  4143. if (os.path.exists("nsis-output.exe")):
  4144. os.remove("nsis-output.exe")
  4145. psource=os.path.abspath(".")
  4146. panda=os.path.abspath("built")
  4147. cmd="thirdparty/win-nsis/makensis /V2 "
  4148. cmd=cmd+'/DCOMPRESSOR="'+COMPRESSOR+'" '
  4149. cmd=cmd+'/DNAME="'+fullname+'" '
  4150. cmd=cmd+'/DSMDIRECTORY="'+smdirectory+'" '
  4151. cmd=cmd+'/DINSTALLDIR="'+installdir+'" '
  4152. cmd=cmd+'/DOUTFILE="'+psource+'\\nsis-output.exe" '
  4153. cmd=cmd+'/DLICENSE="'+panda+'\\LICENSE" '
  4154. cmd=cmd+'/DLANGUAGE="Panda3DEnglish" '
  4155. cmd=cmd+'/DRUNTEXT="Run the Panda Greeting Card" '
  4156. cmd=cmd+'/DIBITMAP="panda-install.bmp" '
  4157. cmd=cmd+'/DUBITMAP="panda-uninstall.bmp" '
  4158. cmd=cmd+'/DPANDA="'+panda+'" '
  4159. cmd=cmd+'/DPANDACONF="'+panda+'\\etc" '
  4160. cmd=cmd+'/DPSOURCE="'+psource+'" '
  4161. cmd=cmd+'/DPYEXTRAS="'+psource+'\\thirdparty\\win-extras" '
  4162. cmd=cmd+'"'+psource+'\\direct\\src\\directscripts\\packpanda.nsi"'
  4163. oscmd( cmd)
  4164. os.rename("nsis-output.exe", file)
  4165. INSTALLER_DEB_FILE="""
  4166. Package: panda3d
  4167. Version: VERSION
  4168. Section: libdevel
  4169. Priority: optional
  4170. Architecture: i386
  4171. Essential: no
  4172. Depends: PYTHONV
  4173. Provides: panda3d
  4174. Maintainer: [email protected]
  4175. Description: The panda3D free 3D engine
  4176. """
  4177. INSTALLER_SPEC_FILE="""
  4178. Summary: Panda 3D Engine
  4179. Name: panda3d
  4180. Version: VERSION
  4181. Release: 1
  4182. License: Panda3D License
  4183. Group: Development/Libraries
  4184. BuildRoot: PANDASOURCE/linuxroot
  4185. %description
  4186. The Panda3D engine.
  4187. %post
  4188. /sbin/ldconfig
  4189. %postun
  4190. /sbin/ldconfig
  4191. %files
  4192. %defattr(-,root,root)
  4193. /etc/Confauto.prc
  4194. /etc/Config.prc
  4195. /usr/share/panda3d
  4196. /etc/ld.so.conf.d/panda3d.conf
  4197. /usr/bin
  4198. /usr/lib
  4199. /usr/include/panda3d
  4200. """
  4201. def MakeInstallerLinux():
  4202. import compileall
  4203. PYTHONV=os.path.basename(PYTHONSDK)
  4204. if (os.path.isdir("linuxroot")): oscmd("chmod -R 755 linuxroot")
  4205. oscmd("rm -rf linuxroot data.tar.gz control.tar.gz rpmarch.txt panda3d.spec")
  4206. oscmd("mkdir -p linuxroot/usr/bin")
  4207. oscmd("mkdir -p linuxroot/usr/include")
  4208. oscmd("mkdir -p linuxroot/usr/share/panda3d")
  4209. oscmd("mkdir -p linuxroot/usr/lib/"+PYTHONV+"/lib-dynload")
  4210. oscmd("mkdir -p linuxroot/usr/lib/"+PYTHONV+"/site-packages")
  4211. oscmd("mkdir -p linuxroot/etc/ld.so.conf.d")
  4212. oscmd("sed -e 's@$THIS_PRC_DIR/[.][.]@/usr/share/panda3d@' < built/etc/Config.prc > linuxroot/etc/Config.prc")
  4213. oscmd("cp built/etc/Confauto.prc linuxroot/etc/Confauto.prc")
  4214. oscmd("cp --recursive built/include linuxroot/usr/include/panda3d")
  4215. oscmd("cp --recursive direct linuxroot/usr/share/panda3d/direct")
  4216. oscmd("cp --recursive built/pandac linuxroot/usr/share/panda3d/pandac")
  4217. oscmd("cp --recursive built/Pmw linuxroot/usr/share/panda3d/Pmw")
  4218. oscmd("cp built/direct/__init__.py linuxroot/usr/share/panda3d/direct/__init__.py")
  4219. oscmd("cp --recursive SceneEditor linuxroot/usr/share/panda3d/SceneEditor")
  4220. oscmd("cp --recursive built/models linuxroot/usr/share/panda3d/models")
  4221. oscmd("cp --recursive samples linuxroot/usr/share/panda3d/samples")
  4222. oscmd("cp doc/LICENSE linuxroot/usr/share/panda3d/LICENSE")
  4223. oscmd("cp doc/LICENSE linuxroot/usr/include/panda3d/LICENSE")
  4224. oscmd("cp doc/ReleaseNotes linuxroot/usr/share/panda3d/ReleaseNotes")
  4225. oscmd("echo '/usr/lib/panda3d' > linuxroot/etc/ld.so.conf.d/panda3d.conf")
  4226. oscmd("echo '/usr/share/panda3d' > linuxroot/usr/lib/"+PYTHONV+"/site-packages/panda3d.pth")
  4227. oscmd("cp built/bin/* linuxroot/usr/bin/")
  4228. for base in os.listdir("built/lib"):
  4229. oscmd("ln -sf /usr/lib/"+base+" linuxroot/usr/lib/"+PYTHONV+"/lib-dynload/"+base)
  4230. oscmd("cp built/lib/"+base+" linuxroot/usr/lib/"+base)
  4231. for base in os.listdir("linuxroot/usr/share/panda3d/direct/src"):
  4232. if ((base != "extensions") and (base != "extensions_native")):
  4233. compileall.compile_dir("linuxroot/usr/share/panda3d/direct/src/"+base)
  4234. compileall.compile_dir("linuxroot/usr/share/panda3d/Pmw")
  4235. compileall.compile_dir("linuxroot/usr/share/panda3d/SceneEditor")
  4236. oscmd("chmod -R 555 linuxroot/usr/share/panda3d")
  4237. if (os.path.exists("/usr/bin/dpkg-deb")):
  4238. txt = INSTALLER_DEB_FILE[1:].replace("VERSION",str(VERSION)).replace("PYTHONV",PYTHONV)
  4239. oscmd("mkdir -p linuxroot/DEBIAN")
  4240. oscmd("cd linuxroot ; (find usr -type f -exec md5sum {} \;) > DEBIAN/md5sums")
  4241. oscmd("cd linuxroot ; (find etc -type f -exec md5sum {} \;) >> DEBIAN/md5sums")
  4242. WriteFile("linuxroot/DEBIAN/conffiles","/etc/Config.prc\n")
  4243. WriteFile("linuxroot/DEBIAN/control",txt)
  4244. oscmd("dpkg-deb -b linuxroot panda3d_"+VERSION+"_i386.deb")
  4245. oscmd("chmod -R 755 linuxroot")
  4246. if (os.path.exists("/usr/bin/rpmbuild")):
  4247. oscmd("rpm -E '{%_arch}' > rpmarch.txt")
  4248. arch=ReadFile("rpmarch.txt")
  4249. oscmd("rm -rf "+arch)
  4250. txt = INSTALLER_SPEC_FILE[1:].replace("VERSION",VERSION).replace("PANDASOURCE",PANDASOURCE)
  4251. WriteFile("panda3d.spec", txt)
  4252. oscmd("rpmbuild --define '_rpmdir "+PANDASOURCE+"' -bb panda3d.spec")
  4253. if (os.path.exists(arch+"/panda3d-"+VERSION+"-1."+arch+".rpm")):
  4254. oscmd("mv "+arch+"/panda3d-"+VERSION+"-1."+arch+".rpm .")
  4255. oscmd("rm -rf rpmarch.txt "+arch)
  4256. oscmd("chmod -R 755 linuxroot")
  4257. oscmd("rm -rf linuxroot data.tar.gz control.tar.gz panda3d.spec")
  4258. if (INSTALLER != 0):
  4259. if (sys.platform == "win32"):
  4260. MakeInstallerNSIS("Panda3D-"+VERSION+".exe", "Panda3D", "Panda3D "+VERSION, "C:\\Panda3D-"+VERSION)
  4261. elif (sys.platform == "linux2"):
  4262. MakeInstallerLinux()
  4263. else:
  4264. exit("Do not know how to make an installer for this platform")
  4265. ##########################################################################################
  4266. #
  4267. # Print final status report.
  4268. #
  4269. ##########################################################################################
  4270. SaveDependencyCache()
  4271. WARNINGS.append("Elapsed Time: "+PrettyTime(time.time() - STARTTIME))
  4272. #WARNINGS.append("Time(EnqueueCxx): "+PrettyTime(TIMECOMPILEC))
  4273. #WARNINGS.append("Time(CompileLib): "+PrettyTime(TIMECOMPILELIB))
  4274. #WARNINGS.append("Time(EnqueueLink): "+PrettyTime(TIMECOMPILELINK))
  4275. #WARNINGS.append("Time(EnqueueIgate): "+PrettyTime(TIMEINTERROGATE))
  4276. #WARNINGS.append("Time(EnqueueImod): "+PrettyTime(TIMEINTERROGATEMODULE))
  4277. printStatus("Makepanda Final Status Report", WARNINGS)