codemodel-v2-check.py 187 KB

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