Commits (6)
......@@ -28,9 +28,10 @@ ifeq ($(UNAME), Linux)
fi ; \
fi
endif
@[ "$(DEBIAN)" != "" ] && [ $(ARCH) == 64 ] && EXTRAFLAG="--target=x86_64-linux" ; \
ADA_PROJECT_PATH=`ocarina-config --prefix`/lib/gnat:$$ADA_PROJECT_PATH \
$(gnatpath)gprbuild -x -g $(exec) -p -P buildsupport.gpr -XBUILD="debug" $$EXTRAFLAG
@#[ "$(DEBIAN)" != "" ] && [ $(ARCH) == 64 ] && EXTRAFLAG="--target=x86_64-linux" ; \
OCARINA_PATH=`ocarina-config --prefix` \
$(gnatpath)gprbuild -x -g $(exec) -p -P buildsupport.gpr -XBUILD="debug" $$EXTRAFLAG -j4
install:
$(MAKE)
......
with "ocarina";
with "ocarina/ocarina";
-- with "templates_parser"; -- from libtemplates-parser11.10.1-dev
project BuildSupport is
......@@ -15,7 +15,7 @@ project BuildSupport is
end Builder;
package binder is
for default_switches ("Ada") use ("-E", "-t", "-static");
for default_switches ("Ada") use ("-E", "-t");
end binder;
package Compiler is
......
......@@ -67,6 +67,8 @@ void Create_script()
"fi\n\n"
"# Use PolyORB-HI-C runtime\n"
"USE_POHIC=1\n\n"
"# Set Debug mode by default\n"
"DEBUG_MODE=--debug\n\n"
"# Detect models from Ellidiss tools v2, and convert them to 1.3\n"
"INTERFACEVIEW=%s\n"
"grep \"version => \\\"2\" %s >/dev/null && {\n"
......@@ -212,6 +214,10 @@ void Create_script()
" echo -e \"${INFO} Executing user-defined post-init script\"\n"
" source user_init_post.sh\n"
"fi\n\n"
"if [ -f additionalCommands.sh ]\n"
"then\n"
" source additionalCommands.sh\n"
"fi\n\n"
"if [ ! -z \"$USE_POHIC\" ]\n"
"then\n"
" OUTPUTDIR=binary.c\n"
......@@ -224,7 +230,7 @@ void Create_script()
"fi\n\n"
"cd \"$CWD\" && assert-builder-ocarina.py \\\n"
"\t--fast \\\n"
"\t--debug \\\n");
"\t$DEBUG_MODE \\\n");
if (get_context()->polyorb_hi_c)
fprintf (script,"\t--with-polyorb-hi-c \\\n");
......
------------------------------------------------------------------------------
-- --
-- OCARINA COMPONENTS --
-- --
-- O C A R I N A --
-- --
-- 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) --
-- --
------------------------------------------------------------------------------
-- This is the main project file for clients of Ocarina. A client
-- project file should say "with ocarina;", and the ADA_PROJECT_PATH
-- environment variable should be set to point to the directory
-- containing this file.
with "ocarina_core";
with "ocarina_config";
with "ocarina_frontends";
with "ocarina_backends";
with "ocarina_transfo";
project Ocarina is
Home := external ("HOME");
Prefix := external ("OCARINA_PATH", HOME & "/tool-inst/");
for Source_Dirs use (Prefix & "/include/ocarina");
for Object_Dir use Prefix & "/lib/ocarina";
for Externally_Built use "true";
end Ocarina;
------------------------------------------------------------------------------
-- --
-- OCARINA COMPONENTS --
-- --
-- O C A R I N A _ B A C K E N D S --
-- --
-- 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) --
-- --
------------------------------------------------------------------------------
with "ocarina_core";
project Ocarina_Backends is
Home := external ("HOME");
Prefix := external ("OCARINA_PATH", Home & "/tool-inst/");
for Source_files use ();
for Library_Name use "ocarina-backends";
for Library_Dir use Prefix & "/lib";
for Library_Kind use "dynamic";
for Externally_Built use "true";
end Ocarina_Backends;
------------------------------------------------------------------------------
-- --
-- OCARINA COMPONENTS --
-- --
-- O C A R I N A _ C O N F I G --
-- --
-- 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) --
-- --
------------------------------------------------------------------------------
with "ocarina_core";
with "ocarina_frontends";
with "ocarina_backends";
with "ocarina_transfo";
project Ocarina_Config is
Home := external ("HOME");
Prefix := external ("OCARINA_PATH", HOME & "/tool-inst/");
for Source_files use ();
for Library_Name use "ocarina-config";
for Library_Dir use Prefix & "/lib";
for Library_Kind use "dynamic";
for Externally_Built use "true";
end Ocarina_Config;
------------------------------------------------------------------------------
-- --
-- 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
Home := external ("HOME");
Prefix := external ("OCARINA_PATH", HOME & "/tool-inst/");
for Source_files use ();
for Library_Name use "ocarina";
for Library_Dir use Prefix & "/lib";
for Library_Kind use "dynamic";
for Externally_Built use "true";
end Ocarina_Core;
------------------------------------------------------------------------------
-- --
-- OCARINA COMPONENTS --
-- --
-- O C A R I N A _ F R O N T E N D S --
-- --
-- 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) --
-- --
------------------------------------------------------------------------------
with "ocarina_core";
project Ocarina_Frontends is
Home := external ("HOME");
Prefix := external ("OCARINA_PATH", HOME & "/tool-inst/");
for Source_files use ();
for Library_Name use "ocarina-frontends";
for Library_Dir use Prefix & "/lib";
for Library_Kind use "dynamic";
for Externally_Built use "true";
end Ocarina_Frontends;
------------------------------------------------------------------------------
-- --
-- OCARINA COMPONENTS --
-- --
-- O C A R I N A _ T R A N S F O --
-- --
-- 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) --
-- --
------------------------------------------------------------------------------
with "ocarina_core";
with "ocarina_backends";
project Ocarina_Transfo is
Home := external ("HOME");
Prefix := external ("OCARINA_PATH", HOME & "/tool-inst/");
for Source_files use ();
for Library_Name use "ocarina-transfo";
for Library_Dir use Prefix & "/lib";
for Library_Kind use "dynamic";
for Externally_Built use "true";
end Ocarina_Transfo;