comp.lang.ada
 help / color / mirror / Atom feed
From: "Rego, P." <pvrego@gmail.com>
Subject: Re: Make with Ada 2019 : DogRobot
Date: Sun, 17 Feb 2019 14:17:22 -0800 (PST)
Date: 2019-02-17T14:17:22-08:00	[thread overview]
Message-ID: <5e098363-2b24-47c0-be62-ad6fece18197@googlegroups.com> (raw)
In-Reply-To: <947d15f3-4dd9-422b-bfad-20d1dad57e14@googlegroups.com>

> You are a hero participation in the competiton. I have givven you a star marking on GitHub.

Thank you very much!! 

> My suggestions are pure project organisational:
> 
> Use GPR and split the sources into four source files:
> source-lib    - library project for core etc.
> source         - project for the application
> source-test - project for the test application
> source-util  - library project - reusabel components

Good you talk in this point, I've seen a quite number of styles for source directories, but for my home projects I've been using the suggestions from GPS. But do you know if there is some consensus regarding this? 

But also like your typing (source instead of src), in a more complex project I would probably use something like that, eg, linking the project root with svn:externals or git:externals property to include some folders for source-lib or source-util.

> Four GPR project files using the four source directories:
> dogbot_lib.gpr
> dogbot.gpr
> dogbot_test.gpr
> dogbot_util.gpr

In this case, to segregate those folders with different projects I don't see many advantages, unless the projects are extended.

> Add simple makefiles in the source directories which uses the main make file in the root

Exchange the .sh builder in the root is also a good suggestion, but as gprbuild resolves all the dependencies in the build, why do you other makefiles from the other subfolders?

> In the gpr projects. Add -gnaty to Default_Switch to use AdaCore coding style for better coorporation with others.

In this project I totally forgot to include style checks. I use to check all style checks from GPS, I actually didn't know pure -gnaty would enforce all of them.

> gprbuild has the -p option which creates bin/lib/obj directories automatically so you can remove them from your project.

I will definitely include it.

> You may have a look at GPR projects and GPR library projects at:
> 
> https://github.com/jquorning/DK8543
> https://github.com/jquorning/GAWS

I will look for sure (doing already =)

> Best of luck with the competition.

Thank you!

  parent reply	other threads:[~2019-02-17 22:17 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-16  1:02 Make with Ada 2019 : DogRobot Rego, P.
2019-02-16  6:04 ` Anh Vo
2019-02-16  9:26   ` Rego, P.
2019-03-26 13:05   ` Rego, P.
2019-03-26 17:16     ` Niklas Holsti
2019-03-27  0:45     ` Jerry Petrey
2019-03-29 11:36     ` fabien.chouteau
2019-03-29 17:35       ` Dennis Lee Bieber
2019-02-16 16:51 ` Jesper Quorning
2019-02-16 17:42   ` Simon Wright
2019-02-17  5:50     ` Jesper Quorning
2019-02-17 22:23     ` Rego, P.
2019-02-18  0:44       ` Jere
2019-02-17 22:17   ` Rego, P. [this message]
2019-02-19  4:16     ` Jesper Quorning
2019-02-20 15:27       ` Rego, P.
replies disabled

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