codemodel-v2-check.py 174 KB

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