Commit aa7075c3 authored by yoogx's avatar yoogx

* Reflect dynamic library configuration in project files

	For openaadl/ocarina#124
parent d794b142
......@@ -148,9 +148,11 @@ AM_CONDITIONAL(DEBUG, test x$debug = xtrue)
define(SHARED_LIBRARY_OPTIONS, [dnl
GNAT_LIB_FLAGS="-XLIBRARY_TYPE=relocatable"
PRJ_LIBRARY_KIND="shared"
shared=true])
define(NO_SHARED_LIBRARY_OPTIONS, [dnl
GNAT_LIB_FLAGS="-XLIBRARY_TYPE=static"
PRJ_LIBRARY_KIND="static"
shared=false])
AC_ARG_ENABLE(shared,
......@@ -424,6 +426,7 @@ AC_OUTPUT([
resources/runtime/lnt/Makefile
resources/runtime/python/Makefile
projects/ocarina.gpr
projects-distrib/ocarina/ocarina_core.gpr
src/main/Makefile
src/config/ocarina-configuration.adb
src/frontends/Makefile
......
INTERNAL_PROJECTS = \
$(srcdir)/ocarina/ocarina_core.gpr \
$(srcdir)/ocarina/ocarina_core.gpr.in \
$(srcdir)/ocarina/ocarina_frontends.gpr \
$(srcdir)/ocarina/ocarina_backends.gpr \
$(srcdir)/ocarina/ocarina_transfo.gpr \
......
......@@ -45,5 +45,5 @@ project Ocarina is
for Source_Dirs use ("../../include/ocarina");
for Object_Dir use "../../lib/ocarina";
for Externally_Built use "true";
end Ocarina;
......@@ -36,7 +36,7 @@ project Ocarina_Backends is
for Source_files use ();
for Library_Name use "ocarina-backends";
for Library_Dir use "../..";
for Library_Kind use "static";
for Library_Kind use Ocarina_Core'Library_Kind;
for Externally_Built use "true";
end Ocarina_Backends;
......@@ -39,7 +39,7 @@ project Ocarina_Config is
for Source_files use ();
for Library_Name use "ocarina-config";
for Library_Dir use "../..";
for Library_Kind use "static";
for Library_Kind use Ocarina_Core'Library_Kind;
for Externally_Built use "true";
end Ocarina_Config;
......@@ -34,7 +34,7 @@ project Ocarina_Core is
for Source_files use ();
for Library_Name use "ocarina";
for Library_Dir use "../..";
for Library_Kind use "static";
for Library_Kind use "@PRJ_LIBRARY_KIND@";
for Externally_Built use "true";
end Ocarina_Core;
------------------------------------------------------------------------------
-- --
-- OCARINA COMPONENTS --
-- --
-- O C A R I N A _ C O R E --
-- --
-- P r o j e c t --
-- --
-- Copyright (C) 2008-2009 Telecom ParisTech, 2010-2015 ESA & ISAE. --
-- --
-- Ocarina is free software; you can redistribute it and/or modify under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. Ocarina 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. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- Ocarina is maintained by the TASTE project --
-- (taste-users@lists.tuxfamily.org) --
-- --
------------------------------------------------------------------------------
project Ocarina_Core is
for Source_files use ();
for Library_Name use "ocarina";
for Library_Dir use "../..";
for Library_Kind use "@PRJ_LIBRARY_KIND@";
for Externally_Built use "true";
end Ocarina_Core;
......@@ -36,7 +36,7 @@ project Ocarina_Frontends is
for Source_files use ();
for Library_Name use "ocarina-frontends";
for Library_Dir use "../..";
for Library_Kind use "static";
for Library_Kind use Ocarina_Core'Library_Kind;
for Externally_Built use "true";
end Ocarina_Frontends;
......@@ -37,7 +37,7 @@ project Ocarina_Transfo is
for Source_files use ();
for Library_Name use "ocarina-transfo";
for Library_Dir use "../..";
for Library_Kind use "static";
for Library_Kind use Ocarina_Core'Library_Kind;
for Externally_Built use "true";
end Ocarina_Transfo;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment