Skip to content
Projekte

Über uns

Generate CycloneDX SBOMs for Delphi projects — EU Cyber Resilience Act compliance in one click

Sicherheit und Datenschutz

So werden diese Zahlen gemessen

Gemessener Sternzuwachs

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Verlauf wird gesammelt

Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.

README.md

Original

DX.Comply

Delphi Supported Versions License CycloneDX Platform EU CRA

Write a Software Bill of Materials from a Delphi build.

Product page: DX.Comply on developer-experts.net (German)

DX.Comply lists the units, packages and DLL names it can see in the build, with a hash where it could open the file. That component list is a starting point for the SBOM part of EU Cyber Resilience Act technical documentation (Annex I Part II, Annex VII). It does not make a product compliant, and it does not produce the rest of the technical file.


Why DX.Comply?

The EU Cyber Resilience Act (CRA), Regulation (EU) 2024/2847, requires manufacturers to keep technical documentation for products with digital elements. That file includes a machine-readable Software Bill of Materials (SBOM). The regulation applies in full from 11 December 2027.

DX.Comply produces build evidence and that component list from a RAD Studio project, together with optional HTML and Markdown reports.

You generate it. You archive it. You never have to submit it anywhere.

SBOM = a structured component list for a piece of software. DX.Comply fills it from the build: unit names, package names and DLL names, plus SHA-256 and SHA-512 hashes when the file could be opened.


Screenshots

Generating an SBOM in the RAD Studio IDE:

Build Confirmation Progress and MAP Build HTML SBOM Report
Build Confirmation Progress Report

SBOM Output Example

See it for yourself: Example SBOM (JSON) from ConwaysLifeFMX in RADStudio13Demos, project Object Pascal/RTL/Parallel Library/FMX/ConwaysLifeFMX.dproj, built Release/Win32 with a map file.

DX.Comply writes CycloneDX 1.6 JSON by default. Each linked unit is a library component, with SHA-256 and SHA-512 hashes when the file could be opened, and with an origin classification. The project's own outputs (the program, the package a package project builds, and .dcp) carry the product version and no package URL, the same as files in library mode. A built program that has no version of its own, such as an Android lib<Project>.so with no version resource, uses the product version from the SBOM header. Another .exe, DLL, or .bpl next to the program, or a DLL found at a path named in source, carries the numeric file version from its own version resource (a.b.c.d). The FileVersion string, then the ProductVersion string, is used only when that fixed file info is absent, and the file has no version when the resource is missing. It does not inherit the product version. The fragment below shows the metadata component and the application file. The full document has more properties. The checked-in example file was written by an older version, which used the first 12 hex characters of the SHA-256 as the file version and a file: package URL.

{
  "bomFormat": "CycloneDX",
  "specVersion": "1.6",
  "metadata": {
    "component": {
      "type": "application",
      "name": "ConwaysLifeFMX",
      "version": "1.0.0.0",
      "bom-ref": "ConwaysLifeFMX"
    }
  },
  "components": [
    {
      "type": "application",
      "name": "ConwaysLifeFMX.exe",
      "version": "1.0.0.0",
      "bom-ref": "comp-0",
      "hashes": [
        {
          "alg": "SHA-256",
          "content": "c6cc9155675bb850c911a298c5cdfdf68e588b44df59cd8a98469429193f1da7"
        },
        {
          "alg": "SHA-512",
          "content": "b9e07e9250f6b8b9900130ddb6dabefa1a247f6af2971f854820b239ed511692fa7f848ad7e296e03709c01414bb19929091abb35c38563dec74e7beb429884b"
        }
      ]
    }
  ]
}

Installation

Installer (Delphi 13)

The installer in the current release is built for Delphi 13 (RAD Studio 37.0). Run it from the Releases page. It registers the IDE plugin for Delphi 13 and copies the command line tool onto the machine as dxcomply.exe in the installer's bin folder.

The command line tool does not use the IDE. It reads a .dproj, .dpk, or .groupproj, or a Delphi 7 .dpr with its .dof and .cfg, together with a detailed MAP file. When the MAP file for the selected configuration and platform of a .dproj, .dpk, or .groupproj is missing, the tool builds that project and prints a warning that names the missing MAP file, the configuration, and the platform. --no-build stops that run with exit code 1 instead of compiling. A Delphi 7 project is not compiled. The MAP file can come from an older Delphi.

GetIt

GetIt installs the IDE plugin only. It does not include dxcomply.exe. The command line tool comes from the release ZIP, from the Delphi 13 installer, or from building src/CLI/dxcomply.dproj.

Manual

  1. Open DX.Comply.groupproj in RAD Studio.
  2. Build and install the DX.Comply.IDE design-time package.
  3. Optionally build the dxcomply console application for command-line / CI use.

Quick Start

Option A: RAD Studio IDE (recommended)

  1. Install the DX.Comply.IDE design-time package.
  2. Open your project in RAD Studio.
  3. Choose Project > DX.Comply - SBOM > Generate SBOM... from the main menu.
  4. In the confirmation dialog, select the build configuration to use for MAP generation (the active IDE configuration is pre-selected). DX.Comply compiles the project via OTA with detailed MAP output, scans all evidence, and produces the SBOM.
  5. Done. bom.json, bom.report.html, and bom.report.md are in your project folder. To send all three to one folder, set SBOM and report directory under Tools > Options > Third Party > DX.Comply. The folder is created when it does not exist. Leave Report base path empty so the reports stay next to bom.json. A report base path overrides the report files only.

Option B: Command line / CI

dxcomply.exe is not part of a GetIt install. Use the copy from the release ZIP or the installer bin folder, or build src/CLI/dxcomply.dproj, which writes dxcomply.exe. The examples assume that executable is on PATH, or that the current directory is the folder that contains it.

The CLI reads a detailed MAP file for the configuration and platform you select. The default is Release and Win32. When that MAP file is missing, the CLI builds the project (a nested MSBuild) and prints a warning that names the missing MAP file, the configuration, and the platform. Pass --config-name and --platform for the build you just made. Pass --no-build when the project is already built, including from a post-build event, so a second build is not started. A missing MAP file then stops the run with exit code 1. Build with DCC_MapFile=3, then run:

dxcomply --project=MyApp.dproj --format=cyclonedx-json --output=bom.json --no-pause

A custom configuration that is based on another one inherits that parent's values. The .dproj records the parent as CfgParent, for example ReleaseCustom based on Release (Cfg_2), and Release based on Base. DX.Comply follows that chain down to Base when it reads the output directory, DCC_MapFile, version info, and the unit search path. A value on the child configuration replaces the inherited one. An empty element clears it. $(Config) and $(Platform) in an inherited path expand to the configuration and platform you selected, so the expected MAP file is in that output directory. When the file is missing, the message names the configuration, the platform, the expected path, and the DCC_MapFile value read for that configuration.

For Android, iOS, Linux, and macOS ARM, the linker writes an LLD map instead. Enable it with Project Options > Linker > Map file ARM > On; these targets have no Detailed setting. Android names the map lib<Project>.so.map, next to lib<Project>.so.

A 32-bit Android build uses the platform name Android. The binary and the map are in Android\<Config>, for example Android\Release\libMyApp.so and Android\Release\libMyApp.so.map. --platform=Android32 is accepted and mapped to that folder. Android64 stays Android64\<Config>. $(Platform) and $(Config) in DCC_ExeOutput, DCC_BplOutput, DCC_DcpOutput, and DCC_DcuOutput are expanded. When those settings are absent and the Delphi platform folder is already on disk, that folder is the output directory. Otherwise the project directory is used.

If the MAP file is in a non-standard directory, use --map-dir:

dxcomply --project=MyApp.dproj --map-dir=build\Win32\Release --output=bom.json --no-pause

Paths in the .dproj can use $(Name) variables, for example <DCC_ExeOutput>$(MyProject_bin)</DCC_ExeOutput>. The CLI looks each one up in the process environment first, then in the user overrides from Tools > Options > Environment Variables of the detected Delphi version (HKCU\Software\Embarcadero\BDS\<version>\Environment Variables). The folders the IDE defines itself, such as $(BDS), $(BDSLIB) and $(BDSUSERDIR), are known for the detected version when neither place sets them. With --bds-version they are not read from the environment of another version. A variable that is found nowhere stays in the path, and the CLI names it in a warning. A search path entry with such a variable is left out. The same lookup applies to the entries of the IDE library path.

