comp.lang.ada
 help / color / mirror / Atom feed
From: Maxim Reznik <reznikmm@gmail.com>
Subject: Re: Suggestion about best practice with .gpr files
Date: Mon, 31 May 2021 08:02:04 -0700 (PDT)	[thread overview]
Message-ID: <966aa783-a803-46ea-bdac-3092bc8ad418n@googlegroups.com> (raw)
In-Reply-To: <f6b41bac-39d2-441d-a89d-3485bf3fa99bn@googlegroups.com>

We use a dedicated folder `gnat/` to keep project files there. This has several a advantages:

* you doesn't pollute the root directory with extra files (as you see you need at least two project file - for library and for tests)
* a user is able to observe all project files in one place and pick up needed one
* if you tend to use the repo as mono-repo (or if you split the library into two), you will get much more project files (see Matreshka or VSS). So keep them in order is important
* people who don't use project files don't see them :D

The layout becomes

foolib/
...|
...+-- Makefile
...+--alire.toml
...+-- docs
...+-- gnat
...|
......+-- foo.gpr
......+-- foo_tests.gpr
...+-- source
...+-- testsuite

To simplify a new repository creation I made a template repo and keep common files there. Take a look, perhaps you find something useful there.

https://github.com/reznikmm/matreshka
https://github.com/AdaCore/VSS
https://github.com/reznikmm/template

Best regards,

  parent reply	other threads:[~2021-05-31 15:02 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-30 17:37 Suggestion about best practice with .gpr files mockturtle
2021-05-30 17:46 ` Stephen Leake
2021-05-30 19:31   ` Simon Wright
2021-05-30 17:56 ` Dmitry A. Kazakov
2021-05-30 20:22 ` Jeffrey R. Carter
2021-05-31  7:42   ` AdaMagica
2021-05-31 16:59     ` Stephen Leake
2021-06-01  9:33       ` Jeffrey R. Carter
2021-06-04  7:48         ` Björn Lundin
2021-06-04  8:14           ` Dmitry A. Kazakov
2021-06-04  9:18           ` Jeffrey R. Carter
2021-06-04  9:47             ` Björn Lundin
2021-06-04 12:52           ` Simon Wright
2021-06-04 14:53             ` Björn Lundin
2021-06-01 14:38   ` Shark8
2021-05-31 15:02 ` Maxim Reznik [this message]
2021-05-31 17:07   ` Stephen Leake
2021-05-31 20:14 ` Per Sandberg
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox