-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'topic/ada2022' into 'master'
Use Ada 2022 and Alire See merge request eng/ide/markdown!16
- Loading branch information
Showing
9 changed files
with
150 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,9 +8,15 @@ maintainers = ["Max Reznik <[email protected]>"] | |
maintainers-logins = ["reznikmm"] | ||
licenses = "Apache-2.0" | ||
|
||
configuration.disabled = true | ||
project-files = ["gnat/markdown.gpr"] | ||
|
||
[configuration] | ||
generate_ada = false | ||
generate_c = false | ||
|
||
[build-switches] | ||
"*".ada_version = "Ada2022" | ||
|
||
[[depends-on]] | ||
vss = "^22.0.0" | ||
[[pins]] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
-- | ||
-- Copyright (C) 2020-2023, AdaCore | ||
-- | ||
-- SPDX-License-Identifier: Apache-2.0 | ||
-- | ||
|
||
-- This file is stub to build Markdown outside of the Alire environment. Alire | ||
-- will overwrite it during builds. | ||
-- | ||
-- Set of switches for all build modes are the same with Alire. Project | ||
-- specific switches should be added in Markdown project file itself. | ||
|
||
abstract project Markdown_Config is | ||
Crate_Version := "wavefront"; | ||
Crate_Name := "markdown"; | ||
|
||
Alire_Host_OS := "linux"; | ||
|
||
Alire_Host_Arch := "x86_64"; | ||
|
||
Alire_Host_Distro := "ubuntu"; | ||
External_Ada_Compiler_Switches := External_As_List ("ADAFLAGS", " "); | ||
Development_Ada_Compiler_Switches := | ||
( | ||
"-Og" -- Optimize for debug | ||
,"-ffunction-sections" -- Separate ELF section for each function | ||
,"-fdata-sections" -- Separate ELF section for each variable | ||
,"-g" -- Generate debug info | ||
,"-gnatwa" -- Enable all warnings | ||
,"-gnatw.X" -- Disable warnings for No_Exception_Propagation | ||
,"-gnatVa" -- All validity checks | ||
,"-gnaty3" -- Specify indentation level of 3 | ||
,"-gnatya" -- Check attribute casing | ||
,"-gnatyA" -- Use of array index numbers in array attributes | ||
,"-gnatyB" -- Check Boolean operators | ||
,"-gnatyb" -- Blanks not allowed at statement end | ||
,"-gnatyc" -- Check comments | ||
,"-gnaty-d" -- Disable check no DOS line terminators present | ||
,"-gnatye" -- Check end/exit labels | ||
,"-gnatyf" -- No form feeds or vertical tabs | ||
,"-gnatyh" -- No horizontal tabs | ||
,"-gnatyi" -- Check if-then layout | ||
,"-gnatyI" -- check mode IN keywords | ||
,"-gnatyk" -- Check keyword casing | ||
,"-gnatyl" -- Check layout | ||
,"-gnatym" -- Check maximum line length | ||
,"-gnatyn" -- Check casing of entities in Standard | ||
,"-gnatyO" -- Check that overriding subprograms are explicitly marked as such | ||
,"-gnatyp" -- Check pragma casing | ||
,"-gnatyr" -- Check identifier references casing | ||
,"-gnatyS" -- Check no statements after THEN/ELSE | ||
,"-gnatyt" -- Check token spacing | ||
,"-gnatyu" -- Check unnecessary blank lines | ||
,"-gnatyx" -- Check extra parentheses | ||
,"-gnat2022" -- Ada 2022 Mode | ||
); | ||
Validation_Ada_Compiler_Switches := | ||
( | ||
"-O3" -- Optimize for performance | ||
,"-gnatn" -- Enable inlining | ||
,"-ffunction-sections" -- Separate ELF section for each function | ||
,"-fdata-sections" -- Separate ELF section for each variable | ||
,"-g" -- Generate debug info | ||
,"-gnato" -- Enable numeric overflow checking | ||
,"-gnatwa" -- Enable all warnings | ||
,"-gnatw.X" -- Disable warnings for No_Exception_Propagation | ||
,"-gnatVa" -- All validity checks | ||
,"-gnatwe" -- Warnings as errors | ||
,"-gnata" -- Enable assertions and contracts | ||
,"-gnaty3" -- Specify indentation level of 3 | ||
,"-gnatya" -- Check attribute casing | ||
,"-gnatyA" -- Use of array index numbers in array attributes | ||
,"-gnatyB" -- Check Boolean operators | ||
,"-gnatyb" -- Blanks not allowed at statement end | ||
,"-gnatyc" -- Check comments | ||
,"-gnaty-d" -- Disable check no DOS line terminators present | ||
,"-gnatye" -- Check end/exit labels | ||
,"-gnatyf" -- No form feeds or vertical tabs | ||
,"-gnatyh" -- No horizontal tabs | ||
,"-gnatyi" -- Check if-then layout | ||
,"-gnatyI" -- check mode IN keywords | ||
,"-gnatyk" -- Check keyword casing | ||
,"-gnatyl" -- Check layout | ||
,"-gnatym" -- Check maximum line length | ||
,"-gnatyn" -- Check casing of entities in Standard | ||
,"-gnatyO" -- Check that overriding subprograms are explicitly marked as such | ||
,"-gnatyp" -- Check pragma casing | ||
,"-gnatyr" -- Check identifier references casing | ||
,"-gnatyS" -- Check no statements after THEN/ELSE | ||
,"-gnatyt" -- Check token spacing | ||
,"-gnatyu" -- Check unnecessary blank lines | ||
,"-gnatyx" -- Check extra parentheses | ||
,"-gnat2022" -- Ada 2022 Mode | ||
); | ||
Release_Ada_Compiler_Switches := | ||
( | ||
"-O3" -- Optimize for performance | ||
,"-gnatn" -- Enable inlining | ||
,"-ffunction-sections" -- Separate ELF section for each function | ||
,"-fdata-sections" -- Separate ELF section for each variable | ||
,"-gnat2022" -- Ada 2022 Mode | ||
); | ||
|
||
type Build_Profile_Kind is ("release", "validation", "development"); | ||
Build_Profile : Build_Profile_Kind := | ||
external ("MARKDOWN_BUILD_PROFILE", external ("BUILD_PROFILE", "development")); | ||
|
||
Ada_Compiler_Switches := (); | ||
case Build_Profile is | ||
when "release" => | ||
Ada_Compiler_Switches := External_Ada_Compiler_Switches & Release_Ada_Compiler_Switches; | ||
when "validation" => | ||
Ada_Compiler_Switches := External_Ada_Compiler_Switches & Validation_Ada_Compiler_Switches; | ||
when "development" => | ||
Ada_Compiler_Switches := External_Ada_Compiler_Switches & Development_Ada_Compiler_Switches; | ||
end case; | ||
|
||
end Markdown_Config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters