APT
or RPM
Pkg
DMG
App Installer
Define & Structure the 3 name-spaces without name clashing
Unit name
Crate short name
file short name
Pkg short name
must be uniqueOwner
- Pkg1
- Pkg2
- Component
Note: Owner = Copyright owner (author ?)
Owner
.Pkg1
.Pkg2
.Component
(API Unit)Owner
.Pkg1
.Pkg2
.Component
.*
Owner
.Pkg1
.Pkg2
.Component_*
(for high-level dependencies)Owner
_ Pkg1
_ Pkg2
_ Component
_ *
(main public programs)Owner
_ Pkg1
_ Pkg2
_ Component
ownepkg1pkg2comp
alire.toml
= : owner
_ pkg1
_ pkg2
_ component
owner
_ pkg1
_ pkg2
_ component
.gpr
pkg1
/ pkg2
/ ownepkg1pkg2comp
_Authors
/ owner
_Authors
/ ownerpkg1
_Authors
/ ownerpkg1pkg2
ownepkg1pkg2comp
How to hash the short name :
$ touch owner_pkg1_pkg2_component
$ gnatkr owner_pkg1_pkg2_component 16
> ownepkg1pkg2comp
Project artefacts are stored in
pkg1
/ ownepkg1pkg2comp
Recommanded dir-folder name =
component short name =
ownepkg1pkg2comp
./src
./tests
./bld
./build
./.
alire.toml
Makefile
owner_pkg1_pkg2_component.gpr
./doc
./resources
./LICENSES
README.md
NOTICE.md
./src/lib
./src/main
./tests/main
./tests/data
./src/lib/sub/**
./src/main/sub/**
./tests/main/sub/**
./bld
(no Alire ./config
)So we have to set: [WIP]
[configuration]
auto_gpr_with = false
output_dir = "bld"
[configuration]
auto_gpr_with = false
output_dir = "bld"
EEC GDPR compliant