codemodel-v2-check.py 185 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094
  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": None,
  1994. "link": {
  1995. "language": "CXX",
  1996. "lto": None,
  1997. },
  1998. "archive": None,
  1999. "dependencies": [
  2000. {
  2001. "id": "^cxx_lib::@a56b12a3f5c0529fb296$",
  2002. "backtrace": [
  2003. {
  2004. "file": "^cxx/CMakeLists\\.txt$",
  2005. "line": 6,
  2006. "command": "target_link_libraries",
  2007. "hasParent": True,
  2008. },
  2009. {
  2010. "file": "^cxx/CMakeLists\\.txt$",
  2011. "line": None,
  2012. "command": None,
  2013. "hasParent": False,
  2014. },
  2015. ],
  2016. },
  2017. {
  2018. "id": "^ZERO_CHECK::@a56b12a3f5c0529fb296$",
  2019. "backtrace": None,
  2020. },
  2021. ],
  2022. },
  2023. {
  2024. "name": "cxx_shared_lib",
  2025. "id": "^cxx_shared_lib::@a56b12a3f5c0529fb296$",
  2026. "directorySource": "^cxx$",
  2027. "projectName": "Cxx",
  2028. "type": "SHARED_LIBRARY",
  2029. "isGeneratorProvided": None,
  2030. "sources": [
  2031. {
  2032. "path": "^empty\\.cxx$",
  2033. "isGenerated": None,
  2034. "sourceGroupName": "Source Files",
  2035. "compileGroupLanguage": "CXX",
  2036. "backtrace": [
  2037. {
  2038. "file": "^cxx/CMakeLists\\.txt$",
  2039. "line": 9,
  2040. "command": "add_library",
  2041. "hasParent": True,
  2042. },
  2043. {
  2044. "file": "^cxx/CMakeLists\\.txt$",
  2045. "line": None,
  2046. "command": None,
  2047. "hasParent": False,
  2048. },
  2049. ],
  2050. },
  2051. ],
  2052. "sourceGroups": [
  2053. {
  2054. "name": "Source Files",
  2055. "sourcePaths": [
  2056. "^empty\\.cxx$",
  2057. ],
  2058. },
  2059. ],
  2060. "compileGroups": [
  2061. {
  2062. "language": "CXX",
  2063. "sourcePaths": [
  2064. "^empty\\.cxx$",
  2065. ],
  2066. "includes": None,
  2067. "defines": [
  2068. {
  2069. "define": "cxx_shared_lib_EXPORTS",
  2070. "backtrace": None,
  2071. },
  2072. ],
  2073. },
  2074. ],
  2075. "backtrace": [
  2076. {
  2077. "file": "^cxx/CMakeLists\\.txt$",
  2078. "line": 9,
  2079. "command": "add_library",
  2080. "hasParent": True,
  2081. },
  2082. {
  2083. "file": "^cxx/CMakeLists\\.txt$",
  2084. "line": None,
  2085. "command": None,
  2086. "hasParent": False,
  2087. },
  2088. ],
  2089. "folder": None,
  2090. "nameOnDisk": "^(lib|cyg)?cxx_shared_lib\\.(so|dylib|dll)$",
  2091. "artifacts": [
  2092. {
  2093. "path": "^cxx/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?(lib|cyg)?cxx_shared_lib\\.(so|dylib|dll)$",
  2094. "_dllExtra": False,
  2095. },
  2096. {
  2097. "path": "^cxx/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?(lib)?cxx_shared_lib\\.(dll\\.a|lib)$",
  2098. "_dllExtra": True,
  2099. },
  2100. {
  2101. "path": "^cxx/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?(lib|cyg)?cxx_shared_lib\\.pdb$",
  2102. "_dllExtra": True,
  2103. },
  2104. ],
  2105. "build": "^cxx$",
  2106. "source": "^cxx$",
  2107. "install": None,
  2108. "link": {
  2109. "language": "CXX",
  2110. "lto": None,
  2111. },
  2112. "archive": None,
  2113. "dependencies": [
  2114. {
  2115. "id": "^ZERO_CHECK::@a56b12a3f5c0529fb296$",
  2116. "backtrace": None,
  2117. },
  2118. ],
  2119. },
  2120. {
  2121. "name": "cxx_shared_exe",
  2122. "id": "^cxx_shared_exe::@a56b12a3f5c0529fb296$",
  2123. "directorySource": "^cxx$",
  2124. "projectName": "Cxx",
  2125. "type": "EXECUTABLE",
  2126. "isGeneratorProvided": None,
  2127. "sources": [
  2128. {
  2129. "path": "^empty\\.cxx$",
  2130. "isGenerated": None,
  2131. "sourceGroupName": "Source Files",
  2132. "compileGroupLanguage": "CXX",
  2133. "backtrace": [
  2134. {
  2135. "file": "^cxx/CMakeLists\\.txt$",
  2136. "line": 10,
  2137. "command": "add_executable",
  2138. "hasParent": True,
  2139. },
  2140. {
  2141. "file": "^cxx/CMakeLists\\.txt$",
  2142. "line": None,
  2143. "command": None,
  2144. "hasParent": False,
  2145. },
  2146. ],
  2147. },
  2148. ],
  2149. "sourceGroups": [
  2150. {
  2151. "name": "Source Files",
  2152. "sourcePaths": [
  2153. "^empty\\.cxx$",
  2154. ],
  2155. },
  2156. ],
  2157. "compileGroups": [
  2158. {
  2159. "language": "CXX",
  2160. "sourcePaths": [
  2161. "^empty\\.cxx$",
  2162. ],
  2163. "includes": None,
  2164. "defines": None,
  2165. },
  2166. ],
  2167. "backtrace": [
  2168. {
  2169. "file": "^cxx/CMakeLists\\.txt$",
  2170. "line": 10,
  2171. "command": "add_executable",
  2172. "hasParent": True,
  2173. },
  2174. {
  2175. "file": "^cxx/CMakeLists\\.txt$",
  2176. "line": None,
  2177. "command": None,
  2178. "hasParent": False,
  2179. },
  2180. ],
  2181. "folder": None,
  2182. "nameOnDisk": "^cxx_shared_exe(\\.exe)?$",
  2183. "artifacts": [
  2184. {
  2185. "path": "^cxx/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?cxx_shared_exe(\\.exe)?$",
  2186. "_dllExtra": False,
  2187. },
  2188. {
  2189. "path": "^cxx/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?cxx_shared_exe\\.pdb$",
  2190. "_dllExtra": True,
  2191. },
  2192. ],
  2193. "build": "^cxx$",
  2194. "source": "^cxx$",
  2195. "install": None,
  2196. "link": {
  2197. "language": "CXX",
  2198. "lto": None,
  2199. },
  2200. "archive": None,
  2201. "dependencies": [
  2202. {
  2203. "id": "^cxx_shared_lib::@a56b12a3f5c0529fb296$",
  2204. "backtrace": [
  2205. {
  2206. "file": "^cxx/CMakeLists\\.txt$",
  2207. "line": 11,
  2208. "command": "target_link_libraries",
  2209. "hasParent": True,
  2210. },
  2211. {
  2212. "file": "^cxx/CMakeLists\\.txt$",
  2213. "line": None,
  2214. "command": None,
  2215. "hasParent": False,
  2216. },
  2217. ],
  2218. },
  2219. {
  2220. "id": "^ZERO_CHECK::@a56b12a3f5c0529fb296$",
  2221. "backtrace": None,
  2222. },
  2223. ],
  2224. },
  2225. {
  2226. "name": "cxx_static_lib",
  2227. "id": "^cxx_static_lib::@a56b12a3f5c0529fb296$",
  2228. "directorySource": "^cxx$",
  2229. "projectName": "Cxx",
  2230. "type": "STATIC_LIBRARY",
  2231. "isGeneratorProvided": None,
  2232. "sources": [
  2233. {
  2234. "path": "^empty\\.cxx$",
  2235. "isGenerated": None,
  2236. "sourceGroupName": "Source Files",
  2237. "compileGroupLanguage": "CXX",
  2238. "backtrace": [
  2239. {
  2240. "file": "^cxx/CMakeLists\\.txt$",
  2241. "line": 13,
  2242. "command": "add_library",
  2243. "hasParent": True,
  2244. },
  2245. {
  2246. "file": "^cxx/CMakeLists\\.txt$",
  2247. "line": None,
  2248. "command": None,
  2249. "hasParent": False,
  2250. },
  2251. ],
  2252. },
  2253. ],
  2254. "sourceGroups": [
  2255. {
  2256. "name": "Source Files",
  2257. "sourcePaths": [
  2258. "^empty\\.cxx$",
  2259. ],
  2260. },
  2261. ],
  2262. "compileGroups": [
  2263. {
  2264. "language": "CXX",
  2265. "sourcePaths": [
  2266. "^empty\\.cxx$",
  2267. ],
  2268. "includes": None,
  2269. "defines": None,
  2270. },
  2271. ],
  2272. "backtrace": [
  2273. {
  2274. "file": "^cxx/CMakeLists\\.txt$",
  2275. "line": 13,
  2276. "command": "add_library",
  2277. "hasParent": True,
  2278. },
  2279. {
  2280. "file": "^cxx/CMakeLists\\.txt$",
  2281. "line": None,
  2282. "command": None,
  2283. "hasParent": False,
  2284. },
  2285. ],
  2286. "folder": None,
  2287. "nameOnDisk": "^(lib)?cxx_static_lib\\.(a|lib)$",
  2288. "artifacts": [
  2289. {
  2290. "path": "^cxx/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?(lib)?cxx_static_lib\\.(a|lib)$",
  2291. "_dllExtra": False,
  2292. },
  2293. ],
  2294. "build": "^cxx$",
  2295. "source": "^cxx$",
  2296. "install": None,
  2297. "link": None,
  2298. "archive": {
  2299. "lto": None,
  2300. },
  2301. "dependencies": [
  2302. {
  2303. "id": "^ZERO_CHECK::@a56b12a3f5c0529fb296$",
  2304. "backtrace": None,
  2305. },
  2306. ],
  2307. },
  2308. {
  2309. "name": "cxx_static_exe",
  2310. "id": "^cxx_static_exe::@a56b12a3f5c0529fb296$",
  2311. "directorySource": "^cxx$",
  2312. "projectName": "Cxx",
  2313. "type": "EXECUTABLE",
  2314. "isGeneratorProvided": None,
  2315. "sources": [
  2316. {
  2317. "path": "^empty\\.cxx$",
  2318. "isGenerated": None,
  2319. "sourceGroupName": "Source Files",
  2320. "compileGroupLanguage": "CXX",
  2321. "backtrace": [
  2322. {
  2323. "file": "^cxx/CMakeLists\\.txt$",
  2324. "line": 14,
  2325. "command": "add_executable",
  2326. "hasParent": True,
  2327. },
  2328. {
  2329. "file": "^cxx/CMakeLists\\.txt$",
  2330. "line": None,
  2331. "command": None,
  2332. "hasParent": False,
  2333. },
  2334. ],
  2335. },
  2336. ],
  2337. "sourceGroups": [
  2338. {
  2339. "name": "Source Files",
  2340. "sourcePaths": [
  2341. "^empty\\.cxx$",
  2342. ],
  2343. },
  2344. ],
  2345. "compileGroups": [
  2346. {
  2347. "language": "CXX",
  2348. "sourcePaths": [
  2349. "^empty\\.cxx$",
  2350. ],
  2351. "includes": None,
  2352. "defines": None,
  2353. },
  2354. ],
  2355. "backtrace": [
  2356. {
  2357. "file": "^cxx/CMakeLists\\.txt$",
  2358. "line": 14,
  2359. "command": "add_executable",
  2360. "hasParent": True,
  2361. },
  2362. {
  2363. "file": "^cxx/CMakeLists\\.txt$",
  2364. "line": None,
  2365. "command": None,
  2366. "hasParent": False,
  2367. },
  2368. ],
  2369. "folder": None,
  2370. "nameOnDisk": "^cxx_static_exe(\\.exe)?$",
  2371. "artifacts": [
  2372. {
  2373. "path": "^cxx/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?cxx_static_exe(\\.exe)?$",
  2374. "_dllExtra": False,
  2375. },
  2376. {
  2377. "path": "^cxx/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?cxx_static_exe\\.pdb$",
  2378. "_dllExtra": True,
  2379. },
  2380. ],
  2381. "build": "^cxx$",
  2382. "source": "^cxx$",
  2383. "install": None,
  2384. "link": {
  2385. "language": "CXX",
  2386. "lto": None,
  2387. },
  2388. "archive": None,
  2389. "dependencies": [
  2390. {
  2391. "id": "^cxx_static_lib::@a56b12a3f5c0529fb296$",
  2392. "backtrace": [
  2393. {
  2394. "file": "^cxx/CMakeLists\\.txt$",
  2395. "line": 15,
  2396. "command": "target_link_libraries",
  2397. "hasParent": True,
  2398. },
  2399. {
  2400. "file": "^cxx/CMakeLists\\.txt$",
  2401. "line": None,
  2402. "command": None,
  2403. "hasParent": False,
  2404. },
  2405. ],
  2406. },
  2407. {
  2408. "id": "^ZERO_CHECK::@a56b12a3f5c0529fb296$",
  2409. "backtrace": None,
  2410. },
  2411. ],
  2412. },
  2413. {
  2414. "name": "ALL_BUILD",
  2415. "id": "^ALL_BUILD::@53632cba2752272bb008$",
  2416. "directorySource": "^alias$",
  2417. "projectName": "Alias",
  2418. "type": "UTILITY",
  2419. "isGeneratorProvided": True,
  2420. "sources": [
  2421. {
  2422. "path": "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/alias/CMakeFiles/ALL_BUILD$",
  2423. "isGenerated": True,
  2424. "sourceGroupName": "",
  2425. "compileGroupLanguage": None,
  2426. "backtrace": [
  2427. {
  2428. "file": "^alias/CMakeLists\\.txt$",
  2429. "line": None,
  2430. "command": None,
  2431. "hasParent": False,
  2432. },
  2433. ],
  2434. },
  2435. {
  2436. "path": "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/alias/CMakeFiles/ALL_BUILD\\.rule$",
  2437. "isGenerated": True,
  2438. "sourceGroupName": "CMake Rules",
  2439. "compileGroupLanguage": None,
  2440. "backtrace": [
  2441. {
  2442. "file": "^alias/CMakeLists\\.txt$",
  2443. "line": None,
  2444. "command": None,
  2445. "hasParent": False,
  2446. },
  2447. ],
  2448. },
  2449. ],
  2450. "sourceGroups": [
  2451. {
  2452. "name": "",
  2453. "sourcePaths": [
  2454. "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/alias/CMakeFiles/ALL_BUILD$",
  2455. ],
  2456. },
  2457. {
  2458. "name": "CMake Rules",
  2459. "sourcePaths": [
  2460. "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/alias/CMakeFiles/ALL_BUILD\\.rule$",
  2461. ],
  2462. },
  2463. ],
  2464. "compileGroups": None,
  2465. "backtrace": [
  2466. {
  2467. "file": "^alias/CMakeLists\\.txt$",
  2468. "line": None,
  2469. "command": None,
  2470. "hasParent": False,
  2471. },
  2472. ],
  2473. "folder": None,
  2474. "nameOnDisk": None,
  2475. "artifacts": None,
  2476. "build": "^alias$",
  2477. "source": "^alias$",
  2478. "install": None,
  2479. "link": None,
  2480. "archive": None,
  2481. "dependencies": [
  2482. {
  2483. "id": "^ZERO_CHECK::@53632cba2752272bb008$",
  2484. "backtrace": None,
  2485. },
  2486. {
  2487. "id": "^c_alias_exe::@53632cba2752272bb008$",
  2488. "backtrace": None,
  2489. },
  2490. {
  2491. "id": "^cxx_alias_exe::@53632cba2752272bb008$",
  2492. "backtrace": None,
  2493. },
  2494. ],
  2495. },
  2496. {
  2497. "name": "ZERO_CHECK",
  2498. "id": "^ZERO_CHECK::@53632cba2752272bb008$",
  2499. "directorySource": "^alias$",
  2500. "projectName": "Alias",
  2501. "type": "UTILITY",
  2502. "isGeneratorProvided": True,
  2503. "sources": [
  2504. {
  2505. "path": "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/alias/CMakeFiles/ZERO_CHECK$",
  2506. "isGenerated": True,
  2507. "sourceGroupName": "",
  2508. "compileGroupLanguage": None,
  2509. "backtrace": [
  2510. {
  2511. "file": "^alias/CMakeLists\\.txt$",
  2512. "line": None,
  2513. "command": None,
  2514. "hasParent": False,
  2515. },
  2516. ],
  2517. },
  2518. {
  2519. "path": "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/alias/CMakeFiles/ZERO_CHECK\\.rule$",
  2520. "isGenerated": True,
  2521. "sourceGroupName": "CMake Rules",
  2522. "compileGroupLanguage": None,
  2523. "backtrace": [
  2524. {
  2525. "file": "^alias/CMakeLists\\.txt$",
  2526. "line": None,
  2527. "command": None,
  2528. "hasParent": False,
  2529. },
  2530. ],
  2531. },
  2532. ],
  2533. "sourceGroups": [
  2534. {
  2535. "name": "",
  2536. "sourcePaths": [
  2537. "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/alias/CMakeFiles/ZERO_CHECK$",
  2538. ],
  2539. },
  2540. {
  2541. "name": "CMake Rules",
  2542. "sourcePaths": [
  2543. "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/alias/CMakeFiles/ZERO_CHECK\\.rule$",
  2544. ],
  2545. },
  2546. ],
  2547. "compileGroups": None,
  2548. "backtrace": [
  2549. {
  2550. "file": "^alias/CMakeLists\\.txt$",
  2551. "line": None,
  2552. "command": None,
  2553. "hasParent": False,
  2554. },
  2555. ],
  2556. "folder": None,
  2557. "nameOnDisk": None,
  2558. "artifacts": None,
  2559. "build": "^alias$",
  2560. "source": "^alias$",
  2561. "install": None,
  2562. "link": None,
  2563. "archive": None,
  2564. "dependencies": None,
  2565. },
  2566. {
  2567. "name": "c_alias_exe",
  2568. "id": "^c_alias_exe::@53632cba2752272bb008$",
  2569. "directorySource": "^alias$",
  2570. "projectName": "Alias",
  2571. "type": "EXECUTABLE",
  2572. "isGeneratorProvided": None,
  2573. "sources": [
  2574. {
  2575. "path": "^empty\\.c$",
  2576. "isGenerated": None,
  2577. "sourceGroupName": "Source Files",
  2578. "compileGroupLanguage": "C",
  2579. "backtrace": [
  2580. {
  2581. "file": "^alias/CMakeLists\\.txt$",
  2582. "line": 5,
  2583. "command": "add_executable",
  2584. "hasParent": True,
  2585. },
  2586. {
  2587. "file": "^alias/CMakeLists\\.txt$",
  2588. "line": None,
  2589. "command": None,
  2590. "hasParent": False,
  2591. },
  2592. ],
  2593. },
  2594. ],
  2595. "sourceGroups": [
  2596. {
  2597. "name": "Source Files",
  2598. "sourcePaths": [
  2599. "^empty\\.c$",
  2600. ],
  2601. },
  2602. ],
  2603. "compileGroups": [
  2604. {
  2605. "language": "C",
  2606. "sourcePaths": [
  2607. "^empty\\.c$",
  2608. ],
  2609. "includes": None,
  2610. "defines": None,
  2611. },
  2612. ],
  2613. "backtrace": [
  2614. {
  2615. "file": "^alias/CMakeLists\\.txt$",
  2616. "line": 5,
  2617. "command": "add_executable",
  2618. "hasParent": True,
  2619. },
  2620. {
  2621. "file": "^alias/CMakeLists\\.txt$",
  2622. "line": None,
  2623. "command": None,
  2624. "hasParent": False,
  2625. },
  2626. ],
  2627. "folder": None,
  2628. "nameOnDisk": "^c_alias_exe(\\.exe)?$",
  2629. "artifacts": [
  2630. {
  2631. "path": "^alias/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?c_alias_exe(\\.exe)?$",
  2632. "_dllExtra": False,
  2633. },
  2634. {
  2635. "path": "^alias/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?c_alias_exe\\.pdb$",
  2636. "_dllExtra": True,
  2637. },
  2638. ],
  2639. "build": "^alias$",
  2640. "source": "^alias$",
  2641. "install": None,
  2642. "link": {
  2643. "language": "C",
  2644. "lto": None,
  2645. },
  2646. "archive": None,
  2647. "dependencies": [
  2648. {
  2649. "id": "^c_lib::@6890427a1f51a3e7e1df$",
  2650. "backtrace": [
  2651. {
  2652. "file": "^alias/CMakeLists\\.txt$",
  2653. "line": 6,
  2654. "command": "target_link_libraries",
  2655. "hasParent": True,
  2656. },
  2657. {
  2658. "file": "^alias/CMakeLists\\.txt$",
  2659. "line": None,
  2660. "command": None,
  2661. "hasParent": False,
  2662. },
  2663. ],
  2664. },
  2665. {
  2666. "id": "^ZERO_CHECK::@53632cba2752272bb008$",
  2667. "backtrace": None,
  2668. },
  2669. ],
  2670. },
  2671. {
  2672. "name": "cxx_alias_exe",
  2673. "id": "^cxx_alias_exe::@53632cba2752272bb008$",
  2674. "directorySource": "^alias$",
  2675. "projectName": "Alias",
  2676. "type": "EXECUTABLE",
  2677. "isGeneratorProvided": None,
  2678. "sources": [
  2679. {
  2680. "path": "^empty\\.cxx$",
  2681. "isGenerated": None,
  2682. "sourceGroupName": "Source Files",
  2683. "compileGroupLanguage": "CXX",
  2684. "backtrace": [
  2685. {
  2686. "file": "^alias/CMakeLists\\.txt$",
  2687. "line": 9,
  2688. "command": "add_executable",
  2689. "hasParent": True,
  2690. },
  2691. {
  2692. "file": "^alias/CMakeLists\\.txt$",
  2693. "line": None,
  2694. "command": None,
  2695. "hasParent": False,
  2696. },
  2697. ],
  2698. },
  2699. ],
  2700. "sourceGroups": [
  2701. {
  2702. "name": "Source Files",
  2703. "sourcePaths": [
  2704. "^empty\\.cxx$",
  2705. ],
  2706. },
  2707. ],
  2708. "compileGroups": [
  2709. {
  2710. "language": "CXX",
  2711. "sourcePaths": [
  2712. "^empty\\.cxx$",
  2713. ],
  2714. "includes": None,
  2715. "defines": None,
  2716. },
  2717. ],
  2718. "backtrace": [
  2719. {
  2720. "file": "^alias/CMakeLists\\.txt$",
  2721. "line": 9,
  2722. "command": "add_executable",
  2723. "hasParent": True,
  2724. },
  2725. {
  2726. "file": "^alias/CMakeLists\\.txt$",
  2727. "line": None,
  2728. "command": None,
  2729. "hasParent": False,
  2730. },
  2731. ],
  2732. "folder": None,
  2733. "nameOnDisk": "^cxx_alias_exe(\\.exe)?$",
  2734. "artifacts": [
  2735. {
  2736. "path": "^alias/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?cxx_alias_exe(\\.exe)?$",
  2737. "_dllExtra": False,
  2738. },
  2739. {
  2740. "path": "^alias/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?cxx_alias_exe\\.pdb$",
  2741. "_dllExtra": True,
  2742. },
  2743. ],
  2744. "build": "^alias$",
  2745. "source": "^alias$",
  2746. "install": None,
  2747. "link": {
  2748. "language": "CXX",
  2749. "lto": None,
  2750. },
  2751. "archive": None,
  2752. "dependencies": [
  2753. {
  2754. "id": "^cxx_lib::@a56b12a3f5c0529fb296$",
  2755. "backtrace": [
  2756. {
  2757. "file": "^alias/CMakeLists\\.txt$",
  2758. "line": 10,
  2759. "command": "target_link_libraries",
  2760. "hasParent": True,
  2761. },
  2762. {
  2763. "file": "^alias/CMakeLists\\.txt$",
  2764. "line": None,
  2765. "command": None,
  2766. "hasParent": False,
  2767. },
  2768. ],
  2769. },
  2770. {
  2771. "id": "^ZERO_CHECK::@53632cba2752272bb008$",
  2772. "backtrace": None,
  2773. },
  2774. ],
  2775. },
  2776. {
  2777. "name": "ALL_BUILD",
  2778. "id": "^ALL_BUILD::@5ed5358f70faf8d8af7a$",
  2779. "directorySource": "^object$",
  2780. "projectName": "Object",
  2781. "type": "UTILITY",
  2782. "isGeneratorProvided": True,
  2783. "sources": [
  2784. {
  2785. "path": "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/object/CMakeFiles/ALL_BUILD$",
  2786. "isGenerated": True,
  2787. "sourceGroupName": "",
  2788. "compileGroupLanguage": None,
  2789. "backtrace": [
  2790. {
  2791. "file": "^object/CMakeLists\\.txt$",
  2792. "line": None,
  2793. "command": None,
  2794. "hasParent": False,
  2795. },
  2796. ],
  2797. },
  2798. {
  2799. "path": "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/object/CMakeFiles/ALL_BUILD\\.rule$",
  2800. "isGenerated": True,
  2801. "sourceGroupName": "CMake Rules",
  2802. "compileGroupLanguage": None,
  2803. "backtrace": [
  2804. {
  2805. "file": "^object/CMakeLists\\.txt$",
  2806. "line": None,
  2807. "command": None,
  2808. "hasParent": False,
  2809. },
  2810. ],
  2811. },
  2812. ],
  2813. "sourceGroups": [
  2814. {
  2815. "name": "",
  2816. "sourcePaths": [
  2817. "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/object/CMakeFiles/ALL_BUILD$",
  2818. ],
  2819. },
  2820. {
  2821. "name": "CMake Rules",
  2822. "sourcePaths": [
  2823. "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/object/CMakeFiles/ALL_BUILD\\.rule$",
  2824. ],
  2825. },
  2826. ],
  2827. "compileGroups": None,
  2828. "backtrace": [
  2829. {
  2830. "file": "^object/CMakeLists\\.txt$",
  2831. "line": None,
  2832. "command": None,
  2833. "hasParent": False,
  2834. },
  2835. ],
  2836. "folder": None,
  2837. "nameOnDisk": None,
  2838. "artifacts": None,
  2839. "build": "^object$",
  2840. "source": "^object$",
  2841. "install": None,
  2842. "link": None,
  2843. "archive": None,
  2844. "dependencies": [
  2845. {
  2846. "id": "^ZERO_CHECK::@5ed5358f70faf8d8af7a$",
  2847. "backtrace": None,
  2848. },
  2849. {
  2850. "id": "^c_object_lib::@5ed5358f70faf8d8af7a$",
  2851. "backtrace": None,
  2852. },
  2853. {
  2854. "id": "^c_object_exe::@5ed5358f70faf8d8af7a$",
  2855. "backtrace": None,
  2856. },
  2857. {
  2858. "id": "^cxx_object_lib::@5ed5358f70faf8d8af7a$",
  2859. "backtrace": None,
  2860. },
  2861. {
  2862. "id": "^cxx_object_exe::@5ed5358f70faf8d8af7a$",
  2863. "backtrace": None,
  2864. },
  2865. ],
  2866. },
  2867. {
  2868. "name": "ZERO_CHECK",
  2869. "id": "^ZERO_CHECK::@5ed5358f70faf8d8af7a$",
  2870. "directorySource": "^object$",
  2871. "projectName": "Object",
  2872. "type": "UTILITY",
  2873. "isGeneratorProvided": True,
  2874. "sources": [
  2875. {
  2876. "path": "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/object/CMakeFiles/ZERO_CHECK$",
  2877. "isGenerated": True,
  2878. "sourceGroupName": "",
  2879. "compileGroupLanguage": None,
  2880. "backtrace": [
  2881. {
  2882. "file": "^object/CMakeLists\\.txt$",
  2883. "line": None,
  2884. "command": None,
  2885. "hasParent": False,
  2886. },
  2887. ],
  2888. },
  2889. {
  2890. "path": "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/object/CMakeFiles/ZERO_CHECK\\.rule$",
  2891. "isGenerated": True,
  2892. "sourceGroupName": "CMake Rules",
  2893. "compileGroupLanguage": None,
  2894. "backtrace": [
  2895. {
  2896. "file": "^object/CMakeLists\\.txt$",
  2897. "line": None,
  2898. "command": None,
  2899. "hasParent": False,
  2900. },
  2901. ],
  2902. },
  2903. ],
  2904. "sourceGroups": [
  2905. {
  2906. "name": "",
  2907. "sourcePaths": [
  2908. "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/object/CMakeFiles/ZERO_CHECK$",
  2909. ],
  2910. },
  2911. {
  2912. "name": "CMake Rules",
  2913. "sourcePaths": [
  2914. "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/object/CMakeFiles/ZERO_CHECK\\.rule$",
  2915. ],
  2916. },
  2917. ],
  2918. "compileGroups": None,
  2919. "backtrace": [
  2920. {
  2921. "file": "^object/CMakeLists\\.txt$",
  2922. "line": None,
  2923. "command": None,
  2924. "hasParent": False,
  2925. },
  2926. ],
  2927. "folder": None,
  2928. "nameOnDisk": None,
  2929. "artifacts": None,
  2930. "build": "^object$",
  2931. "source": "^object$",
  2932. "install": None,
  2933. "link": None,
  2934. "archive": None,
  2935. "dependencies": None,
  2936. },
  2937. {
  2938. "name": "c_object_lib",
  2939. "id": "^c_object_lib::@5ed5358f70faf8d8af7a$",
  2940. "directorySource": "^object$",
  2941. "projectName": "Object",
  2942. "type": "OBJECT_LIBRARY",
  2943. "isGeneratorProvided": None,
  2944. "sources": [
  2945. {
  2946. "path": "^empty\\.c$",
  2947. "isGenerated": None,
  2948. "sourceGroupName": "Source Files",
  2949. "compileGroupLanguage": "C",
  2950. "backtrace": [
  2951. {
  2952. "file": "^object/CMakeLists\\.txt$",
  2953. "line": 5,
  2954. "command": "add_library",
  2955. "hasParent": True,
  2956. },
  2957. {
  2958. "file": "^object/CMakeLists\\.txt$",
  2959. "line": None,
  2960. "command": None,
  2961. "hasParent": False,
  2962. },
  2963. ],
  2964. },
  2965. ],
  2966. "sourceGroups": [
  2967. {
  2968. "name": "Source Files",
  2969. "sourcePaths": [
  2970. "^empty\\.c$",
  2971. ],
  2972. },
  2973. ],
  2974. "compileGroups": [
  2975. {
  2976. "language": "C",
  2977. "sourcePaths": [
  2978. "^empty\\.c$",
  2979. ],
  2980. "includes": None,
  2981. "defines": None,
  2982. },
  2983. ],
  2984. "backtrace": [
  2985. {
  2986. "file": "^object/CMakeLists\\.txt$",
  2987. "line": 5,
  2988. "command": "add_library",
  2989. "hasParent": True,
  2990. },
  2991. {
  2992. "file": "^object/CMakeLists\\.txt$",
  2993. "line": None,
  2994. "command": None,
  2995. "hasParent": False,
  2996. },
  2997. ],
  2998. "folder": None,
  2999. "nameOnDisk": None,
  3000. "artifacts": [
  3001. {
  3002. "path": "^object/.*/empty(\\.c)?\\.o(bj)?$",
  3003. "_dllExtra": False,
  3004. },
  3005. ],
  3006. "build": "^object$",
  3007. "source": "^object$",
  3008. "install": None,
  3009. "link": None,
  3010. "archive": None,
  3011. "dependencies": [
  3012. {
  3013. "id": "^ZERO_CHECK::@5ed5358f70faf8d8af7a$",
  3014. "backtrace": None,
  3015. },
  3016. ],
  3017. },
  3018. {
  3019. "name": "c_object_exe",
  3020. "id": "^c_object_exe::@5ed5358f70faf8d8af7a$",
  3021. "directorySource": "^object$",
  3022. "projectName": "Object",
  3023. "type": "EXECUTABLE",
  3024. "isGeneratorProvided": None,
  3025. "sources": [
  3026. {
  3027. "path": "^empty\\.c$",
  3028. "isGenerated": None,
  3029. "sourceGroupName": "Source Files",
  3030. "compileGroupLanguage": "C",
  3031. "backtrace": [
  3032. {
  3033. "file": "^object/CMakeLists\\.txt$",
  3034. "line": 6,
  3035. "command": "add_executable",
  3036. "hasParent": True,
  3037. },
  3038. {
  3039. "file": "^object/CMakeLists\\.txt$",
  3040. "line": None,
  3041. "command": None,
  3042. "hasParent": False,
  3043. },
  3044. ],
  3045. },
  3046. {
  3047. "path": "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/object/.*/empty(\\.c)?\\.o(bj)?$",
  3048. "isGenerated": True,
  3049. "sourceGroupName": "Object Libraries",
  3050. "compileGroupLanguage": None,
  3051. "backtrace": [
  3052. {
  3053. "file": "^object/CMakeLists\\.txt$",
  3054. "line": 7,
  3055. "command": "target_link_libraries",
  3056. "hasParent": True,
  3057. },
  3058. {
  3059. "file": "^object/CMakeLists\\.txt$",
  3060. "line": None,
  3061. "command": None,
  3062. "hasParent": False,
  3063. },
  3064. ],
  3065. },
  3066. ],
  3067. "sourceGroups": [
  3068. {
  3069. "name": "Source Files",
  3070. "sourcePaths": [
  3071. "^empty\\.c$",
  3072. ],
  3073. },
  3074. {
  3075. "name": "Object Libraries",
  3076. "sourcePaths": [
  3077. "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/object/.*/empty(\\.c)?\\.o(bj)?$",
  3078. ],
  3079. },
  3080. ],
  3081. "compileGroups": [
  3082. {
  3083. "language": "C",
  3084. "sourcePaths": [
  3085. "^empty\\.c$",
  3086. ],
  3087. "includes": None,
  3088. "defines": None,
  3089. },
  3090. ],
  3091. "backtrace": [
  3092. {
  3093. "file": "^object/CMakeLists\\.txt$",
  3094. "line": 6,
  3095. "command": "add_executable",
  3096. "hasParent": True,
  3097. },
  3098. {
  3099. "file": "^object/CMakeLists\\.txt$",
  3100. "line": None,
  3101. "command": None,
  3102. "hasParent": False,
  3103. },
  3104. ],
  3105. "folder": None,
  3106. "nameOnDisk": "^c_object_exe(\\.exe)?$",
  3107. "artifacts": [
  3108. {
  3109. "path": "^object/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?c_object_exe(\\.exe)?$",
  3110. "_dllExtra": False,
  3111. },
  3112. {
  3113. "path": "^object/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?c_object_exe\\.pdb$",
  3114. "_dllExtra": True,
  3115. },
  3116. ],
  3117. "build": "^object$",
  3118. "source": "^object$",
  3119. "install": {
  3120. "prefix": "^(/usr/local|[A-Za-z]:.*/codemodel-v2)$",
  3121. "destinations": [
  3122. {
  3123. "path": "bin",
  3124. "backtrace": [
  3125. {
  3126. "file": "^object/CMakeLists\\.txt$",
  3127. "line": 13,
  3128. "command": "install",
  3129. "hasParent": True,
  3130. },
  3131. {
  3132. "file": "^object/CMakeLists\\.txt$",
  3133. "line": None,
  3134. "command": None,
  3135. "hasParent": False,
  3136. },
  3137. ],
  3138. },
  3139. ],
  3140. },
  3141. "link": {
  3142. "language": "C",
  3143. "lto": None,
  3144. },
  3145. "archive": None,
  3146. "dependencies": [
  3147. {
  3148. "id": "^c_object_lib::@5ed5358f70faf8d8af7a$",
  3149. # FIXME: Add a backtrace here when it becomes available.
  3150. # You'll know when it's available, because this test will
  3151. # fail.
  3152. "backtrace": None,
  3153. },
  3154. {
  3155. "id": "^ZERO_CHECK::@5ed5358f70faf8d8af7a$",
  3156. "backtrace": None,
  3157. },
  3158. ],
  3159. },
  3160. {
  3161. "name": "cxx_object_lib",
  3162. "id": "^cxx_object_lib::@5ed5358f70faf8d8af7a$",
  3163. "directorySource": "^object$",
  3164. "projectName": "Object",
  3165. "type": "OBJECT_LIBRARY",
  3166. "isGeneratorProvided": None,
  3167. "sources": [
  3168. {
  3169. "path": "^empty\\.cxx$",
  3170. "isGenerated": None,
  3171. "sourceGroupName": "Source Files",
  3172. "compileGroupLanguage": "CXX",
  3173. "backtrace": [
  3174. {
  3175. "file": "^object/CMakeLists\\.txt$",
  3176. "line": 9,
  3177. "command": "add_library",
  3178. "hasParent": True,
  3179. },
  3180. {
  3181. "file": "^object/CMakeLists\\.txt$",
  3182. "line": None,
  3183. "command": None,
  3184. "hasParent": False,
  3185. },
  3186. ],
  3187. },
  3188. ],
  3189. "sourceGroups": [
  3190. {
  3191. "name": "Source Files",
  3192. "sourcePaths": [
  3193. "^empty\\.cxx$",
  3194. ],
  3195. },
  3196. ],
  3197. "compileGroups": [
  3198. {
  3199. "language": "CXX",
  3200. "sourcePaths": [
  3201. "^empty\\.cxx$",
  3202. ],
  3203. "includes": None,
  3204. "defines": None,
  3205. },
  3206. ],
  3207. "backtrace": [
  3208. {
  3209. "file": "^object/CMakeLists\\.txt$",
  3210. "line": 9,
  3211. "command": "add_library",
  3212. "hasParent": True,
  3213. },
  3214. {
  3215. "file": "^object/CMakeLists\\.txt$",
  3216. "line": None,
  3217. "command": None,
  3218. "hasParent": False,
  3219. },
  3220. ],
  3221. "folder": None,
  3222. "nameOnDisk": None,
  3223. "artifacts": [
  3224. {
  3225. "path": "^object/.*/empty(\\.cxx)?\\.o(bj)?$",
  3226. "_dllExtra": False,
  3227. },
  3228. ],
  3229. "build": "^object$",
  3230. "source": "^object$",
  3231. "install": None,
  3232. "link": None,
  3233. "archive": None,
  3234. "dependencies": [
  3235. {
  3236. "id": "^ZERO_CHECK::@5ed5358f70faf8d8af7a$",
  3237. "backtrace": None,
  3238. },
  3239. ],
  3240. },
  3241. {
  3242. "name": "cxx_object_exe",
  3243. "id": "^cxx_object_exe::@5ed5358f70faf8d8af7a$",
  3244. "directorySource": "^object$",
  3245. "projectName": "Object",
  3246. "type": "EXECUTABLE",
  3247. "isGeneratorProvided": None,
  3248. "sources": [
  3249. {
  3250. "path": "^empty\\.cxx$",
  3251. "isGenerated": None,
  3252. "sourceGroupName": "Source Files",
  3253. "compileGroupLanguage": "CXX",
  3254. "backtrace": [
  3255. {
  3256. "file": "^object/CMakeLists\\.txt$",
  3257. "line": 10,
  3258. "command": "add_executable",
  3259. "hasParent": True,
  3260. },
  3261. {
  3262. "file": "^object/CMakeLists\\.txt$",
  3263. "line": None,
  3264. "command": None,
  3265. "hasParent": False,
  3266. },
  3267. ],
  3268. },
  3269. {
  3270. "path": "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/object/.*/empty(\\.cxx)?\\.o(bj)?$",
  3271. "isGenerated": True,
  3272. "sourceGroupName": "Object Libraries",
  3273. "compileGroupLanguage": None,
  3274. "backtrace": [
  3275. {
  3276. "file": "^object/CMakeLists\\.txt$",
  3277. "line": 11,
  3278. "command": "target_link_libraries",
  3279. "hasParent": True,
  3280. },
  3281. {
  3282. "file": "^object/CMakeLists\\.txt$",
  3283. "line": None,
  3284. "command": None,
  3285. "hasParent": False,
  3286. },
  3287. ],
  3288. },
  3289. ],
  3290. "sourceGroups": [
  3291. {
  3292. "name": "Source Files",
  3293. "sourcePaths": [
  3294. "^empty\\.cxx$",
  3295. ],
  3296. },
  3297. {
  3298. "name": "Object Libraries",
  3299. "sourcePaths": [
  3300. "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/object/.*/empty(\\.cxx)?\\.o(bj)?$",
  3301. ],
  3302. },
  3303. ],
  3304. "compileGroups": [
  3305. {
  3306. "language": "CXX",
  3307. "sourcePaths": [
  3308. "^empty\\.cxx$",
  3309. ],
  3310. "includes": None,
  3311. "defines": None,
  3312. },
  3313. ],
  3314. "backtrace": [
  3315. {
  3316. "file": "^object/CMakeLists\\.txt$",
  3317. "line": 10,
  3318. "command": "add_executable",
  3319. "hasParent": True,
  3320. },
  3321. {
  3322. "file": "^object/CMakeLists\\.txt$",
  3323. "line": None,
  3324. "command": None,
  3325. "hasParent": False,
  3326. },
  3327. ],
  3328. "folder": None,
  3329. "nameOnDisk": "^cxx_object_exe(\\.exe)?$",
  3330. "artifacts": [
  3331. {
  3332. "path": "^object/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?cxx_object_exe(\\.exe)?$",
  3333. "_dllExtra": False,
  3334. },
  3335. {
  3336. "path": "^object/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?cxx_object_exe\\.pdb$",
  3337. "_dllExtra": True,
  3338. },
  3339. ],
  3340. "build": "^object$",
  3341. "source": "^object$",
  3342. "install": {
  3343. "prefix": "^(/usr/local|[A-Za-z]:.*/codemodel-v2)$",
  3344. "destinations": [
  3345. {
  3346. "path": "bin",
  3347. "backtrace": [
  3348. {
  3349. "file": "^object/CMakeLists\\.txt$",
  3350. "line": 13,
  3351. "command": "install",
  3352. "hasParent": True,
  3353. },
  3354. {
  3355. "file": "^object/CMakeLists\\.txt$",
  3356. "line": None,
  3357. "command": None,
  3358. "hasParent": False,
  3359. },
  3360. ],
  3361. },
  3362. ],
  3363. },
  3364. "link": {
  3365. "language": "CXX",
  3366. "lto": None,
  3367. },
  3368. "archive": None,
  3369. "dependencies": [
  3370. {
  3371. "id": "^cxx_object_lib::@5ed5358f70faf8d8af7a$",
  3372. # FIXME: Add a backtrace here when it becomes available.
  3373. # You'll know when it's available, because this test will
  3374. # fail.
  3375. "backtrace": None,
  3376. },
  3377. {
  3378. "id": "^ZERO_CHECK::@5ed5358f70faf8d8af7a$",
  3379. "backtrace": None,
  3380. },
  3381. ],
  3382. },
  3383. {
  3384. "name": "ALL_BUILD",
  3385. "id": "^ALL_BUILD::@ba7eb709d0b48779c6c8$",
  3386. "directorySource": "^imported$",
  3387. "projectName": "Imported",
  3388. "type": "UTILITY",
  3389. "isGeneratorProvided": True,
  3390. "sources": [
  3391. {
  3392. "path": "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/imported/CMakeFiles/ALL_BUILD$",
  3393. "isGenerated": True,
  3394. "sourceGroupName": "",
  3395. "compileGroupLanguage": None,
  3396. "backtrace": [
  3397. {
  3398. "file": "^imported/CMakeLists\\.txt$",
  3399. "line": None,
  3400. "command": None,
  3401. "hasParent": False,
  3402. },
  3403. ],
  3404. },
  3405. {
  3406. "path": "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/imported/CMakeFiles/ALL_BUILD\\.rule$",
  3407. "isGenerated": True,
  3408. "sourceGroupName": "CMake Rules",
  3409. "compileGroupLanguage": None,
  3410. "backtrace": [
  3411. {
  3412. "file": "^imported/CMakeLists\\.txt$",
  3413. "line": None,
  3414. "command": None,
  3415. "hasParent": False,
  3416. },
  3417. ],
  3418. },
  3419. ],
  3420. "sourceGroups": [
  3421. {
  3422. "name": "",
  3423. "sourcePaths": [
  3424. "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/imported/CMakeFiles/ALL_BUILD$",
  3425. ],
  3426. },
  3427. {
  3428. "name": "CMake Rules",
  3429. "sourcePaths": [
  3430. "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/imported/CMakeFiles/ALL_BUILD\\.rule$",
  3431. ],
  3432. },
  3433. ],
  3434. "compileGroups": None,
  3435. "backtrace": [
  3436. {
  3437. "file": "^imported/CMakeLists\\.txt$",
  3438. "line": None,
  3439. "command": None,
  3440. "hasParent": False,
  3441. },
  3442. ],
  3443. "folder": None,
  3444. "nameOnDisk": None,
  3445. "artifacts": None,
  3446. "build": "^imported$",
  3447. "source": "^imported$",
  3448. "install": None,
  3449. "link": None,
  3450. "archive": None,
  3451. "dependencies": [
  3452. {
  3453. "id": "^ZERO_CHECK::@ba7eb709d0b48779c6c8$",
  3454. "backtrace": None,
  3455. },
  3456. {
  3457. "id": "^link_imported_exe::@ba7eb709d0b48779c6c8$",
  3458. "backtrace": None,
  3459. },
  3460. {
  3461. "id": "^link_imported_shared_exe::@ba7eb709d0b48779c6c8$",
  3462. "backtrace": None,
  3463. },
  3464. {
  3465. "id": "^link_imported_static_exe::@ba7eb709d0b48779c6c8$",
  3466. "backtrace": None,
  3467. },
  3468. {
  3469. "id": "^link_imported_object_exe::@ba7eb709d0b48779c6c8$",
  3470. "backtrace": None,
  3471. },
  3472. {
  3473. "id": "^link_imported_interface_exe::@ba7eb709d0b48779c6c8$",
  3474. "backtrace": None,
  3475. },
  3476. ],
  3477. },
  3478. {
  3479. "name": "ZERO_CHECK",
  3480. "id": "^ZERO_CHECK::@ba7eb709d0b48779c6c8$",
  3481. "directorySource": "^imported$",
  3482. "projectName": "Imported",
  3483. "type": "UTILITY",
  3484. "isGeneratorProvided": True,
  3485. "sources": [
  3486. {
  3487. "path": "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/imported/CMakeFiles/ZERO_CHECK$",
  3488. "isGenerated": True,
  3489. "sourceGroupName": "",
  3490. "compileGroupLanguage": None,
  3491. "backtrace": [
  3492. {
  3493. "file": "^imported/CMakeLists\\.txt$",
  3494. "line": None,
  3495. "command": None,
  3496. "hasParent": False,
  3497. },
  3498. ],
  3499. },
  3500. {
  3501. "path": "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/imported/CMakeFiles/ZERO_CHECK\\.rule$",
  3502. "isGenerated": True,
  3503. "sourceGroupName": "CMake Rules",
  3504. "compileGroupLanguage": None,
  3505. "backtrace": [
  3506. {
  3507. "file": "^imported/CMakeLists\\.txt$",
  3508. "line": None,
  3509. "command": None,
  3510. "hasParent": False,
  3511. },
  3512. ],
  3513. },
  3514. ],
  3515. "sourceGroups": [
  3516. {
  3517. "name": "",
  3518. "sourcePaths": [
  3519. "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/imported/CMakeFiles/ZERO_CHECK$",
  3520. ],
  3521. },
  3522. {
  3523. "name": "CMake Rules",
  3524. "sourcePaths": [
  3525. "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/imported/CMakeFiles/ZERO_CHECK\\.rule$",
  3526. ],
  3527. },
  3528. ],
  3529. "compileGroups": None,
  3530. "backtrace": [
  3531. {
  3532. "file": "^imported/CMakeLists\\.txt$",
  3533. "line": None,
  3534. "command": None,
  3535. "hasParent": False,
  3536. },
  3537. ],
  3538. "folder": None,
  3539. "nameOnDisk": None,
  3540. "artifacts": None,
  3541. "build": "^imported$",
  3542. "source": "^imported$",
  3543. "install": None,
  3544. "link": None,
  3545. "archive": None,
  3546. "dependencies": None,
  3547. },
  3548. {
  3549. "name": "link_imported_exe",
  3550. "id": "^link_imported_exe::@ba7eb709d0b48779c6c8$",
  3551. "directorySource": "^imported$",
  3552. "projectName": "Imported",
  3553. "type": "EXECUTABLE",
  3554. "isGeneratorProvided": None,
  3555. "sources": [
  3556. {
  3557. "path": "^empty\\.c$",
  3558. "isGenerated": None,
  3559. "sourceGroupName": "Source Files",
  3560. "compileGroupLanguage": "C",
  3561. "backtrace": [
  3562. {
  3563. "file": "^imported/CMakeLists\\.txt$",
  3564. "line": 5,
  3565. "command": "add_executable",
  3566. "hasParent": True,
  3567. },
  3568. {
  3569. "file": "^imported/CMakeLists\\.txt$",
  3570. "line": None,
  3571. "command": None,
  3572. "hasParent": False,
  3573. },
  3574. ],
  3575. },
  3576. ],
  3577. "sourceGroups": [
  3578. {
  3579. "name": "Source Files",
  3580. "sourcePaths": [
  3581. "^empty\\.c$",
  3582. ],
  3583. },
  3584. ],
  3585. "compileGroups": [
  3586. {
  3587. "language": "C",
  3588. "sourcePaths": [
  3589. "^empty\\.c$",
  3590. ],
  3591. "includes": None,
  3592. "defines": None,
  3593. },
  3594. ],
  3595. "backtrace": [
  3596. {
  3597. "file": "^imported/CMakeLists\\.txt$",
  3598. "line": 5,
  3599. "command": "add_executable",
  3600. "hasParent": True,
  3601. },
  3602. {
  3603. "file": "^imported/CMakeLists\\.txt$",
  3604. "line": None,
  3605. "command": None,
  3606. "hasParent": False,
  3607. },
  3608. ],
  3609. "folder": None,
  3610. "nameOnDisk": "^link_imported_exe(\\.exe)?$",
  3611. "artifacts": [
  3612. {
  3613. "path": "^imported/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?link_imported_exe(\\.exe)?$",
  3614. "_dllExtra": False,
  3615. },
  3616. {
  3617. "path": "^imported/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?link_imported_exe\\.pdb$",
  3618. "_dllExtra": True,
  3619. },
  3620. ],
  3621. "build": "^imported$",
  3622. "source": "^imported$",
  3623. "install": None,
  3624. "link": {
  3625. "language": "C",
  3626. "lto": None,
  3627. },
  3628. "archive": None,
  3629. "dependencies": [
  3630. {
  3631. "id": "^ZERO_CHECK::@ba7eb709d0b48779c6c8$",
  3632. "backtrace": None,
  3633. },
  3634. ],
  3635. },
  3636. {
  3637. "name": "link_imported_shared_exe",
  3638. "id": "^link_imported_shared_exe::@ba7eb709d0b48779c6c8$",
  3639. "directorySource": "^imported$",
  3640. "projectName": "Imported",
  3641. "type": "EXECUTABLE",
  3642. "isGeneratorProvided": None,
  3643. "sources": [
  3644. {
  3645. "path": "^empty\\.c$",
  3646. "isGenerated": None,
  3647. "sourceGroupName": "Source Files",
  3648. "compileGroupLanguage": "C",
  3649. "backtrace": [
  3650. {
  3651. "file": "^imported/CMakeLists\\.txt$",
  3652. "line": 9,
  3653. "command": "add_executable",
  3654. "hasParent": True,
  3655. },
  3656. {
  3657. "file": "^imported/CMakeLists\\.txt$",
  3658. "line": None,
  3659. "command": None,
  3660. "hasParent": False,
  3661. },
  3662. ],
  3663. },
  3664. ],
  3665. "sourceGroups": [
  3666. {
  3667. "name": "Source Files",
  3668. "sourcePaths": [
  3669. "^empty\\.c$",
  3670. ],
  3671. },
  3672. ],
  3673. "compileGroups": [
  3674. {
  3675. "language": "C",
  3676. "sourcePaths": [
  3677. "^empty\\.c$",
  3678. ],
  3679. "includes": None,
  3680. "defines": None,
  3681. },
  3682. ],
  3683. "backtrace": [
  3684. {
  3685. "file": "^imported/CMakeLists\\.txt$",
  3686. "line": 9,
  3687. "command": "add_executable",
  3688. "hasParent": True,
  3689. },
  3690. {
  3691. "file": "^imported/CMakeLists\\.txt$",
  3692. "line": None,
  3693. "command": None,
  3694. "hasParent": False,
  3695. },
  3696. ],
  3697. "folder": None,
  3698. "nameOnDisk": "^link_imported_shared_exe(\\.exe)?$",
  3699. "artifacts": [
  3700. {
  3701. "path": "^imported/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?link_imported_shared_exe(\\.exe)?$",
  3702. "_dllExtra": False,
  3703. },
  3704. {
  3705. "path": "^imported/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?link_imported_shared_exe\\.pdb$",
  3706. "_dllExtra": True,
  3707. },
  3708. ],
  3709. "build": "^imported$",
  3710. "source": "^imported$",
  3711. "install": None,
  3712. "link": {
  3713. "language": "C",
  3714. "lto": None,
  3715. },
  3716. "archive": None,
  3717. "dependencies": [
  3718. {
  3719. "id": "^ZERO_CHECK::@ba7eb709d0b48779c6c8$",
  3720. "backtrace": None,
  3721. },
  3722. ],
  3723. },
  3724. {
  3725. "name": "link_imported_static_exe",
  3726. "id": "^link_imported_static_exe::@ba7eb709d0b48779c6c8$",
  3727. "directorySource": "^imported$",
  3728. "projectName": "Imported",
  3729. "type": "EXECUTABLE",
  3730. "isGeneratorProvided": None,
  3731. "sources": [
  3732. {
  3733. "path": "^empty\\.c$",
  3734. "isGenerated": None,
  3735. "sourceGroupName": "Source Files",
  3736. "compileGroupLanguage": "C",
  3737. "backtrace": [
  3738. {
  3739. "file": "^imported/CMakeLists\\.txt$",
  3740. "line": 13,
  3741. "command": "add_executable",
  3742. "hasParent": True,
  3743. },
  3744. {
  3745. "file": "^imported/CMakeLists\\.txt$",
  3746. "line": None,
  3747. "command": None,
  3748. "hasParent": False,
  3749. },
  3750. ],
  3751. },
  3752. ],
  3753. "sourceGroups": [
  3754. {
  3755. "name": "Source Files",
  3756. "sourcePaths": [
  3757. "^empty\\.c$",
  3758. ],
  3759. },
  3760. ],
  3761. "compileGroups": [
  3762. {
  3763. "language": "C",
  3764. "sourcePaths": [
  3765. "^empty\\.c$",
  3766. ],
  3767. "includes": None,
  3768. "defines": None,
  3769. },
  3770. ],
  3771. "backtrace": [
  3772. {
  3773. "file": "^imported/CMakeLists\\.txt$",
  3774. "line": 13,
  3775. "command": "add_executable",
  3776. "hasParent": True,
  3777. },
  3778. {
  3779. "file": "^imported/CMakeLists\\.txt$",
  3780. "line": None,
  3781. "command": None,
  3782. "hasParent": False,
  3783. },
  3784. ],
  3785. "folder": None,
  3786. "nameOnDisk": "^link_imported_static_exe(\\.exe)?$",
  3787. "artifacts": [
  3788. {
  3789. "path": "^imported/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?link_imported_static_exe(\\.exe)?$",
  3790. "_dllExtra": False,
  3791. },
  3792. {
  3793. "path": "^imported/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?link_imported_static_exe\\.pdb$",
  3794. "_dllExtra": True,
  3795. },
  3796. ],
  3797. "build": "^imported$",
  3798. "source": "^imported$",
  3799. "install": None,
  3800. "link": {
  3801. "language": "C",
  3802. "lto": None,
  3803. },
  3804. "archive": None,
  3805. "dependencies": [
  3806. {
  3807. "id": "^ZERO_CHECK::@ba7eb709d0b48779c6c8$",
  3808. "backtrace": None,
  3809. },
  3810. ],
  3811. },
  3812. {
  3813. "name": "link_imported_object_exe",
  3814. "id": "^link_imported_object_exe::@ba7eb709d0b48779c6c8$",
  3815. "directorySource": "^imported$",
  3816. "projectName": "Imported",
  3817. "type": "EXECUTABLE",
  3818. "isGeneratorProvided": None,
  3819. "sources": [
  3820. {
  3821. "path": "^empty\\.c$",
  3822. "isGenerated": None,
  3823. "sourceGroupName": "Source Files",
  3824. "compileGroupLanguage": "C",
  3825. "backtrace": [
  3826. {
  3827. "file": "^imported/CMakeLists\\.txt$",
  3828. "line": 18,
  3829. "command": "add_executable",
  3830. "hasParent": True,
  3831. },
  3832. {
  3833. "file": "^imported/CMakeLists\\.txt$",
  3834. "line": None,
  3835. "command": None,
  3836. "hasParent": False,
  3837. },
  3838. ],
  3839. },
  3840. ],
  3841. "sourceGroups": [
  3842. {
  3843. "name": "Source Files",
  3844. "sourcePaths": [
  3845. "^empty\\.c$",
  3846. ],
  3847. },
  3848. ],
  3849. "compileGroups": [
  3850. {
  3851. "language": "C",
  3852. "sourcePaths": [
  3853. "^empty\\.c$",
  3854. ],
  3855. "includes": None,
  3856. "defines": None,
  3857. },
  3858. ],
  3859. "backtrace": [
  3860. {
  3861. "file": "^imported/CMakeLists\\.txt$",
  3862. "line": 18,
  3863. "command": "add_executable",
  3864. "hasParent": True,
  3865. },
  3866. {
  3867. "file": "^imported/CMakeLists\\.txt$",
  3868. "line": None,
  3869. "command": None,
  3870. "hasParent": False,
  3871. },
  3872. ],
  3873. "folder": None,
  3874. "nameOnDisk": "^link_imported_object_exe(\\.exe)?$",
  3875. "artifacts": [
  3876. {
  3877. "path": "^imported/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?link_imported_object_exe(\\.exe)?$",
  3878. "_dllExtra": False,
  3879. },
  3880. {
  3881. "path": "^imported/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?link_imported_object_exe\\.pdb$",
  3882. "_dllExtra": True,
  3883. },
  3884. ],
  3885. "build": "^imported$",
  3886. "source": "^imported$",
  3887. "install": None,
  3888. "link": {
  3889. "language": "C",
  3890. "lto": None,
  3891. },
  3892. "archive": None,
  3893. "dependencies": [
  3894. {
  3895. "id": "^ZERO_CHECK::@ba7eb709d0b48779c6c8$",
  3896. "backtrace": None,
  3897. },
  3898. ],
  3899. },
  3900. {
  3901. "name": "link_imported_interface_exe",
  3902. "id": "^link_imported_interface_exe::@ba7eb709d0b48779c6c8$",
  3903. "directorySource": "^imported$",
  3904. "projectName": "Imported",
  3905. "type": "EXECUTABLE",
  3906. "isGeneratorProvided": None,
  3907. "sources": [
  3908. {
  3909. "path": "^empty\\.c$",
  3910. "isGenerated": None,
  3911. "sourceGroupName": "Source Files",
  3912. "compileGroupLanguage": "C",
  3913. "backtrace": [
  3914. {
  3915. "file": "^imported/CMakeLists\\.txt$",
  3916. "line": 23,
  3917. "command": "add_executable",
  3918. "hasParent": True,
  3919. },
  3920. {
  3921. "file": "^imported/CMakeLists\\.txt$",
  3922. "line": None,
  3923. "command": None,
  3924. "hasParent": False,
  3925. },
  3926. ],
  3927. },
  3928. ],
  3929. "sourceGroups": [
  3930. {
  3931. "name": "Source Files",
  3932. "sourcePaths": [
  3933. "^empty\\.c$",
  3934. ],
  3935. },
  3936. ],
  3937. "compileGroups": [
  3938. {
  3939. "language": "C",
  3940. "sourcePaths": [
  3941. "^empty\\.c$",
  3942. ],
  3943. "includes": None,
  3944. "defines": None,
  3945. },
  3946. ],
  3947. "backtrace": [
  3948. {
  3949. "file": "^imported/CMakeLists\\.txt$",
  3950. "line": 23,
  3951. "command": "add_executable",
  3952. "hasParent": True,
  3953. },
  3954. {
  3955. "file": "^imported/CMakeLists\\.txt$",
  3956. "line": None,
  3957. "command": None,
  3958. "hasParent": False,
  3959. },
  3960. ],
  3961. "folder": None,
  3962. "nameOnDisk": "^link_imported_interface_exe(\\.exe)?$",
  3963. "artifacts": [
  3964. {
  3965. "path": "^imported/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?link_imported_interface_exe(\\.exe)?$",
  3966. "_dllExtra": False,
  3967. },
  3968. {
  3969. "path": "^imported/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?link_imported_interface_exe\\.pdb$",
  3970. "_dllExtra": True,
  3971. },
  3972. ],
  3973. "build": "^imported$",
  3974. "source": "^imported$",
  3975. "install": None,
  3976. "link": {
  3977. "language": "C",
  3978. "lto": None,
  3979. },
  3980. "archive": None,
  3981. "dependencies": [
  3982. {
  3983. "id": "^ZERO_CHECK::@ba7eb709d0b48779c6c8$",
  3984. "backtrace": None,
  3985. },
  3986. ],
  3987. },
  3988. {
  3989. "name": "ALL_BUILD",
  3990. "id": "^ALL_BUILD::@c11385ffed57b860da63$",
  3991. "directorySource": "^custom$",
  3992. "projectName": "Custom",
  3993. "type": "UTILITY",
  3994. "isGeneratorProvided": True,
  3995. "sources": [
  3996. {
  3997. "path": "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/custom/CMakeFiles/ALL_BUILD$",
  3998. "isGenerated": True,
  3999. "sourceGroupName": "",
  4000. "compileGroupLanguage": None,
  4001. "backtrace": [
  4002. {
  4003. "file": "^custom/CMakeLists\\.txt$",
  4004. "line": None,
  4005. "command": None,
  4006. "hasParent": False,
  4007. },
  4008. ],
  4009. },
  4010. {
  4011. "path": "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/custom/CMakeFiles/ALL_BUILD\\.rule$",
  4012. "isGenerated": True,
  4013. "sourceGroupName": "CMake Rules",
  4014. "compileGroupLanguage": None,
  4015. "backtrace": [
  4016. {
  4017. "file": "^custom/CMakeLists\\.txt$",
  4018. "line": None,
  4019. "command": None,
  4020. "hasParent": False,
  4021. },
  4022. ],
  4023. },
  4024. ],
  4025. "sourceGroups": [
  4026. {
  4027. "name": "",
  4028. "sourcePaths": [
  4029. "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/custom/CMakeFiles/ALL_BUILD$",
  4030. ],
  4031. },
  4032. {
  4033. "name": "CMake Rules",
  4034. "sourcePaths": [
  4035. "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/custom/CMakeFiles/ALL_BUILD\\.rule$",
  4036. ],
  4037. },
  4038. ],
  4039. "compileGroups": None,
  4040. "backtrace": [
  4041. {
  4042. "file": "^custom/CMakeLists\\.txt$",
  4043. "line": None,
  4044. "command": None,
  4045. "hasParent": False,
  4046. },
  4047. ],
  4048. "folder": None,
  4049. "nameOnDisk": None,
  4050. "artifacts": None,
  4051. "build": "^custom$",
  4052. "source": "^custom$",
  4053. "install": None,
  4054. "link": None,
  4055. "archive": None,
  4056. "dependencies": [
  4057. {
  4058. "id": "^ZERO_CHECK::@c11385ffed57b860da63$",
  4059. "backtrace": None,
  4060. },
  4061. {
  4062. "id": "^custom_exe::@c11385ffed57b860da63$",
  4063. "backtrace": None,
  4064. },
  4065. ],
  4066. },
  4067. {
  4068. "name": "ZERO_CHECK",
  4069. "id": "^ZERO_CHECK::@c11385ffed57b860da63$",
  4070. "directorySource": "^custom$",
  4071. "projectName": "Custom",
  4072. "type": "UTILITY",
  4073. "isGeneratorProvided": True,
  4074. "sources": [
  4075. {
  4076. "path": "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/custom/CMakeFiles/ZERO_CHECK$",
  4077. "isGenerated": True,
  4078. "sourceGroupName": "",
  4079. "compileGroupLanguage": None,
  4080. "backtrace": [
  4081. {
  4082. "file": "^custom/CMakeLists\\.txt$",
  4083. "line": None,
  4084. "command": None,
  4085. "hasParent": False,
  4086. },
  4087. ],
  4088. },
  4089. {
  4090. "path": "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/custom/CMakeFiles/ZERO_CHECK\\.rule$",
  4091. "isGenerated": True,
  4092. "sourceGroupName": "CMake Rules",
  4093. "compileGroupLanguage": None,
  4094. "backtrace": [
  4095. {
  4096. "file": "^custom/CMakeLists\\.txt$",
  4097. "line": None,
  4098. "command": None,
  4099. "hasParent": False,
  4100. },
  4101. ],
  4102. },
  4103. ],
  4104. "sourceGroups": [
  4105. {
  4106. "name": "",
  4107. "sourcePaths": [
  4108. "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/custom/CMakeFiles/ZERO_CHECK$",
  4109. ],
  4110. },
  4111. {
  4112. "name": "CMake Rules",
  4113. "sourcePaths": [
  4114. "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/custom/CMakeFiles/ZERO_CHECK\\.rule$",
  4115. ],
  4116. },
  4117. ],
  4118. "compileGroups": None,
  4119. "backtrace": [
  4120. {
  4121. "file": "^custom/CMakeLists\\.txt$",
  4122. "line": None,
  4123. "command": None,
  4124. "hasParent": False,
  4125. },
  4126. ],
  4127. "folder": None,
  4128. "nameOnDisk": None,
  4129. "artifacts": None,
  4130. "build": "^custom$",
  4131. "source": "^custom$",
  4132. "install": None,
  4133. "link": None,
  4134. "archive": None,
  4135. "dependencies": None,
  4136. },
  4137. {
  4138. "name": "custom_tgt",
  4139. "id": "^custom_tgt::@c11385ffed57b860da63$",
  4140. "directorySource": "^custom$",
  4141. "projectName": "Custom",
  4142. "type": "UTILITY",
  4143. "isGeneratorProvided": None,
  4144. "sources": [
  4145. {
  4146. "path": "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/custom/CMakeFiles/custom_tgt$",
  4147. "isGenerated": True,
  4148. "sourceGroupName": "",
  4149. "compileGroupLanguage": None,
  4150. "backtrace": [
  4151. {
  4152. "file": "^custom/CMakeLists\\.txt$",
  4153. "line": 3,
  4154. "command": "add_custom_target",
  4155. "hasParent": True,
  4156. },
  4157. {
  4158. "file": "^custom/CMakeLists\\.txt$",
  4159. "line": None,
  4160. "command": None,
  4161. "hasParent": False,
  4162. },
  4163. ],
  4164. },
  4165. {
  4166. "path": "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/(custom/)?CMakeFiles/([0-9a-f]+/)?custom_tgt\\.rule$",
  4167. "isGenerated": True,
  4168. "sourceGroupName": "CMake Rules",
  4169. "compileGroupLanguage": None,
  4170. "backtrace": [
  4171. {
  4172. "file": "^custom/CMakeLists\\.txt$",
  4173. "line": None,
  4174. "command": None,
  4175. "hasParent": False,
  4176. },
  4177. ],
  4178. },
  4179. ],
  4180. "sourceGroups": [
  4181. {
  4182. "name": "",
  4183. "sourcePaths": [
  4184. "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/custom/CMakeFiles/custom_tgt$",
  4185. ],
  4186. },
  4187. {
  4188. "name": "CMake Rules",
  4189. "sourcePaths": [
  4190. "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/(custom/)?CMakeFiles/([0-9a-f]+/)?custom_tgt\\.rule$",
  4191. ],
  4192. },
  4193. ],
  4194. "compileGroups": None,
  4195. "backtrace": [
  4196. {
  4197. "file": "^custom/CMakeLists\\.txt$",
  4198. "line": 3,
  4199. "command": "add_custom_target",
  4200. "hasParent": True,
  4201. },
  4202. {
  4203. "file": "^custom/CMakeLists\\.txt$",
  4204. "line": None,
  4205. "command": None,
  4206. "hasParent": False,
  4207. },
  4208. ],
  4209. "folder": None,
  4210. "nameOnDisk": None,
  4211. "artifacts": None,
  4212. "build": "^custom$",
  4213. "source": "^custom$",
  4214. "install": None,
  4215. "link": None,
  4216. "archive": None,
  4217. "dependencies": [
  4218. {
  4219. "id": "^ZERO_CHECK::@c11385ffed57b860da63$",
  4220. "backtrace": None,
  4221. },
  4222. ],
  4223. },
  4224. {
  4225. "name": "custom_exe",
  4226. "id": "^custom_exe::@c11385ffed57b860da63$",
  4227. "directorySource": "^custom$",
  4228. "projectName": "Custom",
  4229. "type": "EXECUTABLE",
  4230. "isGeneratorProvided": None,
  4231. "sources": [
  4232. {
  4233. "path": "^empty\\.c$",
  4234. "isGenerated": None,
  4235. "sourceGroupName": "Source Files",
  4236. "compileGroupLanguage": "C",
  4237. "backtrace": [
  4238. {
  4239. "file": "^custom/CMakeLists\\.txt$",
  4240. "line": 4,
  4241. "command": "add_executable",
  4242. "hasParent": True,
  4243. },
  4244. {
  4245. "file": "^custom/CMakeLists\\.txt$",
  4246. "line": None,
  4247. "command": None,
  4248. "hasParent": False,
  4249. },
  4250. ],
  4251. },
  4252. ],
  4253. "sourceGroups": [
  4254. {
  4255. "name": "Source Files",
  4256. "sourcePaths": [
  4257. "^empty\\.c$",
  4258. ],
  4259. },
  4260. ],
  4261. "compileGroups": [
  4262. {
  4263. "language": "C",
  4264. "sourcePaths": [
  4265. "^empty\\.c$",
  4266. ],
  4267. "includes": None,
  4268. "defines": None,
  4269. },
  4270. ],
  4271. "backtrace": [
  4272. {
  4273. "file": "^custom/CMakeLists\\.txt$",
  4274. "line": 4,
  4275. "command": "add_executable",
  4276. "hasParent": True,
  4277. },
  4278. {
  4279. "file": "^custom/CMakeLists\\.txt$",
  4280. "line": None,
  4281. "command": None,
  4282. "hasParent": False,
  4283. },
  4284. ],
  4285. "folder": None,
  4286. "nameOnDisk": "^custom_exe(\\.exe)?$",
  4287. "artifacts": [
  4288. {
  4289. "path": "^custom/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?custom_exe(\\.exe)?$",
  4290. "_dllExtra": False,
  4291. },
  4292. {
  4293. "path": "^custom/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?custom_exe\\.pdb$",
  4294. "_dllExtra": True,
  4295. },
  4296. ],
  4297. "build": "^custom$",
  4298. "source": "^custom$",
  4299. "install": None,
  4300. "link": {
  4301. "language": "C",
  4302. "lto": None,
  4303. },
  4304. "archive": None,
  4305. "dependencies": [
  4306. {
  4307. "id": "^custom_tgt::@c11385ffed57b860da63$",
  4308. "backtrace": [
  4309. {
  4310. "file": "^custom/CMakeLists\\.txt$",
  4311. "line": 5,
  4312. "command": "add_dependencies",
  4313. "hasParent": True,
  4314. },
  4315. {
  4316. "file": "^custom/CMakeLists\\.txt$",
  4317. "line": None,
  4318. "command": None,
  4319. "hasParent": False,
  4320. },
  4321. ],
  4322. },
  4323. {
  4324. "id": "^ZERO_CHECK::@c11385ffed57b860da63$",
  4325. "backtrace": None,
  4326. },
  4327. ],
  4328. },
  4329. {
  4330. "name": "ALL_BUILD",
  4331. "id": "^ALL_BUILD::@[0-9a-f]+$",
  4332. "directorySource": "^.*/Tests/RunCMake/FileAPIExternalSource$",
  4333. "projectName": "External",
  4334. "type": "UTILITY",
  4335. "isGeneratorProvided": True,
  4336. "sources": [
  4337. {
  4338. "path": "^.*/Tests/RunCMake/FileAPI/FileAPIExternalBuild/CMakeFiles/ALL_BUILD$",
  4339. "isGenerated": True,
  4340. "sourceGroupName": "",
  4341. "compileGroupLanguage": None,
  4342. "backtrace": [
  4343. {
  4344. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4345. "line": None,
  4346. "command": None,
  4347. "hasParent": False,
  4348. },
  4349. ],
  4350. },
  4351. {
  4352. "path": "^.*/Tests/RunCMake/FileAPI/FileAPIExternalBuild/CMakeFiles/ALL_BUILD\\.rule$",
  4353. "isGenerated": True,
  4354. "sourceGroupName": "CMake Rules",
  4355. "compileGroupLanguage": None,
  4356. "backtrace": [
  4357. {
  4358. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4359. "line": None,
  4360. "command": None,
  4361. "hasParent": False,
  4362. },
  4363. ],
  4364. },
  4365. ],
  4366. "sourceGroups": [
  4367. {
  4368. "name": "",
  4369. "sourcePaths": [
  4370. "^.*/Tests/RunCMake/FileAPI/FileAPIExternalBuild/CMakeFiles/ALL_BUILD$",
  4371. ],
  4372. },
  4373. {
  4374. "name": "CMake Rules",
  4375. "sourcePaths": [
  4376. "^.*/Tests/RunCMake/FileAPI/FileAPIExternalBuild/CMakeFiles/ALL_BUILD\\.rule$",
  4377. ],
  4378. },
  4379. ],
  4380. "compileGroups": None,
  4381. "backtrace": [
  4382. {
  4383. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4384. "line": None,
  4385. "command": None,
  4386. "hasParent": False,
  4387. },
  4388. ],
  4389. "folder": None,
  4390. "nameOnDisk": None,
  4391. "artifacts": None,
  4392. "build": "^.*/Tests/RunCMake/FileAPI/FileAPIExternalBuild$",
  4393. "source": "^.*/Tests/RunCMake/FileAPIExternalSource$",
  4394. "install": None,
  4395. "link": None,
  4396. "archive": None,
  4397. "dependencies": [
  4398. {
  4399. "id": "^ZERO_CHECK::@[0-9a-f]+$",
  4400. "backtrace": None,
  4401. },
  4402. {
  4403. "id": "^generated_exe::@[0-9a-f]+$",
  4404. "backtrace": None,
  4405. },
  4406. ],
  4407. },
  4408. {
  4409. "name": "ZERO_CHECK",
  4410. "id": "^ZERO_CHECK::@[0-9a-f]+$",
  4411. "directorySource": "^.*/Tests/RunCMake/FileAPIExternalSource$",
  4412. "projectName": "External",
  4413. "type": "UTILITY",
  4414. "isGeneratorProvided": True,
  4415. "sources": [
  4416. {
  4417. "path": "^.*/Tests/RunCMake/FileAPI/FileAPIExternalBuild/CMakeFiles/ZERO_CHECK$",
  4418. "isGenerated": True,
  4419. "sourceGroupName": "",
  4420. "compileGroupLanguage": None,
  4421. "backtrace": [
  4422. {
  4423. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4424. "line": None,
  4425. "command": None,
  4426. "hasParent": False,
  4427. },
  4428. ],
  4429. },
  4430. {
  4431. "path": "^.*/Tests/RunCMake/FileAPI/FileAPIExternalBuild/CMakeFiles/ZERO_CHECK\\.rule$",
  4432. "isGenerated": True,
  4433. "sourceGroupName": "CMake Rules",
  4434. "compileGroupLanguage": None,
  4435. "backtrace": [
  4436. {
  4437. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4438. "line": None,
  4439. "command": None,
  4440. "hasParent": False,
  4441. },
  4442. ],
  4443. },
  4444. ],
  4445. "sourceGroups": [
  4446. {
  4447. "name": "",
  4448. "sourcePaths": [
  4449. "^.*/Tests/RunCMake/FileAPI/FileAPIExternalBuild/CMakeFiles/ZERO_CHECK$",
  4450. ],
  4451. },
  4452. {
  4453. "name": "CMake Rules",
  4454. "sourcePaths": [
  4455. "^.*/Tests/RunCMake/FileAPI/FileAPIExternalBuild/CMakeFiles/ZERO_CHECK\\.rule$",
  4456. ],
  4457. },
  4458. ],
  4459. "compileGroups": None,
  4460. "backtrace": [
  4461. {
  4462. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4463. "line": None,
  4464. "command": None,
  4465. "hasParent": False,
  4466. },
  4467. ],
  4468. "folder": None,
  4469. "nameOnDisk": None,
  4470. "artifacts": None,
  4471. "build": "^.*/Tests/RunCMake/FileAPI/FileAPIExternalBuild$",
  4472. "source": "^.*/Tests/RunCMake/FileAPIExternalSource$",
  4473. "install": None,
  4474. "link": None,
  4475. "archive": None,
  4476. "dependencies": None,
  4477. },
  4478. {
  4479. "name": "generated_exe",
  4480. "id": "^generated_exe::@[0-9a-f]+$",
  4481. "directorySource": "^.*/Tests/RunCMake/FileAPIExternalSource$",
  4482. "projectName": "External",
  4483. "type": "EXECUTABLE",
  4484. "isGeneratorProvided": None,
  4485. "sources": [
  4486. {
  4487. "path": "^.*/Tests/RunCMake/FileAPIExternalSource/empty\\.c$",
  4488. "isGenerated": None,
  4489. "sourceGroupName": "Source Files",
  4490. "compileGroupLanguage": "C",
  4491. "backtrace": [
  4492. {
  4493. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4494. "line": 5,
  4495. "command": "add_executable",
  4496. "hasParent": True,
  4497. },
  4498. {
  4499. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4500. "line": None,
  4501. "command": None,
  4502. "hasParent": False,
  4503. },
  4504. ],
  4505. },
  4506. {
  4507. "path": "^.*/Tests/RunCMake/FileAPI/FileAPIExternalBuild/generated\\.cxx$",
  4508. "isGenerated": True,
  4509. "sourceGroupName": "Generated Source Files",
  4510. "compileGroupLanguage": "CXX",
  4511. "backtrace": [
  4512. {
  4513. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4514. "line": 6,
  4515. "command": "target_sources",
  4516. "hasParent": True,
  4517. },
  4518. {
  4519. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4520. "line": None,
  4521. "command": None,
  4522. "hasParent": False,
  4523. },
  4524. ],
  4525. },
  4526. ],
  4527. "sourceGroups": [
  4528. {
  4529. "name": "Source Files",
  4530. "sourcePaths": [
  4531. "^.*/Tests/RunCMake/FileAPIExternalSource/empty\\.c$",
  4532. ],
  4533. },
  4534. {
  4535. "name": "Generated Source Files",
  4536. "sourcePaths": [
  4537. "^.*/Tests/RunCMake/FileAPI/FileAPIExternalBuild/generated\\.cxx$",
  4538. ],
  4539. },
  4540. ],
  4541. "compileGroups": [
  4542. {
  4543. "language": "C",
  4544. "sourcePaths": [
  4545. "^.*/Tests/RunCMake/FileAPIExternalSource/empty\\.c$",
  4546. ],
  4547. "includes": [
  4548. {
  4549. "path": "^.*/Tests/RunCMake/FileAPI/FileAPIExternalBuild$",
  4550. "isSystem": None,
  4551. "backtrace": None,
  4552. },
  4553. {
  4554. "path": "^.*/Tests/RunCMake/FileAPIExternalSource$",
  4555. "isSystem": True,
  4556. "backtrace": [
  4557. {
  4558. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4559. "line": 11,
  4560. "command": "target_include_directories",
  4561. "hasParent": True,
  4562. },
  4563. {
  4564. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4565. "line": None,
  4566. "command": None,
  4567. "hasParent": False,
  4568. },
  4569. ],
  4570. },
  4571. ],
  4572. "defines": [
  4573. {
  4574. "define": "EMPTY_C=1",
  4575. "backtrace": None,
  4576. },
  4577. {
  4578. "define": "SRC_DUMMY",
  4579. "backtrace": None,
  4580. },
  4581. {
  4582. "define": "GENERATED_EXE=1",
  4583. "backtrace": [
  4584. {
  4585. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4586. "line": 12,
  4587. "command": "target_compile_definitions",
  4588. "hasParent": True,
  4589. },
  4590. {
  4591. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4592. "line": None,
  4593. "command": None,
  4594. "hasParent": False,
  4595. },
  4596. ],
  4597. },
  4598. {
  4599. "define": "TGT_DUMMY",
  4600. "backtrace": [
  4601. {
  4602. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4603. "line": 12,
  4604. "command": "target_compile_definitions",
  4605. "hasParent": True,
  4606. },
  4607. {
  4608. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4609. "line": None,
  4610. "command": None,
  4611. "hasParent": False,
  4612. },
  4613. ],
  4614. },
  4615. ],
  4616. },
  4617. {
  4618. "language": "CXX",
  4619. "sourcePaths": [
  4620. "^.*/Tests/RunCMake/FileAPI/FileAPIExternalBuild/generated\\.cxx$",
  4621. ],
  4622. "includes": [
  4623. {
  4624. "path": "^.*/Tests/RunCMake/FileAPIExternalSource$",
  4625. "isSystem": True,
  4626. "backtrace": [
  4627. {
  4628. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4629. "line": 11,
  4630. "command": "target_include_directories",
  4631. "hasParent": True,
  4632. },
  4633. {
  4634. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4635. "line": None,
  4636. "command": None,
  4637. "hasParent": False,
  4638. },
  4639. ],
  4640. },
  4641. ],
  4642. "defines": [
  4643. {
  4644. "define": "GENERATED_EXE=1",
  4645. "backtrace": [
  4646. {
  4647. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4648. "line": 12,
  4649. "command": "target_compile_definitions",
  4650. "hasParent": True,
  4651. },
  4652. {
  4653. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4654. "line": None,
  4655. "command": None,
  4656. "hasParent": False,
  4657. },
  4658. ],
  4659. },
  4660. {
  4661. "define": "TGT_DUMMY",
  4662. "backtrace": [
  4663. {
  4664. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4665. "line": 12,
  4666. "command": "target_compile_definitions",
  4667. "hasParent": True,
  4668. },
  4669. {
  4670. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4671. "line": None,
  4672. "command": None,
  4673. "hasParent": False,
  4674. },
  4675. ],
  4676. },
  4677. ],
  4678. },
  4679. ],
  4680. "backtrace": [
  4681. {
  4682. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4683. "line": 5,
  4684. "command": "add_executable",
  4685. "hasParent": True,
  4686. },
  4687. {
  4688. "file": "^.*/Tests/RunCMake/FileAPIExternalSource/CMakeLists\\.txt$",
  4689. "line": None,
  4690. "command": None,
  4691. "hasParent": False,
  4692. },
  4693. ],
  4694. "folder": None,
  4695. "nameOnDisk": "^generated_exe(\\.exe)?$",
  4696. "artifacts": [
  4697. {
  4698. "path": "^.*/Tests/RunCMake/FileAPI/FileAPIExternalBuild/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?generated_exe(\\.exe)?$",
  4699. "_dllExtra": False,
  4700. },
  4701. {
  4702. "path": "^.*/Tests/RunCMake/FileAPI/FileAPIExternalBuild/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?generated_exe\\.pdb$",
  4703. "_dllExtra": True,
  4704. },
  4705. ],
  4706. "build": "^.*/Tests/RunCMake/FileAPI/FileAPIExternalBuild$",
  4707. "source": "^.*/Tests/RunCMake/FileAPIExternalSource$",
  4708. "install": None,
  4709. "link": {
  4710. "language": "CXX",
  4711. "lto": None,
  4712. },
  4713. "archive": None,
  4714. "dependencies": [
  4715. {
  4716. "id": "^ZERO_CHECK::@[0-9a-f]+$",
  4717. "backtrace": None,
  4718. },
  4719. ],
  4720. },
  4721. ]
  4722. if not os.path.exists(os.path.join(reply_dir, "..", "..", "..", "..", "ipo_enabled.txt")):
  4723. for e in expected:
  4724. try:
  4725. e["link"]["lto"] = None
  4726. except TypeError: # "link" is not a dict, no problem.
  4727. pass
  4728. try:
  4729. e["archive"]["lto"] = None
  4730. except TypeError: # "archive" is not a dict, no problem.
  4731. pass
  4732. if inSource:
  4733. for e in expected:
  4734. if e["sources"] is not None:
  4735. for s in e["sources"]:
  4736. s["path"] = s["path"].replace("^.*/Tests/RunCMake/FileAPI/", "^", 1)
  4737. if e["sourceGroups"] is not None:
  4738. for g in e["sourceGroups"]:
  4739. g["sourcePaths"] = [p.replace("^.*/Tests/RunCMake/FileAPI/", "^", 1) for p in g["sourcePaths"]]
  4740. if e["compileGroups"] is not None:
  4741. for g in e["compileGroups"]:
  4742. g["sourcePaths"] = [p.replace("^.*/Tests/RunCMake/FileAPI/", "^", 1) for p in g["sourcePaths"]]
  4743. if matches(g, "^Visual Studio "):
  4744. expected = filter_list(lambda e: e["name"] not in ("ZERO_CHECK") or e["id"] == "^ZERO_CHECK::@6890427a1f51a3e7e1df$", expected)
  4745. for e in expected:
  4746. if e["type"] == "UTILITY":
  4747. if e["id"] == "^ZERO_CHECK::@6890427a1f51a3e7e1df$":
  4748. e["sources"] = [
  4749. {
  4750. "path": "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/CMakeFiles/([0-9a-f]+/)?generate\\.stamp\\.rule$",
  4751. "isGenerated": True,
  4752. "sourceGroupName": "CMake Rules",
  4753. "compileGroupLanguage": None,
  4754. "backtrace": [
  4755. {
  4756. "file": "^CMakeLists\\.txt$",
  4757. "line": None,
  4758. "command": None,
  4759. "hasParent": False,
  4760. },
  4761. ],
  4762. },
  4763. ]
  4764. e["sourceGroups"] = [
  4765. {
  4766. "name": "CMake Rules",
  4767. "sourcePaths": [
  4768. "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build/CMakeFiles/([0-9a-f]+/)?generate\\.stamp\\.rule$",
  4769. ],
  4770. },
  4771. ]
  4772. elif e["name"] in ("ALL_BUILD"):
  4773. e["sources"] = []
  4774. e["sourceGroups"] = None
  4775. if e["dependencies"] is not None:
  4776. for d in e["dependencies"]:
  4777. if matches(d["id"], "^\\^ZERO_CHECK::@"):
  4778. d["id"] = "^ZERO_CHECK::@6890427a1f51a3e7e1df$"
  4779. elif g == "Xcode":
  4780. if ';' in os.environ.get("CMAKE_OSX_ARCHITECTURES", ""):
  4781. expected = filter_list(lambda e: e["name"] not in ("link_imported_object_exe"), expected)
  4782. for e in expected:
  4783. e["dependencies"] = filter_list(lambda d: not matches(d["id"], "^\\^link_imported_object_exe::@"), e["dependencies"])
  4784. if e["name"] in ("c_object_lib", "cxx_object_lib"):
  4785. e["artifacts"] = None
  4786. else:
  4787. for e in expected:
  4788. e["dependencies"] = filter_list(lambda d: not matches(d["id"], "^\\^ZERO_CHECK::@"), e["dependencies"])
  4789. expected = filter_list(lambda t: t["name"] not in ("ALL_BUILD", "ZERO_CHECK"), expected)
  4790. if sys.platform not in ("win32", "cygwin", "msys"):
  4791. for e in expected:
  4792. e["artifacts"] = filter_list(lambda a: not a["_dllExtra"], e["artifacts"])
  4793. if "aix" not in sys.platform:
  4794. for e in expected:
  4795. e["artifacts"] = filter_list(lambda a: not a.get("_aixExtra", False), e["artifacts"])
  4796. return expected
  4797. def check_targets(c, g, inSource):
  4798. check_list_match(lambda a, e: matches(a["id"], e["id"]),
  4799. c["targets"], gen_check_targets(c, g, inSource),
  4800. check=check_target(c),
  4801. check_exception=lambda a, e: "Target ID: %s" % a["id"],
  4802. missing_exception=lambda e: "Target ID: %s" % e["id"],
  4803. extra_exception=lambda a: "Target ID: %s" % a["id"])
  4804. def gen_check_projects(c, g):
  4805. expected = [
  4806. {
  4807. "name": "codemodel-v2",
  4808. "parentName": None,
  4809. "childNames": [
  4810. "Alias",
  4811. "Custom",
  4812. "Cxx",
  4813. "Imported",
  4814. "Object",
  4815. "External",
  4816. ],
  4817. "directorySources": [
  4818. "^\\.$",
  4819. "^dir$",
  4820. "^dir/dir$",
  4821. ],
  4822. "targetIds": [
  4823. "^ALL_BUILD::@6890427a1f51a3e7e1df$",
  4824. "^ZERO_CHECK::@6890427a1f51a3e7e1df$",
  4825. "^interface_exe::@6890427a1f51a3e7e1df$",
  4826. "^c_lib::@6890427a1f51a3e7e1df$",
  4827. "^c_exe::@6890427a1f51a3e7e1df$",
  4828. "^c_shared_lib::@6890427a1f51a3e7e1df$",
  4829. "^c_shared_exe::@6890427a1f51a3e7e1df$",
  4830. "^c_static_lib::@6890427a1f51a3e7e1df$",
  4831. "^c_static_exe::@6890427a1f51a3e7e1df$",
  4832. ],
  4833. },
  4834. {
  4835. "name": "Cxx",
  4836. "parentName": "codemodel-v2",
  4837. "childNames": None,
  4838. "directorySources": [
  4839. "^cxx$",
  4840. ],
  4841. "targetIds": [
  4842. "^ALL_BUILD::@a56b12a3f5c0529fb296$",
  4843. "^ZERO_CHECK::@a56b12a3f5c0529fb296$",
  4844. "^cxx_lib::@a56b12a3f5c0529fb296$",
  4845. "^cxx_exe::@a56b12a3f5c0529fb296$",
  4846. "^cxx_shared_lib::@a56b12a3f5c0529fb296$",
  4847. "^cxx_shared_exe::@a56b12a3f5c0529fb296$",
  4848. "^cxx_static_lib::@a56b12a3f5c0529fb296$",
  4849. "^cxx_static_exe::@a56b12a3f5c0529fb296$",
  4850. ],
  4851. },
  4852. {
  4853. "name": "Alias",
  4854. "parentName": "codemodel-v2",
  4855. "childNames": None,
  4856. "directorySources": [
  4857. "^alias$",
  4858. ],
  4859. "targetIds": [
  4860. "^ALL_BUILD::@53632cba2752272bb008$",
  4861. "^ZERO_CHECK::@53632cba2752272bb008$",
  4862. "^c_alias_exe::@53632cba2752272bb008$",
  4863. "^cxx_alias_exe::@53632cba2752272bb008$",
  4864. ],
  4865. },
  4866. {
  4867. "name": "Object",
  4868. "parentName": "codemodel-v2",
  4869. "childNames": None,
  4870. "directorySources": [
  4871. "^object$",
  4872. ],
  4873. "targetIds": [
  4874. "^ALL_BUILD::@5ed5358f70faf8d8af7a$",
  4875. "^ZERO_CHECK::@5ed5358f70faf8d8af7a$",
  4876. "^c_object_lib::@5ed5358f70faf8d8af7a$",
  4877. "^c_object_exe::@5ed5358f70faf8d8af7a$",
  4878. "^cxx_object_lib::@5ed5358f70faf8d8af7a$",
  4879. "^cxx_object_exe::@5ed5358f70faf8d8af7a$",
  4880. ],
  4881. },
  4882. {
  4883. "name": "Imported",
  4884. "parentName": "codemodel-v2",
  4885. "childNames": None,
  4886. "directorySources": [
  4887. "^imported$",
  4888. ],
  4889. "targetIds": [
  4890. "^ALL_BUILD::@ba7eb709d0b48779c6c8$",
  4891. "^ZERO_CHECK::@ba7eb709d0b48779c6c8$",
  4892. "^link_imported_exe::@ba7eb709d0b48779c6c8$",
  4893. "^link_imported_shared_exe::@ba7eb709d0b48779c6c8$",
  4894. "^link_imported_static_exe::@ba7eb709d0b48779c6c8$",
  4895. "^link_imported_object_exe::@ba7eb709d0b48779c6c8$",
  4896. "^link_imported_interface_exe::@ba7eb709d0b48779c6c8$",
  4897. ],
  4898. },
  4899. {
  4900. "name": "Custom",
  4901. "parentName": "codemodel-v2",
  4902. "childNames": None,
  4903. "directorySources": [
  4904. "^custom$",
  4905. ],
  4906. "targetIds": [
  4907. "^ALL_BUILD::@c11385ffed57b860da63$",
  4908. "^ZERO_CHECK::@c11385ffed57b860da63$",
  4909. "^custom_tgt::@c11385ffed57b860da63$",
  4910. "^custom_exe::@c11385ffed57b860da63$",
  4911. ],
  4912. },
  4913. {
  4914. "name": "External",
  4915. "parentName": "codemodel-v2",
  4916. "childNames": None,
  4917. "directorySources": [
  4918. "^.*/Tests/RunCMake/FileAPIExternalSource$",
  4919. ],
  4920. "targetIds": [
  4921. "^ALL_BUILD::@[0-9a-f]+$",
  4922. "^ZERO_CHECK::@[0-9a-f]+$",
  4923. "^generated_exe::@[0-9a-f]+$",
  4924. ],
  4925. },
  4926. ]
  4927. if matches(g, "^Visual Studio "):
  4928. for e in expected:
  4929. if e["parentName"] is not None:
  4930. e["targetIds"] = filter_list(lambda t: not matches(t, "^\\^ZERO_CHECK"), e["targetIds"])
  4931. elif g == "Xcode":
  4932. if ';' in os.environ.get("CMAKE_OSX_ARCHITECTURES", ""):
  4933. for e in expected:
  4934. e["targetIds"] = filter_list(lambda t: not matches(t, "^\\^(link_imported_object_exe)"), e["targetIds"])
  4935. else:
  4936. for e in expected:
  4937. e["targetIds"] = filter_list(lambda t: not matches(t, "^\\^(ALL_BUILD|ZERO_CHECK)"), e["targetIds"])
  4938. return expected
  4939. def check_projects(c, g):
  4940. check_list_match(lambda a, e: is_string(a["name"], e["name"]), c["projects"], gen_check_projects(c, g),
  4941. check=check_project(c),
  4942. check_exception=lambda a, e: "Project name: %s" % a["name"],
  4943. missing_exception=lambda e: "Project name: %s" % e["name"],
  4944. extra_exception=lambda a: "Project name: %s" % a["name"])
  4945. def check_object_codemodel_configuration(c, g, inSource):
  4946. assert sorted(c.keys()) == ["directories", "name", "projects", "targets"]
  4947. assert is_string(c["name"])
  4948. check_directories(c, g)
  4949. check_targets(c, g, inSource)
  4950. check_projects(c, g)
  4951. def check_object_codemodel(g):
  4952. def _check(o):
  4953. assert sorted(o.keys()) == ["configurations", "kind", "paths", "version"]
  4954. # The "kind" and "version" members are handled by check_index_object.
  4955. assert is_dict(o["paths"])
  4956. assert sorted(o["paths"].keys()) == ["build", "source"]
  4957. assert matches(o["paths"]["build"], "^.*/Tests/RunCMake/FileAPI/codemodel-v2-build$")
  4958. assert matches(o["paths"]["source"], "^.*/Tests/RunCMake/FileAPI$")
  4959. inSource = os.path.dirname(o["paths"]["build"]) == o["paths"]["source"]
  4960. if matches(g, "^(Visual Studio |Xcode$)"):
  4961. assert sorted([c["name"] for c in o["configurations"]]) == ["Debug", "MinSizeRel", "RelWithDebInfo", "Release"]
  4962. else:
  4963. assert len(o["configurations"]) == 1
  4964. assert o["configurations"][0]["name"] in ("", "Debug", "Release", "RelWithDebInfo", "MinSizeRel")
  4965. for c in o["configurations"]:
  4966. check_object_codemodel_configuration(c, g, inSource)
  4967. return _check
  4968. assert is_dict(index)
  4969. assert sorted(index.keys()) == ["cmake", "objects", "reply"]
  4970. check_objects(index["objects"], index["cmake"]["generator"]["name"])