22 Commits

Author SHA1 Message Date
Vincent Jicquel
b3e60f2e3c Skip link phase when the new attribute Disable_Linking is true
Several targets, such as c, ccg, or jvm, do not support linking.
To avoid hardcoded values in the gpr2 code, a new attribute, Disable_Linking,
has been introduced. It defaults to false, so only the targets mentioned above
need to define it.

Issue: eng/gpr/gpr-issues#765
2026-01-22 15:11:21 +00:00
Pierre Béguet
6810e1aebd Support Config_File_Dependency_Support attribute for 7.2.2 retrocompatibility
Issue: eng/gpr/gpr-issues#754
2025-11-19 12:02:22 +01:00
Jerome Lambourg
170d1d938e Add missing attribute Linker'Unconditional_Linking
This is in particular needed when embedding a windows iconv via
windres.
2025-05-19 21:07:41 +02:00
Jerome Lambourg
c64cd30013 Add new attributes Linker'Group_Start_Switch and Linker'Group_End_Switch
Those expand by default to -Wl,--start-group and -Wl,--end-group and are
used to define a list of libraries to be resolved recursively by the linker.
2025-05-07 16:27:44 +02:00
Jerome Lambourg
30d85484ed Cleanup references to the "Remote" package
Support for it was removed but some references remain in libgpr2.

Adjust testsuite and some checks whose conditions were too strict to
enable proper test result.

no-issue-check
2025-04-02 14:37:02 +02:00
Jerome Lambourg
7da9e5156b Deprecate Library_GCC attribute
It's been more than a couple of years now that this attribute is
replaced by Compiler'Driver attribute, and its mixed usage with index
or without makes it impossible to move to the new library, so let's
just dismiss now its usage.

For eng/gpr/gpr-issues#474
2025-03-07 16:27:43 +00:00
Jerome Lambourg
9367e9ee08 Project.View: add Has_Library_Src_Dir and fix the definition
Library_Src_Dir has no default value and should only be used when
the view is a standalone library.

For eng/gpr/gpr-issues#474
2025-03-07 16:27:43 +00:00
Jerome Lambourg
98b5c300a0 Add documentation for Linker_Lib_Dir_Option 2024-11-29 15:59:16 +01:00
Vincent Jicquel
35176a8180 Move the Include_Switches_Via_Spec switch to the Compiler package
This switch means that options are passed to the compiler using a spec file
instead of command line. It is not a global project attribute but rather a
Compiler package attribute.
2024-07-23 17:44:05 +02:00
Pierre Béguet
3966b52dc0 Testing for support of empty Archive_Builder attribute
Issue: eng/gpr/gpr-issues#277
2024-03-29 07:57:47 +00:00
Pierre Béguet
b44788cdfe Document Body_Suffix and Spec_Suffix casing limitation
Issue: eng/gpr/gpr-issues#167

Closes: eng/gpr/gpr-issues#167
2023-10-30 15:34:21 +01:00
Vasiliy Fofanov
d4f555d6ec Review documentation
* Reorganize section on extension inheritance for clarity.
* Undocument all tool packages except those that are predefined.
* Clean up the index.

Motivated by eng/gpr/gpr-issues#95
2023-08-02 14:30:22 +02:00
Fedor Rybin
e3dc3fedb5 Add Config_Prj_File attribute
Add new attribute to specify the location of main config project.
Recreate legacy way of specifying --config amond Builder.Switches
or Builder.Default_Switches with corresponding obsolescence warning.
Update the docs.

Issue: eng/gpr/gpr-issues#74
2023-07-05 20:02:12 +00:00
Pierre Béguet
5c3c2bcb27 Fix Library_Version anchor in attribute documentation
Issue: eng/gpr/gpr#41
2023-03-18 22:41:58 +00:00
Pierre Béguet
acdf52c625 Make Library_Version documentation more explicit
The attribute documentation description is more of a
GPR2 language standpoint of the attribute value whereas
we have a whole chapter about its functional use.
We need to link one to the other to be complete about
the attribute documentation.

Issue: eng/gpr/gpr#41
2023-03-17 11:33:09 +01:00
Pierre Béguet
afd489f79c Add information on how and where to change the attributes doc
Closes #40
2023-03-16 15:25:06 +00:00
Pierre Béguet
07965aa9c7 Documentation incoherence between libGPR2 and gprbuild1
Adding a way to display warning for individual attributes when
generating the documentation.

Issue: #29
2023-02-16 15:06:31 +01:00
Pierre Béguet
faf6836f98 Attribute document indexation and GPRBuild exit code documentation
TN: V810-010
TN: V514-001
Change-Id: I1b70ed45532437b7de85140714afa0a1d2dc00d8
2022-09-08 14:31:11 +02:00
Jerome Lambourg
cfe20511cc doc generator: improve build infrastructure and adjust the attributes doc
* move the python module to a separate folder from metadata
* adjust a bit the phrasing in conf.py
* split attributes doc generation from the doc build
* fix gprdoc --display default value
* output of gprdoc is now put in the build directory
* document attributes inheritance
* fix index descriptions
* gprdoc test now outputs only differences between expected doc and
  commited one.

TN: V324-004
Change-Id: Id4c152b189a20a53f2df653328ac1da4cd3ec4e7
2022-05-02 19:11:51 +02:00
Jerome Lambourg
d5912cc5fb Reformat python scripts with black
TN: V324-004
Change-Id: I69900bab6c532e1c296ff5d3e80fe9488ada76f4
2022-04-28 14:34:40 +02:00
Pierre Béguet
4e982b0718 Integration of the attribute chapter into Gnat Project Manager documentation
Minor changes in the python script in order to resolve reference error
to package category names.
Exportation of "Project File Reference" chapter to create an internal
toctree.
Integration of the attribute chapter into said toctree to complete the
attribute documentation generation.

TN: V324-004
Change-Id: Iaf3b0ab7c14257dd08062b16ecd952cff2620185
Depends-On: I06ab7e68000b587d3f43b08b8981115d0885385f
2022-04-28 12:24:21 +00:00
Pierre Béguet
9b9e94de82 Documentation generator initial release
Release of python script that uses gprdoc output
and generates a reStructuredText file.
Integration of the new generated reStructuredText file
into different makefiles to have a complete chain of
attributes documentation generation.

TN: V324-004
Change-Id: I02bb31dc8b19f5516e63c4432b88daad9c6b82bd
Depends-On: I06ab7e68000b587d3f43b08b8981115d0885385f
2022-04-27 11:23:07 +02:00