13 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
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
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
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