zeromq-Ada/zmq.gpr

97 lines
4.5 KiB
Plaintext
Raw Permalink Normal View History

2010-04-13 06:52:54 +00:00
------------------------------------------------------------------------------
-- --
-- 0MQ Ada-binding --
-- --
-- Z M Q --
-- --
-- P r o j e c t --
-- --
2014-03-02 20:20:44 +00:00
-- Copyright (C) 2010-2016, per.s.sandberg@bahnhof.se --
2010-04-13 06:52:54 +00:00
-- --
-- 0MQ Ada-binding is free software; you can redistribute it and/or --
-- modify it under terms of the GNU General Public License as published --
-- by the Free Soft-ware Foundation; --
-- either version 2, or (at your option) any later version. --
-- 0MQ Ada-binding is distributed in the hope that it will be useful, but --
-- WITH OUT 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 GNAT; see file COPYING. If not, write --
-- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, --
-- Boston, MA 02110-1301, USA. --
-- --
-- As a special exception, if other files instantiate generics from this --
-- unit, or you link this unit with other files to produce an executable, --
-- this unit does not by itself cause the resulting executable to be --
-- covered by the GNU General Public License. This exception does not --
-- however invalidate any other reasons why the executable file might be --
-- covered by the GNU Public License. --
-- --
------------------------------------------------------------------------------
2012-12-29 21:54:25 +00:00
with "libzmq.gpr";
2010-05-11 05:05:45 +00:00
project ZMQ is
for Languages use ("Ada", "Makefile", "Python");
2010-03-30 06:14:54 +00:00
type ZMQ_Kind_Type is ("static", "relocatable");
ZMQ_Kind : ZMQ_Kind_Type := external ("LIBRARY_TYPE", "static");
2018-04-10 04:28:41 +00:00
Version := "4.1.5";
2010-03-30 06:14:54 +00:00
for Library_Name use "zmqAda";
2013-04-11 14:55:39 +00:00
for Library_Version use "lib" & project'Library_Name & ".so." & Version;
2010-03-30 06:14:54 +00:00
for Library_Dir use "lib/" & ZMQ_Kind;
for Object_Dir use ".obj/" & ZMQ_Kind;
2010-04-10 07:22:37 +00:00
2014-02-09 20:49:45 +00:00
for Source_Dirs use (".", "src", "src/gen");
2013-04-17 18:49:39 +00:00
-- ,"_src-exprimental");
2014-03-02 20:20:44 +00:00
for Externally_Built use "False";
2010-03-30 06:14:54 +00:00
case ZMQ_Kind is
when "static" =>
for Library_Kind use "static";
when "relocatable" =>
for Library_Kind use "dynamic";
for Library_Auto_Init use "True";
for Library_Interface use ("ZMQ",
"ZMQ.contexts",
"ZMQ.messages",
"ZMQ.sockets",
2013-04-11 14:55:39 +00:00
"ZMQ.proxys",
"ZMQ.low_level",
"ZMQ.Utilities",
"ZMQ.Utilities.Memory_Streams");
2010-03-30 06:14:54 +00:00
end case;
2013-04-17 18:49:39 +00:00
package Builder is
for Default_Switches ("ada") use ("-k", "-j0");
end Builder;
2010-03-30 06:14:54 +00:00
package Compiler is
2020-11-01 07:43:16 +00:00
for Driver ("Makefile") use "";
2013-12-16 08:25:16 +00:00
for Driver ("Python") use "";
2020-11-01 07:43:16 +00:00
for Driver ("Toml") use "";
2013-12-16 08:25:16 +00:00
for Default_Switches ("ada") use
2014-03-02 20:20:44 +00:00
("-g", "-O2", "-gnatf", "-gnat12", "-gnatwa", "-gnaty");
2014-02-09 20:49:45 +00:00
for Switches ("zmq-low_level.ads") use
Compiler'Default_Switches ("ada") & ("-gnaty-M");
2013-12-16 08:25:16 +00:00
-- Since this file is "autogenerated".
2010-03-30 06:14:54 +00:00
end Compiler;
2010-05-13 05:44:00 +00:00
package Check is
for Default_Switches ("ada") use ("-rules", "-from=zmq.rules");
end Check;
2010-03-30 06:14:54 +00:00
2010-05-01 04:15:04 +00:00
package Ide is
2010-05-19 20:28:08 +00:00
for Vcs_Kind use "git";
2010-05-01 04:15:04 +00:00
end Ide;
2013-12-16 08:25:16 +00:00
2020-03-28 19:34:07 +00:00
package Naming is
for Spec_Suffix ("Makefile") use ".mk";
2013-12-16 08:25:16 +00:00
for Specification_Exceptions ("Makefile") use ("Makefile");
2020-03-28 19:34:07 +00:00
for Spec_Suffix ("sed") use ".sed";
for Body_Suffix ("Python") use ".py";
2016-03-21 18:35:21 +00:00
for Implementation_Exceptions ("Python") use ("configure");
2020-03-28 19:34:07 +00:00
end Naming;
2010-05-11 05:05:45 +00:00
end ZMQ;