92 Commits

Author SHA1 Message Date
Pascal Obry
d7735b587b Use Ada 2022 @ short hand syntax.
Motivated by eng/toolchain/aws#74
2025-01-21 07:56:55 +01:00
Pascal Obry
a9a69553c1 Use Ada 2022 array aggregate syntax.
Motivated by eng/toolchain/aws#74
2025-01-21 07:56:55 +01:00
Pascal Obry
990287f4df Revert all Ada 2022 changes. 2024-03-14 23:17:52 +01:00
Pascal Obry
f628de229b Use Ada 2022 @ short hand syntax. 2024-03-14 17:09:44 +00:00
Pascal Obry
1cf6a7866c Use Ada 2022 array aggregate syntax. 2024-03-14 17:09:44 +00:00
Pascal Obry
dcd2f6d688 Rework build setup to allow for out-of-tree build.
This rework make it possible to build in-tree as before:

   $ make setup
   $ make

And from another directory (out-of-tree build):

   $ cd <build-dir>
   $ make -C ../aws BLD_DIR=$PWD setup
   $ make -C ../aws BLD_DIR=$PWD

To build the demos:

   $ make -C ../aws/demos BLD_DIR=$PWD

Support for the testsuite has also been reworked to use the out-of-tree
build when needed:

   $ make -C ../aws BLD_DIR=$PWD run_regtests
2024-01-19 08:03:17 +00:00
Pascal Obry
5c31bdfaa6 Add static-pic build variant.
Fixes S605-001.
2023-09-08 07:22:13 +00:00
Dmitriy Anisimkov
f05ee6e466 Simplify SSL dynamic optional binding generator
TN: UB30-003

Do not need intermediate SSL.Bind package.
Use function call in Address aspect directly.
Increate maximum line length for regenerated ssl-thin.ads.
2022-02-08 09:57:41 +06:00
Dmitriy Anisimkov
98fff662c1 Dynamic SSL binding
TN: UB30-003
2022-02-04 07:19:40 +06:00
Dmitriy Anisimkov
0ce26aba5e Support thread sanitizer options
U504-028
2021-06-26 13:01:48 +06:00
Pascal Obry
c303b6450e Code refactoring to avoid specific option to build.
Continued work for S415-009.
2020-04-27 10:32:13 +02:00
Pascal Obry
22815aa1f4 New implementation of ada2wsdl based on LaL.
This new implementation is based on LaL and do not use ASIS anymore.

The -I options has been removed as not supported anymore. The LaL parser
is project based exclusively.

Some expected output have been updated as the new implementation does
better work with the name-space by avoiding generating some NS that are
not used. So the NS prefix may be different.

We disable the check on routines ordering in ada2wsdl-parser.adb as
some generics make it impossible to follow this rule.

Note that this new implementation does far better job as computing the
range (range <low> .. <high>) and array indexes. The new parser walk up
the tree and do proper computation of the values instead of relying on
some simple format checked by regexp. So for example a range like:

   range 1 + 6 - 4 .. integer'last - 7

Will be properly computed avoiding some restriction on the specs.

For S415-009.
2020-04-27 10:32:11 +02:00
Pascal Obry
301ed77bd8 Setup LaL which replaces ASIS.
All ASIS setup have been replaced by LibAdaLang which will be the
new library used for generating WSDL out of Ada specs.

Part of S415-009.
2020-04-27 10:31:01 +02:00
Nicolas Boulenguez
20bf52aa37 Pass ADAFLAGS to include.gpr and add CPPFLAGS to CFLAGS.
This patch does not apply the common style flags to include/*, it only
allow explicit user flags (ADAFLAGS) to override default flags.

The External is in shared.gpr so that there is only one environment
lookup for each variable.
2020-04-20 14:39:48 +02:00
Pascal Obry
aa717addd5 Remove tweak for working around N728-028.
This bug has been fixed in 2014. At the same time this will
ensure that all units are compiled without having error being
fatal in release mode.

For T312-009.
2020-03-12 19:08:46 +01:00
Dmitriy Anisimkov
2413e7b675 Use GNAT IPv6 functionality.
R710-016 MA31-001

Remain compatibility with older GNAT versions.
Add IPv6_Only server flag.
2019-01-09 16:08:57 +06:00
Pascal Obry
71ae9ae939 Minor reformatting. 2018-03-14 18:58:00 +01:00
Pascal Obry
923671995e Activate the GNAT option to detect unused entities.
This option was disabled by mistake (R vs r option). This has given the
oportunity to clean-up code by removing duplicate with/use clause and
also a generic routine not used anymore.

At the same time we now use -Wno-implicit-function-declaration for Zlib
C code which is an external set of sources synchronized with upstream
from time to time.

For Q426-015.
2017-04-27 18:56:39 +02:00
Pascal Obry
3d06f0ee1f Update some style checks.
First add -gnatyd for checking no DOS line terminators.

Also add -gnatyO in release mode, this was only activated in debug mode
for developpers back in 2008 because this check was recent.

Update templates_parser submodule for similar changes.
2015-09-09 08:32:26 +02:00
Pascal Obry
4e4159335f Rename makefile to Makefile (GNU standard)
This is also what GPS expects by default.

For O604-017.
2015-06-16 17:20:29 +02:00
Pascal Obry
ccc7a4279e Simplyfy code in shared.gpr.
Minor code clean-up.
2014-08-18 11:40:16 +02:00
Pascal Obry
0b8e5d2e19 Add support for external CFLAGS, ADAFLAGS and LDFLAGS for building.
Contributed by Nicolas Boulenguez.
2014-08-18 11:40:16 +02:00
Pascal Obry
201b7902a4 Add some more Pre/Post conditions.
Remove some comments that are obsoleted by the pre/post aspects.
2014-07-29 17:47:17 +02:00
Pascal Obry
5447c8f85a Use -Wall only in debug mode. 2013-12-12 11:18:26 +01:00
Pascal Obry
f85b8671d3 Use Ada 2012 iterators and conditional expressions.
Simplify the code a bit taking advantage of some new Ada 2012
features. Add some as new keyword for Ada 2012 in
Utils.Is_Ada_Reserved_Word.
2013-12-07 11:33:13 +01:00