/usr/share/dh_ada_library/default_cgpr is in dh-ada-library 6.3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 | -- Configuration for the gnat project driver.
-- It does not have the .cpgr extension because gnat tools tend to
-- blindly and silently use any .cgpr file lying around.
-- The configuration generated on the fly in the absence of any .cpgr
-- only recognizes Ada sources, and does not handle separate bodies
-- correctly.
-- Only Ada and C have received decent support/testing.
-- To add a language, or find a missing default, install gprbuild
-- then run
-- gprconfig --batch -o default_cgpr --config=language
-- Without gprbuild, you may also set "Prj.Current_Verbosity := Prj.High;",
-- replace "Config_File_Name => Default_Cgpr" with "Config_File_Name => "",
-- On_Load_Config => Prj.Conf.Add_Default_GNAT_Naming_Scheme'Access"
-- in src/projects.adb, then look the default project.
configuration project Default is
for Library_Support use "full";
for Shared_Library_Prefix use "lib";
for Symbolic_Link_Supported use "true";
for Library_Major_Minor_Id_Supported use "true";
for Shared_Library_Suffix use ".so";
for Library_Auto_Init_Supported use "true";
for Default_Language use "Ada";
package Compiler is
for Driver ("Ada") use "/usr/bin/gnatgcc";
for Language_Kind ("Ada") use "unit_based";
for Dependency_kind ("Ada") use "ali_file";
for Mapping_File_Switches ("Ada") use ("-gnatem=");
for Mapping_Spec_Suffix ("Ada") use "%s";
for Mapping_Body_Suffix ("Ada") use "%b";
for Config_File_Switches ("Ada") use ("-gnatec=");
for Multi_Unit_Switches ("Ada") use ("-gnateI");
for Multi_Unit_Object_Separator ("Ada") use "~";
for Config_Body_File_Name ("Ada") use
"pragma Source_File_Name_Project (%u, Body_File_Name => ""%f"");";
for Config_Spec_File_Name ("Ada") use
"pragma Source_File_Name_Project (%u, Spec_File_Name => ""%f"");";
for Config_Body_File_Name_Index ("Ada") use
"pragma Source_File_Name_Project (%u, Body_File_Name => ""%f"", Index => %i);";
for Config_Spec_File_Name_Index ("Ada") use
"pragma Source_File_Name_Project (%u, Spec_File_Name => ""%f"", Index => %i);";
for Config_Body_File_Name_Pattern ("Ada") use
"pragma Source_File_Name_Project " &
" (Body_File_Name => ""*%b""," &
" Casing => %c," &
" Dot_Replacement => ""%d"");";
for Config_Spec_File_Name_Pattern ("Ada") use
"pragma Source_File_Name_Project " &
" (Spec_File_Name => ""*%s""," &
" Casing => %c," &
" Dot_Replacement => ""%d"");";
for Config_File_Unique ("Ada") use "False";
for Driver ("C") use "/usr/bin/gnatgcc";
end Compiler;
package Naming is
for Casing use "lowercase";
for Dot_Replacement use "-";
for Body_Suffix ("ada") use ".adb";
for Spec_Suffix ("ada") use ".ads";
for Body_Suffix ("asm") use ".s";
for Body_Suffix ("asm2") use ".asm";
for Body_Suffix ("asm_cpp") use ".S";
for Body_Suffix ("c") use ".c";
for Spec_Suffix ("c") use ".h";
for Spec_Suffix ("c++") use ".hh";
for Body_Suffix ("c++") use ".cpp";
for Body_Suffix ("fortran") use ".f";
end Naming;
end Default;
|