• API Documentation

Package additional files

The list of package files is specified in terms of:

  • The build system variant;
  • Grouping by Condition.

Condition is a condition processed by MSBuild during package installation. It is specified in the targets file inside the package.

variant_files is a JsonObject where the keys are the names of the variants. Files that are included in the package must have been compiled with the specified variant.

  • Only one variant can be specified.
  • Files are grouped in a JsonObject under the key "files", with an optional "condition" key.
  • This specifies a group of files that should be unpacked only if the conditions specified in the "condition" key are met.

Example:

"variant_files": {
    "Debug_x64": [
        {
            "condition": "$(Platform) == 'x86'",
            "files": {
                "$project:output_dll$/$native_project:name$.dll": "build/dll",
                "$project:output_dcu$/*.dcu": "build/dcu/$variant:path$"
            }
        },
        {
            "condition": "$(Platform) == 'x64'",
            "files": {
                "$project:output_idl$/$native_project:name$.idl": "build/idl"
            }
        },
        {
            "files": {
                "$project:output_idl$/$native_project:name$.idl": "build/idl_duplicate",
                "$project:output_tlb$/$native_project:name$.tlb": "build/tlb"
            }
        }
    ],
    "Release_x64": [
        {
            "files": {
                "$project:output_idl$/$native_project:name$.idl": "build/idl_duplicate",
                "$project:output_tlb$/$native_project:name$.tlb": "build/tlb",
                "$project:source_pas$": "build/sources",
                "$project:doc_folder$": "html_doc"
            }
        }
    ]
}
In This Article
Back to top Generated by DocFX