From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-0.0 required=3.0 tests=BAYES_40,FREEMAIL_FROM, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Received: by 2002:a05:620a:cea:b0:742:bd81:b89 with SMTP id c10-20020a05620a0cea00b00742bd810b89mr774135qkj.2.1677618660362; Tue, 28 Feb 2023 13:11:00 -0800 (PST) X-Received: by 2002:a05:6808:987:b0:384:5f49:91cf with SMTP id a7-20020a056808098700b003845f4991cfmr469407oic.10.1677618660111; Tue, 28 Feb 2023 13:11:00 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!border-1.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 28 Feb 2023 13:10:59 -0800 (PST) Injection-Info: google-groups.googlegroups.com; posting-host=2a02:1210:2871:8e00:5921:cf1e:e80:c6d2; posting-account=gRqrnQkAAAAC_02ynnhqGk1VRQlve6ZG NNTP-Posting-Host: 2a02:1210:2871:8e00:5921:cf1e:e80:c6d2 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <2bee0de5-2d5c-44a7-bdab-a1d266855c96n@googlegroups.com> Subject: Build order with gprbuild From: Gautier write-only address Injection-Date: Tue, 28 Feb 2023 21:11:00 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader01.eternal-september.org comp.lang.ada:64989 List-Id: When a GNAT project A depends on project B, is there a simple (*) way to ma= ke gprbuild build project B before starting the build of A? It would be useful when project B generates Ada sources=E2=80=A6 Example: with "code_generation.gpr"; project Main is for Source_Dirs use (".", "gen"); for Object_Dir use "obj"; for Create_Missing_Dirs use "True"; -- Flips by default the "-p" switch for Main use ("main.adb"); end Main; (*) By =E2=80=9Csimple=E2=80=9D I mean simpler than the way described here: https://www.adacore.com/gems/gem-157-gprbuild-and-code-generation