The detected Delphi version is the one in the BDS environment variable. When BDS is not set, the CLI uses the newest installed Delphi. The CLI always prints the version it used and where it came from. To choose another version, pass --bds-version=23.0 (or --bds-version=23) or set bdsVersion in .dxcomply.json. That version also sets $(ProductVersion) and the library paths.

A variable can hold several paths, for example MyLibs=C:\A;C:\B. As in MSBuild, the CLI expands the whole value first and then splits it on ;, so $(MyLibs) in DCC_UnitSearchPath adds two entries. A later property group can extend an earlier one with x;$(DCC_UnitSearchPath). In the first group that defines a property, $(DCC_UnitSearchPath) is the environment variable of the same name, or empty. An empty element such as <DCC_UnitSearchPath></DCC_UnitSearchPath> in a later group clears the inherited value.

To also generate the HTML/Markdown companion report from the CLI (the report ships disabled by default), pass --report. --report=html writes HTML only. --report=both writes HTML and Markdown. --report is the same as --report=both.

dxcomply --project=MyApp.dproj --report=html --no-pause
dxcomply --project=MyApp.dproj --report=both --no-pause
dxcomply --project=MyApp.dproj --report --no-pause

When building the same project for several targets, append the platform and configuration to the default filename so subsequent runs do not overwrite each other. The output file is bom.Win64.Release.json. With outputDir set, that file is written in the output directory. With --report set, the HTML report is bom.Win64.Release.report.html, next to the SBOM.

dxcomply --project=MyApp.dproj --platform=Win64 --config-name=Release --include-platform-in-output --no-pause

To take the product version from git, pass --version-from-git-tag. DX.Comply reads the newest tag reachable from the checked-out commit in the project folder (git describe --tags --abbrev=0) and removes a leading v or V, so v2.1.0 becomes 2.1.0. In library mode without --project, the first --source-dir is used. --version wins when both are set. The tag also wins over product.version in a --ci config file. When git is not installed, the folder is not a git work tree, or there is no tag, DX.Comply prints a warning and uses the version it would use without the option.

dxcomply --project=MyApp.dproj --version-from-git-tag --no-pause

Run dxcomply --help for the full list of switches. See docs/CI-Integration.md for GitHub Actions / GitLab CI examples.

Option C: Older Delphi, with a detailed MAP file

The command line tool can write an SBOM for a project that was built with an older Delphi when the build produced a detailed MAP file.

  1. In the IDE that builds the project, set Map file to Detailed.
  2. Build the project. This produces a .map file.
  3. Run the CLI against the project file. Delphi 2007 and later use a .dproj, .dpk, or .groupproj. A Delphi 7 project is the .dpr together with its .dof and .cfg, or the .dpk when a package has no .dproj. Delphi 2005 and 2006 can use the .bdsproj. If a .dproj with the same name is next to the .dpr, DX.Comply uses the .dproj, as Delphi does when it opens the project, and prints [INFO ] Using MyApp.dproj found next to MyApp.dpr.
dxcomply --project=MyApp.dpr --output=bom.json --no-pause

The CLI reads the sibling .dof and .cfg. When both files define a setting, the .dof value is used. These projects have one Win32 option set, so --platform and --config-name are not applied. The built-in Win32 and Release defaults are not reported. A platform or configuration you set on the command line or in .dxcomply.json is reported and ignored. A blank package output directory uses the registry value Package DPL Output when Delphi 7's RootDir was found, and the project directory otherwise. The .map file must sit next to the output binary. If it is missing, the CLI stops. Library units come from a Delphi 7 install when Software\Borland\Delphi\7.0 is in the registry. The scan still runs when that install is missing; pass --delphi7-root or set delphi7Root in .dxcomply.json. For a .dproj, if the MAP file is not in the output directory taken from the project, pass --map-dir.

Tip: You can automate this with a Post-Build Event in a dedicated build configuration. Create a configuration named SBOM that enables detailed MAP output and runs call sbom.bat "$(PROJECTPATH)" $(Config) $(Platform). If SBOM is based on Release and does not repeat the output directory or the map setting, those values come from Release. The batch file passes --config-name=%2 --platform=%3 and --no-build, and can pass --map-dir when the MAP file is not in the recorded output directory. Without the configuration, the CLI looks for the Release MAP file. See docs/LegacySupport.md.

See docs/LegacySupport.md for details.


What DX.Comply analyses

DX.Comply always performs a Deep-Evidence analysis based on the compiler-generated MAP file. This approach identifies linked units (PAS/DCU) with dependency resolution, SHA-256 hashes where the file could be opened, and origin classification. Whether the MAP file is generated by the IDE plugin or provided for CLI usage makes no difference to the analysis quality.

When an optional Deep-Evidence rebuild fails, the progress output names the project path, expected MAP path, working directory and command line. On failure DX.Comply also writes dxcomply-deep-evidence.log next to the project (paths and truncated build output only; never MAP contents).

Evidence source Details
Project metadata Name, version, platform, configuration, DllSuffix
MAP file analysis Extracts linked units from segment entries and line-number sections. For ARM and LLVM targets (Android, iOS, Linux, macOS ARM) it reads the LLD linker map: Delphi units from .o files, native components from .a archives
Unit resolution Resolves each unit to its source/DCU/BPL file with SHA-256 and SHA-512 hashes when the file could be opened
Origin classification Classifies each unit as Embarcadero RTL, VCL, FMX, Local project, or Third party
Build artefacts The exe, dll, or bpl named by the project, plus other .exe, .dll, .bpl, and .dcp files in that output directory. SHA-256 and SHA-512 are recorded when the file could be opened
Compiler evidence Parses .cfg and .rsp files for effective search paths and unit scopes

Output formats

DX.Comply produces one machine-readable SBOM and, if you ask for them, one or two human-readable reports next to it. The SBOM is the machine-readable file. The reports are for people.

SBOM formats (machine-readable, pick one via --format)

Format Version Description
CycloneDX JSON 1.6 Default. A common SBOM format for tooling
CycloneDX XML 1.6 XML variant for XML-based toolchains
SPDX JSON 2.3 SPDX 2.3 JSON, the SPDX default
SPDX JSON-LD 3.0.1 --format=spdx-json --spdx-version=3.0.1, or the file key "spdxVersion": "3.0.1"

The JSON formats are written as UTF-8 without a byte order mark, as RFC 8259 asks, so strict JSON parsers read them.

Human-readable companion reports (optional, opt-in via --report=<format>)

Report Description
HTML SBOM report with unit evidence, artefacts, and the result of the internal structural check. The page title and the heading start with the project name, or the product name when the project name is empty. Pass --report=html
Markdown Shorter companion for review and archival. The heading uses the same name prefix. Pass --report=markdown

--report=both (or bare --report) emits both. --report=none keeps companion reports off (the default).

