2013-02-20 16:37:07 +00:00
|
|
|
with "../shared";
|
|
|
|
|
|
|
|
|
|
with "../kernel/kernel_core";
|
2013-02-21 16:37:08 +00:00
|
|
|
with "../python/python_core";
|
2013-04-30 14:30:58 +00:00
|
|
|
with "../builder/builder_core";
|
2013-06-20 10:52:54 +00:00
|
|
|
with "../ada_module/core/ada_module_core";
|
2023-09-27 16:56:34 +04:00
|
|
|
with "../gnatdoc/gnatdoc";
|
2013-07-30 11:37:59 +00:00
|
|
|
with "../prj_editor/prj_core";
|
2022-09-28 09:22:47 +00:00
|
|
|
with "../lal/lal_core";
|
2013-02-20 16:37:07 +00:00
|
|
|
|
|
|
|
|
project CLI is
|
|
|
|
|
|
|
|
|
|
for Languages use ("Ada");
|
2023-09-27 16:56:34 +04:00
|
|
|
for Main use ("gps-cli.adb", "gnatdoc_main.adb");
|
2013-02-20 16:37:07 +00:00
|
|
|
|
|
|
|
|
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
|
2019-09-04 15:26:13 +02:00
|
|
|
for Executable ("gps-cli.adb") use "gnatstudio_cli";
|
2023-09-27 17:16:20 +04:00
|
|
|
for Executable ("gnatdoc_main.adb") use "gnatdoc3";
|
2013-02-20 16:37:07 +00:00
|
|
|
|
|
|
|
|
case Shared.Build is
|
2025-04-25 08:31:06 +00:00
|
|
|
when "Debug" | "AddressSanitizer" | "Coverage" =>
|
2015-10-15 12:02:34 +02:00
|
|
|
for Switches ("Ada") use ("-m", "-j" & Processors);
|
2019-09-11 11:26:26 +03:00
|
|
|
for Global_Configuration_Pragmas use "../gnatstudio/gnat_debug.adc";
|
2013-02-20 16:37:07 +00:00
|
|
|
|
|
|
|
|
when "Production" =>
|
2015-10-15 12:02:34 +02:00
|
|
|
for Switches ("Ada") use ("-m", "-j" & Processors);
|
2019-09-11 11:26:26 +03:00
|
|
|
for Global_Configuration_Pragmas use "../gnatstudio/gnat.adc";
|
2013-02-20 16:37:07 +00:00
|
|
|
end case;
|
|
|
|
|
end Builder;
|
|
|
|
|
|
|
|
|
|
package Compiler renames Shared.Compiler;
|
|
|
|
|
package Binder renames Shared.Binder;
|
2015-09-29 21:30:50 -04:00
|
|
|
package Linker renames Shared.Linker;
|
2013-02-20 16:37:07 +00:00
|
|
|
|
2014-03-04 20:42:28 +00:00
|
|
|
package Documentation is
|
2016-11-10 13:59:29 +02:00
|
|
|
for Documentation_Dir use Project'Object_Dir & "/html";
|
|
|
|
|
|
2014-03-04 20:42:28 +00:00
|
|
|
for Ignored_Subprojects use (
|
|
|
|
|
"gnatcoll",
|
|
|
|
|
"gnatcoll_shared",
|
2019-09-04 15:26:13 +02:00
|
|
|
"gnatcoll_iconv",
|
2014-03-04 20:42:28 +00:00
|
|
|
"gnatcoll_python",
|
|
|
|
|
"gnatcoll_sqlite",
|
2016-08-12 17:08:33 +02:00
|
|
|
"gnatcoll_xref",
|
2014-03-04 20:42:28 +00:00
|
|
|
"templates_parser",
|
|
|
|
|
"xmlada",
|
|
|
|
|
"xmlada_sax",
|
|
|
|
|
"xmlada_shared",
|
|
|
|
|
"xmlada_input",
|
|
|
|
|
"xmlada_unicode");
|
|
|
|
|
end Documentation;
|
2013-02-20 16:37:07 +00:00
|
|
|
|
|
|
|
|
end CLI;
|