]> _ Git - alire.git/commit
Replace the alr_build.gpr aggregate project by environment variables
authorFabien Chouteau <chouteau@adacore.com>
Thu, 16 Jan 2020 17:08:50 +0000 (18:08 +0100)
committerAlejandro R Mosteo <amosteo@unizar.es>
Wed, 29 Jan 2020 12:00:22 +0000 (13:00 +0100)
commitf4f19fb8c8f136bfbbcce498e11cee6c6d54092a
tree19c5792b3642a9ee7925e22d57eed372a84b9ef8
parent303eb70c5565d69b689212e35d91ff7e2a8b5d23
Replace the alr_build.gpr aggregate project by environment variables

Instead of creating an aggregate project that contains the path to
dependencies' gpr files, and the list of gpr files to build for the
crate. This patch introduce a procedure that sets the GPR_PROJECT_PATH
environment variable and runs gprbuild one time for each of of gpr file
of the crate. Same goes for gprclean.

The keys/values of external scenario variable are also set in the
environment.

This patch also introduces a setenv command that prints the
GPR_PROJECT_PATH and external scenario variable. This can be used to set
a correct build environment before starting an IDE for instance.
21 files changed:
src/alr/alr-build_env.adb [new file with mode: 0644]
src/alr/alr-build_env.ads [new file with mode: 0644]
src/alr/alr-checkout.adb
src/alr/alr-commands-build.adb
src/alr/alr-commands-clean.adb
src/alr/alr-commands-get.adb
src/alr/alr-commands-init.adb
src/alr/alr-commands-setenv.adb [new file with mode: 0644]
src/alr/alr-commands-setenv.ads [new file with mode: 0644]
src/alr/alr-commands-show.adb
src/alr/alr-commands-update.adb
src/alr/alr-commands.adb
src/alr/alr-commands.ads
src/alr/alr-templates.adb
src/alr/alr-templates.ads
testsuite/fixtures/basic_index/li/libhello.toml
testsuite/tests/get/git-local/test.py
testsuite/tests/get/unpack-in-place/test.py
testsuite/tests/workflows/init-options/test.py
testsuite/tests/workflows/setenv/test.py [new file with mode: 0644]
testsuite/tests/workflows/setenv/test.yaml [new file with mode: 0644]