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
|
------------------------------------------------------------------------------
-- --
-- POLYORB COMPONENTS --
-- --
-- P O L Y O R B _ S R C --
-- --
-- P r o j --
-- --
-- Copyright (C) 2007-2010, 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";
library project PolyORB_src is
for Languages use ("Ada", "C");
Dir := "src";
Obj_Dir := PolyORB_Common.Build_Dir & Dir;
for Object_Dir use Obj_Dir;
for Source_Dirs use (Obj_Dir, PolyORB_Common.Source_Dir & Dir);
for Excluded_Source_List_File use Obj_Dir & "/src.exclude";
Libname := "polyorb";
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";
for Library_Kind use PolyORB_Common.Library_Type;
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;
package Compiler is
for Default_Switches ("Ada") use
PolyORB_Common.Compiler'Default_Switches ("Ada");
end Compiler;
end PolyORB_src;
|