Both reports open with three overview sections built from the same data as the SBOM:

  • Origin summary. Component counts per origin (Embarcadero RTL/VCL/FMX, local project, third party, component manifest libraries, DLLs, runtime packages, other files), with links to the detail sections. The total equals the number of components in the SBOM. Third-party units are also counted per supplier from the component manifest, the rest as unknown supplier. The Unknown supplier row names those units, grouped by prefix, in the same compact form as the console warning: up to ten groups, up to five names in a group, then one line for the rest. A unit outside the project folder that matches own_code_units, own_code_prefixes, or own_code_folders is the project's own code. It is not counted as an unknown supplier. A manifest row with an empty vendor still counts its units there, and those units are named on the row.
  • Licences. Components grouped by the licence declared in the SBOM, plus a group for components without licence information. Embarcadero RTL, VCL and FMX units are grouped under that origin label (Embarcadero RTL, Embarcadero VCL, Embarcadero FMX). Units marked as the project's own code are grouped under the product licence when one is set. Each component is its own row. The product is the first row of its group. The other rows are sorted by name without regard to case. When the product and the project's own binary are the same file, the file name without its extension is the product name, and those two entries are one row. The version on that row is the binary's version, or the product version from the SBOM header when the file has none. A second copy of the file stays on its own row. When the names differ, the product stays first and the binary stays in the sorted list with its own version. A product row that is not combined with a binary shows the product version from the SBOM header, or the project version when the header has none. Version and copyright are their own columns. A manifest library uses the optional copyright field of that row. The product, the built program, and units marked as the project's own code use LegalCopyright from the built binary, or the copyright key in .dxcomply.json when that key is not empty. The cell is empty when no notice is set. An EXE, DLL, or BPL shows the version already stored for the artefacts table in this table as well, including the group without licence information. That is the numeric file version, or the file date when the file has no version resource. The cell stays empty when neither was stored. A third-party file does not inherit the product version. The declared licence, the component count and the review note are shown once for the group. Copyleft licences that differ from the product licence get a review hint. The hint is not legal advice.
  • Third-party units without manifest. Third-party units that no component manifest row matches, grouped by unit prefix, with the fields they are missing. The section is left out when the manifest covers every third-party unit. The CLI and the IDE log print the same count as one line only when at least one unit is missing.

The licence table lists one component per row. In the Markdown report the declared licence, the component count and the note are filled on the first row of that licence. Later rows leave them empty:

Declared licence Components Name Version Copyright Note
Apache-2.0 2 Logger Pro 2.1.2 2020
Spring4D 2.0

In the HTML report each licence is its own section and starts collapsed. The heading shows the licence and the file count, for example MIT (42 files), and the review note when there is one. The same pattern is used for the unit lists (Embarcadero RTL, Embarcadero VCL, Embarcadero FMX, local project, and third party), the artefact list, third-party units without a manifest, and prefix matches that were not applied. The project data, the origin summary, the structural check, and the warnings stay open. Printing the page, or saving it as PDF, expands every section. The page uses the browser's own disclosure element, so the lists still open and close when JavaScript is off. The Markdown report is not collapsed.

--report-content chooses which of these parts a report contains. It changes the HTML and Markdown reports only. The SBOM always lists every component.

Value Report content
all Default. The overview sections and the unit list
overview The overview sections without the unit list
units The unit list with SHA-256 hashes, without the overview sections

Every value keeps the project data, the structural check, the artefacts with their hashes, and the warnings. --report-content does not turn reports on, so pass it together with --report. The .dxcomply.json key is report.content. In the IDE, the setting is Report content under Tools > Options > Third Party > DX.Comply.

dxcomply --project=MyApp.dproj --report=html --report-content=overview --no-pause

--report-group-by-folder adds the source folder as a second level to the section Third-party units without manifest. A prefix used by two libraries in different folders then shows as two groups, for example Jv (C:\Libs\JVCL\run) and Jv (C:\Other\Jv). The default groups by unit prefix only. The .dxcomply.json key is report.groupByFolder (true or false). In the IDE, the setting is Group third-party units without manifest by source folder under Tools > Options > Third Party > DX.Comply. A report.groupByFolder key in the .dxcomply.json next to the project overrides it.

After it writes a file, DX.Comply runs its own structural check of required fields and value shapes. That check is not a validation against an official schema.

The checked-in example is docs/examples/ConwaysLifeFMX.cdx.json, CycloneDX 1.6, from ConwaysLifeFMX in Embarcadero/RADStudio13Demos, project Object Pascal/RTL/Parallel Library/FMX/ConwaysLifeFMX.dproj, Release/Win32 with a map file. It replaces the earlier AlienInvasion example. New CycloneDX output uses specVersion 1.6. The tool's own check is structural. It is not a validation against the official schema. SPDX JSON and CycloneDX XML are not checked against official schemas inside the tool.

SPDX 3.0.1 output is built from the same data as SPDX 2.3: the same packages, IDs, manifest libraries, licences and uses graph. It uses the Core, Software and SimpleLicensing profiles. Relationships with the same source and type are grouped into one Relationship element, and its completeness carries what CycloneDX writes as compositions: the built program is incomplete, a unit whose source was read is complete, and a manifest library is complete. The IDE expert writes CycloneDX JSON only, so the SPDX version applies to the CLI.

Generation time

DX.Comply writes the generation time inside the SBOM and inside the HTML and Markdown reports. The SBOM value is UTC, YYYY-MM-DDThh:mm:ssZ (for example 2026-10-10T08:31:18Z). CycloneDX, SPDX 2.3 and SPDX 3.0.1 require that form. The HTML and Markdown reports show the same instant on the Generated At row with a UTC label, for example 2026-10-10 08:31:18 UTC. A value that is not a UTC timestamp is printed unchanged. Build mode and library mode both set the time when they generate the file. The checked-in example was written by an older version and still shows a local offset.

File Where to look
CycloneDX JSON and XML metadata.timestamp, YYYY-MM-DDThh:mm:ssZ
SPDX 2.3 JSON creationInfo.created, YYYY-MM-DDThh:mm:ssZ
SPDX 3.0.1 JSON-LD created on the CreationInfo element, YYYY-MM-DDThh:mm:ssZ
HTML and Markdown reports Generated At, in the opening table, YYYY-MM-DD hh:mm:ss UTC

That report row is part of the header, so it stays when --report-content is overview or units. The file name stays the path from --output (default bom.json). Use that option when an archive name should include a date, for example --output=bom-2026-11-05.json.

BSI TR-03183-2

BSI TR-03183-2 version 2.1.0 (20 August 2025) asks for CycloneDX 1.6 or later, or SPDX 3.0.1 or later. CycloneDX output is 1.6. SPDX output is 2.3 by default, and 3.0.1 with --spdx-version=3.0.1. DX.Comply writes the fields it can fill from the build or from values you set. Where a unit's Pascal source was read, the SBOM records a direct edge to each unit named in its interface or implementation uses clause, when that unit is already in the same SBOM. The built program depends on runtime packages, external DLLs, and the units that no other unit uses. A uses B and B uses C writes those two edges, and the program depends on A. A cycle is kept in both directions. System and SysInit stay on the program. A unit with no source stays a leaf and is marked unresolved-no-source. That is not a certification, and it is not full coverage of the technical guideline. The field list, including when a dependency set is complete, is in docs/BSI-TR-03183-2.md.

SBOM creator and header data

The SBOM creator is whoever creates the SBOM: the person, team, or organisation that runs DX.Comply for the product, which is often the manufacturer itself. It is not the tool. BSI TR-03183-2 section 5.2.1 requires the email address or URL of the SBOM creator, so you need it when you hand in the SBOM as part of the CRA technical documentation. Use an email address or an http(s) URL. A company name is rejected.

The same header also carries the product data that section 5.2.2 and CRA Annex II ask for. DX.Comply warns when one of these values is missing (see below):

Field Meaning CLI flag .dxcomply.json key IDE dialog field
SBOM creator Email or http(s) URL of whoever creates the SBOM (BSI 5.2.1) --sbom-creator=<email-or-url> sbomCreator SBOM creator
Supplier Name of the manufacturer. Falls back to CompanyName in the project version info --supplier=<name> product.supplier Supplier / manufacturer
Supplier URL Contact URL of the manufacturer. Not needed when the supplier is an email address --supplier-url=<url> product.supplierUrl Supplier URL
Licence Distribution licence as SPDX expression, for example MIT or LicenseRef-Proprietary --licence=<SPDX expression> product.licence Licence
Version Product version. Falls back to the project version info: FileVersion, or Major.Minor.Release.Build. On Android, versionName when FileVersion is absent. 16.0.0.7 keeps every digit --version=<version> product.version Product version

