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
|
------------------------------------------------------------------------------
-- --
-- POLYORB COMPONENTS --
-- --
-- P O L Y O R B _ S R C _ D S A --
-- --
-- P r o j --
-- --
-- Copyright (C) 2007-2011, Free Software Foundation, Inc. --
-- --
-- PolyORB 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 2, or (at your option) any later --
-- version. PolyORB is distributed in the hope that it will be useful, --
-- but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN- --
-- TABILITY 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 PolyORB; see file COPYING. If --
-- not, write to the Free Software Foundation, 51 Franklin Street, Fifth --
-- Floor, Boston, MA 02111-1301, USA. --
-- --
-- --
-- PolyORB is maintained by AdaCore --
-- (email: sales@adacore.com) --
-- --
------------------------------------------------------------------------------
with "polyorb_common", "polyorb_src";
project PolyORB_src_dsa is
Dir := "src/dsa";
Obj_Dir := PolyORB_Common.Build_Dir & Dir;
for Object_Dir use Obj_Dir;
for Source_Dirs use (Obj_Dir, PolyORB_Common.Source_Dir & Dir);
Libname := "polyorb-dsa";
for Library_Name use Libname;
for Library_Dir use PolyORB_Common.Build_Dir & "lib";
for Library_ALI_Dir use PolyORB_Common.Build_Dir & "ali/src_dsa";
for Library_Version use "lib" & Libname & ".so." & PolyORB_Common.Libversion;
-- adding hardening options
Ldlibs := External_As_List ("LDLIBS", " ");
case PolyORB_Common.Library_Type is
when "relocatable" =>
For Library_Options use External_As_List ("LDFLAGS", " ") & Ldlibs;
when "static" =>
null;
end case;
for Library_Kind use PolyORB_Common.Library_Type;
-- For the DSA application personality, always build a static library
-- as we need to allow the application to replace some units with
-- partition-specific versions/stubs.
package Compiler is
for Default_Switches ("Ada")
use PolyORB_Src.Compiler'Default_Switches ("Ada");
Ada_RTL_Switches :=
Compiler'Default_Switches ("Ada")
& ("-gnatg", "-gnatw" & PolyORB_Common.Warnings_Mode);
-- Gnatmake compiles children of System with -gnatg (otherwise it is
-- illegal to recompile such children). -gnatg sets the warnings mode
-- to -gnatwe, so we need to reset it explicitly afterwards.
-- Gprbuild does not set -gnatg automatically for children of System,
-- so we specify it explicitly here.
for Switches ("s-*.adb") use Ada_RTL_Switches;
end Compiler;
end PolyORB_src_dsa;
|