codemodel-v2-check.py 197 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342
  1. from check_index import *
  2. import sys
  3. import os
  4. def check_objects(o, g):
  5. assert is_list(o)
  6. assert len(o) == 1
  7. check_index_object(o[0], "codemodel", 2, 0, check_object_codemodel(g))
  8. def check_backtrace(t, b, backtrace):
  9. btg = t["backtraceGraph"]
  10. for expected in backtrace:
  11. assert is_int(b)
  12. node = btg["nodes"][b]
  13. expected_keys = ["file"]
  14. assert matches(btg["files"][node["file"]], expected["file"])
  15. if expected["line"] is not None:
  16. expected_keys.append("line")
  17. assert is_int(node["line"], expected["line"])
  18. if expected["command"] is not None:
  19. expected_keys.append("command")
  20. assert is_int(node["command"])
  21. assert is_string(btg["commands"][node["command"]], expected["command"])
  22. if expected["hasParent"]:
  23. expected_keys.append("parent")
  24. assert is_int(node["parent"])
  25. b = node["parent"]
  26. else:
  27. b = None
  28. assert sorted(node.keys()) == sorted(expected_keys)
  29. assert b is None
  30. def check_directory(c):
  31. def _check(actual, expected):
  32. assert is_dict(actual)
  33. expected_keys = ["build", "source", "projectIndex"]
  34. assert matches(actual["build"], expected["build"])
  35. assert is_int(actual["projectIndex"])
  36. assert is_string(c["projects"][actual["projectIndex"]]["name"], expected["projectName"])
  37. if expected["parentSource"] is not None:
  38. expected_keys.append("parentIndex")
  39. assert is_int(actual["parentIndex"])
  40. assert matches(c["directories"][actual["parentIndex"]]["source"], expected["parentSource"])
  41. if expected["childSources"] is not None:
  42. expected_keys.append("childIndexes")
  43. check_list_match(lambda a, e: matches(c["directories"][a]["source"], e),
  44. actual["childIndexes"], expected["childSources"],
  45. missing_exception=lambda e: "Child source: %s" % e,
  46. extra_exception=lambda a: "Child source: %s" % a["source"])
  47. if expected["targetIds"] is not None:
  48. expected_keys.append("targetIndexes")
  49. check_list_match(lambda a, e: matches(c["targets"][a]["id"], e),
  50. actual["targetIndexes"], expected["targetIds"],
  51. missing_exception=lambda e: "Target ID: %s" % e,
  52. extra_exception=lambda a: "Target ID: %s" % c["targets"][a]["id"])
  53. if expected["minimumCMakeVersion"] is not None:
  54. expected_keys.append("minimumCMakeVersion")
  55. assert is_dict(actual["minimumCMakeVersion"])
  56. assert sorted(actual["minimumCMakeVersion"].keys()) == ["string"]
  57. assert is_string(actual["minimumCMakeVersion"]["string"], expected["minimumCMakeVersion"])
  58. if expected["hasInstallRule"] is not None:
  59. expected_keys.append("hasInstallRule")
  60. assert is_bool(actual["hasInstallRule"], expected["hasInstallRule"])
  61. assert sorted(actual.keys()) == sorted(expected_keys)
  62. return _check
  63. def check_target_backtrace_graph(t):
  64. btg = t["backtraceGraph"]
  65. assert is_dict(btg)
  66. assert sorted(btg.keys()) == ["commands", "files", "nodes"]
  67. assert is_list(btg["commands"])
  68. for c in btg["commands"]:
  69. assert is_string(c)
  70. for f in btg["files"]:
  71. assert is_string(f)
  72. for n in btg["nodes"]:
  73. expected_keys = ["file"]
  74. assert is_dict(n)
  75. assert is_int(n["file"])
  76. assert 0 <= n["file"] < len(btg["files"])
  77. if "line" in n:
  78. expected_keys.append("line")
  79. assert is_int(n["line"])
  80. if "command" in n:
  81. expected_keys.append("command")
  82. assert is_int(n["command"])
  83. assert 0 <= n["command"] < len(btg["commands"])
  84. if "parent" in n:
  85. expected_keys.append("parent")
  86. assert is_int(n["parent"])
  87. assert 0 <= n["parent"] < len(btg["nodes"])
  88. assert sorted(n.keys()) == sorted(expected_keys)
  89. def check_target(c):
  90. def _check(actual, expected):
  91. assert is_dict(actual)
  92. assert sorted(actual.keys()) == ["directoryIndex", "id", "jsonFile", "name", "projectIndex"]
  93. assert is_int(actual["directoryIndex"])
  94. assert matches(c["directories"][actual["directoryIndex"]]["source"], expected["directorySource"])
  95. assert is_string(actual["name"], expected["name"])
  96. assert is_string(actual["jsonFile"])
  97. assert is_int(actual["projectIndex"])
  98. assert is_string(c["projects"][actual["projectIndex"]]["name"], expected["projectName"])
  99. filepath = os.path.join(reply_dir, actual["jsonFile"])
  100. with open(filepath) as f:
  101. obj = json.load(f)
  102. expected_keys = ["name", "id", "type", "backtraceGraph", "paths", "sources"]
  103. assert is_dict(obj)
  104. assert is_string(obj["name"], expected["name"])
  105. assert matches(obj["id"], expected["id"])
  106. assert is_string(obj["type"], expected["type"])
  107. check_target_backtrace_graph(obj)
  108. assert is_dict(obj["paths"])
  109. assert sorted(obj["paths"].keys()) == ["build", "source"]
  110. assert matches(obj["paths"]["build"], expected["build"])
  111. assert matches(obj["paths"]["source"], expected["source"])
  112. def check_source(actual, expected):
  113. assert is_dict(actual)
  114. expected_keys = ["path"]
  115. if expected["compileGroupLanguage"] is not None:
  116. expected_keys.append("compileGroupIndex")
  117. assert is_string(obj["compileGroups"][actual["compileGroupIndex"]]["language"], expected["compileGroupLanguage"])
  118. if expected["sourceGroupName"] is not None:
  119. expected_keys.append("sourceGroupIndex")
  120. assert is_string(obj["sourceGroups"][actual["sourceGroupIndex"]]["name"], expected["sourceGroupName"])
  121. if expected["isGenerated"] is not None:
  122. expected_keys.append("isGenerated")
  123. assert is_bool(actual["isGenerated"], expected["isGenerated"])
  124. if expected["backtrace"] is not None:
  125. expected_keys.append("backtrace")
  126. check_backtrace(obj, actual["backtrace"], expected["backtrace"])
  127. assert sorted(actual.keys()) == sorted(expected_keys)
  128. check_list_match(lambda a, e: matches(a["path"], e["path"]), obj["sources"],
  129. expected["sources"], check=check_source,
  130. check_exception=lambda a, e: "Source file: %s" % a["path"],
  131. missing_exception=lambda e: "Source file: %s" % e["path"],
  132. extra_exception=lambda a: "Source file: %s" % a["path"])
  133. if expected["backtrace"] is not None:
  134. expected_keys.append("backtrace")
  135. check_backtrace(obj, obj["backtrace"], expected["backtrace"])
  136. if expected["folder"] is not None:
  137. expected_keys.append("folder")
  138. assert is_dict(obj["folder"])
  139. assert sorted(obj["folder"].keys()) == ["name"]
  140. assert is_string(obj["folder"]["name"], expected["folder"])
  141. if expected["nameOnDisk"] is not None:
  142. expected_keys.append("nameOnDisk")
  143. assert matches(obj["nameOnDisk"], expected["nameOnDisk"])
  144. if expected["artifacts"] is not None:
  145. expected_keys.append("artifacts")
  146. def check_artifact(actual, expected):
  147. assert is_dict(actual)
  148. assert sorted(actual.keys()) == ["path"]
  149. check_list_match(lambda a, e: matches(a["path"], e["path"]),
  150. obj["artifacts"], expected["artifacts"],
  151. check=check_artifact,
  152. check_exception=lambda a, e: "Artifact: %s" % a["path"],
  153. missing_exception=lambda e: "Artifact: %s" % e["path"],
  154. extra_exception=lambda a: "Artifact: %s" % a["path"])
  155. if expected["isGeneratorProvided"] is not None:
  156. expected_keys.append("isGeneratorProvided")
  157. assert is_bool(obj["isGeneratorProvided"], expected["isGeneratorProvided"])
  158. if expected["install"] is not None:
  159. expected_keys.append("install")
  160. assert is_dict(obj["install"])
  161. assert sorted(obj["install"].keys()) == ["destinations", "prefix"]
  162. assert is_dict(obj["install"]["prefix"])
  163. assert sorted(obj["install"]["prefix"].keys()) == ["path"]
  164. assert matches(obj["install"]["prefix"]["path"], expected["install"]["prefix"])
  165. def check_install_destination(actual, expected):
  166. assert is_dict(actual)
  167. expected_keys = ["path"]
  168. if expected["backtrace"] is not None:
  169. expected_keys.append("backtrace")
  170. check_backtrace(obj, actual["backtrace"], expected["backtrace"])
  171. assert sorted(actual.keys()) == sorted(expected_keys)
  172. check_list_match(lambda a, e: matches(a["path"], e["path"]),
  173. obj["install"]["destinations"], expected["install"]["destinations"],
  174. check=check_install_destination,
  175. check_exception=lambda a, e: "Install path: %s" % a["path"],
  176. missing_exception=lambda e: "Install path: %s" % e["path"],
  177. extra_exception=lambda a: "Install path: %s" % a["path"])
  178. if expected["link"] is not None:
  179. expected_keys.append("link")
  180. assert is_dict(obj["link"])
  181. link_keys = ["language"]
  182. assert is_string(obj["link"]["language"], expected["link"]["language"])
  183. if "commandFragments" in obj["link"]:
  184. link_keys.append("commandFragments")
  185. assert is_list(obj["link"]["commandFragments"])
  186. for f in obj["link"]["commandFragments"]:
  187. assert is_dict(f)
  188. assert sorted(f.keys()) == ["fragment", "role"] or sorted(f.keys()) == ["backtrace", "fragment", "role"]
  189. assert is_string(f["fragment"])
  190. assert is_string(f["role"])
  191. assert f["role"] in ("flags", "libraries", "libraryPath", "frameworkPath")
  192. if expected["link"]["commandFragments"] is not None:
  193. def check_link_command_fragments(actual, expected):
  194. assert is_dict(actual)
  195. expected_keys = ["fragment", "role"]
  196. if expected["backtrace"] is not None:
  197. expected_keys.append("backtrace")
  198. assert matches(actual["fragment"], expected["fragment"])
  199. assert actual["role"] == expected["role"]
  200. check_backtrace(obj, actual["backtrace"], expected["backtrace"])
  201. assert sorted(actual.keys()) == sorted(expected_keys)
  202. check_list_match(lambda a, e: matches(a["fragment"], e["fragment"]),
  203. obj["link"]["commandFragments"], expected["link"]["commandFragments"],
  204. check=check_link_command_fragments,
  205. check_exception=lambda a, e: "Link fragment: %s" % a["fragment"],
  206. missing_exception=lambda e: "Link fragment: %s" % e["fragment"],
  207. extra_exception=lambda a: "Link fragment: %s" % a["fragment"],
  208. allow_extra=True)
  209. if expected["link"]["lto"] is not None:
  210. link_keys.append("lto")
  211. assert is_bool(obj["link"]["lto"], expected["link"]["lto"])
  212. # FIXME: Properly test sysroot
  213. if "sysroot" in obj["link"]:
  214. link_keys.append("sysroot")
  215. assert is_string(obj["link"]["sysroot"])
  216. assert sorted(obj["link"].keys()) == sorted(link_keys)
  217. if expected["archive"] is not None:
  218. expected_keys.append("archive")
  219. assert is_dict(obj["archive"])
  220. archive_keys = []
  221. # FIXME: Properly test commandFragments
  222. if "commandFragments" in obj["archive"]:
  223. archive_keys.append("commandFragments")
  224. assert is_list(obj["archive"]["commandFragments"])
  225. for f in obj["archive"]["commandFragments"]:
  226. assert is_dict(f)
  227. assert sorted(f.keys()) == ["fragment", "role"]
  228. assert is_string(f["fragment"])
  229. assert is_string(f["role"])
  230. assert f["role"] in ("flags")
  231. if expected["archive"]["lto"] is not None:
  232. archive_keys.append("lto")
  233. assert is_bool(obj["archive"]["lto"], expected["archive"]["lto"])
  234. assert sorted(obj["archive"].keys()) == sorted(archive_keys)
  235. if expected["dependencies"] is not None:
  236. expected_keys.append("dependencies")
  237. def check_dependency(actual, expected):
  238. assert is_dict(actual)
  239. expected_keys = ["id"]
  240. if expected["backtrace"] is not None:
  241. expected_keys.append("backtrace")
  242. check_backtrace(obj, actual["backtrace"], expected["backtrace"])
  243. assert sorted(actual.keys()) == sorted(expected_keys)
  244. check_list_match(lambda a, e: matches(a["id"], e["id"]),
  245. obj["dependencies"], expected["dependencies"],
  246. check=check_dependency,
  247. check_exception=lambda a, e: "Dependency ID: %s" % a["id"],
  248. missing_exception=lambda e: "Dependency ID: %s" % e["id"],
  249. extra_exception=lambda a: "Dependency ID: %s" % a["id"])
  250. if expected["sourceGroups"] is not None:
  251. expected_keys.append("sourceGroups")
  252. def check_source_group(actual, expected):
  253. assert is_dict(actual)
  254. assert sorted(actual.keys()) == ["name", "sourceIndexes"]
  255. check_list_match(lambda a, e: matches(obj["sources"][a]["path"], e),
  256. actual["sourceIndexes"], expected["sourcePaths"],
  257. missing_exception=lambda e: "Source path: %s" % e,
  258. extra_exception=lambda a: "Source path: %s" % obj["sources"][a]["path"])
  259. check_list_match(lambda a, e: is_string(a["name"], e["name"]),
  260. obj["sourceGroups"], expected["sourceGroups"],
  261. check=check_source_group,
  262. check_exception=lambda a, e: "Source group: %s" % a["name"],
  263. missing_exception=lambda e: "Source group: %s" % e["name"],
  264. extra_exception=lambda a: "Source group: %s" % a["name"])
  265. if expected["compileGroups"] is not None:
  266. expected_keys.append("compileGroups")
  267. def check_compile_group(actual, expected):
  268. assert is_dict(actual)
  269. expected_keys = ["sourceIndexes", "language"]
  270. check_list_match(lambda a, e: matches(obj["sources"][a]["path"], e),
  271. actual["sourceIndexes"], expected["sourcePaths"],
  272. missing_exception=lambda e: "Source path: %s" % e,
  273. extra_exception=lambda a: "Source path: %s" % obj["sources"][a]["path"])
  274. if "compileCommandFragments" in actual:
  275. expected_keys.append("compileCommandFragments")
  276. assert is_list(actual["compileCommandFragments"])
  277. for f in actual["compileCommandFragments"]:
  278. assert is_dict(f)
  279. assert is_string(f["fragment"])
  280. if expected["compileCommandFragments"] is not None:
  281. def check_compile_command_fragments(actual, expected):
  282. assert is_dict(actual)
  283. expected_keys = ["fragment"]
  284. if expected["backtrace"] is not None:
  285. expected_keys.append("backtrace")
  286. assert actual["fragment"] == expected["fragment"]
  287. check_backtrace(obj, actual["backtrace"], expected["backtrace"])
  288. assert sorted(actual.keys()) == sorted(expected_keys)
  289. check_list_match(lambda a, e: is_string(a["fragment"], e["fragment"]),
  290. actual["compileCommandFragments"], expected["compileCommandFragments"],
  291. check=check_compile_command_fragments,
  292. check_exception=lambda a, e: "Compile fragment: %s" % a["fragment"],
  293. missing_exception=lambda e: "Compile fragment: %s" % e["fragment"],
  294. extra_exception=lambda a: "Compile fragment: %s" % a["fragment"],
  295. allow_extra=True)
  296. if expected["includes"] is not None:
  297. expected_keys.append("includes")
  298. def check_include(actual, expected):
  299. assert is_dict(actual)
  300. expected_keys = ["path"]
  301. if expected["isSystem"] is not None:
  302. expected_keys.append("isSystem")
  303. assert is_bool(actual["isSystem"], expected["isSystem"])
  304. if expected["backtrace"] is not None:
  305. expected_keys.append("backtrace")
  306. check_backtrace(obj, actual["backtrace"], expected["backtrace"])
  307. assert sorted(actual.keys()) == sorted(expected_keys)
  308. check_list_match(lambda a, e: matches(a["path"], e["path"]),
  309. actual["includes"], expected["includes"],
  310. check=check_include,
  311. check_exception=lambda a, e: "Include path: %s" % a["path"],
  312. missing_exception=lambda e: "Include path: %s" % e["path"],
  313. extra_exception=lambda a: "Include path: %s" % a["path"])
  314. if expected["defines"] is not None:
  315. expected_keys.append("defines")
  316. def check_define(actual, expected):
  317. assert is_dict(actual)
  318. expected_keys = ["define"]
  319. if expected["backtrace"] is not None:
  320. expected_keys.append("backtrace")
  321. check_backtrace(obj, actual["backtrace"], expected["backtrace"])
  322. assert sorted(actual.keys()) == sorted(expected_keys)
  323. check_list_match(lambda a, e: is_string(a["define"], e["define"]),
  324. actual["defines"], expected["defines"],
  325. check=check_define,
  326. check_exception=lambda a, e: "Define: %s" % a["define"],
  327. missing_exception=lambda e: "Define: %s" % e["define"],
  328. extra_exception=lambda a: "Define: %s" % a["define"])
  329. # FIXME: Properly test sysroot
  330. if "sysroot" in actual:
  331. expected_keys.append("sysroot")
  332. assert is_string(actual["sysroot"])
  333. assert sorted(actual.keys()) == sorted(expected_keys)
  334. check_list_match(lambda a, e: is_string(a["language"], e["language"]),
  335. obj["compileGroups"], expected["compileGroups"],
  336. check=check_compile_group,
  337. check_exception=lambda a, e: "Compile group: %s" % a["language"],
  338. missing_exception=lambda e: "Compile group: %s" % e["language"],
  339. extra_exception=lambda a: "Compile group: %s" % a["language"])
  340. assert sorted(obj.keys()) == sorted(expected_keys)
  341. return _check
  342. def check_project(c):
  343. def _check(actual, expected):
  344. assert is_dict(actual)
  345. expected_keys = ["name", "directoryIndexes"]
  346. check_list_match(lambda a, e: matches(c["directories"][a]["source"], e),
  347. actual["directoryIndexes"], expected["directorySources"],
  348. missing_exception=lambda e: "Directory source: %s" % e,
  349. extra_exception=lambda a: "Directory source: %s" % c["directories"][a]["source"])
  350. if expected["parentName"] is not None:
  351. expected_keys.append("parentIndex")
  352. assert is_int(actual["parentIndex"])
  353. assert is_string(c["projects"][actual["parentIndex"]]["name"], expected["parentName"])
  354. if expected["childNames"] is not None:
  355. expected_keys.append("childIndexes")
  356. check_list_match(lambda a, e: is_string(c["projects"][a]["name"], e),
  357. actual["childIndexes"], expected["childNames"],
  358. missing_exception=lambda e: "Child name: %s" % e,
  359. extra_exception=lambda a: "Child name: %s" % c["projects"][a]["name"])
  360. if expected["targetIds"] is not None:
  361. expected_keys.append("targetIndexes")
  362. check_list_match(lambda a, e: matches(c["targets"][a]["id"], e),
  363. actual["targetIndexes"], expected["targetIds"],
  364. missing_exception=lambda e: "Target ID: %s" % e,
  365. extra_exception=lambda a: "Target ID: %s" % c["targets"][a]["id"])
  366. assert sorted(actual.keys()) == sorted(expected_keys)
  367. return _check
  368. def gen_check_directories(c, g):
  369. expected = [
  370. {
  371. "source": "^\\.$",
  372. "build": "^\\.$",
  373. "parentSource": None,
  374. "childSources": [
  375. "^alias$",
  376. "^custom$",
  377. "^cxx$",
  378. "^imported$",
  379. "^object$",
  380. "^.*/Tests/RunCMake/FileAPIExternalSource$",
  381. "^dir$",
  382. ],
  383. "targetIds": [
  384. "^ALL_BUILD::@6890427a1f51a3e7e1df$",
  385. "^ZERO_CHECK::@6890427a1f51a3e7e1df$",
  386. "^c_exe::@6890427a1f51a3e7e1df$",
  387. "^c_lib::@6890427a1f51a3e7e1df$",
  388. "^c_shared_exe::@6890427a1f51a3e7e1df$",
  389. "^c_shared_lib::@6890427a1f51a3e7e1df$",
  390. "^c_static_exe::@6890427a1f51a3e7e1df$",
  391. "^c_static_lib::@6890427a1f51a3e7e1df$",
  392. "^interface_exe::@6890427a1f51a3e7e1df$",
  393. ],
  394. "projectName": "codemodel-v2",
  395. "minimumCMakeVersion": "3.12",
  396. "hasInstallRule": True,
  397. },
  398. {
  399. "source": "^alias$",
  400. "build": "^alias$",
  401. "parentSource": "^\\.$",
  402. "childSources": None,
  403. "targetIds": [
  404. "^ALL_BUILD::@53632cba2752272bb008$",
  405. "^ZERO_CHECK::@53632cba2752272bb008$",
  406. "^c_alias_exe::@53632cba2752272bb008$",
  407. "^cxx_alias_exe::@53632cba2752272bb008$",
  408. ],
  409. "projectName": "Alias",
  410. "minimumCMakeVersion": "3.12",
  411. "hasInstallRule": None,
  412. },
  413. {
  414. "source": "^custom$",
  415. "build": "^custom$",
  416. "parentSource": "^\\.$",
  417. "childSources": None,
  418. "targetIds": [
  419. "^ALL_BUILD::@c11385ffed57b860da63$",
  420. "^ZERO_CHECK::@c11385ffed57b860da63$",
  421. "^custom_exe::@c11385ffed57b860da63$",
  422. "^custom_tgt::@c11385ffed57b860da63$",
  423. ],
  424. "projectName": "Custom",
  425. "minimumCMakeVersion": "3.12",
  426. "hasInstallRule": None,
  427. },
  428. {
  429. "source": "^cxx$",
  430. "build": "^cxx$",
  431. "parentSource": "^\\.$",
  432. "childSources": None,
  433. "targetIds": [
  434. "^ALL_BUILD::@a56b12a3f5c0529fb296$",
  435. "^ZERO_CHECK::@a56b12a3f5c0529fb296$",
  436. "^cxx_exe::@a56b12a3f5c0529fb296$",
  437. "^cxx_lib::@a56b12a3f5c0529fb296$",
  438. "^cxx_shared_exe::@a56b12a3f5c0529fb296$",
  439. "^cxx_shared_lib::@a56b12a3f5c0529fb296$",
  440. "^cxx_static_exe::@a56b12a3f5c0529fb296$",
  441. "^cxx_static_lib::@a56b12a3f5c0529fb296$",
  442. ],
  443. "projectName": "Cxx",
  444. "minimumCMakeVersion": "3.12",
  445. "hasInstallRule": None,
  446. },
  447. {
  448. "source": "^imported$",
  449. "build": "^imported$",
  450. "parentSource": "^\\.$",
  451. "childSources": None,
  452. "targetIds": [
  453. "^ALL_BUILD::@ba7eb709d0b48779c6c8$",
  454. "^ZERO_CHECK::@ba7eb709d0b48779c6c8$",
  455. "^link_imported_exe::@ba7eb709d0b48779c6c8$",
  456. "^link_imported_interface_exe::@ba7eb709d0b48779c6c8$",
  457. "^link_imported_object_exe::@ba7eb709d0b48779c6c8$",
  458. "^link_imported_shared_exe::@ba7eb709d0b48779c6c8$",
  459. "^link_imported_static_exe::@ba7eb709d0b48779c6c8$",
  460. ],
  461. "projectName": "Imported",
  462. "minimumCMakeVersion": "3.12",
  463. "hasInstallRule": None,
  464. },
  465. {
  466. "source": "^object$",
  467. "build": "^object$",
  468. "parentSource": "^\\.$",
  469. "childSources": None,
  470. "targetIds": [
  471. "^ALL_BUILD::@5ed5358f70faf8d8af7a$",
  472. "^ZERO_CHECK::@5ed5358f70faf8d8af7a$",
  473. "^c_object_exe::@5ed5358f70faf8d8af7a$",
  474. "^c_object_lib::@5ed5358f70faf8d8af7a$",
  475. "^cxx_object_exe::@5ed5358f70faf8d8af7a$",
  476. "^cxx_object_lib::@5ed5358f70faf8d8af7a$",
  477. ],
  478. "projectName": "Object",
  479. "minimumCMakeVersion": "3.13",
  480. "hasInstallRule": True,
  481. },
  482. {
  483. "source": "^dir$",
  484. "build": "^dir$",
  485. "parentSource": "^\\.$",
  486. "childSources": [
  487. "^dir/dir$",
  488. ],
  489. "targetIds": None,
  490. "projectName": "codemodel-v2",
  491. "minimumCMakeVersion": "3.12",
  492. "hasInstallRule": None,
  493. },
  494. {
  495. "source": "^dir/dir$",
  496. "build": "^dir/dir$",
  497. "parentSource": "^dir$",
  498. "childSources": None,
  499. "targetIds": None,
  500. "projectName": "codemodel-v2",
  501. "minimumCMakeVersion": "3.12",
  502. "hasInstallRule": None,
  503. },
  504. {
  505. "source": "^.*/Tests/RunCMake/FileAPIExternalSource$",
  506. "build": "^.*/Tests/RunCMake/FileAPI/FileAPIExternalBuild$",
  507. "parentSource": "^\\.$",
  508. "childSources": None,
  509. "targetIds": [
  510. "^ALL_BUILD::@[0-9a-f]+$",
  511. "^ZERO_CHECK::@[0-9a-f]+$",
  512. "^generated_exe::@[0-9a-f]+$",
  513. ],
  514. "projectName": "External",
  515. "minimumCMakeVersion": "3.12",
  516. "hasInstallRule": None,
  517. },
  518. ]
  519. if matches(g, "^Visual Studio "):
  520. for e in expected:
  521. if e["parentSource"] is not None:
  522. e["targetIds"] = filter_list(lambda t: not matches(t, "^\\^ZERO_CHECK"), e["targetIds"])
  523. elif g == "Xcode":
  524. if ';' in os.environ.get("CMAKE_OSX_ARCHITECTURES", ""):
  525. for e in expected:
  526. e["targetIds"] = filter_list(lambda t: not matches(t, "^\\^(link_imported_object_exe)"), e["targetIds"])
  527. else:
  528. for e in expected:
  529. e["targetIds"] = filter_list(lambda t: not matches(t, "^\\^(ALL_BUILD|ZERO_CHECK)"), e["targetIds"])
  530. return expected
  531. def check_directories(c, g):
  532. check_list_match(lambda a, e: matches(a["source"], e["source"]), c["directories"], gen_check_directories(c, g),
  533. check=check_directory(c),
  534. check_exception=lambda a, e: "Directory source: %s" % a["source"],
  535. missing_exception=lambda e: "Directory source: %s" % e["source"],
  536. extra_exception=lambda a: "Directory source: %s" % a["source"])
  537. def gen_check_targets(c, g, inSource):
  538. expected = [
  539. {
  540. "name": "ALL_BUILD",
  541. "id": "^ALL_BUILD::@6890427a1f51a3e7e1df$",
  542. "directorySource": "^\\.$",
  543. "projectName": "codemodel-v2",
  544. "type": "UTILITY",
  545. "isGeneratorProvided": True,
  546. "sources": [
  547. {
  548. "path": "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/CMakeFiles/ALL_BUILD$",
  549. "isGenerated": True,
  550. "sourceGroupName": "",
  551. "compileGroupLanguage": None,
  552. "backtrace": [
  553. {
  554. "file": "^CMakeLists\\.txt$",
  555. "line": None,
  556. "command": None,
  557. "hasParent": False,
  558. },
  559. ],
  560. },
  561. {
  562. "path": "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/CMakeFiles/ALL_BUILD\\.rule$",
  563. "isGenerated": True,
  564. "sourceGroupName": "CMake Rules",
  565. "compileGroupLanguage": None,
  566. "backtrace": [
  567. {
  568. "file": "^CMakeLists\\.txt$",
  569. "line": None,
  570. "command": None,
  571. "hasParent": False,
  572. },
  573. ],
  574. },
  575. ],
  576. "sourceGroups": [
  577. {
  578. "name": "",
  579. "sourcePaths": [
  580. "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/CMakeFiles/ALL_BUILD$",
  581. ],
  582. },
  583. {
  584. "name": "CMake Rules",
  585. "sourcePaths": [
  586. "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/CMakeFiles/ALL_BUILD\\.rule$",
  587. ],
  588. },
  589. ],
  590. "compileGroups": None,
  591. "backtrace": [
  592. {
  593. "file": "^CMakeLists\\.txt$",
  594. "line": None,
  595. "command": None,
  596. "hasParent": False,
  597. },
  598. ],
  599. "folder": None,
  600. "nameOnDisk": None,
  601. "artifacts": None,
  602. "build": "^\\.$",
  603. "source": "^\\.$",
  604. "install": None,
  605. "link": None,
  606. "archive": None,
  607. "dependencies": [
  608. {
  609. "id": "^ZERO_CHECK::@6890427a1f51a3e7e1df$",
  610. "backtrace": None,
  611. },
  612. {
  613. "id": "^interface_exe::@6890427a1f51a3e7e1df$",
  614. "backtrace": None,
  615. },
  616. {
  617. "id": "^c_lib::@6890427a1f51a3e7e1df$",
  618. "backtrace": None,
  619. },
  620. {
  621. "id": "^c_exe::@6890427a1f51a3e7e1df$",
  622. "backtrace": None,
  623. },
  624. {
  625. "id": "^c_shared_lib::@6890427a1f51a3e7e1df$",
  626. "backtrace": None,
  627. },
  628. {
  629. "id": "^c_shared_exe::@6890427a1f51a3e7e1df$",
  630. "backtrace": None,
  631. },
  632. {
  633. "id": "^c_static_lib::@6890427a1f51a3e7e1df$",
  634. "backtrace": None,
  635. },
  636. {
  637. "id": "^c_static_exe::@6890427a1f51a3e7e1df$",
  638. "backtrace": None,
  639. },
  640. {
  641. "id": "^c_alias_exe::@53632cba2752272bb008$",
  642. "backtrace": None,
  643. },
  644. {
  645. "id": "^cxx_alias_exe::@53632cba2752272bb008$",
  646. "backtrace": None,
  647. },
  648. {
  649. "id": "^cxx_lib::@a56b12a3f5c0529fb296$",
  650. "backtrace": None,
  651. },
  652. {
  653. "id": "^cxx_exe::@a56b12a3f5c0529fb296$",
  654. "backtrace": None,
  655. },
  656. {
  657. "id": "^cxx_shared_lib::@a56b12a3f5c0529fb296$",
  658. "backtrace": None,
  659. },
  660. {
  661. "id": "^cxx_shared_exe::@a56b12a3f5c0529fb296$",
  662. "backtrace": None,
  663. },
  664. {
  665. "id": "^cxx_static_lib::@a56b12a3f5c0529fb296$",
  666. "backtrace": None,
  667. },
  668. {
  669. "id": "^cxx_static_exe::@a56b12a3f5c0529fb296$",
  670. "backtrace": None,
  671. },
  672. {
  673. "id": "^c_object_lib::@5ed5358f70faf8d8af7a$",
  674. "backtrace": None,
  675. },
  676. {
  677. "id": "^c_object_exe::@5ed5358f70faf8d8af7a$",
  678. "backtrace": None,
  679. },
  680. {
  681. "id": "^cxx_object_lib::@5ed5358f70faf8d8af7a$",
  682. "backtrace": None,
  683. },
  684. {
  685. "id": "^cxx_object_exe::@5ed5358f70faf8d8af7a$",
  686. "backtrace": None,
  687. },
  688. {
  689. "id": "^link_imported_exe::@ba7eb709d0b48779c6c8$",
  690. "backtrace": None,
  691. },
  692. {
  693. "id": "^link_imported_shared_exe::@ba7eb709d0b48779c6c8$",
  694. "backtrace": None,
  695. },
  696. {
  697. "id": "^link_imported_static_exe::@ba7eb709d0b48779c6c8$",
  698. "backtrace": None,
  699. },
  700. {
  701. "id": "^link_imported_object_exe::@ba7eb709d0b48779c6c8$",
  702. "backtrace": None,
  703. },
  704. {
  705. "id": "^link_imported_interface_exe::@ba7eb709d0b48779c6c8$",
  706. "backtrace": None,
  707. },
  708. {
  709. "id": "^custom_exe::@c11385ffed57b860da63$",
  710. "backtrace": None,
  711. },
  712. {
  713. "id": "^generated_exe::@[0-9a-f]+$",
  714. "backtrace": None,
  715. },
  716. ],
  717. },
  718. {
  719. "name": "ZERO_CHECK",
  720. "id": "^ZERO_CHECK::@6890427a1f51a3e7e1df$",
  721. "directorySource": "^\\.$",
  722. "projectName": "codemodel-v2",
  723. "type": "UTILITY",
  724. "isGeneratorProvided": True,
  725. "sources": [
  726. {
  727. "path": "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/CMakeFiles/ZERO_CHECK$",
  728. "isGenerated": True,
  729. "sourceGroupName": "",
  730. "compileGroupLanguage": None,
  731. "backtrace": [
  732. {
  733. "file": "^CMakeLists\\.txt$",
  734. "line": None,
  735. "command": None,
  736. "hasParent": False,
  737. },
  738. ],
  739. },
  740. {
  741. "path": "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/CMakeFiles/ZERO_CHECK\\.rule$",
  742. "isGenerated": True,
  743. "sourceGroupName": "CMake Rules",
  744. "compileGroupLanguage": None,
  745. "backtrace": [
  746. {
  747. "file": "^CMakeLists\\.txt$",
  748. "line": None,
  749. "command": None,
  750. "hasParent": False,
  751. },
  752. ],
  753. },
  754. ],
  755. "sourceGroups": [
  756. {
  757. "name": "",
  758. "sourcePaths": [
  759. "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/CMakeFiles/ZERO_CHECK$",
  760. ],
  761. },
  762. {
  763. "name": "CMake Rules",
  764. "sourcePaths": [
  765. "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/CMakeFiles/ZERO_CHECK\\.rule$",
  766. ],
  767. },
  768. ],
  769. "compileGroups": None,
  770. "backtrace": [
  771. {
  772. "file": "^CMakeLists\\.txt$",
  773. "line": None,
  774. "command": None,
  775. "hasParent": False,
  776. },
  777. ],
  778. "folder": None,
  779. "nameOnDisk": None,
  780. "artifacts": None,
  781. "build": "^\\.$",
  782. "source": "^\\.$",
  783. "install": None,
  784. "link": None,
  785. "archive": None,
  786. "dependencies": None,
  787. },
  788. {
  789. "name": "interface_exe",
  790. "id": "^interface_exe::@6890427a1f51a3e7e1df$",
  791. "directorySource": "^\\.$",
  792. "projectName": "codemodel-v2",
  793. "type": "EXECUTABLE",
  794. "isGeneratorProvided": None,
  795. "sources": [
  796. {
  797. "path": "^empty\\.c$",
  798. "isGenerated": None,
  799. "sourceGroupName": "Source Files",
  800. "compileGroupLanguage": "C",
  801. "backtrace": [
  802. {
  803. "file": "^include_test\\.cmake$",
  804. "line": 3,
  805. "command": "add_executable",
  806. "hasParent": True,
  807. },
  808. {
  809. "file": "^include_test\\.cmake$",
  810. "line": None,
  811. "command": None,
  812. "hasParent": True,
  813. },
  814. {
  815. "file": "^codemodel-v2\\.cmake$",
  816. "line": 3,
  817. "command": "include",
  818. "hasParent": True,
  819. },
  820. {
  821. "file": "^codemodel-v2\\.cmake$",
  822. "line": None,
  823. "command": None,
  824. "hasParent": True,
  825. },
  826. {
  827. "file": "^CMakeLists\\.txt$",
  828. "line": 3,
  829. "command": "include",
  830. "hasParent": True,
  831. },
  832. {
  833. "file": "^CMakeLists\\.txt$",
  834. "line": None,
  835. "command": None,
  836. "hasParent": False,
  837. },
  838. ],
  839. },
  840. ],
  841. "sourceGroups": [
  842. {
  843. "name": "Source Files",
  844. "sourcePaths": [
  845. "^empty\\.c$",
  846. ],
  847. },
  848. ],
  849. "compileGroups": [
  850. {
  851. "language": "C",
  852. "sourcePaths": [
  853. "^empty\\.c$",
  854. ],
  855. "includes": None,
  856. "defines": [
  857. {
  858. "define": "interface_exe_EXPORTS",
  859. "backtrace": None,
  860. },
  861. ],
  862. "compileCommandFragments": None,
  863. },
  864. ],
  865. "backtrace": [
  866. {
  867. "file": "^include_test\\.cmake$",
  868. "line": 3,
  869. "command": "add_executable",
  870. "hasParent": True,
  871. },
  872. {
  873. "file": "^include_test\\.cmake$",
  874. "line": None,
  875. "command": None,
  876. "hasParent": True,
  877. },
  878. {
  879. "file": "^codemodel-v2\\.cmake$",
  880. "line": 3,
  881. "command": "include",
  882. "hasParent": True,
  883. },
  884. {
  885. "file": "^codemodel-v2\\.cmake$",
  886. "line": None,
  887. "command": None,
  888. "hasParent": True,
  889. },
  890. {
  891. "file": "^CMakeLists\\.txt$",
  892. "line": 3,
  893. "command": "include",
  894. "hasParent": True,
  895. },
  896. {
  897. "file": "^CMakeLists\\.txt$",
  898. "line": None,
  899. "command": None,
  900. "hasParent": False,
  901. },
  902. ],
  903. "folder": None,
  904. "nameOnDisk": "^my_interface_exe\\.myexe$",
  905. "artifacts": [
  906. {
  907. "path": "^bin/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?my_interface_exe\\.myexe$",
  908. "_dllExtra": False,
  909. },
  910. {
  911. "path": "^lib/my_interface_exe\\.imp$",
  912. "_aixExtra": True,
  913. "_dllExtra": False,
  914. },
  915. {
  916. "path": "^lib/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?(lib)?my_interface_exe\\.(dll\\.a|lib)$",
  917. "_dllExtra": True,
  918. },
  919. {
  920. "path": "^bin/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?my_interface_exe\\.pdb$",
  921. "_dllExtra": True,
  922. },
  923. ],
  924. "build": "^\\.$",
  925. "source": "^\\.$",
  926. "install": None,
  927. "link": {
  928. "language": "C",
  929. "lto": None,
  930. "commandFragments": None,
  931. },
  932. "archive": None,
  933. "dependencies": [
  934. {
  935. "id": "^ZERO_CHECK::@6890427a1f51a3e7e1df$",
  936. "backtrace": None,
  937. },
  938. ],
  939. },
  940. {
  941. "name": "c_lib",
  942. "id": "^c_lib::@6890427a1f51a3e7e1df$",
  943. "directorySource": "^\\.$",
  944. "projectName": "codemodel-v2",
  945. "type": "STATIC_LIBRARY",
  946. "isGeneratorProvided": None,
  947. "sources": [
  948. {
  949. "path": "^empty\\.c$",
  950. "isGenerated": None,
  951. "sourceGroupName": "Source Files",
  952. "compileGroupLanguage": "C",
  953. "backtrace": [
  954. {
  955. "file": "^codemodel-v2\\.cmake$",
  956. "line": 5,
  957. "command": "add_library",
  958. "hasParent": True,
  959. },
  960. {
  961. "file": "^codemodel-v2\\.cmake$",
  962. "line": None,
  963. "command": None,
  964. "hasParent": True,
  965. },
  966. {
  967. "file": "^CMakeLists\\.txt$",
  968. "line": 3,
  969. "command": "include",
  970. "hasParent": True,
  971. },
  972. {
  973. "file": "^CMakeLists\\.txt$",
  974. "line": None,
  975. "command": None,
  976. "hasParent": False,
  977. },
  978. ],
  979. },
  980. ],
  981. "sourceGroups": [
  982. {
  983. "name": "Source Files",
  984. "sourcePaths": [
  985. "^empty\\.c$",
  986. ],
  987. },
  988. ],
  989. "compileGroups": [
  990. {
  991. "language": "C",
  992. "sourcePaths": [
  993. "^empty\\.c$",
  994. ],
  995. "includes": None,
  996. "defines": None,
  997. "compileCommandFragments": None,
  998. },
  999. ],
  1000. "backtrace": [
  1001. {
  1002. "file": "^codemodel-v2\\.cmake$",
  1003. "line": 5,
  1004. "command": "add_library",
  1005. "hasParent": True,
  1006. },
  1007. {
  1008. "file": "^codemodel-v2\\.cmake$",
  1009. "line": None,
  1010. "command": None,
  1011. "hasParent": True,
  1012. },
  1013. {
  1014. "file": "^CMakeLists\\.txt$",
  1015. "line": 3,
  1016. "command": "include",
  1017. "hasParent": True,
  1018. },
  1019. {
  1020. "file": "^CMakeLists\\.txt$",
  1021. "line": None,
  1022. "command": None,
  1023. "hasParent": False,
  1024. },
  1025. ],
  1026. "folder": None,
  1027. "nameOnDisk": "^(lib)?c_lib\\.(a|lib)$",
  1028. "artifacts": [
  1029. {
  1030. "path": "^((Debug|Release|RelWithDebInfo|MinSizeRel)/)?(lib)?c_lib\\.(a|lib)$",
  1031. "_dllExtra": False,
  1032. },
  1033. ],
  1034. "build": "^\\.$",
  1035. "source": "^\\.$",
  1036. "install": None,
  1037. "link": None,
  1038. "archive": {
  1039. "lto": None,
  1040. },
  1041. "dependencies": [
  1042. {
  1043. "id": "^ZERO_CHECK::@6890427a1f51a3e7e1df$",
  1044. "backtrace": None,
  1045. },
  1046. ],
  1047. },
  1048. {
  1049. "name": "c_exe",
  1050. "id": "^c_exe::@6890427a1f51a3e7e1df$",
  1051. "directorySource": "^\\.$",
  1052. "projectName": "codemodel-v2",
  1053. "type": "EXECUTABLE",
  1054. "isGeneratorProvided": None,
  1055. "sources": [
  1056. {
  1057. "path": "^empty\\.c$",
  1058. "isGenerated": None,
  1059. "sourceGroupName": "Source Files",
  1060. "compileGroupLanguage": "C",
  1061. "backtrace": [
  1062. {
  1063. "file": "^codemodel-v2\\.cmake$",
  1064. "line": 6,
  1065. "command": "add_executable",
  1066. "hasParent": True,
  1067. },
  1068. {
  1069. "file": "^codemodel-v2\\.cmake$",
  1070. "line": None,
  1071. "command": None,
  1072. "hasParent": True,
  1073. },
  1074. {
  1075. "file": "^CMakeLists\\.txt$",
  1076. "line": 3,
  1077. "command": "include",
  1078. "hasParent": True,
  1079. },
  1080. {
  1081. "file": "^CMakeLists\\.txt$",
  1082. "line": None,
  1083. "command": None,
  1084. "hasParent": False,
  1085. },
  1086. ],
  1087. },
  1088. ],
  1089. "sourceGroups": [
  1090. {
  1091. "name": "Source Files",
  1092. "sourcePaths": [
  1093. "^empty\\.c$",
  1094. ],
  1095. },
  1096. ],
  1097. "compileGroups": [
  1098. {
  1099. "language": "C",
  1100. "sourcePaths": [
  1101. "^empty\\.c$",
  1102. ],
  1103. "includes": None,
  1104. "defines": None,
  1105. "compileCommandFragments": None,
  1106. },
  1107. ],
  1108. "backtrace": [
  1109. {
  1110. "file": "^codemodel-v2\\.cmake$",
  1111. "line": 6,
  1112. "command": "add_executable",
  1113. "hasParent": True,
  1114. },
  1115. {
  1116. "file": "^codemodel-v2\\.cmake$",
  1117. "line": None,
  1118. "command": None,
  1119. "hasParent": True,
  1120. },
  1121. {
  1122. "file": "^CMakeLists\\.txt$",
  1123. "line": 3,
  1124. "command": "include",
  1125. "hasParent": True,
  1126. },
  1127. {
  1128. "file": "^CMakeLists\\.txt$",
  1129. "line": None,
  1130. "command": None,
  1131. "hasParent": False,
  1132. },
  1133. ],
  1134. "folder": None,
  1135. "nameOnDisk": "^c_exe(\\.exe)?$",
  1136. "artifacts": [
  1137. {
  1138. "path": "^((Debug|Release|RelWithDebInfo|MinSizeRel)/)?c_exe(\\.exe)?$",
  1139. "_dllExtra": False,
  1140. },
  1141. {
  1142. "path": "^((Debug|Release|RelWithDebInfo|MinSizeRel)/)?c_exe\\.pdb$",
  1143. "_dllExtra": True,
  1144. },
  1145. ],
  1146. "build": "^\\.$",
  1147. "source": "^\\.$",
  1148. "install": None,
  1149. "link": {
  1150. "language": "C",
  1151. "lto": None,
  1152. "commandFragments": None,
  1153. },
  1154. "archive": None,
  1155. "dependencies": [
  1156. {
  1157. "id": "^c_lib::@6890427a1f51a3e7e1df$",
  1158. "backtrace": [
  1159. {
  1160. "file": "^codemodel-v2\\.cmake$",
  1161. "line": 7,
  1162. "command": "target_link_libraries",
  1163. "hasParent": True,
  1164. },
  1165. {
  1166. "file": "^codemodel-v2\\.cmake$",
  1167. "line": None,
  1168. "command": None,
  1169. "hasParent": True,
  1170. },
  1171. {
  1172. "file": "^CMakeLists\\.txt$",
  1173. "line": 3,
  1174. "command": "include",
  1175. "hasParent": True,
  1176. },
  1177. {
  1178. "file": "^CMakeLists\\.txt$",
  1179. "line": None,
  1180. "command": None,
  1181. "hasParent": False,
  1182. },
  1183. ],
  1184. },
  1185. {
  1186. "id": "^ZERO_CHECK::@6890427a1f51a3e7e1df$",
  1187. "backtrace": None,
  1188. },
  1189. ],
  1190. },
  1191. {
  1192. "name": "c_shared_lib",
  1193. "id": "^c_shared_lib::@6890427a1f51a3e7e1df$",
  1194. "directorySource": "^\\.$",
  1195. "projectName": "codemodel-v2",
  1196. "type": "SHARED_LIBRARY",
  1197. "isGeneratorProvided": None,
  1198. "sources": [
  1199. {
  1200. "path": "^empty\\.c$",
  1201. "isGenerated": None,
  1202. "sourceGroupName": "Source Files",
  1203. "compileGroupLanguage": "C",
  1204. "backtrace": [
  1205. {
  1206. "file": "^codemodel-v2\\.cmake$",
  1207. "line": 9,
  1208. "command": "add_library",
  1209. "hasParent": True,
  1210. },
  1211. {
  1212. "file": "^codemodel-v2\\.cmake$",
  1213. "line": None,
  1214. "command": None,
  1215. "hasParent": True,
  1216. },
  1217. {
  1218. "file": "^CMakeLists\\.txt$",
  1219. "line": 3,
  1220. "command": "include",
  1221. "hasParent": True,
  1222. },
  1223. {
  1224. "file": "^CMakeLists\\.txt$",
  1225. "line": None,
  1226. "command": None,
  1227. "hasParent": False,
  1228. },
  1229. ],
  1230. },
  1231. ],
  1232. "sourceGroups": [
  1233. {
  1234. "name": "Source Files",
  1235. "sourcePaths": [
  1236. "^empty\\.c$",
  1237. ],
  1238. },
  1239. ],
  1240. "compileGroups": [
  1241. {
  1242. "language": "C",
  1243. "sourcePaths": [
  1244. "^empty\\.c$",
  1245. ],
  1246. "includes": None,
  1247. "defines": [
  1248. {
  1249. "define": "c_shared_lib_EXPORTS",
  1250. "backtrace": None,
  1251. },
  1252. ],
  1253. "compileCommandFragments": None,
  1254. },
  1255. ],
  1256. "backtrace": [
  1257. {
  1258. "file": "^codemodel-v2\\.cmake$",
  1259. "line": 9,
  1260. "command": "add_library",
  1261. "hasParent": True,
  1262. },
  1263. {
  1264. "file": "^codemodel-v2\\.cmake$",
  1265. "line": None,
  1266. "command": None,
  1267. "hasParent": True,
  1268. },
  1269. {
  1270. "file": "^CMakeLists\\.txt$",
  1271. "line": 3,
  1272. "command": "include",
  1273. "hasParent": True,
  1274. },
  1275. {
  1276. "file": "^CMakeLists\\.txt$",
  1277. "line": None,
  1278. "command": None,
  1279. "hasParent": False,
  1280. },
  1281. ],
  1282. "folder": None,
  1283. "nameOnDisk": "^(lib|cyg)?c_shared_lib\\.(so|dylib|dll)$",
  1284. "artifacts": [
  1285. {
  1286. "path": "^lib/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?(lib|cyg)?c_shared_lib\\.(so|dylib|dll)$",
  1287. "_dllExtra": False,
  1288. },
  1289. {
  1290. "path": "^((Debug|Release|RelWithDebInfo|MinSizeRel)/)?(lib)?c_shared_lib\\.(dll\\.a|lib)$",
  1291. "_dllExtra": True,
  1292. },
  1293. {
  1294. "path": "^lib/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?(lib|cyg)?c_shared_lib\\.pdb$",
  1295. "_dllExtra": True,
  1296. },
  1297. ],
  1298. "build": "^\\.$",
  1299. "source": "^\\.$",
  1300. "install": None,
  1301. "link": {
  1302. "language": "C",
  1303. "lto": True,
  1304. "commandFragments": None,
  1305. },
  1306. "archive": None,
  1307. "dependencies": [
  1308. {
  1309. "id": "^ZERO_CHECK::@6890427a1f51a3e7e1df$",
  1310. "backtrace": None,
  1311. },
  1312. ],
  1313. },
  1314. {
  1315. "name": "c_shared_exe",
  1316. "id": "^c_shared_exe::@6890427a1f51a3e7e1df$",
  1317. "directorySource": "^\\.$",
  1318. "projectName": "codemodel-v2",
  1319. "type": "EXECUTABLE",
  1320. "isGeneratorProvided": None,
  1321. "sources": [
  1322. {
  1323. "path": "^empty\\.c$",
  1324. "isGenerated": None,
  1325. "sourceGroupName": "Source Files",
  1326. "compileGroupLanguage": "C",
  1327. "backtrace": [
  1328. {
  1329. "file": "^codemodel-v2\\.cmake$",
  1330. "line": 10,
  1331. "command": "add_executable",
  1332. "hasParent": True,
  1333. },
  1334. {
  1335. "file": "^codemodel-v2\\.cmake$",
  1336. "line": None,
  1337. "command": None,
  1338. "hasParent": True,
  1339. },
  1340. {
  1341. "file": "^CMakeLists\\.txt$",
  1342. "line": 3,
  1343. "command": "include",
  1344. "hasParent": True,
  1345. },
  1346. {
  1347. "file": "^CMakeLists\\.txt$",
  1348. "line": None,
  1349. "command": None,
  1350. "hasParent": False,
  1351. },
  1352. ],
  1353. },
  1354. ],
  1355. "sourceGroups": [
  1356. {
  1357. "name": "Source Files",
  1358. "sourcePaths": [
  1359. "^empty\\.c$",
  1360. ],
  1361. },
  1362. ],
  1363. "compileGroups": [
  1364. {
  1365. "language": "C",
  1366. "sourcePaths": [
  1367. "^empty\\.c$",
  1368. ],
  1369. "includes": None,
  1370. "defines": None,
  1371. "compileCommandFragments": None,
  1372. },
  1373. ],
  1374. "backtrace": [
  1375. {
  1376. "file": "^codemodel-v2\\.cmake$",
  1377. "line": 10,
  1378. "command": "add_executable",
  1379. "hasParent": True,
  1380. },
  1381. {
  1382. "file": "^codemodel-v2\\.cmake$",
  1383. "line": None,
  1384. "command": None,
  1385. "hasParent": True,
  1386. },
  1387. {
  1388. "file": "^CMakeLists\\.txt$",
  1389. "line": 3,
  1390. "command": "include",
  1391. "hasParent": True,
  1392. },
  1393. {
  1394. "file": "^CMakeLists\\.txt$",
  1395. "line": None,
  1396. "command": None,
  1397. "hasParent": False,
  1398. },
  1399. ],
  1400. "folder": None,
  1401. "nameOnDisk": "^c_shared_exe(\\.exe)?$",
  1402. "artifacts": [
  1403. {
  1404. "path": "^((Debug|Release|RelWithDebInfo|MinSizeRel)/)?c_shared_exe(\\.exe)?$",
  1405. "_dllExtra": False,
  1406. },
  1407. {
  1408. "path": "^((Debug|Release|RelWithDebInfo|MinSizeRel)/)?c_shared_exe\\.pdb$",
  1409. "_dllExtra": True,
  1410. },
  1411. ],
  1412. "build": "^\\.$",
  1413. "source": "^\\.$",
  1414. "install": None,
  1415. "link": {
  1416. "language": "C",
  1417. "lto": True,
  1418. "commandFragments": None,
  1419. },
  1420. "archive": None,
  1421. "dependencies": [
  1422. {
  1423. "id": "^c_shared_lib::@6890427a1f51a3e7e1df$",
  1424. "backtrace": [
  1425. {
  1426. "file": "^codemodel-v2\\.cmake$",
  1427. "line": 11,
  1428. "command": "target_link_libraries",
  1429. "hasParent": True,
  1430. },
  1431. {
  1432. "file": "^codemodel-v2\\.cmake$",
  1433. "line": None,
  1434. "command": None,
  1435. "hasParent": True,
  1436. },
  1437. {
  1438. "file": "^CMakeLists\\.txt$",
  1439. "line": 3,
  1440. "command": "include",
  1441. "hasParent": True,
  1442. },
  1443. {
  1444. "file": "^CMakeLists\\.txt$",
  1445. "line": None,
  1446. "command": None,
  1447. "hasParent": False,
  1448. },
  1449. ],
  1450. },
  1451. {
  1452. "id": "^ZERO_CHECK::@6890427a1f51a3e7e1df$",
  1453. "backtrace": None,
  1454. },
  1455. ],
  1456. },
  1457. {
  1458. "name": "c_static_lib",
  1459. "id": "^c_static_lib::@6890427a1f51a3e7e1df$",
  1460. "directorySource": "^\\.$",
  1461. "projectName": "codemodel-v2",
  1462. "type": "STATIC_LIBRARY",
  1463. "isGeneratorProvided": None,
  1464. "sources": [
  1465. {
  1466. "path": "^empty\\.c$",
  1467. "isGenerated": None,
  1468. "sourceGroupName": "Source Files",
  1469. "compileGroupLanguage": "C",
  1470. "backtrace": [
  1471. {
  1472. "file": "^codemodel-v2\\.cmake$",
  1473. "line": 13,
  1474. "command": "add_library",
  1475. "hasParent": True,
  1476. },
  1477. {
  1478. "file": "^codemodel-v2\\.cmake$",
  1479. "line": None,
  1480. "command": None,
  1481. "hasParent": True,
  1482. },
  1483. {
  1484. "file": "^CMakeLists\\.txt$",
  1485. "line": 3,
  1486. "command": "include",
  1487. "hasParent": True,
  1488. },
  1489. {
  1490. "file": "^CMakeLists\\.txt$",
  1491. "line": None,
  1492. "command": None,
  1493. "hasParent": False,
  1494. },
  1495. ],
  1496. },
  1497. ],
  1498. "sourceGroups": [
  1499. {
  1500. "name": "Source Files",
  1501. "sourcePaths": [
  1502. "^empty\\.c$",
  1503. ],
  1504. },
  1505. ],
  1506. "compileGroups": [
  1507. {
  1508. "language": "C",
  1509. "sourcePaths": [
  1510. "^empty\\.c$",
  1511. ],
  1512. "includes": None,
  1513. "defines": None,
  1514. "compileCommandFragments": None,
  1515. },
  1516. ],
  1517. "backtrace": [
  1518. {
  1519. "file": "^codemodel-v2\\.cmake$",
  1520. "line": 13,
  1521. "command": "add_library",
  1522. "hasParent": True,
  1523. },
  1524. {
  1525. "file": "^codemodel-v2\\.cmake$",
  1526. "line": None,
  1527. "command": None,
  1528. "hasParent": True,
  1529. },
  1530. {
  1531. "file": "^CMakeLists\\.txt$",
  1532. "line": 3,
  1533. "command": "include",
  1534. "hasParent": True,
  1535. },
  1536. {
  1537. "file": "^CMakeLists\\.txt$",
  1538. "line": None,
  1539. "command": None,
  1540. "hasParent": False,
  1541. },
  1542. ],
  1543. "folder": None,
  1544. "nameOnDisk": "^(lib)?c_static_lib\\.(a|lib)$",
  1545. "artifacts": [
  1546. {
  1547. "path": "^((Debug|Release|RelWithDebInfo|MinSizeRel)/)?(lib)?c_static_lib\\.(a|lib)$",
  1548. "_dllExtra": False,
  1549. },
  1550. ],
  1551. "build": "^\\.$",
  1552. "source": "^\\.$",
  1553. "install": None,
  1554. "link": None,
  1555. "archive": {
  1556. "lto": True,
  1557. },
  1558. "dependencies": [
  1559. {
  1560. "id": "^ZERO_CHECK::@6890427a1f51a3e7e1df$",
  1561. "backtrace": None,
  1562. },
  1563. ],
  1564. },
  1565. {
  1566. "name": "c_static_exe",
  1567. "id": "^c_static_exe::@6890427a1f51a3e7e1df$",
  1568. "directorySource": "^\\.$",
  1569. "projectName": "codemodel-v2",
  1570. "type": "EXECUTABLE",
  1571. "isGeneratorProvided": None,
  1572. "sources": [
  1573. {
  1574. "path": "^empty\\.c$",
  1575. "isGenerated": None,
  1576. "sourceGroupName": "Source Files",
  1577. "compileGroupLanguage": "C",
  1578. "backtrace": [
  1579. {
  1580. "file": "^codemodel-v2\\.cmake$",
  1581. "line": 14,
  1582. "command": "add_executable",
  1583. "hasParent": True,
  1584. },
  1585. {
  1586. "file": "^codemodel-v2\\.cmake$",
  1587. "line": None,
  1588. "command": None,
  1589. "hasParent": True,
  1590. },
  1591. {
  1592. "file": "^CMakeLists\\.txt$",
  1593. "line": 3,
  1594. "command": "include",
  1595. "hasParent": True,
  1596. },
  1597. {
  1598. "file": "^CMakeLists\\.txt$",
  1599. "line": None,
  1600. "command": None,
  1601. "hasParent": False,
  1602. },
  1603. ],
  1604. },
  1605. ],
  1606. "sourceGroups": [
  1607. {
  1608. "name": "Source Files",
  1609. "sourcePaths": [
  1610. "^empty\\.c$",
  1611. ],
  1612. },
  1613. ],
  1614. "compileGroups": [
  1615. {
  1616. "language": "C",
  1617. "sourcePaths": [
  1618. "^empty\\.c$",
  1619. ],
  1620. "includes": None,
  1621. "defines": None,
  1622. "compileCommandFragments": None,
  1623. },
  1624. ],
  1625. "backtrace": [
  1626. {
  1627. "file": "^codemodel-v2\\.cmake$",
  1628. "line": 14,
  1629. "command": "add_executable",
  1630. "hasParent": True,
  1631. },
  1632. {
  1633. "file": "^codemodel-v2\\.cmake$",
  1634. "line": None,
  1635. "command": None,
  1636. "hasParent": True,
  1637. },
  1638. {
  1639. "file": "^CMakeLists\\.txt$",
  1640. "line": 3,
  1641. "command": "include",
  1642. "hasParent": True,
  1643. },
  1644. {
  1645. "file": "^CMakeLists\\.txt$",
  1646. "line": None,
  1647. "command": None,
  1648. "hasParent": False,
  1649. },
  1650. ],
  1651. "folder": None,
  1652. "nameOnDisk": "^c_static_exe(\\.exe)?$",
  1653. "artifacts": [
  1654. {
  1655. "path": "^((Debug|Release|RelWithDebInfo|MinSizeRel)/)?c_static_exe(\\.exe)?$",
  1656. "_dllExtra": False,
  1657. },
  1658. {
  1659. "path": "^((Debug|Release|RelWithDebInfo|MinSizeRel)/)?c_static_exe\\.pdb$",
  1660. "_dllExtra": True,
  1661. },
  1662. ],
  1663. "build": "^\\.$",
  1664. "source": "^\\.$",
  1665. "install": None,
  1666. "link": {
  1667. "language": "C",
  1668. "lto": None,
  1669. "commandFragments": None,
  1670. },
  1671. "archive": None,
  1672. "dependencies": [
  1673. {
  1674. "id": "^c_static_lib::@6890427a1f51a3e7e1df$",
  1675. "backtrace": [
  1676. {
  1677. "file": "^codemodel-v2\\.cmake$",
  1678. "line": 15,
  1679. "command": "target_link_libraries",
  1680. "hasParent": True,
  1681. },
  1682. {
  1683. "file": "^codemodel-v2\\.cmake$",
  1684. "line": None,
  1685. "command": None,
  1686. "hasParent": True,
  1687. },
  1688. {
  1689. "file": "^CMakeLists\\.txt$",
  1690. "line": 3,
  1691. "command": "include",
  1692. "hasParent": True,
  1693. },
  1694. {
  1695. "file": "^CMakeLists\\.txt$",
  1696. "line": None,
  1697. "command": None,
  1698. "hasParent": False,
  1699. },
  1700. ],
  1701. },
  1702. {
  1703. "id": "^ZERO_CHECK::@6890427a1f51a3e7e1df$",
  1704. "backtrace": None,
  1705. },
  1706. ],
  1707. },
  1708. {
  1709. "name": "ALL_BUILD",
  1710. "id": "^ALL_BUILD::@a56b12a3f5c0529fb296$",
  1711. "directorySource": "^cxx$",
  1712. "projectName": "Cxx",
  1713. "type": "UTILITY",
  1714. "isGeneratorProvided": True,
  1715. "sources": [
  1716. {
  1717. "path": "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/cxx/CMakeFiles/ALL_BUILD$",
  1718. "isGenerated": True,
  1719. "sourceGroupName": "",
  1720. "compileGroupLanguage": None,
  1721. "backtrace": [
  1722. {
  1723. "file": "^cxx/CMakeLists\\.txt$",
  1724. "line": None,
  1725. "command": None,
  1726. "hasParent": False,
  1727. },
  1728. ],
  1729. },
  1730. {
  1731. "path": "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/cxx/CMakeFiles/ALL_BUILD\\.rule$",
  1732. "isGenerated": True,
  1733. "sourceGroupName": "CMake Rules",
  1734. "compileGroupLanguage": None,
  1735. "backtrace": [
  1736. {
  1737. "file": "^cxx/CMakeLists\\.txt$",
  1738. "line": None,
  1739. "command": None,
  1740. "hasParent": False,
  1741. },
  1742. ],
  1743. },
  1744. ],
  1745. "sourceGroups": [
  1746. {
  1747. "name": "",
  1748. "sourcePaths": [
  1749. "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/cxx/CMakeFiles/ALL_BUILD$",
  1750. ],
  1751. },
  1752. {
  1753. "name": "CMake Rules",
  1754. "sourcePaths": [
  1755. "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/cxx/CMakeFiles/ALL_BUILD\\.rule$",
  1756. ],
  1757. },
  1758. ],
  1759. "compileGroups": None,
  1760. "backtrace": [
  1761. {
  1762. "file": "^cxx/CMakeLists\\.txt$",
  1763. "line": None,
  1764. "command": None,
  1765. "hasParent": False,
  1766. },
  1767. ],
  1768. "folder": None,
  1769. "nameOnDisk": None,
  1770. "artifacts": None,
  1771. "build": "^cxx$",
  1772. "source": "^cxx$",
  1773. "install": None,
  1774. "link": None,
  1775. "archive": None,
  1776. "dependencies": [
  1777. {
  1778. "id": "^ZERO_CHECK::@a56b12a3f5c0529fb296$",
  1779. "backtrace": None,
  1780. },
  1781. {
  1782. "id": "^cxx_lib::@a56b12a3f5c0529fb296$",
  1783. "backtrace": None,
  1784. },
  1785. {
  1786. "id": "^cxx_exe::@a56b12a3f5c0529fb296$",
  1787. "backtrace": None,
  1788. },
  1789. {
  1790. "id": "^cxx_shared_lib::@a56b12a3f5c0529fb296$",
  1791. "backtrace": None,
  1792. },
  1793. {
  1794. "id": "^cxx_shared_exe::@a56b12a3f5c0529fb296$",
  1795. "backtrace": None,
  1796. },
  1797. {
  1798. "id": "^cxx_static_lib::@a56b12a3f5c0529fb296$",
  1799. "backtrace": None,
  1800. },
  1801. {
  1802. "id": "^cxx_static_exe::@a56b12a3f5c0529fb296$",
  1803. "backtrace": None,
  1804. },
  1805. ],
  1806. },
  1807. {
  1808. "name": "ZERO_CHECK",
  1809. "id": "^ZERO_CHECK::@a56b12a3f5c0529fb296$",
  1810. "directorySource": "^cxx$",
  1811. "projectName": "Cxx",
  1812. "type": "UTILITY",
  1813. "isGeneratorProvided": True,
  1814. "sources": [
  1815. {
  1816. "path": "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/cxx/CMakeFiles/ZERO_CHECK$",
  1817. "isGenerated": True,
  1818. "sourceGroupName": "",
  1819. "compileGroupLanguage": None,
  1820. "backtrace": [
  1821. {
  1822. "file": "^cxx/CMakeLists\\.txt$",
  1823. "line": None,
  1824. "command": None,
  1825. "hasParent": False,
  1826. },
  1827. ],
  1828. },
  1829. {
  1830. "path": "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/cxx/CMakeFiles/ZERO_CHECK\\.rule$",
  1831. "isGenerated": True,
  1832. "sourceGroupName": "CMake Rules",
  1833. "compileGroupLanguage": None,
  1834. "backtrace": [
  1835. {
  1836. "file": "^cxx/CMakeLists\\.txt$",
  1837. "line": None,
  1838. "command": None,
  1839. "hasParent": False,
  1840. },
  1841. ],
  1842. },
  1843. ],
  1844. "sourceGroups": [
  1845. {
  1846. "name": "",
  1847. "sourcePaths": [
  1848. "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/cxx/CMakeFiles/ZERO_CHECK$",
  1849. ],
  1850. },
  1851. {
  1852. "name": "CMake Rules",
  1853. "sourcePaths": [
  1854. "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/cxx/CMakeFiles/ZERO_CHECK\\.rule$",
  1855. ],
  1856. },
  1857. ],
  1858. "compileGroups": None,
  1859. "backtrace": [
  1860. {
  1861. "file": "^cxx/CMakeLists\\.txt$",
  1862. "line": None,
  1863. "command": None,
  1864. "hasParent": False,
  1865. },
  1866. ],
  1867. "folder": None,
  1868. "nameOnDisk": None,
  1869. "artifacts": None,
  1870. "build": "^cxx$",
  1871. "source": "^cxx$",
  1872. "install": None,
  1873. "link": None,
  1874. "archive": None,
  1875. "dependencies": None,
  1876. },
  1877. {
  1878. "name": "cxx_lib",
  1879. "id": "^cxx_lib::@a56b12a3f5c0529fb296$",
  1880. "directorySource": "^cxx$",
  1881. "projectName": "Cxx",
  1882. "type": "STATIC_LIBRARY",
  1883. "isGeneratorProvided": None,
  1884. "sources": [
  1885. {
  1886. "path": "^empty\\.cxx$",
  1887. "isGenerated": None,
  1888. "sourceGroupName": "Source Files",
  1889. "compileGroupLanguage": "CXX",
  1890. "backtrace": [
  1891. {
  1892. "file": "^cxx/CMakeLists\\.txt$",
  1893. "line": 4,
  1894. "command": "add_library",
  1895. "hasParent": True,
  1896. },
  1897. {
  1898. "file": "^cxx/CMakeLists\\.txt$",
  1899. "line": None,
  1900. "command": None,
  1901. "hasParent": False,
  1902. },
  1903. ],
  1904. },
  1905. ],
  1906. "sourceGroups": [
  1907. {
  1908. "name": "Source Files",
  1909. "sourcePaths": [
  1910. "^empty\\.cxx$",
  1911. ],
  1912. },
  1913. ],
  1914. "compileGroups": [
  1915. {
  1916. "language": "CXX",
  1917. "sourcePaths": [
  1918. "^empty\\.cxx$",
  1919. ],
  1920. "includes": None,
  1921. "defines": None,
  1922. "compileCommandFragments": None,
  1923. },
  1924. ],
  1925. "backtrace": [
  1926. {
  1927. "file": "^cxx/CMakeLists\\.txt$",
  1928. "line": 4,
  1929. "command": "add_library",
  1930. "hasParent": True,
  1931. },
  1932. {
  1933. "file": "^cxx/CMakeLists\\.txt$",
  1934. "line": None,
  1935. "command": None,
  1936. "hasParent": False,
  1937. },
  1938. ],
  1939. "folder": None,
  1940. "nameOnDisk": "^(lib)?cxx_lib\\.(a|lib)$",
  1941. "artifacts": [
  1942. {
  1943. "path": "^cxx/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?(lib)?cxx_lib\\.(a|lib)$",
  1944. "_dllExtra": False,
  1945. },
  1946. ],
  1947. "build": "^cxx$",
  1948. "source": "^cxx$",
  1949. "install": None,
  1950. "link": None,
  1951. "archive": {
  1952. "lto": None,
  1953. },
  1954. "dependencies": [
  1955. {
  1956. "id": "^ZERO_CHECK::@a56b12a3f5c0529fb296$",
  1957. "backtrace": None,
  1958. },
  1959. ],
  1960. },
  1961. {
  1962. "name": "cxx_exe",
  1963. "id": "^cxx_exe::@a56b12a3f5c0529fb296$",
  1964. "directorySource": "^cxx$",
  1965. "projectName": "Cxx",
  1966. "type": "EXECUTABLE",
  1967. "isGeneratorProvided": None,
  1968. "sources": [
  1969. {
  1970. "path": "^empty\\.cxx$",
  1971. "isGenerated": None,
  1972. "sourceGroupName": "Source Files",
  1973. "compileGroupLanguage": "CXX",
  1974. "backtrace": [
  1975. {
  1976. "file": "^cxx/CMakeLists\\.txt$",
  1977. "line": 5,
  1978. "command": "add_executable",
  1979. "hasParent": True,
  1980. },
  1981. {
  1982. "file": "^cxx/CMakeLists\\.txt$",
  1983. "line": None,
  1984. "command": None,
  1985. "hasParent": False,
  1986. },
  1987. ],
  1988. },
  1989. ],
  1990. "sourceGroups": [
  1991. {
  1992. "name": "Source Files",
  1993. "sourcePaths": [
  1994. "^empty\\.cxx$",
  1995. ],
  1996. },
  1997. ],
  1998. "compileGroups": [
  1999. {
  2000. "language": "CXX",
  2001. "sourcePaths": [
  2002. "^empty\\.cxx$",
  2003. ],
  2004. "includes": None,
  2005. "defines": None,
  2006. "compileCommandFragments": [
  2007. {
  2008. "fragment" : "TargetCompileOptions",
  2009. "backtrace": [
  2010. {
  2011. "file": "^cxx/CMakeLists\\.txt$",
  2012. "line": 17,
  2013. "command": "target_compile_options",
  2014. "hasParent": True,
  2015. },
  2016. {
  2017. "file" : "^cxx/CMakeLists\\.txt$",
  2018. "line": None,
  2019. "command": None,
  2020. "hasParent": False,
  2021. },
  2022. ],
  2023. }
  2024. ],
  2025. },
  2026. ],
  2027. "backtrace": [
  2028. {
  2029. "file": "^cxx/CMakeLists\\.txt$",
  2030. "line": 5,
  2031. "command": "add_executable",
  2032. "hasParent": True,
  2033. },
  2034. {
  2035. "file": "^cxx/CMakeLists\\.txt$",
  2036. "line": None,
  2037. "command": None,
  2038. "hasParent": False,
  2039. },
  2040. ],
  2041. "folder": "bin",
  2042. "nameOnDisk": "^cxx_exe(\\.exe)?$",
  2043. "artifacts": [
  2044. {
  2045. "path": "^cxx/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?cxx_exe(\\.exe)?$",
  2046. "_dllExtra": False,
  2047. },
  2048. {
  2049. "path": "^cxx/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?cxx_exe\\.pdb$",
  2050. "_dllExtra": True,
  2051. },
  2052. ],
  2053. "build": "^cxx$",
  2054. "source": "^cxx$",
  2055. "install": {
  2056. "prefix": "^(/usr/local|[A-Za-z]:.*/codemodel-v2)$",
  2057. "destinations": [
  2058. {
  2059. "path": "bin",
  2060. "backtrace": [
  2061. {
  2062. "file": "^codemodel-v2\\.cmake$",
  2063. "line": 37,
  2064. "command": "install",
  2065. "hasParent": True,
  2066. },
  2067. {
  2068. "file": "^codemodel-v2\\.cmake$",
  2069. "line": None,
  2070. "command": None,
  2071. "hasParent": True,
  2072. },
  2073. {
  2074. "file": "^CMakeLists\\.txt$",
  2075. "line": 3,
  2076. "command": "include",
  2077. "hasParent": True,
  2078. },
  2079. {
  2080. "file": "^CMakeLists\\.txt$",
  2081. "line": None,
  2082. "command": None,
  2083. "hasParent": False,
  2084. },
  2085. ],
  2086. },
  2087. ],
  2088. },
  2089. "link": {
  2090. "language": "CXX",
  2091. "lto": None,
  2092. "commandFragments": [
  2093. {
  2094. "fragment" : "TargetLinkOptions",
  2095. "role" : "flags",
  2096. "backtrace": [
  2097. {
  2098. "file": "^cxx/CMakeLists\\.txt$",
  2099. "line": 18,
  2100. "command": "target_link_options",
  2101. "hasParent": True,
  2102. },
  2103. {
  2104. "file" : "^cxx/CMakeLists\\.txt$",
  2105. "line": None,
  2106. "command": None,
  2107. "hasParent": False,
  2108. },
  2109. ],
  2110. },
  2111. {
  2112. "fragment" : ".*TargetLinkDir\\\"?$",
  2113. "role" : "libraryPath",
  2114. "backtrace": [
  2115. {
  2116. "file": "^cxx/CMakeLists\\.txt$",
  2117. "line": 19,
  2118. "command": "target_link_directories",
  2119. "hasParent": True,
  2120. },
  2121. {
  2122. "file" : "^cxx/CMakeLists\\.txt$",
  2123. "line": None,
  2124. "command": None,
  2125. "hasParent": False,
  2126. },
  2127. ],
  2128. },
  2129. {
  2130. "fragment" : ".*cxx_lib.*",
  2131. "role" : "libraries",
  2132. "backtrace": [
  2133. {
  2134. "file": "^cxx/CMakeLists\\.txt$",
  2135. "line": 6,
  2136. "command": "target_link_libraries",
  2137. "hasParent": True,
  2138. },
  2139. {
  2140. "file" : "^cxx/CMakeLists\\.txt$",
  2141. "line": None,
  2142. "command": None,
  2143. "hasParent": False,
  2144. },
  2145. ],
  2146. },
  2147. ],
  2148. },
  2149. "archive": None,
  2150. "dependencies": [
  2151. {
  2152. "id": "^cxx_lib::@a56b12a3f5c0529fb296$",
  2153. "backtrace": [
  2154. {
  2155. "file": "^cxx/CMakeLists\\.txt$",
  2156. "line": 6,
  2157. "command": "target_link_libraries",
  2158. "hasParent": True,
  2159. },
  2160. {
  2161. "file": "^cxx/CMakeLists\\.txt$",
  2162. "line": None,
  2163. "command": None,
  2164. "hasParent": False,
  2165. },
  2166. ],
  2167. },
  2168. {
  2169. "id": "^ZERO_CHECK::@a56b12a3f5c0529fb296$",
  2170. "backtrace": None,
  2171. },
  2172. ],
  2173. },
  2174. {
  2175. "name": "cxx_shared_lib",
  2176. "id": "^cxx_shared_lib::@a56b12a3f5c0529fb296$",
  2177. "directorySource": "^cxx$",
  2178. "projectName": "Cxx",
  2179. "type": "SHARED_LIBRARY",
  2180. "isGeneratorProvided": None,
  2181. "sources": [
  2182. {
  2183. "path": "^empty\\.cxx$",
  2184. "isGenerated": None,
  2185. "sourceGroupName": "Source Files",
  2186. "compileGroupLanguage": "CXX",
  2187. "backtrace": [
  2188. {
  2189. "file": "^cxx/CMakeLists\\.txt$",
  2190. "line": 9,
  2191. "command": "add_library",
  2192. "hasParent": True,
  2193. },
  2194. {
  2195. "file": "^cxx/CMakeLists\\.txt$",
  2196. "line": None,
  2197. "command": None,
  2198. "hasParent": False,
  2199. },
  2200. ],
  2201. },
  2202. ],
  2203. "sourceGroups": [
  2204. {
  2205. "name": "Source Files",
  2206. "sourcePaths": [
  2207. "^empty\\.cxx$",
  2208. ],
  2209. },
  2210. ],
  2211. "compileGroups": [
  2212. {
  2213. "language": "CXX",
  2214. "sourcePaths": [
  2215. "^empty\\.cxx$",
  2216. ],
  2217. "includes": None,
  2218. "defines": [
  2219. {
  2220. "define": "cxx_shared_lib_EXPORTS",
  2221. "backtrace": None,
  2222. },
  2223. ],
  2224. "compileCommandFragments": None,
  2225. },
  2226. ],
  2227. "backtrace": [
  2228. {
  2229. "file": "^cxx/CMakeLists\\.txt$",
  2230. "line": 9,
  2231. "command": "add_library",
  2232. "hasParent": True,
  2233. },
  2234. {
  2235. "file": "^cxx/CMakeLists\\.txt$",
  2236. "line": None,
  2237. "command": None,
  2238. "hasParent": False,
  2239. },
  2240. ],
  2241. "folder": None,
  2242. "nameOnDisk": "^(lib|cyg)?cxx_shared_lib\\.(so|dylib|dll)$",
  2243. "artifacts": [
  2244. {
  2245. "path": "^cxx/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?(lib|cyg)?cxx_shared_lib\\.(so|dylib|dll)$",
  2246. "_dllExtra": False,
  2247. },
  2248. {
  2249. "path": "^cxx/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?(lib)?cxx_shared_lib\\.(dll\\.a|lib)$",
  2250. "_dllExtra": True,
  2251. },
  2252. {
  2253. "path": "^cxx/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?(lib|cyg)?cxx_shared_lib\\.pdb$",
  2254. "_dllExtra": True,
  2255. },
  2256. ],
  2257. "build": "^cxx$",
  2258. "source": "^cxx$",
  2259. "install": None,
  2260. "link": {
  2261. "language": "CXX",
  2262. "lto": None,
  2263. "commandFragments": None,
  2264. },
  2265. "archive": None,
  2266. "dependencies": [
  2267. {
  2268. "id": "^ZERO_CHECK::@a56b12a3f5c0529fb296$",
  2269. "backtrace": None,
  2270. },
  2271. ],
  2272. },
  2273. {
  2274. "name": "cxx_shared_exe",
  2275. "id": "^cxx_shared_exe::@a56b12a3f5c0529fb296$",
  2276. "directorySource": "^cxx$",
  2277. "projectName": "Cxx",
  2278. "type": "EXECUTABLE",
  2279. "isGeneratorProvided": None,
  2280. "sources": [
  2281. {
  2282. "path": "^empty\\.cxx$",
  2283. "isGenerated": None,
  2284. "sourceGroupName": "Source Files",
  2285. "compileGroupLanguage": "CXX",
  2286. "backtrace": [
  2287. {
  2288. "file": "^cxx/CMakeLists\\.txt$",
  2289. "line": 10,
  2290. "command": "add_executable",
  2291. "hasParent": True,
  2292. },
  2293. {
  2294. "file": "^cxx/CMakeLists\\.txt$",
  2295. "line": None,
  2296. "command": None,
  2297. "hasParent": False,
  2298. },
  2299. ],
  2300. },
  2301. ],
  2302. "sourceGroups": [
  2303. {
  2304. "name": "Source Files",
  2305. "sourcePaths": [
  2306. "^empty\\.cxx$",
  2307. ],
  2308. },
  2309. ],
  2310. "compileGroups": [
  2311. {
  2312. "language": "CXX",
  2313. "sourcePaths": [
  2314. "^empty\\.cxx$",
  2315. ],
  2316. "includes": None,
  2317. "defines": None,
  2318. "compileCommandFragments": None,
  2319. },
  2320. ],
  2321. "backtrace": [
  2322. {
  2323. "file": "^cxx/CMakeLists\\.txt$",
  2324. "line": 10,
  2325. "command": "add_executable",
  2326. "hasParent": True,
  2327. },
  2328. {
  2329. "file": "^cxx/CMakeLists\\.txt$",
  2330. "line": None,
  2331. "command": None,
  2332. "hasParent": False,
  2333. },
  2334. ],
  2335. "folder": None,
  2336. "nameOnDisk": "^cxx_shared_exe(\\.exe)?$",
  2337. "artifacts": [
  2338. {
  2339. "path": "^cxx/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?cxx_shared_exe(\\.exe)?$",
  2340. "_dllExtra": False,
  2341. },
  2342. {
  2343. "path": "^cxx/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?cxx_shared_exe\\.pdb$",
  2344. "_dllExtra": True,
  2345. },
  2346. ],
  2347. "build": "^cxx$",
  2348. "source": "^cxx$",
  2349. "install": None,
  2350. "link": {
  2351. "language": "CXX",
  2352. "lto": None,
  2353. "commandFragments": None,
  2354. },
  2355. "archive": None,
  2356. "dependencies": [
  2357. {
  2358. "id": "^cxx_shared_lib::@a56b12a3f5c0529fb296$",
  2359. "backtrace": [
  2360. {
  2361. "file": "^cxx/CMakeLists\\.txt$",
  2362. "line": 11,
  2363. "command": "target_link_libraries",
  2364. "hasParent": True,
  2365. },
  2366. {
  2367. "file": "^cxx/CMakeLists\\.txt$",
  2368. "line": None,
  2369. "command": None,
  2370. "hasParent": False,
  2371. },
  2372. ],
  2373. },
  2374. {
  2375. "id": "^ZERO_CHECK::@a56b12a3f5c0529fb296$",
  2376. "backtrace": None,
  2377. },
  2378. ],
  2379. },
  2380. {
  2381. "name": "cxx_static_lib",
  2382. "id": "^cxx_static_lib::@a56b12a3f5c0529fb296$",
  2383. "directorySource": "^cxx$",
  2384. "projectName": "Cxx",
  2385. "type": "STATIC_LIBRARY",
  2386. "isGeneratorProvided": None,
  2387. "sources": [
  2388. {
  2389. "path": "^empty\\.cxx$",
  2390. "isGenerated": None,
  2391. "sourceGroupName": "Source Files",
  2392. "compileGroupLanguage": "CXX",
  2393. "backtrace": [
  2394. {
  2395. "file": "^cxx/CMakeLists\\.txt$",
  2396. "line": 13,
  2397. "command": "add_library",
  2398. "hasParent": True,
  2399. },
  2400. {
  2401. "file": "^cxx/CMakeLists\\.txt$",
  2402. "line": None,
  2403. "command": None,
  2404. "hasParent": False,
  2405. },
  2406. ],
  2407. },
  2408. ],
  2409. "sourceGroups": [
  2410. {
  2411. "name": "Source Files",
  2412. "sourcePaths": [
  2413. "^empty\\.cxx$",
  2414. ],
  2415. },
  2416. ],
  2417. "compileGroups": [
  2418. {
  2419. "language": "CXX",
  2420. "sourcePaths": [
  2421. "^empty\\.cxx$",
  2422. ],
  2423. "includes": None,
  2424. "defines": None,
  2425. "compileCommandFragments": None,
  2426. },
  2427. ],
  2428. "backtrace": [
  2429. {
  2430. "file": "^cxx/CMakeLists\\.txt$",
  2431. "line": 13,
  2432. "command": "add_library",
  2433. "hasParent": True,
  2434. },
  2435. {
  2436. "file": "^cxx/CMakeLists\\.txt$",
  2437. "line": None,
  2438. "command": None,
  2439. "hasParent": False,
  2440. },
  2441. ],
  2442. "folder": None,
  2443. "nameOnDisk": "^(lib)?cxx_static_lib\\.(a|lib)$",
  2444. "artifacts": [
  2445. {
  2446. "path": "^cxx/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?(lib)?cxx_static_lib\\.(a|lib)$",
  2447. "_dllExtra": False,
  2448. },
  2449. ],
  2450. "build": "^cxx$",
  2451. "source": "^cxx$",
  2452. "install": None,
  2453. "link": None,
  2454. "archive": {
  2455. "lto": None,
  2456. },
  2457. "dependencies": [
  2458. {
  2459. "id": "^ZERO_CHECK::@a56b12a3f5c0529fb296$",
  2460. "backtrace": None,
  2461. },
  2462. ],
  2463. },
  2464. {
  2465. "name": "cxx_static_exe",
  2466. "id": "^cxx_static_exe::@a56b12a3f5c0529fb296$",
  2467. "directorySource": "^cxx$",
  2468. "projectName": "Cxx",
  2469. "type": "EXECUTABLE",
  2470. "isGeneratorProvided": None,
  2471. "sources": [
  2472. {
  2473. "path": "^empty\\.cxx$",
  2474. "isGenerated": None,
  2475. "sourceGroupName": "Source Files",
  2476. "compileGroupLanguage": "CXX",
  2477. "backtrace": [
  2478. {
  2479. "file": "^cxx/CMakeLists\\.txt$",
  2480. "line": 14,
  2481. "command": "add_executable",
  2482. "hasParent": True,
  2483. },
  2484. {
  2485. "file": "^cxx/CMakeLists\\.txt$",
  2486. "line": None,
  2487. "command": None,
  2488. "hasParent": False,
  2489. },
  2490. ],
  2491. },
  2492. ],
  2493. "sourceGroups": [
  2494. {
  2495. "name": "Source Files",
  2496. "sourcePaths": [
  2497. "^empty\\.cxx$",
  2498. ],
  2499. },
  2500. ],
  2501. "compileGroups": [
  2502. {
  2503. "language": "CXX",
  2504. "sourcePaths": [
  2505. "^empty\\.cxx$",
  2506. ],
  2507. "includes": None,
  2508. "defines": None,
  2509. "compileCommandFragments": None,
  2510. },
  2511. ],
  2512. "backtrace": [
  2513. {
  2514. "file": "^cxx/CMakeLists\\.txt$",
  2515. "line": 14,
  2516. "command": "add_executable",
  2517. "hasParent": True,
  2518. },
  2519. {
  2520. "file": "^cxx/CMakeLists\\.txt$",
  2521. "line": None,
  2522. "command": None,
  2523. "hasParent": False,
  2524. },
  2525. ],
  2526. "folder": None,
  2527. "nameOnDisk": "^cxx_static_exe(\\.exe)?$",
  2528. "artifacts": [
  2529. {
  2530. "path": "^cxx/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?cxx_static_exe(\\.exe)?$",
  2531. "_dllExtra": False,
  2532. },
  2533. {
  2534. "path": "^cxx/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?cxx_static_exe\\.pdb$",
  2535. "_dllExtra": True,
  2536. },
  2537. ],
  2538. "build": "^cxx$",
  2539. "source": "^cxx$",
  2540. "install": None,
  2541. "link": {
  2542. "language": "CXX",
  2543. "lto": None,
  2544. "commandFragments": None,
  2545. },
  2546. "archive": None,
  2547. "dependencies": [
  2548. {
  2549. "id": "^cxx_static_lib::@a56b12a3f5c0529fb296$",
  2550. "backtrace": [
  2551. {
  2552. "file": "^cxx/CMakeLists\\.txt$",
  2553. "line": 15,
  2554. "command": "target_link_libraries",
  2555. "hasParent": True,
  2556. },
  2557. {
  2558. "file": "^cxx/CMakeLists\\.txt$",
  2559. "line": None,
  2560. "command": None,
  2561. "hasParent": False,
  2562. },
  2563. ],
  2564. },
  2565. {
  2566. "id": "^ZERO_CHECK::@a56b12a3f5c0529fb296$",
  2567. "backtrace": None,
  2568. },
  2569. ],
  2570. },
  2571. {
  2572. "name": "ALL_BUILD",
  2573. "id": "^ALL_BUILD::@53632cba2752272bb008$",
  2574. "directorySource": "^alias$",
  2575. "projectName": "Alias",
  2576. "type": "UTILITY",
  2577. "isGeneratorProvided": True,
  2578. "sources": [
  2579. {
  2580. "path": "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/alias/CMakeFiles/ALL_BUILD$",
  2581. "isGenerated": True,
  2582. "sourceGroupName": "",
  2583. "compileGroupLanguage": None,
  2584. "backtrace": [
  2585. {
  2586. "file": "^alias/CMakeLists\\.txt$",
  2587. "line": None,
  2588. "command": None,
  2589. "hasParent": False,
  2590. },
  2591. ],
  2592. },
  2593. {
  2594. "path": "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/alias/CMakeFiles/ALL_BUILD\\.rule$",
  2595. "isGenerated": True,
  2596. "sourceGroupName": "CMake Rules",
  2597. "compileGroupLanguage": None,
  2598. "backtrace": [
  2599. {
  2600. "file": "^alias/CMakeLists\\.txt$",
  2601. "line": None,
  2602. "command": None,
  2603. "hasParent": False,
  2604. },
  2605. ],
  2606. },
  2607. ],
  2608. "sourceGroups": [
  2609. {
  2610. "name": "",
  2611. "sourcePaths": [
  2612. "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/alias/CMakeFiles/ALL_BUILD$",
  2613. ],
  2614. },
  2615. {
  2616. "name": "CMake Rules",
  2617. "sourcePaths": [
  2618. "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/alias/CMakeFiles/ALL_BUILD\\.rule$",
  2619. ],
  2620. },
  2621. ],
  2622. "compileGroups": None,
  2623. "backtrace": [
  2624. {
  2625. "file": "^alias/CMakeLists\\.txt$",
  2626. "line": None,
  2627. "command": None,
  2628. "hasParent": False,
  2629. },
  2630. ],
  2631. "folder": None,
  2632. "nameOnDisk": None,
  2633. "artifacts": None,
  2634. "build": "^alias$",
  2635. "source": "^alias$",
  2636. "install": None,
  2637. "link": None,
  2638. "archive": None,
  2639. "dependencies": [
  2640. {
  2641. "id": "^ZERO_CHECK::@53632cba2752272bb008$",
  2642. "backtrace": None,
  2643. },
  2644. {
  2645. "id": "^c_alias_exe::@53632cba2752272bb008$",
  2646. "backtrace": None,
  2647. },
  2648. {
  2649. "id": "^cxx_alias_exe::@53632cba2752272bb008$",
  2650. "backtrace": None,
  2651. },
  2652. ],
  2653. },
  2654. {
  2655. "name": "ZERO_CHECK",
  2656. "id": "^ZERO_CHECK::@53632cba2752272bb008$",
  2657. "directorySource": "^alias$",
  2658. "projectName": "Alias",
  2659. "type": "UTILITY",
  2660. "isGeneratorProvided": True,
  2661. "sources": [
  2662. {
  2663. "path": "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/alias/CMakeFiles/ZERO_CHECK$",
  2664. "isGenerated": True,
  2665. "sourceGroupName": "",
  2666. "compileGroupLanguage": None,
  2667. "backtrace": [
  2668. {
  2669. "file": "^alias/CMakeLists\\.txt$",
  2670. "line": None,
  2671. "command": None,
  2672. "hasParent": False,
  2673. },
  2674. ],
  2675. },
  2676. {
  2677. "path": "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/alias/CMakeFiles/ZERO_CHECK\\.rule$",
  2678. "isGenerated": True,
  2679. "sourceGroupName": "CMake Rules",
  2680. "compileGroupLanguage": None,
  2681. "backtrace": [
  2682. {
  2683. "file": "^alias/CMakeLists\\.txt$",
  2684. "line": None,
  2685. "command": None,
  2686. "hasParent": False,
  2687. },
  2688. ],
  2689. },
  2690. ],
  2691. "sourceGroups": [
  2692. {
  2693. "name": "",
  2694. "sourcePaths": [
  2695. "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/alias/CMakeFiles/ZERO_CHECK$",
  2696. ],
  2697. },
  2698. {
  2699. "name": "CMake Rules",
  2700. "sourcePaths": [
  2701. "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/alias/CMakeFiles/ZERO_CHECK\\.rule$",
  2702. ],
  2703. },
  2704. ],
  2705. "compileGroups": None,
  2706. "backtrace": [
  2707. {
  2708. "file": "^alias/CMakeLists\\.txt$",
  2709. "line": None,
  2710. "command": None,
  2711. "hasParent": False,
  2712. },
  2713. ],
  2714. "folder": None,
  2715. "nameOnDisk": None,
  2716. "artifacts": None,
  2717. "build": "^alias$",
  2718. "source": "^alias$",
  2719. "install": None,
  2720. "link": None,
  2721. "archive": None,
  2722. "dependencies": None,
  2723. },
  2724. {
  2725. "name": "c_alias_exe",
  2726. "id": "^c_alias_exe::@53632cba2752272bb008$",
  2727. "directorySource": "^alias$",
  2728. "projectName": "Alias",
  2729. "type": "EXECUTABLE",
  2730. "isGeneratorProvided": None,
  2731. "sources": [
  2732. {
  2733. "path": "^empty\\.c$",
  2734. "isGenerated": None,
  2735. "sourceGroupName": "Source Files",
  2736. "compileGroupLanguage": "C",
  2737. "backtrace": [
  2738. {
  2739. "file": "^alias/CMakeLists\\.txt$",
  2740. "line": 5,
  2741. "command": "add_executable",
  2742. "hasParent": True,
  2743. },
  2744. {
  2745. "file": "^alias/CMakeLists\\.txt$",
  2746. "line": None,
  2747. "command": None,
  2748. "hasParent": False,
  2749. },
  2750. ],
  2751. },
  2752. ],
  2753. "sourceGroups": [
  2754. {
  2755. "name": "Source Files",
  2756. "sourcePaths": [
  2757. "^empty\\.c$",
  2758. ],
  2759. },
  2760. ],
  2761. "compileGroups": [
  2762. {
  2763. "language": "C",
  2764. "sourcePaths": [
  2765. "^empty\\.c$",
  2766. ],
  2767. "includes": None,
  2768. "defines": None,
  2769. "compileCommandFragments": None,
  2770. },
  2771. ],
  2772. "backtrace": [
  2773. {
  2774. "file": "^alias/CMakeLists\\.txt$",
  2775. "line": 5,
  2776. "command": "add_executable",
  2777. "hasParent": True,
  2778. },
  2779. {
  2780. "file": "^alias/CMakeLists\\.txt$",
  2781. "line": None,
  2782. "command": None,
  2783. "hasParent": False,
  2784. },
  2785. ],
  2786. "folder": None,
  2787. "nameOnDisk": "^c_alias_exe(\\.exe)?$",
  2788. "artifacts": [
  2789. {
  2790. "path": "^alias/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?c_alias_exe(\\.exe)?$",
  2791. "_dllExtra": False,
  2792. },
  2793. {
  2794. "path": "^alias/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?c_alias_exe\\.pdb$",
  2795. "_dllExtra": True,
  2796. },
  2797. ],
  2798. "build": "^alias$",
  2799. "source": "^alias$",
  2800. "install": None,
  2801. "link": {
  2802. "language": "C",
  2803. "lto": None,
  2804. "commandFragments": None,
  2805. },
  2806. "archive": None,
  2807. "dependencies": [
  2808. {
  2809. "id": "^c_lib::@6890427a1f51a3e7e1df$",
  2810. "backtrace": [
  2811. {
  2812. "file": "^alias/CMakeLists\\.txt$",
  2813. "line": 6,
  2814. "command": "target_link_libraries",
  2815. "hasParent": True,
  2816. },
  2817. {
  2818. "file": "^alias/CMakeLists\\.txt$",
  2819. "line": None,
  2820. "command": None,
  2821. "hasParent": False,
  2822. },
  2823. ],
  2824. },
  2825. {
  2826. "id": "^ZERO_CHECK::@53632cba2752272bb008$",
  2827. "backtrace": None,
  2828. },
  2829. ],
  2830. },
  2831. {
  2832. "name": "cxx_alias_exe",
  2833. "id": "^cxx_alias_exe::@53632cba2752272bb008$",
  2834. "directorySource": "^alias$",
  2835. "projectName": "Alias",
  2836. "type": "EXECUTABLE",
  2837. "isGeneratorProvided": None,
  2838. "sources": [
  2839. {
  2840. "path": "^empty\\.cxx$",
  2841. "isGenerated": None,
  2842. "sourceGroupName": "Source Files",
  2843. "compileGroupLanguage": "CXX",
  2844. "backtrace": [
  2845. {
  2846. "file": "^alias/CMakeLists\\.txt$",
  2847. "line": 9,
  2848. "command": "add_executable",
  2849. "hasParent": True,
  2850. },
  2851. {
  2852. "file": "^alias/CMakeLists\\.txt$",
  2853. "line": None,
  2854. "command": None,
  2855. "hasParent": False,
  2856. },
  2857. ],
  2858. },
  2859. ],
  2860. "sourceGroups": [
  2861. {
  2862. "name": "Source Files",
  2863. "sourcePaths": [
  2864. "^empty\\.cxx$",
  2865. ],
  2866. },
  2867. ],
  2868. "compileGroups": [
  2869. {
  2870. "language": "CXX",
  2871. "sourcePaths": [
  2872. "^empty\\.cxx$",
  2873. ],
  2874. "includes": None,
  2875. "defines": None,
  2876. "compileCommandFragments": None,
  2877. },
  2878. ],
  2879. "backtrace": [
  2880. {
  2881. "file": "^alias/CMakeLists\\.txt$",
  2882. "line": 9,
  2883. "command": "add_executable",
  2884. "hasParent": True,
  2885. },
  2886. {
  2887. "file": "^alias/CMakeLists\\.txt$",
  2888. "line": None,
  2889. "command": None,
  2890. "hasParent": False,
  2891. },
  2892. ],
  2893. "folder": None,
  2894. "nameOnDisk": "^cxx_alias_exe(\\.exe)?$",
  2895. "artifacts": [
  2896. {
  2897. "path": "^alias/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?cxx_alias_exe(\\.exe)?$",
  2898. "_dllExtra": False,
  2899. },
  2900. {
  2901. "path": "^alias/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?cxx_alias_exe\\.pdb$",
  2902. "_dllExtra": True,
  2903. },
  2904. ],
  2905. "build": "^alias$",
  2906. "source": "^alias$",
  2907. "install": None,
  2908. "link": {
  2909. "language": "CXX",
  2910. "lto": None,
  2911. "commandFragments": None,
  2912. },
  2913. "archive": None,
  2914. "dependencies": [
  2915. {
  2916. "id": "^cxx_lib::@a56b12a3f5c0529fb296$",
  2917. "backtrace": [
  2918. {
  2919. "file": "^alias/CMakeLists\\.txt$",
  2920. "line": 10,
  2921. "command": "target_link_libraries",
  2922. "hasParent": True,
  2923. },
  2924. {
  2925. "file": "^alias/CMakeLists\\.txt$",
  2926. "line": None,
  2927. "command": None,
  2928. "hasParent": False,
  2929. },
  2930. ],
  2931. },
  2932. {
  2933. "id": "^ZERO_CHECK::@53632cba2752272bb008$",
  2934. "backtrace": None,
  2935. },
  2936. ],
  2937. },
  2938. {
  2939. "name": "ALL_BUILD",
  2940. "id": "^ALL_BUILD::@5ed5358f70faf8d8af7a$",
  2941. "directorySource": "^object$",
  2942. "projectName": "Object",
  2943. "type": "UTILITY",
  2944. "isGeneratorProvided": True,
  2945. "sources": [
  2946. {
  2947. "path": "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/object/CMakeFiles/ALL_BUILD$",
  2948. "isGenerated": True,
  2949. "sourceGroupName": "",
  2950. "compileGroupLanguage": None,
  2951. "backtrace": [
  2952. {
  2953. "file": "^object/CMakeLists\\.txt$",
  2954. "line": None,
  2955. "command": None,
  2956. "hasParent": False,
  2957. },
  2958. ],
  2959. },
  2960. {
  2961. "path": "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/object/CMakeFiles/ALL_BUILD\\.rule$",
  2962. "isGenerated": True,
  2963. "sourceGroupName": "CMake Rules",
  2964. "compileGroupLanguage": None,
  2965. "backtrace": [
  2966. {
  2967. "file": "^object/CMakeLists\\.txt$",
  2968. "line": None,
  2969. "command": None,
  2970. "hasParent": False,
  2971. },
  2972. ],
  2973. },
  2974. ],
  2975. "sourceGroups": [
  2976. {
  2977. "name": "",
  2978. "sourcePaths": [
  2979. "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/object/CMakeFiles/ALL_BUILD$",
  2980. ],
  2981. },
  2982. {
  2983. "name": "CMake Rules",
  2984. "sourcePaths": [
  2985. "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/object/CMakeFiles/ALL_BUILD\\.rule$",
  2986. ],
  2987. },
  2988. ],
  2989. "compileGroups": None,
  2990. "backtrace": [
  2991. {
  2992. "file": "^object/CMakeLists\\.txt$",
  2993. "line": None,
  2994. "command": None,
  2995. "hasParent": False,
  2996. },
  2997. ],
  2998. "folder": None,
  2999. "nameOnDisk": None,
  3000. "artifacts": None,
  3001. "build": "^object$",
  3002. "source": "^object$",
  3003. "install": None,
  3004. "link": None,
  3005. "archive": None,
  3006. "dependencies": [
  3007. {
  3008. "id": "^ZERO_CHECK::@5ed5358f70faf8d8af7a$",
  3009. "backtrace": None,
  3010. },
  3011. {
  3012. "id": "^c_object_lib::@5ed5358f70faf8d8af7a$",
  3013. "backtrace": None,
  3014. },
  3015. {
  3016. "id": "^c_object_exe::@5ed5358f70faf8d8af7a$",
  3017. "backtrace": None,
  3018. },
  3019. {
  3020. "id": "^cxx_object_lib::@5ed5358f70faf8d8af7a$",
  3021. "backtrace": None,
  3022. },
  3023. {
  3024. "id": "^cxx_object_exe::@5ed5358f70faf8d8af7a$",
  3025. "backtrace": None,
  3026. },
  3027. ],
  3028. },
  3029. {
  3030. "name": "ZERO_CHECK",
  3031. "id": "^ZERO_CHECK::@5ed5358f70faf8d8af7a$",
  3032. "directorySource": "^object$",
  3033. "projectName": "Object",
  3034. "type": "UTILITY",
  3035. "isGeneratorProvided": True,
  3036. "sources": [
  3037. {
  3038. "path": "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/object/CMakeFiles/ZERO_CHECK$",
  3039. "isGenerated": True,
  3040. "sourceGroupName": "",
  3041. "compileGroupLanguage": None,
  3042. "backtrace": [
  3043. {
  3044. "file": "^object/CMakeLists\\.txt$",
  3045. "line": None,
  3046. "command": None,
  3047. "hasParent": False,
  3048. },
  3049. ],
  3050. },
  3051. {
  3052. "path": "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/object/CMakeFiles/ZERO_CHECK\\.rule$",
  3053. "isGenerated": True,
  3054. "sourceGroupName": "CMake Rules",
  3055. "compileGroupLanguage": None,
  3056. "backtrace": [
  3057. {
  3058. "file": "^object/CMakeLists\\.txt$",
  3059. "line": None,
  3060. "command": None,
  3061. "hasParent": False,
  3062. },
  3063. ],
  3064. },
  3065. ],
  3066. "sourceGroups": [
  3067. {
  3068. "name": "",
  3069. "sourcePaths": [
  3070. "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/object/CMakeFiles/ZERO_CHECK$",
  3071. ],
  3072. },
  3073. {
  3074. "name": "CMake Rules",
  3075. "sourcePaths": [
  3076. "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/object/CMakeFiles/ZERO_CHECK\\.rule$",
  3077. ],
  3078. },
  3079. ],
  3080. "compileGroups": None,
  3081. "backtrace": [
  3082. {
  3083. "file": "^object/CMakeLists\\.txt$",
  3084. "line": None,
  3085. "command": None,
  3086. "hasParent": False,
  3087. },
  3088. ],
  3089. "folder": None,
  3090. "nameOnDisk": None,
  3091. "artifacts": None,
  3092. "build": "^object$",
  3093. "source": "^object$",
  3094. "install": None,
  3095. "link": None,
  3096. "archive": None,
  3097. "dependencies": None,
  3098. },
  3099. {
  3100. "name": "c_object_lib",
  3101. "id": "^c_object_lib::@5ed5358f70faf8d8af7a$",
  3102. "directorySource": "^object$",
  3103. "projectName": "Object",
  3104. "type": "OBJECT_LIBRARY",
  3105. "isGeneratorProvided": None,
  3106. "sources": [
  3107. {
  3108. "path": "^empty\\.c$",
  3109. "isGenerated": None,
  3110. "sourceGroupName": "Source Files",
  3111. "compileGroupLanguage": "C",
  3112. "backtrace": [
  3113. {
  3114. "file": "^object/CMakeLists\\.txt$",
  3115. "line": 5,
  3116. "command": "add_library",
  3117. "hasParent": True,
  3118. },
  3119. {
  3120. "file": "^object/CMakeLists\\.txt$",
  3121. "line": None,
  3122. "command": None,
  3123. "hasParent": False,
  3124. },
  3125. ],
  3126. },
  3127. ],
  3128. "sourceGroups": [
  3129. {
  3130. "name": "Source Files",
  3131. "sourcePaths": [
  3132. "^empty\\.c$",
  3133. ],
  3134. },
  3135. ],
  3136. "compileGroups": [
  3137. {
  3138. "language": "C",
  3139. "sourcePaths": [
  3140. "^empty\\.c$",
  3141. ],
  3142. "includes": None,
  3143. "defines": None,
  3144. "compileCommandFragments": None,
  3145. },
  3146. ],
  3147. "backtrace": [
  3148. {
  3149. "file": "^object/CMakeLists\\.txt$",
  3150. "line": 5,
  3151. "command": "add_library",
  3152. "hasParent": True,
  3153. },
  3154. {
  3155. "file": "^object/CMakeLists\\.txt$",
  3156. "line": None,
  3157. "command": None,
  3158. "hasParent": False,
  3159. },
  3160. ],
  3161. "folder": None,
  3162. "nameOnDisk": None,
  3163. "artifacts": [
  3164. {
  3165. "path": "^object/.*/empty(\\.c)?\\.o(bj)?$",
  3166. "_dllExtra": False,
  3167. },
  3168. ],
  3169. "build": "^object$",
  3170. "source": "^object$",
  3171. "install": None,
  3172. "link": None,
  3173. "archive": None,
  3174. "dependencies": [
  3175. {
  3176. "id": "^ZERO_CHECK::@5ed5358f70faf8d8af7a$",
  3177. "backtrace": None,
  3178. },
  3179. ],
  3180. },
  3181. {
  3182. "name": "c_object_exe",
  3183. "id": "^c_object_exe::@5ed5358f70faf8d8af7a$",
  3184. "directorySource": "^object$",
  3185. "projectName": "Object",
  3186. "type": "EXECUTABLE",
  3187. "isGeneratorProvided": None,
  3188. "sources": [
  3189. {
  3190. "path": "^empty\\.c$",
  3191. "isGenerated": None,
  3192. "sourceGroupName": "Source Files",
  3193. "compileGroupLanguage": "C",
  3194. "backtrace": [
  3195. {
  3196. "file": "^object/CMakeLists\\.txt$",
  3197. "line": 6,
  3198. "command": "add_executable",
  3199. "hasParent": True,
  3200. },
  3201. {
  3202. "file": "^object/CMakeLists\\.txt$",
  3203. "line": None,
  3204. "command": None,
  3205. "hasParent": False,
  3206. },
  3207. ],
  3208. },
  3209. {
  3210. "path": "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/object/.*/empty(\\.c)?\\.o(bj)?$",
  3211. "isGenerated": True,
  3212. "sourceGroupName": "Object Libraries",
  3213. "compileGroupLanguage": None,
  3214. "backtrace": [
  3215. {
  3216. "file": "^object/CMakeLists\\.txt$",
  3217. "line": 7,
  3218. "command": "target_link_libraries",
  3219. "hasParent": True,
  3220. },
  3221. {
  3222. "file": "^object/CMakeLists\\.txt$",
  3223. "line": None,
  3224. "command": None,
  3225. "hasParent": False,
  3226. },
  3227. ],
  3228. },
  3229. ],
  3230. "sourceGroups": [
  3231. {
  3232. "name": "Source Files",
  3233. "sourcePaths": [
  3234. "^empty\\.c$",
  3235. ],
  3236. },
  3237. {
  3238. "name": "Object Libraries",
  3239. "sourcePaths": [
  3240. "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/object/.*/empty(\\.c)?\\.o(bj)?$",
  3241. ],
  3242. },
  3243. ],
  3244. "compileGroups": [
  3245. {
  3246. "language": "C",
  3247. "sourcePaths": [
  3248. "^empty\\.c$",
  3249. ],
  3250. "includes": None,
  3251. "defines": None,
  3252. "compileCommandFragments": None,
  3253. },
  3254. ],
  3255. "backtrace": [
  3256. {
  3257. "file": "^object/CMakeLists\\.txt$",
  3258. "line": 6,
  3259. "command": "add_executable",
  3260. "hasParent": True,
  3261. },
  3262. {
  3263. "file": "^object/CMakeLists\\.txt$",
  3264. "line": None,
  3265. "command": None,
  3266. "hasParent": False,
  3267. },
  3268. ],
  3269. "folder": None,
  3270. "nameOnDisk": "^c_object_exe(\\.exe)?$",
  3271. "artifacts": [
  3272. {
  3273. "path": "^object/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?c_object_exe(\\.exe)?$",
  3274. "_dllExtra": False,
  3275. },
  3276. {
  3277. "path": "^object/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?c_object_exe\\.pdb$",
  3278. "_dllExtra": True,
  3279. },
  3280. ],
  3281. "build": "^object$",
  3282. "source": "^object$",
  3283. "install": {
  3284. "prefix": "^(/usr/local|[A-Za-z]:.*/codemodel-v2)$",
  3285. "destinations": [
  3286. {
  3287. "path": "bin",
  3288. "backtrace": [
  3289. {
  3290. "file": "^object/CMakeLists\\.txt$",
  3291. "line": 13,
  3292. "command": "install",
  3293. "hasParent": True,
  3294. },
  3295. {
  3296. "file": "^object/CMakeLists\\.txt$",
  3297. "line": None,
  3298. "command": None,
  3299. "hasParent": False,
  3300. },
  3301. ],
  3302. },
  3303. ],
  3304. },
  3305. "link": {
  3306. "language": "C",
  3307. "lto": None,
  3308. "commandFragments": None,
  3309. },
  3310. "archive": None,
  3311. "dependencies": [
  3312. {
  3313. "id": "^c_object_lib::@5ed5358f70faf8d8af7a$",
  3314. # FIXME: Add a backtrace here when it becomes available.
  3315. # You'll know when it's available, because this test will
  3316. # fail.
  3317. "backtrace": None,
  3318. },
  3319. {
  3320. "id": "^ZERO_CHECK::@5ed5358f70faf8d8af7a$",
  3321. "backtrace": None,
  3322. },
  3323. ],
  3324. },
  3325. {
  3326. "name": "cxx_object_lib",
  3327. "id": "^cxx_object_lib::@5ed5358f70faf8d8af7a$",
  3328. "directorySource": "^object$",
  3329. "projectName": "Object",
  3330. "type": "OBJECT_LIBRARY",
  3331. "isGeneratorProvided": None,
  3332. "sources": [
  3333. {
  3334. "path": "^empty\\.cxx$",
  3335. "isGenerated": None,
  3336. "sourceGroupName": "Source Files",
  3337. "compileGroupLanguage": "CXX",
  3338. "backtrace": [
  3339. {
  3340. "file": "^object/CMakeLists\\.txt$",
  3341. "line": 9,
  3342. "command": "add_library",
  3343. "hasParent": True,
  3344. },
  3345. {
  3346. "file": "^object/CMakeLists\\.txt$",
  3347. "line": None,
  3348. "command": None,
  3349. "hasParent": False,
  3350. },
  3351. ],
  3352. },
  3353. ],
  3354. "sourceGroups": [
  3355. {
  3356. "name": "Source Files",
  3357. "sourcePaths": [
  3358. "^empty\\.cxx$",
  3359. ],
  3360. },
  3361. ],
  3362. "compileGroups": [
  3363. {
  3364. "language": "CXX",
  3365. "sourcePaths": [
  3366. "^empty\\.cxx$",
  3367. ],
  3368. "includes": None,
  3369. "defines": None,
  3370. "compileCommandFragments": None,
  3371. },
  3372. ],
  3373. "backtrace": [
  3374. {
  3375. "file": "^object/CMakeLists\\.txt$",
  3376. "line": 9,
  3377. "command": "add_library",
  3378. "hasParent": True,
  3379. },
  3380. {
  3381. "file": "^object/CMakeLists\\.txt$",
  3382. "line": None,
  3383. "command": None,
  3384. "hasParent": False,
  3385. },
  3386. ],
  3387. "folder": None,
  3388. "nameOnDisk": None,
  3389. "artifacts": [
  3390. {
  3391. "path": "^object/.*/empty(\\.cxx)?\\.o(bj)?$",
  3392. "_dllExtra": False,
  3393. },
  3394. ],
  3395. "build": "^object$",
  3396. "source": "^object$",
  3397. "install": None,
  3398. "link": None,
  3399. "archive": None,
  3400. "dependencies": [
  3401. {
  3402. "id": "^ZERO_CHECK::@5ed5358f70faf8d8af7a$",
  3403. "backtrace": None,
  3404. },
  3405. ],
  3406. },
  3407. {
  3408. "name": "cxx_object_exe",
  3409. "id": "^cxx_object_exe::@5ed5358f70faf8d8af7a$",
  3410. "directorySource": "^object$",
  3411. "projectName": "Object",
  3412. "type": "EXECUTABLE",
  3413. "isGeneratorProvided": None,
  3414. "sources": [
  3415. {
  3416. "path": "^empty\\.cxx$",
  3417. "isGenerated": None,
  3418. "sourceGroupName": "Source Files",
  3419. "compileGroupLanguage": "CXX",
  3420. "backtrace": [
  3421. {
  3422. "file": "^object/CMakeLists\\.txt$",
  3423. "line": 10,
  3424. "command": "add_executable",
  3425. "hasParent": True,
  3426. },
  3427. {
  3428. "file": "^object/CMakeLists\\.txt$",
  3429. "line": None,
  3430. "command": None,
  3431. "hasParent": False,
  3432. },
  3433. ],
  3434. },
  3435. {
  3436. "path": "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/object/.*/empty(\\.cxx)?\\.o(bj)?$",
  3437. "isGenerated": True,
  3438. "sourceGroupName": "Object Libraries",
  3439. "compileGroupLanguage": None,
  3440. "backtrace": [
  3441. {
  3442. "file": "^object/CMakeLists\\.txt$",
  3443. "line": 11,
  3444. "command": "target_link_libraries",
  3445. "hasParent": True,
  3446. },
  3447. {
  3448. "file": "^object/CMakeLists\\.txt$",
  3449. "line": None,
  3450. "command": None,
  3451. "hasParent": False,
  3452. },
  3453. ],
  3454. },
  3455. ],
  3456. "sourceGroups": [
  3457. {
  3458. "name": "Source Files",
  3459. "sourcePaths": [
  3460. "^empty\\.cxx$",
  3461. ],
  3462. },
  3463. {
  3464. "name": "Object Libraries",
  3465. "sourcePaths": [
  3466. "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/object/.*/empty(\\.cxx)?\\.o(bj)?$",
  3467. ],
  3468. },
  3469. ],
  3470. "compileGroups": [
  3471. {
  3472. "language": "CXX",
  3473. "sourcePaths": [
  3474. "^empty\\.cxx$",
  3475. ],
  3476. "includes": None,
  3477. "defines": None,
  3478. "compileCommandFragments": None,
  3479. },
  3480. ],
  3481. "backtrace": [
  3482. {
  3483. "file": "^object/CMakeLists\\.txt$",
  3484. "line": 10,
  3485. "command": "add_executable",
  3486. "hasParent": True,
  3487. },
  3488. {
  3489. "file": "^object/CMakeLists\\.txt$",
  3490. "line": None,
  3491. "command": None,
  3492. "hasParent": False,
  3493. },
  3494. ],
  3495. "folder": None,
  3496. "nameOnDisk": "^cxx_object_exe(\\.exe)?$",
  3497. "artifacts": [
  3498. {
  3499. "path": "^object/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?cxx_object_exe(\\.exe)?$",
  3500. "_dllExtra": False,
  3501. },
  3502. {
  3503. "path": "^object/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?cxx_object_exe\\.pdb$",
  3504. "_dllExtra": True,
  3505. },
  3506. ],
  3507. "build": "^object$",
  3508. "source": "^object$",
  3509. "install": {
  3510. "prefix": "^(/usr/local|[A-Za-z]:.*/codemodel-v2)$",
  3511. "destinations": [
  3512. {
  3513. "path": "bin",
  3514. "backtrace": [
  3515. {
  3516. "file": "^object/CMakeLists\\.txt$",
  3517. "line": 13,
  3518. "command": "install",
  3519. "hasParent": True,
  3520. },
  3521. {
  3522. "file": "^object/CMakeLists\\.txt$",
  3523. "line": None,
  3524. "command": None,
  3525. "hasParent": False,
  3526. },
  3527. ],
  3528. },
  3529. ],
  3530. },
  3531. "link": {
  3532. "language": "CXX",
  3533. "lto": None,
  3534. "commandFragments": None,
  3535. },
  3536. "archive": None,
  3537. "dependencies": [
  3538. {
  3539. "id": "^cxx_object_lib::@5ed5358f70faf8d8af7a$",
  3540. # FIXME: Add a backtrace here when it becomes available.
  3541. # You'll know when it's available, because this test will
  3542. # fail.
  3543. "backtrace": None,
  3544. },
  3545. {
  3546. "id": "^ZERO_CHECK::@5ed5358f70faf8d8af7a$",
  3547. "backtrace": None,
  3548. },
  3549. ],
  3550. },
  3551. {
  3552. "name": "ALL_BUILD",
  3553. "id": "^ALL_BUILD::@ba7eb709d0b48779c6c8$",
  3554. "directorySource": "^imported$",
  3555. "projectName": "Imported",
  3556. "type": "UTILITY",
  3557. "isGeneratorProvided": True,
  3558. "sources": [
  3559. {
  3560. "path": "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/imported/CMakeFiles/ALL_BUILD$",
  3561. "isGenerated": True,
  3562. "sourceGroupName": "",
  3563. "compileGroupLanguage": None,
  3564. "backtrace": [
  3565. {
  3566. "file": "^imported/CMakeLists\\.txt$",
  3567. "line": None,
  3568. "command": None,
  3569. "hasParent": False,
  3570. },
  3571. ],
  3572. },
  3573. {
  3574. "path": "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/imported/CMakeFiles/ALL_BUILD\\.rule$",
  3575. "isGenerated": True,
  3576. "sourceGroupName": "CMake Rules",
  3577. "compileGroupLanguage": None,
  3578. "backtrace": [
  3579. {
  3580. "file": "^imported/CMakeLists\\.txt$",
  3581. "line": None,
  3582. "command": None,
  3583. "hasParent": False,
  3584. },
  3585. ],
  3586. },
  3587. ],
  3588. "sourceGroups": [
  3589. {
  3590. "name": "",
  3591. "sourcePaths": [
  3592. "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/imported/CMakeFiles/ALL_BUILD$",
  3593. ],
  3594. },
  3595. {
  3596. "name": "CMake Rules",
  3597. "sourcePaths": [
  3598. "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/imported/CMakeFiles/ALL_BUILD\\.rule$",
  3599. ],
  3600. },
  3601. ],
  3602. "compileGroups": None,
  3603. "backtrace": [
  3604. {
  3605. "file": "^imported/CMakeLists\\.txt$",
  3606. "line": None,
  3607. "command": None,
  3608. "hasParent": False,
  3609. },
  3610. ],
  3611. "folder": None,
  3612. "nameOnDisk": None,
  3613. "artifacts": None,
  3614. "build": "^imported$",
  3615. "source": "^imported$",
  3616. "install": None,
  3617. "link": None,
  3618. "archive": None,
  3619. "dependencies": [
  3620. {
  3621. "id": "^ZERO_CHECK::@ba7eb709d0b48779c6c8$",
  3622. "backtrace": None,
  3623. },
  3624. {
  3625. "id": "^link_imported_exe::@ba7eb709d0b48779c6c8$",
  3626. "backtrace": None,
  3627. },
  3628. {
  3629. "id": "^link_imported_shared_exe::@ba7eb709d0b48779c6c8$",
  3630. "backtrace": None,
  3631. },
  3632. {
  3633. "id": "^link_imported_static_exe::@ba7eb709d0b48779c6c8$",
  3634. "backtrace": None,
  3635. },
  3636. {
  3637. "id": "^link_imported_object_exe::@ba7eb709d0b48779c6c8$",
  3638. "backtrace": None,
  3639. },
  3640. {
  3641. "id": "^link_imported_interface_exe::@ba7eb709d0b48779c6c8$",
  3642. "backtrace": None,
  3643. },
  3644. ],
  3645. },
  3646. {
  3647. "name": "ZERO_CHECK",
  3648. "id": "^ZERO_CHECK::@ba7eb709d0b48779c6c8$",
  3649. "directorySource": "^imported$",
  3650. "projectName": "Imported",
  3651. "type": "UTILITY",
  3652. "isGeneratorProvided": True,
  3653. "sources": [
  3654. {
  3655. "path": "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/imported/CMakeFiles/ZERO_CHECK$",
  3656. "isGenerated": True,
  3657. "sourceGroupName": "",
  3658. "compileGroupLanguage": None,
  3659. "backtrace": [
  3660. {
  3661. "file": "^imported/CMakeLists\\.txt$",
  3662. "line": None,
  3663. "command": None,
  3664. "hasParent": False,
  3665. },
  3666. ],
  3667. },
  3668. {
  3669. "path": "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/imported/CMakeFiles/ZERO_CHECK\\.rule$",
  3670. "isGenerated": True,
  3671. "sourceGroupName": "CMake Rules",
  3672. "compileGroupLanguage": None,
  3673. "backtrace": [
  3674. {
  3675. "file": "^imported/CMakeLists\\.txt$",
  3676. "line": None,
  3677. "command": None,
  3678. "hasParent": False,
  3679. },
  3680. ],
  3681. },
  3682. ],
  3683. "sourceGroups": [
  3684. {
  3685. "name": "",
  3686. "sourcePaths": [
  3687. "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/imported/CMakeFiles/ZERO_CHECK$",
  3688. ],
  3689. },
  3690. {
  3691. "name": "CMake Rules",
  3692. "sourcePaths": [
  3693. "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/imported/CMakeFiles/ZERO_CHECK\\.rule$",
  3694. ],
  3695. },
  3696. ],
  3697. "compileGroups": None,
  3698. "backtrace": [
  3699. {
  3700. "file": "^imported/CMakeLists\\.txt$",
  3701. "line": None,
  3702. "command": None,
  3703. "hasParent": False,
  3704. },
  3705. ],
  3706. "folder": None,
  3707. "nameOnDisk": None,
  3708. "artifacts": None,
  3709. "build": "^imported$",
  3710. "source": "^imported$",
  3711. "install": None,
  3712. "link": None,
  3713. "archive": None,
  3714. "dependencies": None,
  3715. },
  3716. {
  3717. "name": "link_imported_exe",
  3718. "id": "^link_imported_exe::@ba7eb709d0b48779c6c8$",
  3719. "directorySource": "^imported$",
  3720. "projectName": "Imported",
  3721. "type": "EXECUTABLE",
  3722. "isGeneratorProvided": None,
  3723. "sources": [
  3724. {
  3725. "path": "^empty\\.c$",
  3726. "isGenerated": None,
  3727. "sourceGroupName": "Source Files",
  3728. "compileGroupLanguage": "C",
  3729. "backtrace": [
  3730. {
  3731. "file": "^imported/CMakeLists\\.txt$",
  3732. "line": 5,
  3733. "command": "add_executable",
  3734. "hasParent": True,
  3735. },
  3736. {
  3737. "file": "^imported/CMakeLists\\.txt$",
  3738. "line": None,
  3739. "command": None,
  3740. "hasParent": False,
  3741. },
  3742. ],
  3743. },
  3744. ],
  3745. "sourceGroups": [
  3746. {
  3747. "name": "Source Files",
  3748. "sourcePaths": [
  3749. "^empty\\.c$",
  3750. ],
  3751. },
  3752. ],
  3753. "compileGroups": [
  3754. {
  3755. "language": "C",
  3756. "sourcePaths": [
  3757. "^empty\\.c$",
  3758. ],
  3759. "includes": None,
  3760. "defines": None,
  3761. "compileCommandFragments": None,
  3762. },
  3763. ],
  3764. "backtrace": [
  3765. {
  3766. "file": "^imported/CMakeLists\\.txt$",
  3767. "line": 5,
  3768. "command": "add_executable",
  3769. "hasParent": True,
  3770. },
  3771. {
  3772. "file": "^imported/CMakeLists\\.txt$",
  3773. "line": None,
  3774. "command": None,
  3775. "hasParent": False,
  3776. },
  3777. ],
  3778. "folder": None,
  3779. "nameOnDisk": "^link_imported_exe(\\.exe)?$",
  3780. "artifacts": [
  3781. {
  3782. "path": "^imported/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?link_imported_exe(\\.exe)?$",
  3783. "_dllExtra": False,
  3784. },
  3785. {
  3786. "path": "^imported/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?link_imported_exe\\.pdb$",
  3787. "_dllExtra": True,
  3788. },
  3789. ],
  3790. "build": "^imported$",
  3791. "source": "^imported$",
  3792. "install": None,
  3793. "link": {
  3794. "language": "C",
  3795. "lto": None,
  3796. "commandFragments": None,
  3797. },
  3798. "archive": None,
  3799. "dependencies": [
  3800. {
  3801. "id": "^ZERO_CHECK::@ba7eb709d0b48779c6c8$",
  3802. "backtrace": None,
  3803. },
  3804. ],
  3805. },
  3806. {
  3807. "name": "link_imported_shared_exe",
  3808. "id": "^link_imported_shared_exe::@ba7eb709d0b48779c6c8$",
  3809. "directorySource": "^imported$",
  3810. "projectName": "Imported",
  3811. "type": "EXECUTABLE",
  3812. "isGeneratorProvided": None,
  3813. "sources": [
  3814. {
  3815. "path": "^empty\\.c$",
  3816. "isGenerated": None,
  3817. "sourceGroupName": "Source Files",
  3818. "compileGroupLanguage": "C",
  3819. "backtrace": [
  3820. {
  3821. "file": "^imported/CMakeLists\\.txt$",
  3822. "line": 9,
  3823. "command": "add_executable",
  3824. "hasParent": True,
  3825. },
  3826. {
  3827. "file": "^imported/CMakeLists\\.txt$",
  3828. "line": None,
  3829. "command": None,
  3830. "hasParent": False,
  3831. },
  3832. ],
  3833. },
  3834. ],
  3835. "sourceGroups": [
  3836. {
  3837. "name": "Source Files",
  3838. "sourcePaths": [
  3839. "^empty\\.c$",
  3840. ],
  3841. },
  3842. ],
  3843. "compileGroups": [
  3844. {
  3845. "language": "C",
  3846. "sourcePaths": [
  3847. "^empty\\.c$",
  3848. ],
  3849. "includes": None,
  3850. "defines": None,
  3851. "compileCommandFragments": None,
  3852. },
  3853. ],
  3854. "backtrace": [
  3855. {
  3856. "file": "^imported/CMakeLists\\.txt$",
  3857. "line": 9,
  3858. "command": "add_executable",
  3859. "hasParent": True,
  3860. },
  3861. {
  3862. "file": "^imported/CMakeLists\\.txt$",
  3863. "line": None,
  3864. "command": None,
  3865. "hasParent": False,
  3866. },
  3867. ],
  3868. "folder": None,
  3869. "nameOnDisk": "^link_imported_shared_exe(\\.exe)?$",
  3870. "artifacts": [
  3871. {
  3872. "path": "^imported/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?link_imported_shared_exe(\\.exe)?$",
  3873. "_dllExtra": False,
  3874. },
  3875. {
  3876. "path": "^imported/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?link_imported_shared_exe\\.pdb$",
  3877. "_dllExtra": True,
  3878. },
  3879. ],
  3880. "build": "^imported$",
  3881. "source": "^imported$",
  3882. "install": None,
  3883. "link": {
  3884. "language": "C",
  3885. "lto": None,
  3886. "commandFragments": None,
  3887. },
  3888. "archive": None,
  3889. "dependencies": [
  3890. {
  3891. "id": "^ZERO_CHECK::@ba7eb709d0b48779c6c8$",
  3892. "backtrace": None,
  3893. },
  3894. ],
  3895. },
  3896. {
  3897. "name": "link_imported_static_exe",
  3898. "id": "^link_imported_static_exe::@ba7eb709d0b48779c6c8$",
  3899. "directorySource": "^imported$",
  3900. "projectName": "Imported",
  3901. "type": "EXECUTABLE",
  3902. "isGeneratorProvided": None,
  3903. "sources": [
  3904. {
  3905. "path": "^empty\\.c$",
  3906. "isGenerated": None,
  3907. "sourceGroupName": "Source Files",
  3908. "compileGroupLanguage": "C",
  3909. "backtrace": [
  3910. {
  3911. "file": "^imported/CMakeLists\\.txt$",
  3912. "line": 13,
  3913. "command": "add_executable",
  3914. "hasParent": True,
  3915. },
  3916. {
  3917. "file": "^imported/CMakeLists\\.txt$",
  3918. "line": None,
  3919. "command": None,
  3920. "hasParent": False,
  3921. },
  3922. ],
  3923. },
  3924. ],
  3925. "sourceGroups": [
  3926. {
  3927. "name": "Source Files",
  3928. "sourcePaths": [
  3929. "^empty\\.c$",
  3930. ],
  3931. },
  3932. ],
  3933. "compileGroups": [
  3934. {
  3935. "language": "C",
  3936. "sourcePaths": [
  3937. "^empty\\.c$",
  3938. ],
  3939. "includes": None,
  3940. "defines": None,
  3941. "compileCommandFragments": None,
  3942. },
  3943. ],
  3944. "backtrace": [
  3945. {
  3946. "file": "^imported/CMakeLists\\.txt$",
  3947. "line": 13,
  3948. "command": "add_executable",
  3949. "hasParent": True,
  3950. },
  3951. {
  3952. "file": "^imported/CMakeLists\\.txt$",
  3953. "line": None,
  3954. "command": None,
  3955. "hasParent": False,
  3956. },
  3957. ],
  3958. "folder": None,
  3959. "nameOnDisk": "^link_imported_static_exe(\\.exe)?$",
  3960. "artifacts": [
  3961. {
  3962. "path": "^imported/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?link_imported_static_exe(\\.exe)?$",
  3963. "_dllExtra": False,
  3964. },
  3965. {
  3966. "path": "^imported/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?link_imported_static_exe\\.pdb$",
  3967. "_dllExtra": True,
  3968. },
  3969. ],
  3970. "build": "^imported$",
  3971. "source": "^imported$",
  3972. "install": None,
  3973. "link": {
  3974. "language": "C",
  3975. "lto": None,
  3976. "commandFragments": None,
  3977. },
  3978. "archive": None,
  3979. "dependencies": [
  3980. {
  3981. "id": "^ZERO_CHECK::@ba7eb709d0b48779c6c8$",
  3982. "backtrace": None,
  3983. },
  3984. ],
  3985. },
  3986. {
  3987. "name": "link_imported_object_exe",
  3988. "id": "^link_imported_object_exe::@ba7eb709d0b48779c6c8$",
  3989. "directorySource": "^imported$",
  3990. "projectName": "Imported",
  3991. "type": "EXECUTABLE",
  3992. "isGeneratorProvided": None,
  3993. "sources": [
  3994. {
  3995. "path": "^empty\\.c$",
  3996. "isGenerated": None,
  3997. "sourceGroupName": "Source Files",
  3998. "compileGroupLanguage": "C",
  3999. "backtrace": [
  4000. {
  4001. "file": "^imported/CMakeLists\\.txt$",
  4002. "line": 18,
  4003. "command": "add_executable",
  4004. "hasParent": True,
  4005. },
  4006. {
  4007. "file": "^imported/CMakeLists\\.txt$",
  4008. "line": None,
  4009. "command": None,
  4010. "hasParent": False,
  4011. },
  4012. ],
  4013. },
  4014. ],
  4015. "sourceGroups": [
  4016. {
  4017. "name": "Source Files",
  4018. "sourcePaths": [
  4019. "^empty\\.c$",
  4020. ],
  4021. },
  4022. ],
  4023. "compileGroups": [
  4024. {
  4025. "language": "C",
  4026. "sourcePaths": [
  4027. "^empty\\.c$",
  4028. ],
  4029. "includes": None,
  4030. "defines": None,
  4031. "compileCommandFragments": None,
  4032. },
  4033. ],
  4034. "backtrace": [
  4035. {
  4036. "file": "^imported/CMakeLists\\.txt$",
  4037. "line": 18,
  4038. "command": "add_executable",
  4039. "hasParent": True,
  4040. },
  4041. {
  4042. "file": "^imported/CMakeLists\\.txt$",
  4043. "line": None,
  4044. "command": None,
  4045. "hasParent": False,
  4046. },
  4047. ],
  4048. "folder": None,
  4049. "nameOnDisk": "^link_imported_object_exe(\\.exe)?$",
  4050. "artifacts": [
  4051. {
  4052. "path": "^imported/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?link_imported_object_exe(\\.exe)?$",
  4053. "_dllExtra": False,
  4054. },
  4055. {
  4056. "path": "^imported/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?link_imported_object_exe\\.pdb$",
  4057. "_dllExtra": True,
  4058. },
  4059. ],
  4060. "build": "^imported$",
  4061. "source": "^imported$",
  4062. "install": None,
  4063. "link": {
  4064. "language": "C",
  4065. "lto": None,
  4066. "commandFragments": None,
  4067. },
  4068. "archive": None,
  4069. "dependencies": [
  4070. {
  4071. "id": "^ZERO_CHECK::@ba7eb709d0b48779c6c8$",
  4072. "backtrace": None,
  4073. },
  4074. ],
  4075. },
  4076. {
  4077. "name": "link_imported_interface_exe",
  4078. "id": "^link_imported_interface_exe::@ba7eb709d0b48779c6c8$",
  4079. "directorySource": "^imported$",
  4080. "projectName": "Imported",
  4081. "type": "EXECUTABLE",
  4082. "isGeneratorProvided": None,
  4083. "sources": [
  4084. {
  4085. "path": "^empty\\.c$",
  4086. "isGenerated": None,
  4087. "sourceGroupName": "Source Files",
  4088. "compileGroupLanguage": "C",
  4089. "backtrace": [
  4090. {
  4091. "file": "^imported/CMakeLists\\.txt$",
  4092. "line": 23,
  4093. "command": "add_executable",
  4094. "hasParent": True,
  4095. },
  4096. {
  4097. "file": "^imported/CMakeLists\\.txt$",
  4098. "line": None,
  4099. "command": None,
  4100. "hasParent": False,
  4101. },
  4102. ],
  4103. },
  4104. ],
  4105. "sourceGroups": [
  4106. {
  4107. "name": "Source Files",
  4108. "sourcePaths": [
  4109. "^empty\\.c$",
  4110. ],
  4111. },
  4112. ],
  4113. "compileGroups": [
  4114. {
  4115. "language": "C",
  4116. "sourcePaths": [
  4117. "^empty\\.c$",
  4118. ],
  4119. "includes": None,
  4120. "defines": None,
  4121. "compileCommandFragments": None,
  4122. },
  4123. ],
  4124. "backtrace": [
  4125. {
  4126. "file": "^imported/CMakeLists\\.txt$",
  4127. "line": 23,
  4128. "command": "add_executable",
  4129. "hasParent": True,
  4130. },
  4131. {
  4132. "file": "^imported/CMakeLists\\.txt$",
  4133. "line": None,
  4134. "command": None,
  4135. "hasParent": False,
  4136. },
  4137. ],
  4138. "folder": None,
  4139. "nameOnDisk": "^link_imported_interface_exe(\\.exe)?$",
  4140. "artifacts": [
  4141. {
  4142. "path": "^imported/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?link_imported_interface_exe(\\.exe)?$",
  4143. "_dllExtra": False,
  4144. },
  4145. {
  4146. "path": "^imported/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?link_imported_interface_exe\\.pdb$",
  4147. "_dllExtra": True,
  4148. },
  4149. ],
  4150. "build": "^imported$",
  4151. "source": "^imported$",
  4152. "install": None,
  4153. "link": {
  4154. "language": "C",
  4155. "lto": None,
  4156. "commandFragments": None,
  4157. },
  4158. "archive": None,
  4159. "dependencies": [
  4160. {
  4161. "id": "^ZERO_CHECK::@ba7eb709d0b48779c6c8$",
  4162. "backtrace": None,
  4163. },
  4164. ],
  4165. },
  4166. {
  4167. "name": "ALL_BUILD",
  4168. "id": "^ALL_BUILD::@c11385ffed57b860da63$",
  4169. "directorySource": "^custom$",
  4170. "projectName": "Custom",
  4171. "type": "UTILITY",
  4172. "isGeneratorProvided": True,
  4173. "sources": [
  4174. {
  4175. "path": "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/custom/CMakeFiles/ALL_BUILD$",
  4176. "isGenerated": True,
  4177. "sourceGroupName": "",
  4178. "compileGroupLanguage": None,
  4179. "backtrace": [
  4180. {
  4181. "file": "^custom/CMakeLists\\.txt$",
  4182. "line": None,
  4183. "command": None,
  4184. "hasParent": False,
  4185. },
  4186. ],
  4187. },
  4188. {
  4189. "path": "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/custom/CMakeFiles/ALL_BUILD\\.rule$",
  4190. "isGenerated": True,
  4191. "sourceGroupName": "CMake Rules",
  4192. "compileGroupLanguage": None,
  4193. "backtrace": [
  4194. {
  4195. "file": "^custom/CMakeLists\\.txt$",
  4196. "line": None,
  4197. "command": None,
  4198. "hasParent": False,
  4199. },
  4200. ],
  4201. },
  4202. ],
  4203. "sourceGroups": [
  4204. {
  4205. "name": "",
  4206. "sourcePaths": [
  4207. "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/custom/CMakeFiles/ALL_BUILD$",
  4208. ],
  4209. },
  4210. {
  4211. "name": "CMake Rules",
  4212. "sourcePaths": [
  4213. "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/custom/CMakeFiles/ALL_BUILD\\.rule$",
  4214. ],
  4215. },
  4216. ],
  4217. "compileGroups": None,
  4218. "backtrace": [
  4219. {
  4220. "file": "^custom/CMakeLists\\.txt$",
  4221. "line": None,
  4222. "command": None,
  4223. "hasParent": False,
  4224. },
  4225. ],
  4226. "folder": None,
  4227. "nameOnDisk": None,
  4228. "artifacts": None,
  4229. "build": "^custom$",
  4230. "source": "^custom$",
  4231. "install": None,
  4232. "link": None,
  4233. "archive": None,
  4234. "dependencies": [
  4235. {
  4236. "id": "^ZERO_CHECK::@c11385ffed57b860da63$",
  4237. "backtrace": None,
  4238. },
  4239. {
  4240. "id": "^custom_exe::@c11385ffed57b860da63$",
  4241. "backtrace": None,
  4242. },
  4243. ],
  4244. },
  4245. {
  4246. "name": "ZERO_CHECK",
  4247. "id": "^ZERO_CHECK::@c11385ffed57b860da63$",
  4248. "directorySource": "^custom$",
  4249. "projectName": "Custom",
  4250. "type": "UTILITY",
  4251. "isGeneratorProvided": True,
  4252. "sources": [
  4253. {
  4254. "path": "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/custom/CMakeFiles/ZERO_CHECK$",
  4255. "isGenerated": True,
  4256. "sourceGroupName": "",
  4257. "compileGroupLanguage": None,
  4258. "backtrace": [
  4259. {
  4260. "file": "^custom/CMakeLists\\.txt$",
  4261. "line": None,
  4262. "command": None,
  4263. "hasParent": False,
  4264. },
  4265. ],
  4266. },
  4267. {
  4268. "path": "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/custom/CMakeFiles/ZERO_CHECK\\.rule$",
  4269. "isGenerated": True,
  4270. "sourceGroupName": "CMake Rules",
  4271. "compileGroupLanguage": None,
  4272. "backtrace": [
  4273. {
  4274. "file": "^custom/CMakeLists\\.txt$",
  4275. "line": None,
  4276. "command": None,
  4277. "hasParent": False,
  4278. },
  4279. ],
  4280. },
  4281. ],
  4282. "sourceGroups": [
  4283. {
  4284. "name": "",
  4285. "sourcePaths": [
  4286. "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/custom/CMakeFiles/ZERO_CHECK$",
  4287. ],
  4288. },
  4289. {
  4290. "name": "CMake Rules",
  4291. "sourcePaths": [
  4292. "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/custom/CMakeFiles/ZERO_CHECK\\.rule$",
  4293. ],
  4294. },
  4295. ],
  4296. "compileGroups": None,
  4297. "backtrace": [
  4298. {
  4299. "file": "^custom/CMakeLists\\.txt$",
  4300. "line": None,
  4301. "command": None,
  4302. "hasParent": False,
  4303. },
  4304. ],
  4305. "folder": None,
  4306. "nameOnDisk": None,
  4307. "artifacts": None,
  4308. "build": "^custom$",
  4309. "source": "^custom$",
  4310. "install": None,
  4311. "link": None,
  4312. "archive": None,
  4313. "dependencies": None,
  4314. },
  4315. {
  4316. "name": "custom_tgt",
  4317. "id": "^custom_tgt::@c11385ffed57b860da63$",
  4318. "directorySource": "^custom$",
  4319. "projectName": "Custom",
  4320. "type": "UTILITY",
  4321. "isGeneratorProvided": None,
  4322. "sources": [
  4323. {
  4324. "path": "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/custom/CMakeFiles/custom_tgt$",
  4325. "isGenerated": True,
  4326. "sourceGroupName": "",
  4327. "compileGroupLanguage": None,
  4328. "backtrace": [
  4329. {
  4330. "file": "^custom/CMakeLists\\.txt$",
  4331. "line": 3,
  4332. "command": "add_custom_target",
  4333. "hasParent": True,
  4334. },
  4335. {
  4336. "file": "^custom/CMakeLists\\.txt$",
  4337. "line": None,
  4338. "command": None,
  4339. "hasParent": False,
  4340. },
  4341. ],
  4342. },
  4343. {
  4344. "path": "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/(custom/)?CMakeFiles/([0-9a-f]+/)?custom_tgt\\.rule$",
  4345. "isGenerated": True,
  4346. "sourceGroupName": "CMake Rules",
  4347. "compileGroupLanguage": None,
  4348. "backtrace": [
  4349. {
  4350. "file": "^custom/CMakeLists\\.txt$",
  4351. "line": None,
  4352. "command": None,
  4353. "hasParent": False,
  4354. },
  4355. ],
  4356. },
  4357. ],
  4358. "sourceGroups": [
  4359. {
  4360. "name": "",
  4361. "sourcePaths": [
  4362. "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/custom/CMakeFiles/custom_tgt$",
  4363. ],
  4364. },
  4365. {
  4366. "name": "CMake Rules",
  4367. "sourcePaths": [
  4368. "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/(custom/)?CMakeFiles/([0-9a-f]+/)?custom_tgt\\.rule$",
  4369. ],
  4370. },
  4371. ],
  4372. "compileGroups": None,
  4373. "backtrace": [
  4374. {
  4375. "file": "^custom/CMakeLists\\.txt$",
  4376. "line": 3,
  4377. "command": "add_custom_target",
  4378. "hasParent": True,
  4379. },
  4380. {
  4381. "file": "^custom/CMakeLists\\.txt$",
  4382. "line": None,
  4383. "command": None,
  4384. "hasParent": False,
  4385. },
  4386. ],
  4387. "folder": None,
  4388. "nameOnDisk": None,
  4389. "artifacts": None,
  4390. "build": "^custom$",
  4391. "source": "^custom$",
  4392. "install": None,
  4393. "link": None,
  4394. "archive": None,
  4395. "dependencies": [
  4396. {
  4397. "id": "^ZERO_CHECK::@c11385ffed57b860da63$",
  4398. "backtrace": None,
  4399. },
  4400. ],
  4401. },
  4402. {
  4403. "name": "custom_exe",
  4404. "id": "^custom_exe::@c11385ffed57b860da63$",
  4405. "directorySource": "^custom$",
  4406. "projectName": "Custom",
  4407. "type": "EXECUTABLE",
  4408. "isGeneratorProvided": None,
  4409. "sources": [
  4410. {
  4411. "path": "^empty\\.c$",
  4412. "isGenerated": None,
  4413. "sourceGroupName": "Source Files",
  4414. "compileGroupLanguage": "C",
  4415. "backtrace": [
  4416. {
  4417. "file": "^custom/CMakeLists\\.txt$",
  4418. "line": 4,
  4419. "command": "add_executable",
  4420. "hasParent": True,
  4421. },
  4422. {
  4423. "file": "^custom/CMakeLists\\.txt$",
  4424. "line": None,
  4425. "command": None,
  4426. "hasParent": False,
  4427. },
  4428. ],
  4429. },
  4430. ],
  4431. "sourceGroups": [
  4432. {
  4433. "name": "Source Files",
  4434. "sourcePaths": [
  4435. "^empty\\.c$",
  4436. ],
  4437. },
  4438. ],
  4439. "compileGroups": [
  4440. {
  4441. "language": "C",
  4442. "sourcePaths": [
  4443. "^empty\\.c$",
  4444. ],
  4445. "includes": None,
  4446. "defines": None,
  4447. "compileCommandFragments": None,
  4448. },
  4449. ],
  4450. "backtrace": [
  4451. {
  4452. "file": "^custom/CMakeLists\\.txt$",
  4453. "line": 4,
  4454. "command": "add_executable",
  4455. "hasParent": True,
  4456. },
  4457. {
  4458. "file": "^custom/CMakeLists\\.txt$",
  4459. "line": None,
  4460. "command": None,
  4461. "hasParent": False,
  4462. },
  4463. ],
  4464. "folder": None,
  4465. "nameOnDisk": "^custom_exe(\\.exe)?$",
  4466. "artifacts": [
  4467. {
  4468. "path": "^custom/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?custom_exe(\\.exe)?$",
  4469. "_dllExtra": False,
  4470. },
  4471. {
  4472. "path": "^custom/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?custom_exe\\.pdb$",
  4473. "_dllExtra": True,
  4474. },
  4475. ],
  4476. "build": "^custom$",
  4477. "source": "^custom$",
  4478. "install": None,
  4479. "link": {
  4480. "language": "C",
  4481. "lto": None,
  4482. "commandFragments": None,
  4483. },
  4484. "archive": None,
  4485. "dependencies": [
  4486. {
  4487. "id": "^custom_tgt::@c11385ffed57b860da63$",
  4488. "backtrace": [
  4489. {
  4490. "file": "^custom/CMakeLists\\.txt$",
  4491. "line": 5,
  4492. "command": "add_dependencies",
  4493. "hasParent": True,
  4494. },
  4495. {
  4496. "file": "^custom/CMakeLists\\.txt$",
  4497. "line": None,
  4498. "command": None,
  4499. "hasParent": False,
  4500. },
  4501. ],
  4502. },
  4503. {
  4504. "id": "^ZERO_CHECK::@c11385ffed57b860da63$",
  4505. "backtrace": None,
  4506. },
  4507. ],
  4508. },
  4509. {
  4510. "name": "ALL_BUILD",
  4511. "id": "^ALL_BUILD::@[0-9a-f]+$",
  4512. "directorySource": "^.*/Tests/RunCMake/FileAPIExternalSource$",
  4513. "projectName": "External",
  4514. "type": "UTILITY",
  4515. "isGeneratorProvided": True,
  4516. "sources": [
  4517. {
  4518. "path": "^.*/Tests/RunCMake/FileAPI/FileAPIExternalBuild/CMakeFiles/ALL_BUILD$",
  4519. "isGenerated": True,
  4520. "sourceGroupName": "",
  4521. "compileGroupLanguage": None,
  4522. "backtrace": [
  4523. {
  4524. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4525. "line": None,
  4526. "command": None,
  4527. "hasParent": False,
  4528. },
  4529. ],
  4530. },
  4531. {
  4532. "path": "^.*/Tests/RunCMake/FileAPI/FileAPIExternalBuild/CMakeFiles/ALL_BUILD\\.rule$",
  4533. "isGenerated": True,
  4534. "sourceGroupName": "CMake Rules",
  4535. "compileGroupLanguage": None,
  4536. "backtrace": [
  4537. {
  4538. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4539. "line": None,
  4540. "command": None,
  4541. "hasParent": False,
  4542. },
  4543. ],
  4544. },
  4545. ],
  4546. "sourceGroups": [
  4547. {
  4548. "name": "",
  4549. "sourcePaths": [
  4550. "^.*/Tests/RunCMake/FileAPI/FileAPIExternalBuild/CMakeFiles/ALL_BUILD$",
  4551. ],
  4552. },
  4553. {
  4554. "name": "CMake Rules",
  4555. "sourcePaths": [
  4556. "^.*/Tests/RunCMake/FileAPI/FileAPIExternalBuild/CMakeFiles/ALL_BUILD\\.rule$",
  4557. ],
  4558. },
  4559. ],
  4560. "compileGroups": None,
  4561. "backtrace": [
  4562. {
  4563. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4564. "line": None,
  4565. "command": None,
  4566. "hasParent": False,
  4567. },
  4568. ],
  4569. "folder": None,
  4570. "nameOnDisk": None,
  4571. "artifacts": None,
  4572. "build": "^.*/Tests/RunCMake/FileAPI/FileAPIExternalBuild$",
  4573. "source": "^.*/Tests/RunCMake/FileAPIExternalSource$",
  4574. "install": None,
  4575. "link": None,
  4576. "archive": None,
  4577. "dependencies": [
  4578. {
  4579. "id": "^ZERO_CHECK::@[0-9a-f]+$",
  4580. "backtrace": None,
  4581. },
  4582. {
  4583. "id": "^generated_exe::@[0-9a-f]+$",
  4584. "backtrace": None,
  4585. },
  4586. ],
  4587. },
  4588. {
  4589. "name": "ZERO_CHECK",
  4590. "id": "^ZERO_CHECK::@[0-9a-f]+$",
  4591. "directorySource": "^.*/Tests/RunCMake/FileAPIExternalSource$",
  4592. "projectName": "External",
  4593. "type": "UTILITY",
  4594. "isGeneratorProvided": True,
  4595. "sources": [
  4596. {
  4597. "path": "^.*/Tests/RunCMake/FileAPI/FileAPIExternalBuild/CMakeFiles/ZERO_CHECK$",
  4598. "isGenerated": True,
  4599. "sourceGroupName": "",
  4600. "compileGroupLanguage": None,
  4601. "backtrace": [
  4602. {
  4603. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4604. "line": None,
  4605. "command": None,
  4606. "hasParent": False,
  4607. },
  4608. ],
  4609. },
  4610. {
  4611. "path": "^.*/Tests/RunCMake/FileAPI/FileAPIExternalBuild/CMakeFiles/ZERO_CHECK\\.rule$",
  4612. "isGenerated": True,
  4613. "sourceGroupName": "CMake Rules",
  4614. "compileGroupLanguage": None,
  4615. "backtrace": [
  4616. {
  4617. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4618. "line": None,
  4619. "command": None,
  4620. "hasParent": False,
  4621. },
  4622. ],
  4623. },
  4624. ],
  4625. "sourceGroups": [
  4626. {
  4627. "name": "",
  4628. "sourcePaths": [
  4629. "^.*/Tests/RunCMake/FileAPI/FileAPIExternalBuild/CMakeFiles/ZERO_CHECK$",
  4630. ],
  4631. },
  4632. {
  4633. "name": "CMake Rules",
  4634. "sourcePaths": [
  4635. "^.*/Tests/RunCMake/FileAPI/FileAPIExternalBuild/CMakeFiles/ZERO_CHECK\\.rule$",
  4636. ],
  4637. },
  4638. ],
  4639. "compileGroups": None,
  4640. "backtrace": [
  4641. {
  4642. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4643. "line": None,
  4644. "command": None,
  4645. "hasParent": False,
  4646. },
  4647. ],
  4648. "folder": None,
  4649. "nameOnDisk": None,
  4650. "artifacts": None,
  4651. "build": "^.*/Tests/RunCMake/FileAPI/FileAPIExternalBuild$",
  4652. "source": "^.*/Tests/RunCMake/FileAPIExternalSource$",
  4653. "install": None,
  4654. "link": None,
  4655. "archive": None,
  4656. "dependencies": None,
  4657. },
  4658. {
  4659. "name": "generated_exe",
  4660. "id": "^generated_exe::@[0-9a-f]+$",
  4661. "directorySource": "^.*/Tests/RunCMake/FileAPIExternalSource$",
  4662. "projectName": "External",
  4663. "type": "EXECUTABLE",
  4664. "isGeneratorProvided": None,
  4665. "sources": [
  4666. {
  4667. "path": "^.*/Tests/RunCMake/FileAPIExternalSource/empty\\.c$",
  4668. "isGenerated": None,
  4669. "sourceGroupName": "Source Files",
  4670. "compileGroupLanguage": "C",
  4671. "backtrace": [
  4672. {
  4673. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4674. "line": 5,
  4675. "command": "add_executable",
  4676. "hasParent": True,
  4677. },
  4678. {
  4679. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4680. "line": None,
  4681. "command": None,
  4682. "hasParent": False,
  4683. },
  4684. ],
  4685. },
  4686. {
  4687. "path": "^.*/Tests/RunCMake/FileAPI/FileAPIExternalBuild/generated\\.cxx$",
  4688. "isGenerated": True,
  4689. "sourceGroupName": "Generated Source Files",
  4690. "compileGroupLanguage": "CXX",
  4691. "backtrace": [
  4692. {
  4693. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4694. "line": 6,
  4695. "command": "target_sources",
  4696. "hasParent": True,
  4697. },
  4698. {
  4699. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4700. "line": None,
  4701. "command": None,
  4702. "hasParent": False,
  4703. },
  4704. ],
  4705. },
  4706. ],
  4707. "sourceGroups": [
  4708. {
  4709. "name": "Source Files",
  4710. "sourcePaths": [
  4711. "^.*/Tests/RunCMake/FileAPIExternalSource/empty\\.c$",
  4712. ],
  4713. },
  4714. {
  4715. "name": "Generated Source Files",
  4716. "sourcePaths": [
  4717. "^.*/Tests/RunCMake/FileAPI/FileAPIExternalBuild/generated\\.cxx$",
  4718. ],
  4719. },
  4720. ],
  4721. "compileGroups": [
  4722. {
  4723. "language": "C",
  4724. "sourcePaths": [
  4725. "^.*/Tests/RunCMake/FileAPIExternalSource/empty\\.c$",
  4726. ],
  4727. "includes": [
  4728. {
  4729. "path": "^.*/Tests/RunCMake/FileAPI/FileAPIExternalBuild$",
  4730. "isSystem": None,
  4731. "backtrace": [
  4732. {
  4733. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4734. "line": 10,
  4735. "command": "set_property",
  4736. "hasParent": True,
  4737. },
  4738. {
  4739. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4740. "line": None,
  4741. "command": None,
  4742. "hasParent": False,
  4743. },
  4744. ],
  4745. },
  4746. {
  4747. "path": "^.*/Tests/RunCMake/FileAPIExternalSource$",
  4748. "isSystem": True,
  4749. "backtrace": [
  4750. {
  4751. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4752. "line": 11,
  4753. "command": "target_include_directories",
  4754. "hasParent": True,
  4755. },
  4756. {
  4757. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4758. "line": None,
  4759. "command": None,
  4760. "hasParent": False,
  4761. },
  4762. ],
  4763. },
  4764. ],
  4765. "defines": [
  4766. {
  4767. "define": "EMPTY_C=1",
  4768. "backtrace": [
  4769. {
  4770. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4771. "line": 9,
  4772. "command": "set_property",
  4773. "hasParent": True,
  4774. },
  4775. {
  4776. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4777. "line": None,
  4778. "command": None,
  4779. "hasParent": False,
  4780. },
  4781. ],
  4782. },
  4783. {
  4784. "define": "SRC_DUMMY",
  4785. "backtrace": [
  4786. {
  4787. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4788. "line": 9,
  4789. "command": "set_property",
  4790. "hasParent": True,
  4791. },
  4792. {
  4793. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4794. "line": None,
  4795. "command": None,
  4796. "hasParent": False,
  4797. },
  4798. ],
  4799. },
  4800. {
  4801. "define": "GENERATED_EXE=1",
  4802. "backtrace": [
  4803. {
  4804. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4805. "line": 12,
  4806. "command": "target_compile_definitions",
  4807. "hasParent": True,
  4808. },
  4809. {
  4810. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4811. "line": None,
  4812. "command": None,
  4813. "hasParent": False,
  4814. },
  4815. ],
  4816. },
  4817. {
  4818. "define": "TGT_DUMMY",
  4819. "backtrace": [
  4820. {
  4821. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4822. "line": 12,
  4823. "command": "target_compile_definitions",
  4824. "hasParent": True,
  4825. },
  4826. {
  4827. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4828. "line": None,
  4829. "command": None,
  4830. "hasParent": False,
  4831. },
  4832. ],
  4833. },
  4834. ],
  4835. "compileCommandFragments": [
  4836. {
  4837. "fragment" : "SRC_COMPILE_OPTIONS_DUMMY",
  4838. "backtrace": [
  4839. {
  4840. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4841. "line": 13,
  4842. "command": "set_source_files_properties",
  4843. "hasParent": True,
  4844. },
  4845. {
  4846. "file" : "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4847. "line": None,
  4848. "command": None,
  4849. "hasParent": False,
  4850. },
  4851. ],
  4852. }
  4853. ],
  4854. },
  4855. {
  4856. "language": "CXX",
  4857. "sourcePaths": [
  4858. "^.*/Tests/RunCMake/FileAPI/FileAPIExternalBuild/generated\\.cxx$",
  4859. ],
  4860. "includes": [
  4861. {
  4862. "path": "^.*/Tests/RunCMake/FileAPIExternalSource$",
  4863. "isSystem": True,
  4864. "backtrace": [
  4865. {
  4866. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4867. "line": 11,
  4868. "command": "target_include_directories",
  4869. "hasParent": True,
  4870. },
  4871. {
  4872. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4873. "line": None,
  4874. "command": None,
  4875. "hasParent": False,
  4876. },
  4877. ],
  4878. },
  4879. ],
  4880. "defines": [
  4881. {
  4882. "define": "GENERATED_EXE=1",
  4883. "backtrace": [
  4884. {
  4885. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4886. "line": 12,
  4887. "command": "target_compile_definitions",
  4888. "hasParent": True,
  4889. },
  4890. {
  4891. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4892. "line": None,
  4893. "command": None,
  4894. "hasParent": False,
  4895. },
  4896. ],
  4897. },
  4898. {
  4899. "define": "TGT_DUMMY",
  4900. "backtrace": [
  4901. {
  4902. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4903. "line": 12,
  4904. "command": "target_compile_definitions",
  4905. "hasParent": True,
  4906. },
  4907. {
  4908. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4909. "line": None,
  4910. "command": None,
  4911. "hasParent": False,
  4912. },
  4913. ],
  4914. },
  4915. ],
  4916. "compileCommandFragments": None,
  4917. },
  4918. ],
  4919. "backtrace": [
  4920. {
  4921. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4922. "line": 5,
  4923. "command": "add_executable",
  4924. "hasParent": True,
  4925. },
  4926. {
  4927. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4928. "line": None,
  4929. "command": None,
  4930. "hasParent": False,
  4931. },
  4932. ],
  4933. "folder": None,
  4934. "nameOnDisk": "^generated_exe(\\.exe)?$",
  4935. "artifacts": [
  4936. {
  4937. "path": "^.*/Tests/RunCMake/FileAPI/FileAPIExternalBuild/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?generated_exe(\\.exe)?$",
  4938. "_dllExtra": False,
  4939. },
  4940. {
  4941. "path": "^.*/Tests/RunCMake/FileAPI/FileAPIExternalBuild/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?generated_exe\\.pdb$",
  4942. "_dllExtra": True,
  4943. },
  4944. ],
  4945. "build": "^.*/Tests/RunCMake/FileAPI/FileAPIExternalBuild$",
  4946. "source": "^.*/Tests/RunCMake/FileAPIExternalSource$",
  4947. "install": None,
  4948. "link": {
  4949. "language": "CXX",
  4950. "lto": None,
  4951. "commandFragments": None,
  4952. },
  4953. "archive": None,
  4954. "dependencies": [
  4955. {
  4956. "id": "^ZERO_CHECK::@[0-9a-f]+$",
  4957. "backtrace": None,
  4958. },
  4959. ],
  4960. },
  4961. ]
  4962. if not os.path.exists(os.path.join(reply_dir, "..", "..", "..", "..", "ipo_enabled.txt")):
  4963. for e in expected:
  4964. try:
  4965. e["link"]["lto"] = None
  4966. except TypeError: # "link" is not a dict, no problem.
  4967. pass
  4968. try:
  4969. e["archive"]["lto"] = None
  4970. except TypeError: # "archive" is not a dict, no problem.
  4971. pass
  4972. if inSource:
  4973. for e in expected:
  4974. if e["sources"] is not None:
  4975. for s in e["sources"]:
  4976. s["path"] = s["path"].replace("^.*/Tests/RunCMake/FileAPI/", "^", 1)
  4977. if e["sourceGroups"] is not None:
  4978. for g in e["sourceGroups"]:
  4979. g["sourcePaths"] = [p.replace("^.*/Tests/RunCMake/FileAPI/", "^", 1) for p in g["sourcePaths"]]
  4980. if e["compileGroups"] is not None:
  4981. for g in e["compileGroups"]:
  4982. g["sourcePaths"] = [p.replace("^.*/Tests/RunCMake/FileAPI/", "^", 1) for p in g["sourcePaths"]]
  4983. if matches(g, "^Visual Studio "):
  4984. expected = filter_list(lambda e: e["name"] not in ("ZERO_CHECK") or e["id"] == "^ZERO_CHECK::@6890427a1f51a3e7e1df$", expected)
  4985. for e in expected:
  4986. if e["type"] == "UTILITY":
  4987. if e["id"] == "^ZERO_CHECK::@6890427a1f51a3e7e1df$":
  4988. e["sources"] = [
  4989. {
  4990. "path": "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/CMakeFiles/([0-9a-f]+/)?generate\\.stamp\\.rule$",
  4991. "isGenerated": True,
  4992. "sourceGroupName": "CMake Rules",
  4993. "compileGroupLanguage": None,
  4994. "backtrace": [
  4995. {
  4996. "file": "^CMakeLists\\.txt$",
  4997. "line": None,
  4998. "command": None,
  4999. "hasParent": False,
  5000. },
  5001. ],
  5002. },
  5003. ]
  5004. e["sourceGroups"] = [
  5005. {
  5006. "name": "CMake Rules",
  5007. "sourcePaths": [
  5008. "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/CMakeFiles/([0-9a-f]+/)?generate\\.stamp\\.rule$",
  5009. ],
  5010. },
  5011. ]
  5012. elif e["name"] in ("ALL_BUILD"):
  5013. e["sources"] = []
  5014. e["sourceGroups"] = None
  5015. if e["dependencies"] is not None:
  5016. for d in e["dependencies"]:
  5017. if matches(d["id"], "^\\^ZERO_CHECK::@"):
  5018. d["id"] = "^ZERO_CHECK::@6890427a1f51a3e7e1df$"
  5019. elif g == "Xcode":
  5020. if ';' in os.environ.get("CMAKE_OSX_ARCHITECTURES", ""):
  5021. expected = filter_list(lambda e: e["name"] not in ("link_imported_object_exe"), expected)
  5022. for e in expected:
  5023. e["dependencies"] = filter_list(lambda d: not matches(d["id"], "^\\^link_imported_object_exe::@"), e["dependencies"])
  5024. if e["name"] in ("c_object_lib", "cxx_object_lib"):
  5025. e["artifacts"] = None
  5026. else:
  5027. for e in expected:
  5028. e["dependencies"] = filter_list(lambda d: not matches(d["id"], "^\\^ZERO_CHECK::@"), e["dependencies"])
  5029. expected = filter_list(lambda t: t["name"] not in ("ALL_BUILD", "ZERO_CHECK"), expected)
  5030. if sys.platform not in ("win32", "cygwin", "msys"):
  5031. for e in expected:
  5032. e["artifacts"] = filter_list(lambda a: not a["_dllExtra"], e["artifacts"])
  5033. if "aix" not in sys.platform:
  5034. for e in expected:
  5035. e["artifacts"] = filter_list(lambda a: not a.get("_aixExtra", False), e["artifacts"])
  5036. return expected
  5037. def check_targets(c, g, inSource):
  5038. check_list_match(lambda a, e: matches(a["id"], e["id"]),
  5039. c["targets"], gen_check_targets(c, g, inSource),
  5040. check=check_target(c),
  5041. check_exception=lambda a, e: "Target ID: %s" % a["id"],
  5042. missing_exception=lambda e: "Target ID: %s" % e["id"],
  5043. extra_exception=lambda a: "Target ID: %s" % a["id"])
  5044. def gen_check_projects(c, g):
  5045. expected = [
  5046. {
  5047. "name": "codemodel-v2",
  5048. "parentName": None,
  5049. "childNames": [
  5050. "Alias",
  5051. "Custom",
  5052. "Cxx",
  5053. "Imported",
  5054. "Object",
  5055. "External",
  5056. ],
  5057. "directorySources": [
  5058. "^\\.$",
  5059. "^dir$",
  5060. "^dir/dir$",
  5061. ],
  5062. "targetIds": [
  5063. "^ALL_BUILD::@6890427a1f51a3e7e1df$",
  5064. "^ZERO_CHECK::@6890427a1f51a3e7e1df$",
  5065. "^interface_exe::@6890427a1f51a3e7e1df$",
  5066. "^c_lib::@6890427a1f51a3e7e1df$",
  5067. "^c_exe::@6890427a1f51a3e7e1df$",
  5068. "^c_shared_lib::@6890427a1f51a3e7e1df$",
  5069. "^c_shared_exe::@6890427a1f51a3e7e1df$",
  5070. "^c_static_lib::@6890427a1f51a3e7e1df$",
  5071. "^c_static_exe::@6890427a1f51a3e7e1df$",
  5072. ],
  5073. },
  5074. {
  5075. "name": "Cxx",
  5076. "parentName": "codemodel-v2",
  5077. "childNames": None,
  5078. "directorySources": [
  5079. "^cxx$",
  5080. ],
  5081. "targetIds": [
  5082. "^ALL_BUILD::@a56b12a3f5c0529fb296$",
  5083. "^ZERO_CHECK::@a56b12a3f5c0529fb296$",
  5084. "^cxx_lib::@a56b12a3f5c0529fb296$",
  5085. "^cxx_exe::@a56b12a3f5c0529fb296$",
  5086. "^cxx_shared_lib::@a56b12a3f5c0529fb296$",
  5087. "^cxx_shared_exe::@a56b12a3f5c0529fb296$",
  5088. "^cxx_static_lib::@a56b12a3f5c0529fb296$",
  5089. "^cxx_static_exe::@a56b12a3f5c0529fb296$",
  5090. ],
  5091. },
  5092. {
  5093. "name": "Alias",
  5094. "parentName": "codemodel-v2",
  5095. "childNames": None,
  5096. "directorySources": [
  5097. "^alias$",
  5098. ],
  5099. "targetIds": [
  5100. "^ALL_BUILD::@53632cba2752272bb008$",
  5101. "^ZERO_CHECK::@53632cba2752272bb008$",
  5102. "^c_alias_exe::@53632cba2752272bb008$",
  5103. "^cxx_alias_exe::@53632cba2752272bb008$",
  5104. ],
  5105. },
  5106. {
  5107. "name": "Object",
  5108. "parentName": "codemodel-v2",
  5109. "childNames": None,
  5110. "directorySources": [
  5111. "^object$",
  5112. ],
  5113. "targetIds": [
  5114. "^ALL_BUILD::@5ed5358f70faf8d8af7a$",
  5115. "^ZERO_CHECK::@5ed5358f70faf8d8af7a$",
  5116. "^c_object_lib::@5ed5358f70faf8d8af7a$",
  5117. "^c_object_exe::@5ed5358f70faf8d8af7a$",
  5118. "^cxx_object_lib::@5ed5358f70faf8d8af7a$",
  5119. "^cxx_object_exe::@5ed5358f70faf8d8af7a$",
  5120. ],
  5121. },
  5122. {
  5123. "name": "Imported",
  5124. "parentName": "codemodel-v2",
  5125. "childNames": None,
  5126. "directorySources": [
  5127. "^imported$",
  5128. ],
  5129. "targetIds": [
  5130. "^ALL_BUILD::@ba7eb709d0b48779c6c8$",
  5131. "^ZERO_CHECK::@ba7eb709d0b48779c6c8$",
  5132. "^link_imported_exe::@ba7eb709d0b48779c6c8$",
  5133. "^link_imported_shared_exe::@ba7eb709d0b48779c6c8$",
  5134. "^link_imported_static_exe::@ba7eb709d0b48779c6c8$",
  5135. "^link_imported_object_exe::@ba7eb709d0b48779c6c8$",
  5136. "^link_imported_interface_exe::@ba7eb709d0b48779c6c8$",
  5137. ],
  5138. },
  5139. {
  5140. "name": "Custom",
  5141. "parentName": "codemodel-v2",
  5142. "childNames": None,
  5143. "directorySources": [
  5144. "^custom$",
  5145. ],
  5146. "targetIds": [
  5147. "^ALL_BUILD::@c11385ffed57b860da63$",
  5148. "^ZERO_CHECK::@c11385ffed57b860da63$",
  5149. "^custom_tgt::@c11385ffed57b860da63$",
  5150. "^custom_exe::@c11385ffed57b860da63$",
  5151. ],
  5152. },
  5153. {
  5154. "name": "External",
  5155. "parentName": "codemodel-v2",
  5156. "childNames": None,
  5157. "directorySources": [
  5158. "^.*/Tests/RunCMake/FileAPIExternalSource$",
  5159. ],
  5160. "targetIds": [
  5161. "^ALL_BUILD::@[0-9a-f]+$",
  5162. "^ZERO_CHECK::@[0-9a-f]+$",
  5163. "^generated_exe::@[0-9a-f]+$",
  5164. ],
  5165. },
  5166. ]
  5167. if matches(g, "^Visual Studio "):
  5168. for e in expected:
  5169. if e["parentName"] is not None:
  5170. e["targetIds"] = filter_list(lambda t: not matches(t, "^\\^ZERO_CHECK"), e["targetIds"])
  5171. elif g == "Xcode":
  5172. if ';' in os.environ.get("CMAKE_OSX_ARCHITECTURES", ""):
  5173. for e in expected:
  5174. e["targetIds"] = filter_list(lambda t: not matches(t, "^\\^(link_imported_object_exe)"), e["targetIds"])
  5175. else:
  5176. for e in expected:
  5177. e["targetIds"] = filter_list(lambda t: not matches(t, "^\\^(ALL_BUILD|ZERO_CHECK)"), e["targetIds"])
  5178. return expected
  5179. def check_projects(c, g):
  5180. check_list_match(lambda a, e: is_string(a["name"], e["name"]), c["projects"], gen_check_projects(c, g),
  5181. check=check_project(c),
  5182. check_exception=lambda a, e: "Project name: %s" % a["name"],
  5183. missing_exception=lambda e: "Project name: %s" % e["name"],
  5184. extra_exception=lambda a: "Project name: %s" % a["name"])
  5185. def check_object_codemodel_configuration(c, g, inSource):
  5186. assert sorted(c.keys()) == ["directories", "name", "projects", "targets"]
  5187. assert is_string(c["name"])
  5188. check_directories(c, g)
  5189. check_targets(c, g, inSource)
  5190. check_projects(c, g)
  5191. def check_object_codemodel(g):
  5192. def _check(o):
  5193. assert sorted(o.keys()) == ["configurations", "kind", "paths", "version"]
  5194. # The "kind" and "version" members are handled by check_index_object.
  5195. assert is_dict(o["paths"])
  5196. assert sorted(o["paths"].keys()) == ["build", "source"]
  5197. assert matches(o["paths"]["build"], "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build$")
  5198. assert matches(o["paths"]["source"], "^.*/Tests/RunCMake/FileAPI$")
  5199. inSource = os.path.dirname(o["paths"]["build"]) == o["paths"]["source"]
  5200. if matches(g, "^(Visual Studio |Xcode$)"):
  5201. assert sorted([c["name"] for c in o["configurations"]]) == ["Debug", "MinSizeRel", "RelWithDebInfo", "Release"]
  5202. else:
  5203. assert len(o["configurations"]) == 1
  5204. assert o["configurations"][0]["name"] in ("", "Debug", "Release", "RelWithDebInfo", "MinSizeRel")
  5205. for c in o["configurations"]:
  5206. check_object_codemodel_configuration(c, g, inSource)
  5207. return _check
  5208. assert is_dict(index)
  5209. assert sorted(index.keys()) == ["cmake", "objects", "reply"]
  5210. check_objects(index["objects"], index["cmake"]["generator"]["name"])