There are three ways to set them. All of them end up in the same SBOM fields.

  • Command line. Pass the flags above, for example dxcomply --project=MyApp.dproj [email protected] --licence=MIT.
  • .dxcomply.json. Put the keys into the .dxcomply.json in the project folder (see Configuration) and run dxcomply.exe with --ci. A relative path is checked in the current directory, then in the project folder when --project is set. An absolute --config path is used as given. A flag you pass on the command line wins over the file.
  • IDE. Choose Project > DX.Comply - SBOM > SBOM Header Data... The dialog edits the values for the active project and saves them in the .dxcomply.json next to the .dproj. Other keys in that file are kept, and an empty field removes its key. The SBOM creator is checked like on the command line, and the supplier URL must start with http:// or https://. Because the dialog writes the same keys, dxcomply.exe --ci produces the same header when it loads that file. When a generation in the IDE reports missing header data, DX.Comply offers to open the dialog right away and to generate the SBOM again after you save.

CRA and BSI header warnings

When the product header is missing data that the EU Cyber Resilience Act and BSI TR-03183-2 expect, DX.Comply prints a warning and still writes the SBOM. The process exit code stays unchanged unless --strict is set (see below). The CLI prints each line as [WARN ] without --verbose. The HTML and Markdown reports list the same lines under Warnings.

The CLI warnings name the flag and the .dxcomply.json key, as listed below. In the IDE the same warnings name the SBOM Header Data dialog instead, because the IDE has no command line.

  • No supplier. Pass --supplier=<name>, set product.supplier, or fill CompanyName in the project version info.
  • A supplier with no email address and no URL. Pass --supplier-url=<url> or set product.supplierUrl.
  • No SBOM creator email or URL. Pass --sbom-creator=<email-or-url> or set sbomCreator.
  • No product version, or the version is 0.0.0.0. Pass --version=<version>, set product.version, or set the version info in the project options.
  • The version is 1.0.0.0 and it came from the project version info (the Delphi default for a new project). Pass --version=<version>, set product.version, or update the version info in the project options.
  • No distribution licence. Pass --licence=<SPDX expression> or set product.licence. An SPDX identifier, an expression, or a name is written on the primary component the same way as a manifest library, and as licenseDeclared and licenseConcluded on the SPDX package of the built program. The CycloneDX component of the built program (the .exe, .dll or .bpl of the project) carries the same licence, and the licence overview of the reports lists it under the product licence. That file is the project output path, or a binary whose name is the project name (a numeric suffix and a lib or bpl prefix still match), including when the scan did not mark it as an application, library, or package. A neighboring binary such as bit.dll stays without that licence. A second copy of the project binary carries the same licence and stays in the SBOM. The CLI and the IDE use the same rule. Units classified as the project's own code (own_code_units, own_code_prefixes, own_code_folders) carry that same product licence in the SBOM and in the licence overview. With no product licence they stay without one. An Embarcadero unit that is also listed as own code uses the product licence when one is set, and its origin label otherwise.
  • The built exe, dll, or bpl was not found, so the SBOM has no hash for it. Build the project first, or check the output directory, --platform, and --config-name.
  • Third-party units without supplier or licence (BSI TR-03183-2 sections 5.2.2 and 6.1). A unit gets both only from a component manifest row. Units without a row are grouped by unit prefix (Jv for JvComponent, Spring for Spring.Collections), and a row that lacks vendor or licence is named on its own. Up to ten groups are listed, then one line counts the rest. Add a manifest row with vendor and licence to clear the warning.

Strict mode

--strict, or "strict": true in .dxcomply.json with --ci, makes these warnings fatal for a pipeline. The SBOM and the reports are still written. When at least one CRA/BSI warning was raised, dxcomply.exe prints them again under Strict mode: and exits with code 3. Without warnings the exit code is 0. Without --strict the exit codes do not change. --no-composition-evidence leaves the units out of the SBOM, but the check for third-party units without supplier or licence still runs on the units the build links, so --strict fails for them in that mode too.

Exit code Meaning
0 SBOM generated
1 Generation failed. --no-build (or "noBuild": true) uses this code when a build would otherwise run. The message names the MAP file, the configuration, and the platform.
2 Invalid arguments
3 SBOM generated, but --strict is set and at least one CRA/BSI warning was raised

Which binaries are listed

The SBOM lists the binary the .dproj builds (exe, dll, or bpl, including DllSuffix and the active configuration/platform output path). If that file is on disk it is hashed. Other .exe, .dll, .bpl, and .dcp files in the same output directory are listed too, for example a plugin DLL next to the exe. The project binary is attributed to the product licence in the SBOM and in the licence overview. Other binaries in that directory stay separate components and do not inherit the product licence.

Subfolders are not walked. setup\, tools\, and old build directories stay out of the SBOM, so the document is smaller than in previous versions: unrelated binaries are no longer listed. Runtime packages from the project, and DLLs referenced in source, are still listed even when those files were not found by the scan.

Pass --scan-dir=<path> (repeatable) or set scanDirs when you stage extra binaries on purpose. Each entry is scanned non-recursively. If the value contains **, subdirectories are included. A relative path is resolved from the project directory.

dxcomply --project=MyApp.dproj --scan-dir=redist --scan-dir=plugins\** --no-pause

--scan-tree (or "scanTree": true) restores the previous recursive walk of the output directory. It is deprecated and will be removed in the next release. Prefer --scan-dir.

Each listed file gets a version. The binary the project builds gets the product version from the SBOM header (or the project version when the header is empty). That includes a file with no version resource, such as an Android lib<Project>.so. A file-date stamp is not used for that file when a product version is known. CycloneDX JSON and XML, SPDX 2.3, SPDX 3.0.1, and the HTML and Markdown reports write the same value. Any other .exe, DLL, or .bpl gets the numeric file version from its own version resource (a.b.c.d). The FileVersion string, then the ProductVersion string, is used only when that fixed file info is absent. It does not inherit the product version. A file that still has no version, such as a .res, a .map, a third-party DLL with no version resource, or a third-party .dcp, gets its last modification time in UTC as an RFC 3339 timestamp, as BSI TR-03183-2 section 5.2.2 allows. Such a component carries the property net.developer-experts.dx-comply:versionSource = file-modification-time. The SBOM keeps that RFC 3339 timestamp. The HTML and Markdown reports show it as YYYY-MM-DD hh:mm:ss UTC, the same way as Generated At.

include and exclude filter the output folder scan. exclude also applies to a DLL named in source, a DLL named in the program's import table, and a runtime package, when that file was found in the output folder or under the project tree. The pattern is matched against the path relative to that folder. / and \ are the same. On Windows the match ignores letter case, and the same resolved file is listed once, so a source name such as epmcomlib.dll does not add a second row beside epMCOMLib.dll.

