Files
Matthew Woehlke 9fa2b5dd99 CPS: Support importing link_libraries
Teach CPS import to read the `link_libraries` attribute. We've exported
this for a long time, but apparently the code to read it back was never
implemented. (To be fair, use of this attribute is discouraged.)
2026-02-10 10:17:35 -05:00

50 lines
983 B
Plaintext

{
"cps_version": "0.14.0",
"name": "RequiresTest",
"cps_path": "@prefix@/cps",
"components": {
"Indirect": {
"type": "interface",
"requires": [ ":Direct" ]
},
"Direct": {
"type": "interface",
"definitions": {
"*": {
"ANSWER": 42
}
}
},
"CompileOnly": {
"type": "interface",
"compile_requires": [ ":BrokenLibrary" ]
},
"BrokenLibrary": {
"type": "archive",
"location": "@prefix@/lib/does-not-exist.a",
"definitions": {
"*": {
"ANSWER": 42
}
}
},
"Private1": {
"type": "dylib"
},
"Private2": {
"type": "dylib"
},
"Other": {
"type": "dylib",
"link_libraries": [ "every-config" ],
"dyld_requires": [ ":Private1" ],
"configurations": {
"test": {
"link_libraries": [ "test-config" ],
"dyld_requires": [ ":Private2" ]
}
}
}
}
}