From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: border2.nntp.dca.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Two questions about gpr files Date: Sat, 05 Apr 2014 12:19:51 +0100 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx05.eternal-september.org; posting-host="a0d4eb314a073b71869f2de305ad0700"; logging-data="4738"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/vTdMFb+R+gKIMWpU4zXvwvGnA76CdoNs=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin) Cancel-Lock: sha1:Erl20KLJnoO1rh2+hLktulVo5ZQ= sha1:reI1p9OjUxEOF6koycbbpr9SCC0= Xref: number.nntp.dca.giganews.com comp.lang.ada:185558 Date: 2014-04-05T12:19:51+01:00 List-Id: mockturtle writes: > I could solve those two problems if it was possible to find within the > *.gpr file the type of system and if a given project file is present. > For example, with something like > > case OS is > when "Linux" => > OS_Dependent_Source_Dir := "src/linux"; > > when "Windows" => > OS_Dependent_Source_Dir := "src/win"; > end case; You might find "aggregate projects" useful, especially the last part of section 1.7.3. http://docs.adacore.com/gprbuild-docs/html/gprbuild_ug.html#Define-a-build-environment