*.dll matches a DLL next to the exe. It does not match SharedLibs/VendorLib/Distribution/VendorLib.dll. Use SharedLibs/VendorLib/Distribution/*.dll or SharedLibs/**/*.dll for a file under the project tree. A pattern such as build/** matters when the scanned directory itself contains a build folder, which is the case for --scan-tree when the project has no output directory, and for a --scan-dir value that contains **. A DLL name that was not found on disk stays in the list. A DLL found only in a Windows system directory stays location-only: no size, version, or hash. The HTML and Markdown artefact tables show the location source (output-directory, project-tree, explicit-path, or system-directory) on every row that has one.

A folder that several projects share is described in Output folders.

Output folders

A clean setup gives every project its own output folder and assembles the install folder in the installer, so this situation does not arise. Each project then has one output directory of its own, and the SBOM lists that project's executable and the DLLs that belong next to it.

An existing setup may still build several projects into one folder, for example an install folder. DX.Comply scans that folder flat. Every .exe, .dll, .bpl, and .dcp in the folder is listed, so the SBOM of one tool also contains the executables and DLLs of the others. Subfolders are not walked. When that folder contains more than one .exe, DX.Comply writes one info line that names those executables and points at this section. The line is information. It does not change which files are listed. An include list does not hide the line, because the line names the executables in the folder.

For that existing setup, limit the scan with an include list. An include list replaces the default extensions. Add each DLL you still need with another --include:

dxcomply --project=MyTool.dproj --include=MyTool.exe --include=MyTool.dll --no-pause

--include=MyTool.exe keeps that executable and drops the other default extensions, including other executables in the same folder. Do not use --exclude=*.exe. An exclude list only removes matches. It does not replace the default extensions, so other projects' DLLs stay in the SBOM, and --exclude=*.exe also drops the executable you wanted to keep.

The same exclude list applies to an imported DLL or runtime package. SharedLibs/VendorLib/Distribution/*.dll drops that file when it was found under the project tree. It does not drop a DLL that the output folder lists as VendorLib.dll, because that row's path is the file name. *.dll drops the output-folder name, including when source imports that same file.

The same list in .dxcomply.json is the include array. dxcomply.exe reads that file when you pass --ci:

{
  "include": ["MyTool.exe", "MyTool.dll"]
}
dxcomply --project=MyTool.dproj --ci --no-pause

The same section is in CI Integration.

Library mode

A component vendor or open source project often ships source, not a binary. --library writes an SBOM for that source release instead of a build. Nothing is compiled.

dxcomply --library --project=Source\MyLib.dproj --source-dir=Source --version=2.1.0 ^
  --repo-url=https://github.com/acme/mylib --licence=MIT --supplier="Acme" ^
  --supplier-url=https://acme.example [email protected] --no-pause
  • The root component has type library, the name and version of the release, the licence, the supplier, and a package URL. --purl=<purl> sets it. Without it, a GitHub --repo-url gives pkg:github/<owner>/<repo>@<version>.
  • With --project (a .dproj, .dpk, or .dpr), the units in the .dpk contains clause, or the .dpr uses entries with an in path, are listed, with their .dfm or .fmx. The package or program file itself is listed too.
  • --source-dir=<dir> (repeatable, or sourceDirs in the config file) adds every .pas, .inc, .dpk, .dpr, .dproj, .dfm, .fmx, .res, .dcr, and .rc file under that directory. A relative path is resolved from the project directory. include and exclude filter the walk.
  • Every file is one component of type file with its relative path, the release version, SHA-256, and SHA-512. File components have no package URL.
  • A shipped .pas, .dpr, or .dpk depends on the units named in its uses clauses, when that file is also in the SBOM. The library depends on the Pascal files that no other file uses, and on every other file. A uses B and B uses C writes those two edges. CycloneDX, SPDX 2.3, and SPDX 3.0.1 write the same edges. Compositions still say whether the files were hashed and whether a requires clause was read.
  • The .dpk requires clause becomes one component per package. rtl, vcl, and fmx are framework components with the Delphi version. Other packages are listed by name.
  • CycloneDX compositions say which sets are complete. A .dpr has no requires clause, so the required packages are marked unknown.
  • The CRA and BSI header warnings run as in build mode, except the warning about a built file that was not found.
  • $(name) in units_folder and own_code_folders is expanded the same way as in build mode. See Component manifest.

--project is optional when at least one --source-dir is given. The config file keys are library, sourceDirs, product.purl, product.repoUrl, and copyright. See Library SBOM for the difference between build mode and library mode.

Configuration

Add a .dxcomply.json to your project folder and pass --ci so dxcomply.exe loads it. A relative path, including the default .dxcomply.json, is checked in the current directory first and then in the folder of --project. An absolute path is used as given.

{
  "output": "bom.json",
  "format": "cyclonedx-json",
  "platform": "Win32",
  "configName": "Release",
  "include": ["build/**"],
  "exclude": ["build/**/Debug/**", "**/*.dcu"],
  "scanDirs": ["redist"],
  "manifest": "components.json",
  "matchPrefixes": "corroborated",
  "defines": {
    "path.libs": "D:/libs"
  },
  "sbomCreator": "[email protected]",
  "copyright": "Copyright (c) 2026 Acme GmbH",
  "strict": false,
  "noBuild": false,
  "product": {
    "name": "My Application",
    "version": "2.1.0",
    "supplier": "Acme GmbH",
    "supplierUrl": "https://acme.example",
    "licence": "MIT"
  },
  "report": {
    "enabled": true,
    "format": "both",
    "content": "all",
    "groupByFolder": false
  }
}

output is the SBOM file path. A relative path is resolved from the project directory. outputDir is an optional directory for that file and for the HTML and Markdown reports. It is a separate key so an existing "output": "bom.json" stays a file path.

"outputDir": "sbom"

When outputDir is set and output is a file name with no directory of its own (including the default bom.json), the SBOM is written there. A relative outputDir is resolved from the project directory. An absolute outputDir is used as given. The directory is created when it is missing. --output=<file> is always a file path and wins over outputDir. A relative --output is still resolved from the project directory. An output value that already contains a directory, such as build/bom.json or C:\Archive\bom.json, stays that path.

--include-platform-in-output decorates the file name (bom.Win64.Release.json) and keeps the file in outputDir when that directory is set. The flag is ignored when --output is set.

report.output is an optional base path for the HTML and Markdown reports. When it is empty, the reports are written next to the SBOM. In the IDE, SBOM and report directory is the same directory as outputDir, and Report base path is the same override as report.output. An outputDir key in the .dxcomply.json next to the project wins over the IDE directory. The IDE writes bom.json into that directory. With --include-platform-in-output and no --output, the CLI decorates the file name and still writes it in that directory.

spdxVersion selects the SPDX version when format is spdx-json: 2.3 (the default) or 3.0.1 (the same value as --spdx-version). Any other value, such as 3.0, gives a warning, and SPDX 2.3 is written.

configName is the build configuration (the same value as --config-name). platform matches --platform. Use these when the project is not built as Release|Win32.

product.supplierUrl is the supplier contact URL (--supplier-url). product.licence is the distribution licence of the product (--licence): an SPDX identifier, an SPDX expression, or a name. Leave a key out to omit that field.

copyright is an optional string. A non-empty value, after trimming spaces, is the copyright notice for the product, for the project's own binary (including a second copy of that file), and for units marked by own_code_units, own_code_prefixes, or own_code_folders. It wins over LegalCopyright in the version resource of the built binary. Library mode reads the same key. When the key is missing, empty, or only spaces, that version resource is used instead. When both are empty, the files stay as they were: CycloneDX omits copyright, SPDX 2.3 writes copyrightText as NOASSERTION, SPDX 3.0.1 omits software_copyrightText, and the HTML and Markdown Copyright cells stay empty. A component manifest row still writes its own copyright on that library component. It does not replace this notice, and this notice does not replace the row. A binary that is not the project output, and a unit that is not own code, stay empty. There is no command-line flag for this key. The IDE project options and the SBOM header dialog do not edit it. A generation started from the IDE still reads LegalCopyright from the built binary. dxcomply --ci applies the key from .dxcomply.json.

scanDirs lists extra directories of binaries. Each entry is scanned non-recursively unless the value contains **. "scanTree": true restores the old recursive walk of the output directory. That switch is deprecated.

When --ci is set and the file exists, values are merged in this order:

  1. Built-in defaults (Release, Win32, cyclonedx-json, bom.json).
  2. Keys present in .dxcomply.json.
  3. Command-line options you actually pass. Those win over the file.

An option you leave off the command line does not override the file, even though that option has a default. dxcomply --ci --config-name=Debug uses Debug even when the file says "configName": "Release". dxcomply --ci with no --config-name uses the file's configName, or Release when the key is absent. The same rule applies to --platform, --format, --output, --product, --version, --supplier, --supplier-url, --licence, --sbom-creator, --report, --report-content, --report-group-by-folder, --include, --exclude, --map-dir, --manifest, --match-prefixes, --define, --strict, --no-build, --spdx-version, and --no-composition-evidence. --define is merged by name: a name you pass wins over the same name in defines, and every other name in the file stays. --no-build=false wins over "noBuild": true in the file.

If you pass --include or --exclude, that list replaces the file's list. --report overrides the file's enabled flag and format, and leaves the file's report output path as it is. --report-content overrides report.content only.

Without --ci, the file is not read. --config=<path> chooses which file --ci loads. The default path is .dxcomply.json. A relative path is checked in the current directory, then in the project folder when --project is set. An absolute path is used as given. When --ci is set and none of those paths exists, dxcomply.exe prints a warning that lists the paths it tried and continues. That warning does not change the exit code.

deepEvidence.mode may be always or when-missing (the default). when-missing builds the project when the MAP file for the selected configuration and platform is not on disk. always builds even when that file exists. The build is a nested MSBuild through build/DelphiBuildDPROJ.ps1, with DCC_MapFile=3. Before it starts, the CLI prints a warning that names the MAP file, the configuration, and the platform. The old deepEvidence.build boolean is ignored. "noBuild": true, or --no-build, refuses that build and exits with code 1. The message names the same MAP file, configuration, and platform. With --ci, the flag wins over noBuild in the file. A Delphi 7 project is not compiled.

Component manifest

An optional components file adds one library component for each matched row and fills in supplier, licence, version, type, package URL, and an optional CPE. The file shape is DX.Comply's component manifest (see the sample and the field notes below). A sample is in docs/samples/components.sample.json.

schema_version "1.0" is the version of this DX.Comply manifest. It is not an industry standard. The SBOM itself is CycloneDX 1.6 or SPDX. A missing schema_version, a value that is not a string, or any string other than "1.0", is a warning, and the file is still read.

dxcomply --project=MyApp.dproj --manifest=components.json --no-pause

The same path can live in .dxcomply.json as "manifest". A relative path is resolved from the project directory. Without --ci, the CLI does not read .dxcomply.json, so pass --manifest on the command line. With --ci, the file supplies manifest unless you also pass --manifest. The flag wins. The IDE expert reads the same key from the project folder and has no extra options field.

The units come from the MAP file, including a Delphi 7 .dpr with its .dof and .cfg. Each row matches those units by units_exact, units_prefix, and/or units_folder (names are case-insensitive). The unit name is tried as written and again with one known scope prefix removed (System., Vcl., Winapi., and the other Delphi scopes).

units_folder is an array, the same shape as units_exact, units_prefix, and units_exclude. One row can name more than one package folder. own_code_folders is the same kind of list for your own units, next to own_code_units and own_code_prefixes. A folder stands for every unit whose source file is in that folder or in a folder under it. There is no switch to turn that off. A neighboring folder is not included: C:\Libs\JVCL does not match C:\Libs\JVCL2\Unit.pas. Comparison ignores case, and / and \ are the same. A relative path is resolved from the directory of the components file, not from the project directory, and .. is applied. A folder that is not on disk produces a warning, and the rule is still applied. A path that is a file is not applied.

$(name) in units_folder and own_code_folders is replaced before that resolution. A relative result still starts from the components file directory. Set the name with --define:name=value, --define=name=value, or --define name=value. The flag is repeatable. A value may contain spaces and backslashes. Quote it when the shell needs that. Names ignore case, and the last value of a name wins. The same names are the defines object in .dxcomply.json (each value is a string) and Manifest path variables in the IDE options, one name=value per line. With --ci, a name on the command line wins over the same name in the file, and other names in the file stay. In the IDE, the options are the base and a defines name in the project file wins for that name. $(env.NAME) reads environment variable NAME only when no definition of the full name env.NAME exists. A definition wins. $(NAME) does not read the environment. $$ is one dollar sign, so $$(name) is the characters $(name) and does not require a definition. An unknown name fails the run (exit code 1). The message names the variable, the row (Component[0] "Vendor Pack", or Manifest for own_code_folders), and the field. A bad --define is an invalid argument (exit code 2). The log line starts with Info: and names each variable that was used, its value, whether it came from a definition or the environment, the field, and the row. The SBOM and the HTML and Markdown reports contain the expanded path.

Folder rules need the unit's source path. The MAP file names the unit. DX.Comply uses the .pas it finds, including when the linked file is a DCU in the output directory and the .pas is on the search path. A DCU that lives in the package folder itself (not in the project output directory) is matched by that path when no .pas was found. A unit that stays a name with no file, and a DCU in the output directory whose .pas was not found, are not matched by a folder. units_exact and own_code_units still match those units by name. A units_prefix matches a name-only unit only when the prefix rule below allows that prefix. When at least one local project unit stays without a licence and was not matched as own code or as a library, the log writes one info line naming own_code_folders for the product licence.

The first hit wins, in this order:

  1. units_exact (the first matching row). units_exclude does not apply to an exact name.
  2. own_code_units.
  3. The longest matching folder, from units_folder and own_code_folders together. units_exclude keeps a unit out of that row's folders. On a tie the first component row wins, and a component folder wins over an own-code folder of the same length. A folder on an Embarcadero product path still matches. The log names the unit, the row and the origin.
  4. units_prefix, when the prefix rule allows it. A prefix matches when the unit name starts with it. A trailing dot is not required, so FMX.TMSFNC matches FMX.TMSFNCButton and FMX.TMSFNC.Types. Among prefixes the longest one wins, whatever the order of the rows, so a row with Neslib.Xml gets Neslib.Xml.Reader even when a row with Neslib comes first. When two rows use the same prefix, the units go to the first row in the file. The log names both rows and that prefix. Give the other row units_exact, units_folder, or a longer units_prefix. Matching uses the unit name from the MAP file. That still works when the file on disk is only the part after the last dot, so the library is listed even when those units are classified as local project code.
  5. own_code_prefixes. A short own-code prefix still assigns. It does not attach a third-party supplier.

match.prefixes in the components file selects the prefix rule. Leave it out, or set "match": {"prefixes": "corroborated"}, for the default. A prefix assigns a library only when it contains a dot, such as FMX.TMSFNC or Neslib.Xml, and the unit file is not in an Embarcadero product path. A prefix with no dot, such as Adv, TMS, DEC, GDIP or HTML, does not assign. The unit keeps the origin from its path. The HTML and Markdown reports list it under Prefix matches not applied, with the unit, the prefix, the row and the origin that was kept. The log line names the same four fields. Prefer units_folder for the package directory, or units_exact for the unit name, instead of a short prefix.

"match": {"prefixes": "legacy"} is the one-release switch. A prefix with no dot still assigns when the file is outside an Embarcadero product path. It never reassigns a unit in a product shipped path. The same switch is --match-prefixes=legacy (also --match.prefixes) and the .dxcomply.json key matchPrefixes. The command line wins over the config file, and the config file wins over the components file. After this release, corroborated is the rule.

A product shipped path is a product source tree under the Delphi install (source\rtl, source\vcl, source\fmx, source\data, and the other source trees shipped in that folder) or a product lib folder (lib\<platform>\release, lib\<platform>\debug, a DCU in lib\<platform>, or a DCU placed directly in lib). Extras and a GetIt CatalogRepository are not product paths. units_exact and units_folder still assign a unit in a product path. A prefix does not, in either mode. When the install root is unknown, a product path cannot be detected, so that check does not run.

units_exclude lists unit names that the prefixes and folders of that row do not match. It does not apply to units_exact. For a unit with a Delphi scope, write the name either way: Vcl.Skia and Skia both keep the unit Vcl.Skia out of a row with the prefix Skia. A prefix shorter than 3 characters gets a warning. In corroborated mode it is not applied. In legacy mode it is still applied outside a product path.

The origin summary lists a supplier for every manifest row that matched a unit and names a vendor, including when those units are classified as local project code.

own_code_units, own_code_prefixes, and own_code_folders mark the project's own units. Those units stay in the evidence. They are not dropped, and they are not attributed to a third-party library. A file that lives outside the project folder is still own code when it matches one of those rules, so it is not listed as an unknown supplier and it is not one of the third-party units without a manifest. When product.licence is set, they carry that licence in the SBOM and in the reports. With no product licence they stay without one. When a copyright notice is known, they carry that notice as well. See copyright under Configuration. Unmatched units stay as they are: one component each, linked from the program that was built.

A matched unit stays as its own evidence component (hash, origin). The SBOM adds one library component for the row (name, version, type, supplier and author from vendor, optional vendor_url, copyright when the row sets it, and cpe when the row sets a CPE). The program that was built depends on that library, and the library depends on the matched units. Other binaries stay linked from that program. This is written for CycloneDX JSON, CycloneDX XML, SPDX 2.3 JSON, and SPDX 3.0.1 JSON-LD. dxcomply.exe --library uses the same writers. A shipped .pas, .dpr, or .dpk that matches a row is linked from that library component.

