Files
CMake/Tests/RunCMake/FileAPI/codemodel-v2-data/targets/exe_framework.json
Craig Scott f38f325e08 fileAPI: Add direct dependencies to target codemodel files
This adds the following new arrays, which together capture all direct
dependencies and interface dependencies of a target:

- linkLibraries
- interfaceLinkLibraries
- compileDependencies
- interfaceCompileDependencies
- objectDependencies
- orderDependencies

Fixes: #21995, #25213
2025-10-07 10:44:28 -04:00

293 lines
8.7 KiB
JSON

{
"name": "exe_framework",
"id": "^exe_framework::@217a96c3a62328a73ef4$",
"directorySource": "^framework$",
"projectName": "Framework",
"type": "EXECUTABLE",
"imported": null,
"local": null,
"abstract": null,
"symbolic": null,
"isGeneratorProvided": null,
"fileSets": null,
"sources": [
{
"path": "^empty\\.cxx$",
"isGenerated": null,
"fileSetName": null,
"sourceGroupName": "Source Files",
"compileGroupLanguage": "CXX",
"backtrace": [
{
"file": "^framework/CMakeLists\\.txt$",
"line": 16,
"command": "add_executable",
"hasParent": true
},
{
"file": "^framework/CMakeLists\\.txt$",
"line": null,
"command": null,
"hasParent": false
}
]
}
],
"sourceGroups": [
{
"name": "Source Files",
"sourcePaths": [
"^empty\\.cxx$"
]
}
],
"compileGroups": [
{
"language": "CXX",
"sourcePaths": [
"^empty\\.cxx$"
],
"includes": null,
"frameworks": null,
"defines": [
{
"define": "_MBCS",
"backtrace": null
}
],
"compileCommandFragments": null
}
],
"backtrace": [
{
"file": "^framework/CMakeLists\\.txt$",
"line": 16,
"command": "add_executable",
"hasParent": true
},
{
"file": "^framework/CMakeLists\\.txt$",
"line": null,
"command": null,
"hasParent": false
}
],
"folder": null,
"nameOnDisk": "^exe_framework(\\.exe)?$",
"artifacts": [
{
"path": "^framework/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?exe_framework(\\.exe)?$",
"_dllExtra": false
},
{
"path": "^framework/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?exe_framework\\.pdb$",
"_dllExtra": true
}
],
"build": "^framework$",
"source": "^framework$",
"install": null,
"link": {
"language": "CXX",
"lto": null,
"commandFragments": [
{
"fragment": ".*static_framework.*",
"role": "libraries",
"backtrace": [
{
"file": "^framework/CMakeLists\\.txt$",
"line": 17,
"command": "target_link_libraries",
"hasParent": true
},
{
"file": "^framework/CMakeLists\\.txt$",
"line": null,
"command": null,
"hasParent": false
}
]
},
{
"fragment": ".*shared_framework.*",
"role": "libraries",
"backtrace": [
{
"file": "^framework/CMakeLists\\.txt$",
"line": 17,
"command": "target_link_libraries",
"hasParent": true
},
{
"file": "^framework/CMakeLists\\.txt$",
"line": null,
"command": null,
"hasParent": false
}
]
}
]
},
"archive": null,
"dependencies": [
{
"id": "^static_framework::@217a96c3a62328a73ef4$",
"backtrace": [
{
"file": "^framework/CMakeLists\\.txt$",
"line": 17,
"command": "target_link_libraries",
"hasParent": true
},
{
"file": "^framework/CMakeLists\\.txt$",
"line": null,
"command": null,
"hasParent": false
}
]
},
{
"id": "^shared_framework::@217a96c3a62328a73ef4$",
"backtrace": [
{
"file": "^framework/CMakeLists\\.txt$",
"line": 17,
"command": "target_link_libraries",
"hasParent": true
},
{
"file": "^framework/CMakeLists\\.txt$",
"line": null,
"command": null,
"hasParent": false
}
]
},
{
"id": "^ZERO_CHECK::@217a96c3a62328a73ef4$",
"backtrace": null
}
],
"linkLibraries": [
{
"id": "^import_framework::@217a96c3a62328a73ef4$",
"fragment": null,
"backtrace": [
{
"file": "^framework/CMakeLists\\.txt$",
"line": 17,
"command": "target_link_libraries",
"hasParent": true
},
{
"file": "^framework/CMakeLists\\.txt$",
"line": null,
"command": null,
"hasParent": false
}
],
"fromDependency": null
},
{
"id": "^shared_framework::@217a96c3a62328a73ef4$",
"fragment": null,
"backtrace": [
{
"file": "^framework/CMakeLists\\.txt$",
"line": 17,
"command": "target_link_libraries",
"hasParent": true
},
{
"file": "^framework/CMakeLists\\.txt$",
"line": null,
"command": null,
"hasParent": false
}
],
"fromDependency": null
},
{
"id": "^static_framework::@217a96c3a62328a73ef4$",
"fragment": null,
"backtrace": [
{
"file": "^framework/CMakeLists\\.txt$",
"line": 17,
"command": "target_link_libraries",
"hasParent": true
},
{
"file": "^framework/CMakeLists\\.txt$",
"line": null,
"command": null,
"hasParent": false
}
],
"fromDependency": null
}
],
"interfaceLinkLibraries": null,
"compileDependencies": [
{
"id": "^import_framework::@217a96c3a62328a73ef4$",
"backtrace": [
{
"file": "^framework/CMakeLists\\.txt$",
"line": 17,
"command": "target_link_libraries",
"hasParent": true
},
{
"file": "^framework/CMakeLists\\.txt$",
"line": null,
"command": null,
"hasParent": false
}
],
"fromDependency": null
},
{
"id": "^shared_framework::@217a96c3a62328a73ef4$",
"backtrace": [
{
"file": "^framework/CMakeLists\\.txt$",
"line": 17,
"command": "target_link_libraries",
"hasParent": true
},
{
"file": "^framework/CMakeLists\\.txt$",
"line": null,
"command": null,
"hasParent": false
}
],
"fromDependency": null
},
{
"id": "^static_framework::@217a96c3a62328a73ef4$",
"backtrace": [
{
"file": "^framework/CMakeLists\\.txt$",
"line": 17,
"command": "target_link_libraries",
"hasParent": true
},
{
"file": "^framework/CMakeLists\\.txt$",
"line": null,
"command": null,
"hasParent": false
}
],
"fromDependency": null
}
],
"interfaceCompileDependencies": null,
"objectDependencies": null,
"orderDependencies": null
}