Common Package Specification Example
History Development Process Package Schema Compiler and Linker Features Component Specification Package Configurations Package Searching Supplemental Schema Usage and Implementation Recommendations Sample CPS File Previous topic Usage and Implementation Recommendations Show Source Quick search The following presents a simple example of a .cps file. This example includes a header-only CABI library, a compiled CABI library with four configurations (static/shared and debug/optimized), an executable tool, and a Java archive. Many of the most commonly used attributes are demonstrated, as is the technique discussed in Configurations as Flags. "Name": "sample", "Description": "Sample CPS", "License": "BSD", "Version": "1.2.0", "CompatVersion": "0.8.0", "Platform": "", "ISAs": ["x86_64"], "Kernel": "Linux", "C-Runtime-Vendor": "gnu", "C-Runtime-Version": "2.20", "Jvm-Version": 1.6, "Configurations": ["Optimized", "Debug"], "Default-Components": ["sample"], "Components": { "sample-core": { "Type": "interface", "Definitions": ["SAMPLE_1"], "Includes": ["@prefix/include"] }, "sample": { "Type": "interface", "Configurations": { "Shared": { "Requires": ["sample-shared"] }, "Static": { "Requires": ["sample-static"] } } }, "sample-shared": { "Type": "sharedlib", "Requires": ["sample-core"], "Configurations": { "Optimized": { "Location": "@prefix/lib64/libsample.so" }, "Debug": { "Location": "@prefix/lib64/libsampled.so" } } }, "sample-static": { "Type": "archive", "Definitions": ["SAMPLE_STATIC"], "Requires": ["sample-core"], "Configurations": { "Optimized": { "Location": "@prefix/lib64/libsample.a" }, "Debug": { "Location": "@prefix/lib64/libsampled.a" } } }, "sample-tool": { "Type": "exe", "Location": "@prefix/bin/sample-tool" }, "sample-java": { "Type": "jar", "Location": "@prefix/share/java/sample.jar" } }
A mobile browser screenshot shows the Common Package Specification documentation, with a sidebar of package-schema topics and a dense JSON-like sample CPS file. The joke is the overwhelming, highly formal new package standard presented as a universal solution for libraries, executables, and Java archives, making it suitable as a reaction to yet another complicated software packaging format. EN: A mobile browser screenshot shows the Common Package Specification documentation, with a sidebar of package-schema topics and a dense JSON-like sample CPS file. The joke is the overwhelming, highly formal new package standard presented as a universal solution for libraries, executables, and Java archives, making it suitable as a reaction to yet another complicated software packaging format.
- @ithueti / 10492 2023-10-04
- Type
- image
- Size
- 369×800 · 59.0 KiB
- Mood
- саркастичный, перегруженный
- Language
- en
- Added