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
|
with "../shared";
with "../kernel/kernel_core";
with "../python/python_core";
project CLI is
for Languages use ("Ada");
for Main use ("gps-cli.adb");
for Source_Dirs use ("src");
for Object_Dir use Shared'Object_Dir;
for Exec_Dir use "obj"; -- Not in a subdirectory
Processors := external ("PROCESSORS", "1");
package Builder is
for Executable ("gps-cli.adb") use "gps_cli";
case Shared.Build is
when "Debug" =>
for Default_Switches ("Ada") use ("-m", "-j" & Processors);
for Global_Configuration_Pragmas use "../gps/gnat_debug.adc";
when "Production" =>
for Default_Switches ("Ada") use ("-m", "-j" & Processors);
for Global_Configuration_Pragmas use "../gps/gnat.adc";
end case;
end Builder;
package Compiler renames Shared.Compiler;
package Binder renames Shared.Binder;
package IDE renames Shared.IDE;
package Linker is
for Default_Switches ("Ada") use Linker'Default_Switches ("Ada")
& Shared.Linker'Default_Switches ("Ada");
-- for Default_Switches ("Ada") use ("-lgmem");
-- for Default_Switches ("Ada") use ("-pg");
end Linker;
end CLI;
|