codemodel-v2-check.py 184 KB

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