comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <stephen_leake@stephe-leake.org>
Subject: Re: Suggestion about best practice with .gpr files
Date: Sun, 30 May 2021 10:46:37 -0700	[thread overview]
Message-ID: <86a6oci076.fsf@stephe-leake.org> (raw)
In-Reply-To: f6b41bac-39d2-441d-a89d-3485bf3fa99bn@googlegroups.com

mockturtle <framefritti@gmail.com> writes:

> foolib/
> ...|
> ...+-- foolib.gpr
> ...+-- src/
> ...+-- obj/
> ...+-- test/
> ..........|
> ..........+--foolib_test.gpr
> ..........+--obj/
> ..........+--src/
> ................|
> ...............+-- foo_test_1.adb
> ...............+-- foo_test_2.adb
> ...............+-- foo_test_3.adb
>
> I hope you got the idea. 

I do something similar; I put both foolib_test.gpr and foolib.gpr in a
build directory with a Makefile, and they share an obj directory.

> Do you have any suggestion about a different organization? Do there
> exist some kind of "best practice" for this?

Certainly hiding the test code from the client is essential; other than
that I don't think it matters much.

-- 
-- Stephe

  reply	other threads:[~2021-05-30 17:46 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 [this message]
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
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