licence (British spelling) is an SPDX identifier such as MIT (written as license.id), an SPDX expression such as MPL-1.1 OR LGPL-2.1-or-later (written as expression), or any other text such as Commercial or Proprietary (written as license.name). A value that already starts with LicenseRef- is kept as written, in any letter case. SPDX sanitizes only the characters after that prefix, so LicenseRef-Freeware with source becomes LicenseRef-Freeware-with-source and is not written as LicenseRef-LicenseRef-.... CycloneDX 1.6 license.id is the SPDX licence list, which does not include LicenseRef, so that value is written as license.name. LicenseRef- does not raise the unrecognised-identifier warning. Commercial stays a name and does not warn. Other text, such as Proprietary, still warns and becomes LicenseRef- plus a sanitized id. licence_url is optional and is omitted for expressions. license and license_url are accepted as aliases. type is library, framework, or application.

If vendor is an email address, that address is also written as the supplier contact. vendor_url is the URL. A company name is not rewritten into an email.

There is no required purl field. When it is absent, DX.Comply writes pkg:delphi/<name>@<version> with the name and version percent-encoded. pkg:delphi is not a registered package-url type. Scanned files have no package URL. Set purl on a row when you want a different locator.

copyright is an optional string on each component. Use a year, such as "2020", or any other copyright text. It is not a timestamp. Leave it out when you have nothing to record; the row stays valid. DX.Comply stores the text and does not use it to match units. When the text is set, it is written on the library component that row describes: CycloneDX JSON and XML copyright, SPDX 2.3 package copyrightText, and SPDX 3.0.1 software_copyrightText on the software_Package (the Software profile property copyrightText). A row that omits it, or sets only spaces, leaves those files as they are. CycloneDX has no copyright field, SPDX 2.3 keeps copyrightText as NOASSERTION, and SPDX 3.0.1 omits software_copyrightText. The HTML and Markdown licence summary shows the same text, and leaves the Copyright cell empty when the field is absent. The sample sets it on OmniThreadLibrary and leaves it off the other rows, so a report that matches those rows shows 2020 for OmniThreadLibrary and an empty Copyright cell for Spring4D, SynEdit and TMS VCL UI Pack. The OmniThreadLibrary component in the SBOM carries 2020, and the other library components do not. That row text is not copied onto the product, the built program, or own-code units. Those use the notice described under Configuration.

cpe is an optional string on each component. Set it when you already know the identifier. DX.Comply does not look one up and does not build one from the name or the version. Two forms are accepted, because the CycloneDX 1.6 schema accepts both. A CPE 2.3 formatted string looks like cpe:2.3:a:openssl:openssl:3.0.2:*:*:*:*:*:*:*. A CPE 2.2 URI looks like cpe:/a:openssl:openssl:3.0.2. Anything else, including a non-string, is a warning. That value is left out and the SBOM is still written. A blank value is the same as leaving the field out. When the value is accepted, it is written on the library component that row describes: CycloneDX JSON and XML cpe (after copyright, before purl), an SPDX 2.3 externalRefs entry with referenceCategory SECURITY and referenceType cpe23Type or cpe22Type, and an SPDX 3.0.1 externalIdentifier of type cpe23 or cpe22. A row that omits it adds none of those fields. The sample sets a CPE 2.3 string on OpenSSL and leaves it off the other rows.

A file that cannot be read (missing, not JSON, or not an object or array) stops generation. The message names the file and the reason. Invalid JSON also names the line and the position. Missing fields, a short prefix, or an unrecognised licence name are warnings, and the SBOM is still written. A row with match rules that hits no unit is reported as a warning. The root supplier is the application publisher. It is used only when --supplier and product.supplier are both empty. Its URL is copied only when --supplier-url and product.supplierUrl are also empty.

Libraries that ship no metadata

Most Delphi libraries ship without an SBOM or a components file. You write the rows for them yourself, in your own components file. That file belongs to your product and is versioned with it.

  1. Run DX.Comply once with --report=html and open the report. The section Third-party units without manifest lists the units without a row, grouped by unit prefix. The Unknown supplier row in the origin summary names the same kind of units, grouped by prefix.
  2. Add one row per library to your components file: name, version, vendor, licence, and units_folder for the package directory or units_exact for the unit names. Prefer those over a short units_prefix. A prefix with no dot is not applied. A prefix that contains a dot still matches the start of the unit name, except on an Embarcadero product path. Take the licence and the version from the library's licence file, its readme, or your purchase records.
  3. Run DX.Comply again with --manifest=<file> (or the manifest key in .dxcomply.json). The rows you added leave the list, and the units get supplier and licence in the SBOM. A row that matches no unit is reported as a warning. Prefix matches not applied names a prefix that matched and was not used. Replace that prefix with units_folder or units_exact. For this release, --match-prefixes=legacy still applies a prefix with no dot outside an Embarcadero product path.

Repeat until the list is empty, or until only units remain whose supplier you cannot name. With --strict, a CI build fails while that list is not empty.


The EU Cyber Resilience Act: what you need to know

Regulation (EU) 2024/2847 entered into force on 10 December 2024. If you place software on the EU market, you must:

  • Document software components in your product (SBOM)
  • Manage and disclose vulnerabilities
  • Provide security updates throughout the support lifecycle
Date Milestone
11 Sep 2026 Vulnerability and incident reporting obligations begin
11 Dec 2027 Full CRA compliance mandatory for all products on the EU market

What counts as a valid SBOM?

The CRA requires (Annex I, Part II):

  • A commonly used, machine-readable format. The CRA names no format and no version. The versions come from BSI TR-03183-2 version 2.1.0: CycloneDX 1.6 or later, or SPDX 3.0.1 or later. DX.Comply writes CycloneDX 1.6, SPDX 3.0.1, and SPDX 2.3 for tools that still need it.
  • Coverage of at least top-level dependencies
  • One SBOM per software version

You do NOT submit the SBOM anywhere. You generate it per release, archive it, and make it available only if a market surveillance authority formally requests it.

DX.Comply lists the units, packages and DLL names it can see from the build, with hashes where it could open the file. A components file can fill supplier, version and licence on the libraries it matches. Units that do not match a row still have none of those. You still need the rest of the CRA technical file: the vulnerability handling process, the disclosure policy, how updates are delivered, and the risk assessment. Vulnerability management and incident reporting are outside the scope of this tool.


What to do with your SBOM

  1. Archive it with each release. Store bom.json alongside your release artefacts.
  2. Keep it for at least 10 years after the product is placed on the market, or for the support period if that is longer. CRA Article 13(13) sets this for the technical documentation, and the SBOM is part of it.
  3. Be ready to hand it over if asked. Market surveillance authorities can request it (Article 52).
  4. Sharing with customers is optional. That choice is yours (Annex II, Part I, point 9).

FAQ

Why does Generate SBOM in the IDE compile my project every time?

The IDE always runs a Deep-Evidence build so the MAP file matches the sources you have open now. A stale MAP would describe an older link set. The CLI builds a .dproj, .dpk, or .groupproj when the MAP file for the selected configuration and platform is missing, or when deepEvidence.mode is always. It prints a warning that names that MAP file, the configuration, and the platform. Pass --no-build, or set "noBuild": true in .dxcomply.json, when the project is already built. The run then stops with exit code 1 instead of starting MSBuild. Without --config-name the CLI looks for the Release MAP file. A Delphi 7 project is not compiled.

How do I point a manifest folder at a path that differs per machine?

Put $(path.libs) in units_folder or own_code_folders. Pass --define:path.libs=D:\libs, or set "defines": {"path.libs": "D:/libs"} in .dxcomply.json and run with --ci. The IDE options page has the same list. A name on the command line wins over the file, and the file wins over the IDE options for that name. Other names stay. $(env.LIBS) reads the environment variable LIBS when env.LIBS is not itself defined. $(LIBS) does not. $$(path.libs) stays as the characters $(path.libs). An unknown name stops the run and names the variable, the row, and the field. Library mode expands the same fields. See Component manifest.

When should I use --library instead of a normal product SBOM?

