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 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134
|
------------------------------------------------------------------------------
-- Ada Web Server --
-- --
-- Copyright (C) 2003-2015, AdaCore --
-- --
-- This is free software; you can redistribute it and/or modify it --
-- under terms of the GNU General Public License as published by the --
-- Free Software Foundation; either version 3, or (at your option) any --
-- later version. This software is distributed in the hope that it will --
-- be useful, but WITHOUT ANY WARRANTY; without even the implied warranty --
-- of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --
-- General Public License for more details. --
-- --
-- You should have received a copy of the GNU General Public License --
-- distributed with this software; see file COPYING3. If not, go --
-- to http://www.gnu.org/licenses for a complete copy of the license. --
------------------------------------------------------------------------------
with "../.build/projects/aws_asis";
with "../shared.gpr";
with "../aws";
with "../win32/win32";
project Tools is
for Languages use ("Ada", "Project file");
for Source_Dirs use (".", "../templates_parser/tools");
for Main use ("awsres.adb", "aws_password.adb", "templates2ada.adb",
"webxref.adb", "templatespp.adb");
case Shared.XMLAda is
when "Installed" =>
for Main use project'Main & ("wsdl2aws.adb");
when "Disabled" =>
for Locally_Removed_Files use
Project'Locally_Removed_Files & ("wsdl2aws.adb");
end case;
case Shared.ASIS is
when "Installed" =>
for Main use project'Main & ("ada2wsdl-main.adb");
when "Disabled" =>
for Locally_Removed_Files use Project'Locally_Removed_Files &
("ada2wsdl.ads", "ada2wsdl.adb",
"ada2wsdl-generator.ads", "ada2wsdl-generator.adb",
"ada2wsdl-main.ads", "ada2wsdl-main.adb",
"ada2wsdl-options.ads",
"ada2wsdl-parser.ads", "ada2wsdl-parser.adb");
end case;
for Object_Dir use "../" & Shared'Object_Dir & "/tools";
for Exec_Dir use "../" & Shared'Exec_Dir & "/tools";
--------------
-- Compiler --
--------------
package Compiler renames Shared.Compiler;
------------
-- Naming --
------------
package Naming renames Shared.Naming;
------------
-- Binder --
------------
package Binder is
for Default_Switches ("Ada")
use Shared.Builder'Default_Switches ("Ada") & ("-static");
end Binder;
-------------
-- Builder --
-------------
package Builder is
for Switches (others) use Shared.Builder'Switches (others);
for Executable ("ada2wsdl-main.adb") use "ada2wsdl";
end Builder;
---------
-- Ide --
---------
package Ide renames Shared.Ide;
------------
-- Linker --
------------
package Linker is
for Default_Switches ("Ada") use Shared.Linker'Default_Switches ("Ada");
case Shared.Build is
when "Release" =>
case Shared.S_Target is
when "Darwin" =>
null;
when others =>
for Default_Switches ("Ada")
use Linker'Default_Switches ("Ada") & ("-s");
end case;
when others =>
null;
end case;
case Shared.S_Target is
when "Windows_NT" =>
for Default_Switches ("Ada")
use Tools.Linker'Default_Switches ("Ada") &
("../" & Shared.Target_Dir & "/common/win32/aws.coff");
when others =>
null;
end case;
end Linker;
-------------
-- Install --
-------------
package Install is
for Artifacts ("bin") use ("awsascb");
end Install;
end Tools;
|