diff --git a/packer/README.md b/packer/README.md index 591e6da..1f22a3d 100644 --- a/packer/README.md +++ b/packer/README.md @@ -27,9 +27,19 @@ assets = [ ] [package.metadata.omrf.cmake] - +# Configures the namespace part of CMake target. +# This property is optional. The default value is extracted from the name of target Rust project. +namespace_name = "foobar" +# Configures the target part of CMake target. +# This property is optional. The default value is extracted from the name of target Rust project. +target_name = "foobar" [package.metadata.omrf.pkgconfig] - +# Configures the human-readable name of this package. +# This property is optional. The default value is extracted from the name of target Rust project. +name = "Foo Bar" +# Configures the brief description of this package. +# This property is optional. The default value is extracted from the description of target Rust project. +name = "a brown fox jumps over a lazy dog." ``` diff --git a/packer/src/sarasacw_omrf_packer/archiver.py b/packer/src/sarasacw_omrf_packer/archiver.py index 7d14c01..407cd12 100644 --- a/packer/src/sarasacw_omrf_packer/archiver.py +++ b/packer/src/sarasacw_omrf_packer/archiver.py @@ -42,6 +42,14 @@ class Archiver: else: self.__dist_zip = None + def push_dir(self, arcname: Path) -> None: + if self.__dist_dir is not None: + target_filepath = self.__dist_dir / arcname + target_filepath.parent.mkdir(parents=True, exist_ok=True) + + if self.__dist_zip is not None: + self.__dist_zip.mkdir(str(arcname)) + def push_file(self, filepath: Path, arcname: Path) -> None: """Mirror an existing file into both sinks.