Use --library when you ship source (a component set, GetIt package, or GitHub release), not a binary of yours. It needs no compile and no MAP. It hashes the source units you point at. That is a source inventory for the release. It is not proof that a shipped DLL or BPL matches those bytes. Product apps that link the library still generate their own build-mode SBOM. See Library mode and Library SBOM.

We only have old precompiled DLLs (for example Delphi 2007). Source exists, but there is no MAP and no working build. What goes into the SBOM?

For each app that loads those DLLs, the product SBOM still lists the DLL binaries it finds (path, size, hash, PE version when present). That is the shipped artefact. To describe composition inside a DLL, either rebuild it once with a detailed MAP and run build mode, or run --library on the DLL's sources. Third-party code inside those sources still needs a separate declaration (vendor SBOM, or your component manifest).

Is a GetIt "has SBOM" flag enough for the CRA?

No. The manufacturer archives a machine-readable SBOM per product version with the release. A marketplace flag alone is not the technical documentation. Prefer attaching the SBOM to the release (and keeping a hash registry if you publish many artefacts). See What to do with your SBOM.

Where is the time an SBOM was generated?

Inside the file. See Generation time. CycloneDX JSON and XML use metadata.timestamp. SPDX 2.3 uses creationInfo.created. SPDX 3.0.1 uses created on the CreationInfo element. The HTML and Markdown reports show that time on Generated At with a UTC label. Pass --output when the archive file name should include a date, for example --output=bom-2026-11-05.json.

Which SBOM format should I pick?

CycloneDX 1.6 JSON, the default, unless your customer or toolchain asks for something else. It meets the TR-03183-2 minimum and carries dependency completeness. Pick --format=spdx-json --spdx-version=3.0.1 when SPDX is required. SPDX 2.3 is below the TR-03183-2 minimum. Use it only for tools that cannot read SPDX 3.

The HTML report is too long. Can I leave out the unit list?

Yes. --report-content=overview writes the origin summary, suppliers, and licences without the list of all units. --report-content=units writes only the unit list with SHA-256 hashes. The default all writes both. The SBOM always stays complete. Long lists in the HTML report also start collapsed, with the file or unit count in the heading. Open the one you need. A printed copy and a PDF export show every section expanded. See Human-readable companion reports.

A library I use has no SBOM and no component manifest. How do I add its supplier and licence?

Add a row for it to your own components file and pass it with --manifest. The report section Third-party units without manifest shows which units still need a row. See Libraries that ship no metadata.

Why do RTL, VCL and FMX units show an Embarcadero licence?

They belong to the Delphi product. The licence overview and the SBOM use the origin label DX.Comply already records: Embarcadero RTL, Embarcadero VCL, or Embarcadero FMX. CycloneDX writes that label as license.name. SPDX 2.3 and SPDX 3.0.1 write LicenseRef-Embarcadero-RTL (and the same form for VCL and FMX) and keep the label as the extracted licence text. A third-party unit is not given that licence.

Do my own units get a licence?

Units named by own_code_units, own_code_prefixes, or own_code_folders belong to the product. When product.licence (or --licence) is set, they inherit it in the HTML and Markdown reports and in CycloneDX, SPDX 2.3 and SPDX 3.0.1. When it is not set, they stay without licence information. An Embarcadero unit that you also list as own code uses the product licence when one is set, and the origin label otherwise. They carry the same copyright notice as the product when one is known: LegalCopyright from the built binary, or the copyright key in .dxcomply.json when that key is not empty. When neither is set, the Copyright cell stays empty and SPDX 2.3 keeps copyrightText as NOASSERTION.

Several HTML reports are open. How do I tell them apart?

The HTML page title and the heading, and the Markdown heading, start with the project name. When the project name is empty, the product name is used. With neither name the heading stays DX.Comply SBOM Report.

Do I have to list every unit in the component manifest?

No. own_code_folders names folders of your own units. units_folder on a row names the folder of a third-party package, including its subfolders. Prefer units_folder or units_exact over a short units_prefix. A unit known only by its name, with no source file found, is still matched by units_exact, by a units_prefix that contains a dot, by own_code_units, or by own_code_prefixes. A prefix with no dot does not assign that name. See Component manifest.

Two component rows use the same units_prefix. Which units go where?

The units go to the first row in the file. The log names both rows and the shared prefix. Give the other row units_exact, units_folder, or a longer units_prefix. A prefix does not need a trailing dot: FMX.TMSFNC matches FMX.TMSFNCButton and FMX.TMSFNC.Types. A prefix with no dot does not assign unless match.prefixes is legacy. A row that still matches no unit is reported as matched no units. The row that does match is listed in the report even when those units are classified as local project code.

A units_prefix used to assign my units, and now it does not. What should I change?

Use units_folder for the package directory, or units_exact for the unit names. A prefix with no dot is not applied on its own. The report section Prefix matches not applied names the unit, the prefix, the row and the origin that was kept. The log line names the same four fields. A prefix never reassigns a unit in an Embarcadero product path, including lib\<platform>\release. Library mode uses the same rule when the project scan has an install root, so a shipped source file under that path is not assigned by a prefix. For this release, match.prefixes set to legacy in the components file, matchPrefixes in .dxcomply.json, or --match-prefixes=legacy still applies a prefix with no dot outside a product path. A dotted prefix such as Neslib.Xml still assigns when the file is not in a product path.

The Android map or libMyApp.so is not found

A 32-bit Android project writes libMyApp.so and libMyApp.so.map under Android\<Config>, for example Android\Release. The platform name is Android. --platform=Android32 is accepted and uses that folder. Android64 uses Android64\<Config>. DCC_ExeOutput and the other output paths in the .dproj are used when they are set, including $(Platform) and $(Config). When they are not set and that platform folder exists, it is used. Otherwise the project directory is used. If the files are somewhere else, pass --map-dir.

The Android version in the SBOM is 1.0.0.0 or 1.0.0.7

Android stores the version as versionName in VerInfo_Keys, in the Base_Android or Cfg_N_Android property group. Android64 uses Base_Android64 and Cfg_N_Android64. DX.Comply reads versionName when FileVersion is missing, and it keeps every component, so 16.0.0.7 stays 16.0.0.7. A Windows project still uses FileVersion, or Major.Minor.Release.Build.

Library SBOM vs product SBOM: which one do I keep?

Keep both when both apply. The library author archives the --library SBOM for each source release. Each product manufacturer archives the build-mode SBOM for each shipped app version. Downstream SBOMs do not replace the manufacturer's archive duty.


Requirements

Mode Requirement
IDE plugin Release installer: Delphi 13. The design-time package is the IDE integration.
CLI tool Windows executable from the release ZIP, the installer bin folder, or a build of src/CLI/dxcomply.dproj. GetIt does not include it. Needs a .dproj, .dpk, .groupproj, or a Delphi 7 .dpr with .dof and .cfg, and a detailed MAP file. When that MAP file is missing for the selected configuration and platform, a .dproj, .dpk, or .groupproj is built with MSBuild. --no-build stops that run with exit code 1. A Delphi 7 project is not compiled.
Platform Windows build host

No internet connection is required. All processing is local.


Documentation

Document Description
Architecture Engine pipeline, component overview, unit origin classification
Output folders One output folder per project, and --include for a shared folder
CI Integration Command-line usage, GitHub Actions examples, CI configuration, output folders
Legacy Support MAP files from older Delphi versions, and which project files the CLI accepts
Library SBOM Build mode and library mode, and what each SBOM contains
FAQ Common questions on library mode, old DLLs, Android output and version, generation time, and CRA archive
Example SBOM (JSON) CycloneDX 1.6 from ConwaysLifeFMX in RADStudio13Demos, Release/Win32 with a map file
Component manifest sample Optional components.json (supplier, licence, version, type, package URL, copyright, CPE, folders)

License

Open source under the MIT License. Copyright 2026 Olaf Monien.


Official sources

Source Link
Regulation (EU) 2024/2847: full text EUR-Lex
EC Digital Strategy: CRA overview EC
ENISA: SBOM Landscape Analysis ENISA
BSI TR-03183-2: Software Bill of Materials BSI

DX.Comply is developed by Olaf Monien as part of the DX component suite.

Ähnliche Projekte entdecken

Wird geladen…