@@ -18,7 +18,7 @@ It automates two tasks:
18
18
The version extraction helps to get the version in the application and SBOM right.
19
19
The SBOM contains the files you mention explicitly, just like you mention what to ``install() `` in CMake.
20
20
21
- To integrate this library in your project, see `below <sec_how_to_use_> ` for basic instructions or the `example `_ for a complete example project.
21
+ To integrate this library in your project, see `below <sec_how_to_use _>`_ for basic instructions or the `example `_ for a complete example project.
22
22
23
23
.. _SPDX : https://spdx.github.io/spdx-spec/v2.3/
24
24
.. _NTIA : http://ntia.gov/SBOM
@@ -36,6 +36,9 @@ To integrate this library in your project, see `below <sec_how_to_use_>` for bas
36
36
- `sbom_generate() <sec_sbom_generate _>`_
37
37
- `sbom_add() <sec_sbom_add _>`_
38
38
- `sbom_finalize() <sec_sbom_finalize _>`_
39
+ - `REUSE compliance <sec_reuse _>`_
40
+ - `reuse_lint() <sec_reuse_lint _>`_
41
+ - `reuse_spdx() <sec_reuse_spdx _>`_
39
42
- `How to use <sec_how_to_use _>`_
40
43
- `Testing <sec_testing _>`_
41
44
- `License <sec_license _>`_
@@ -390,6 +393,69 @@ Finalize the SBOM and verify its contents and/or format.
390
393
391
394
392
395
396
+ .. _sec_reuse :
397
+
398
+ |
399
+
400
+ REUSE
401
+ -----
402
+
403
+ This section lists a few functions that help with `REUSE `_ compliance of your repository.
404
+
405
+ .. _sec_reuse_lint :
406
+
407
+ |
408
+
409
+ ``reuse_lint ``
410
+ ``````````````
411
+
412
+ Perform checking for `REUSE `_ compliance of the project repository source files.
413
+
414
+ .. code :: cmake
415
+
416
+ reuse_lint(
417
+ [TARGET <target>]
418
+ [CONFIG] [ALL]
419
+ )
420
+
421
+ ``TARGET ``
422
+ Target name to run the linter.
423
+ Defaults to ``${PROJECT_NAME}-reuse-lint `` when omitted.
424
+
425
+ ``CONFIG ``
426
+ Run the linting during CMake configure instead of during build.
427
+ When this flag is set, the target is still created too.
428
+
429
+ ``ALL ``
430
+ Add a dependency from ``all `` to the ``TARGET ``.
431
+
432
+
433
+
434
+ .. _sec_reuse_spdx :
435
+
436
+ |
437
+
438
+ ``reuse_spdx ``
439
+ ``````````````
440
+
441
+ Export an SPDX file based on the source code of the project with copyright and license information.
442
+
443
+ .. code :: cmake
444
+
445
+ reuse_spdx(
446
+ [TARGET <target>]
447
+ [OUTPUT <file>]
448
+ )
449
+
450
+ ``TARGET ``
451
+ Target name that executes the exporter.
452
+ Defaults to ``${PROJECT_NAME}-reuse-spdx ``.
453
+
454
+ ``OUTPUT ``
455
+ The output SPDX file.
456
+
457
+
458
+
393
459
.. _sec_how_to_use :
394
460
395
461
|
0 commit comments