- Fix portability issues with config.h header. Now it is

included by the compiler (via a flag) and the visibility
macros have been moved to a separate header. You'll
probably need to cleanup your source dir and re-run autogen.sh
before compiling sgpem again.


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1191 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
tchernobog 2006-09-16 13:34:43 +00:00
parent 74a2d8ff91
commit d128ee8608
118 changed files with 171 additions and 393 deletions

View File

@ -73,11 +73,11 @@ CLEANFILES =
ACLOCAL_AMFLAGS = -I m4
install_macros = \
m4/sgpemv2-dirs.m4 \
m4/sgpemv2-visibility.m4
m4/sgpemv2-dirs.m4
macros = \
m4/compilerflags.m4 \
m4/linkingflags.m4
m4/linkingflags.m4 \
m4/sgpemv2-visibility.m4
distro_files = \
distro/deb/control-file-v1.0 \
@ -85,7 +85,14 @@ distro_files = \
distro/deb/readme.txt \
distro/ebuild/sgpemv2-1.0.ebuild \
distro/rpm/SPECS/sgpemv2-1.0.spec \
distro/rpm/readme.txt
distro/rpm/readme.txt \
distro/win32/pyloader.vcproj \
distro/win32/sgpemv2.vcproj \
distro/win32/backend.vcproj \
distro/win32/config/config.h \
distro/win32/xmlsave.vcproj \
distro/win32/sgpemv2.sln \
distro/win32/_sgpem.vcproj
EXTRA_DIST += \
config/config.rpath \
@ -260,8 +267,9 @@ src_backend_libbackend_la_SOURCES = \
# Put here header files that will be installed for the user
# For headers used internally by the backend, see below.
# Please note that the first listed header is generated by
# configure.
pkginclude_HEADERS += \
config.h \
src/backend/sgpemv2/cpu_policies_gatekeeper.hh \
src/backend/sgpemv2/cpu_policy.hh \
src/backend/sgpemv2/cpu_policy_exception.hh \
@ -299,6 +307,7 @@ pkginclude_HEADERS += \
src/backend/sgpemv2/serializer.hh \
src/backend/sgpemv2/serializer_error.hh \
src/backend/sgpemv2/serializers_gatekeeper.hh \
src/backend/sgpemv2/sgpemv2-visibility.hh \
src/backend/sgpemv2/simulation.hh \
src/backend/sgpemv2/simulation_observer.hh \
src/backend/sgpemv2/simulation_statistics.hh \

View File

@ -44,6 +44,11 @@ AC_CANONICAL_TARGET
dnl starting automake
AM_INIT_AUTOMAKE([dejagnu dist-bzip2 subdir-objects])
dnl HACK to avoid multiple definition of macros when
dnl including spgemv2-config.h (autoheader generated)
AH_TOP([#if not defined PACKAGE])
AH_BOTTOM([#endif])
dnl gettext & libtool
AC_PROG_LIBTOOL
AM_GNU_GETTEXT([external])
@ -61,6 +66,7 @@ AC_CHECK_CXXFLAG([CXXFLAGS], [Wall])
AC_CHECK_CXXFLAG([CXXFLAGS], [pedantic])
AC_CHECK_CXXFLAG([CXXFLAGS], [Wextra])
AC_CHECK_CXXFLAG([CXXFLAGS], [Wno-long-long])
AC_CHECK_CXXFLAG([CXXFLAGS], [fvisibility-inlines-hidden])
AC_CHECK_LDFLAG([LDFLAGS],[--as-needed])
dnl see if we've to enable debug flags
@ -107,9 +113,6 @@ PKG_CHECK_MODULES([LIBGLADEMM],
[libglademm-2.4 >= $LIBGLADEMM_VERSION],
:, AC_MSG_ERROR([$LIBGLADEMM_PKG_ERRORS]))
dnl use DSO visibility tags for systems that supports it correctly
SGPEMV2_VISIBILITY_SUPPORT
dnl check for Doxygen
AC_CHECK_PROG([HAVE_DOXYGEN],[doxygen],[yes])
AC_CHECK_PROG([HAVE_DOT],[dot], [yes])
@ -129,6 +132,8 @@ dnl output files
AC_CONFIG_FILES([config/Doxyfile config/sgpemv2.pc config/sgpemv2-uninstalled.pc])
AC_CONFIG_HEADERS([config.h:config.h.in])
# force include of configuration header in every compilation unit
CPPFLAGS="${CPPFLAGS} -include config.h"
dnl configure plugin directories
dnl TODO: make this conditional

View File

@ -1,87 +0,0 @@
dnl m4/sgpemv2-visibility.m4 - Copyright 2005, 2006, University
dnl of Padova, dept. of Pure and Applied
dnl Mathematics
dnl
dnl This file is part of SGPEMv2.
dnl
dnl This is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License as published by
dnl the Free Software Foundation; either version 2 of the License, or
dnl (at your option) any later version.
dnl
dnl SGPEMv2 is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
dnl GNU General Public License for more details.
dnl
dnl You should have received a copy of the GNU General Public License
dnl along with SGPEMv2; if not, write to the Free Software
dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
dnl ---------- AC_PROG_SGPEMV2 ---------------------
dnl
dnl Synopsis: AC_PROG_SGPEMV2([min_version])
dnl
dnl This macro enables the new DSO visibility
dnl support for compilers that supports it, defining
dnl the following preprocessor macros:
dnl SG_DLLEXPORT : for objects exported by the DSO
dnl SG_DLLIMPORT : for objects imported by the DSO
dnl SG_DLLLOCAL : for objects local to the DSO
dnl SG_DLLPUBLIC : for objects public outside the DSO
dnl
dnl Example of usage: SGPEMV2_VISIBILITY_SUPPORT
dnl ------------------------------------------------
AC_DEFUN([SGPEMV2_VISIBILITY_SUPPORT],
[
dnl use DSO visibility tags for systems that supports it correctly
dnl (for example, GCC 4.0 and above)
dnl see http://gcc.gnu.org/wiki/Visibility for more informations
AH_TEMPLATE([SG_DLLEXPORT],[Attribute for objects to be exported from DSOs])
AH_TEMPLATE([SG_DLLIMPORT],[Attribute for objects to be imported from DSOs])
AH_TEMPLATE([SG_DLLLOCAL], [Attribute for objects local to current DSO])
AH_TEMPLATE([SG_DLLPUBLIC],[Attribute for DSO public objects])
AC_ARG_ENABLE([visibility-support],
AS_HELP_STRING([--disable-visibility-support],
[disable the new GCC visibility support]),
[enable_gcc_visibility="$enableval"],
[enable_gcc_visibility="yes"])
AC_MSG_CHECKING([whether to use new GCC visibility attributes])
dnl for now it works only with GCC >= 4.0.0
AC_LANG_PUSH([C++])
if test "x$enable_gcc_visibility" = "xyes"; then
AC_COMPILE_IFELSE(
AC_LANG_PROGRAM([], [
#if defined __GNUC__ && (__GNUC__) >= 4
return 0;
#else
bails out with a compilation error.
#endif
]),
:,
[enable_gcc_visibility="no"])
fi
AC_LANG_POP
if test "x$enable_gcc_visibility" = "xyes"; then
AC_MSG_RESULT([yes])
AC_DEFINE([SG_DLLIMPORT],[/* intentionally left with no value */])
AC_DEFINE([SG_DLLEXPORT],[__attribute__ ((visibility("default")))])
AC_DEFINE([SG_DLLLOCAL],[__attribute__ ((visibility("hidden")))])
AC_DEFINE([SG_DLLPUBLIC],[__attribute__ ((visibility("default")))])
AC_CHECK_CXXFLAG([VISIB_HIDDEN], [fvisibility=hidden])
AC_SUBST([VISIB_HIDDEN])
AC_CHECK_CXXFLAG([CXXFLAGS],[fvisibility-inlines-hidden])
else
AC_MSG_RESULT([no])
AC_DEFINE([SG_DLLIMPORT],[/* unsupported */])
AC_DEFINE([SG_DLLEXPORT],[/* unsupported */])
AC_DEFINE([SG_DLLLOCAL],[/* unsupported */])
AC_DEFINE([SG_DLLPUBLIC],[/* unsupported */])
fi
])dnl ------- SGPEMV2_VISIBILITY_SUPPORT ---------------------

View File

@ -61,6 +61,7 @@ AC_CHECK_CXXFLAG([CXXFLAGS], [Wall])
AC_CHECK_CXXFLAG([CXXFLAGS], [pedantic])
AC_CHECK_CXXFLAG([CXXFLAGS], [Wextra])
AC_CHECK_CXXFLAG([CXXFLAGS], [Wno-long-long])
AC_CHECK_CXXFLAG([CXXFLAGS], [fvisibility-inlines-hidden])
AC_CHECK_LDFLAG([LDFLAGS], [--as-needed])
dnl see if we've to enable debug flags
@ -112,9 +113,6 @@ PKG_CHECK_MODULES([GLIBMM],
[glibmm-2.4 >= $GTKMM_VERSION],
:, AC_MSG_ERROR([$GLIBMM_PKG_ERRORS]))
dnl use DSO visibility tags for systems that supports it correctly
SGPEMV2_VISIBILITY_SUPPORT
dnl see if we've to compile tests
AC_MSG_CHECKING([whether tests have to be built])
AC_ARG_ENABLE([tests],

View File

@ -1,88 +0,0 @@
dnl m4/sgpemv2-visibility.m4 - Copyright 2005, 2006, University
dnl of Padova, dept. of Pure and Applied
dnl Mathematics
dnl
dnl This file is part of SGPEMv2.
dnl
dnl This is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License as published by
dnl the Free Software Foundation; either version 2 of the License, or
dnl (at your option) any later version.
dnl
dnl SGPEMv2 is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
dnl GNU General Public License for more details.
dnl
dnl You should have received a copy of the GNU General Public License
dnl along with SGPEMv2; if not, write to the Free Software
dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
dnl ---------- AC_PROG_SGPEMV2 ---------------------
dnl
dnl Synopsis: AC_PROG_SGPEMV2([min_version])
dnl
dnl This macro enables the new DSO visibility
dnl support for compilers that supports it, defining
dnl the following preprocessor macros:
dnl SG_DLLEXPORT : for objects exported by the DSO
dnl SG_DLLIMPORT : for objects imported by the DSO
dnl SG_DLLLOCAL : for objects local to the DSO
dnl SG_DLLPUBLIC : for objects public outside the DSO
dnl
dnl Example of usage: SGPEMV2_VISIBILITY_SUPPORT
dnl ------------------------------------------------
AC_DEFUN([SGPEMV2_VISIBILITY_SUPPORT],
[
dnl use DSO visibility tags for systems that supports it correctly
dnl (for example, GCC 4.0 and above)
dnl see http://gcc.gnu.org/wiki/Visibility for more informations
AH_TEMPLATE([SG_DLLEXPORT],[Attribute for objects to be exported from DSOs])
AH_TEMPLATE([SG_DLLIMPORT],[Attribute for objects to be imported from DSOs])
AH_TEMPLATE([SG_DLLLOCAL], [Attribute for objects local to current DSO])
AH_TEMPLATE([SG_DLLPUBLIC],[Attribute for DSO public objects])
AC_ARG_ENABLE([visibility-support],
AS_HELP_STRING([--disable-visibility-support],
[disable the new GCC visibility support]),
[enable_gcc_visibility="$enableval"],
[enable_gcc_visibility="yes"])
AC_MSG_CHECKING([whether to use new GCC visibility attributes])
dnl for now it works only with GCC >= 4.0.0
AC_LANG_PUSH([C++])
if test "x$enable_gcc_visibility" = "xyes"; then
AC_COMPILE_IFELSE(
AC_LANG_PROGRAM([], [
#if defined __GNUC__ && (__GNUC__) >= 4
return 0;
#else
bails out with a compilation error.
#endif
]),
:,
[enable_gcc_visibility="no"])
fi
AC_LANG_POP
if test "x$enable_gcc_visibility" = "xyes"; then
AC_MSG_RESULT([yes])
AC_DEFINE([SG_DLLIMPORT],[/* intentionally left with no value */])
AC_DEFINE([SG_DLLEXPORT],[__attribute__ ((visibility("default")))])
AC_DEFINE([SG_DLLLOCAL],[__attribute__ ((visibility("hidden")))])
AC_DEFINE([SG_DLLPUBLIC],[__attribute__ ((visibility("default")))])
AC_CHECK_CXXFLAG([VISIB_HIDDEN], [fvisibility=hidden])
AC_SUBST([VISIB_HIDDEN])
AC_CHECK_CXXFLAG([CXXFLAGS],[fvisibility-inlines-hidden])
else
AC_MSG_RESULT([no])
AC_DEFINE([SG_DLLIMPORT],[/* unsupported */])
AC_DEFINE([SG_DLLEXPORT],[/* unsupported */])
AC_DEFINE([SG_DLLLOCAL],[/* unsupported */])
AC_DEFINE([SG_DLLPUBLIC],[/* unsupported */])
fi
])dnl ------- SGPEMV2_VISIBILITY_SUPPORT ---------------------

View File

@ -50,8 +50,7 @@ ACLOCAL_AMFLAGS = -I m4
macros = m4/compilerflags.m4 \
m4/linkingflags.m4 \
m4/sgpemv2-dirs.m4 \
m4/sgpemv2-visibility.m4
m4/sgpemv2-dirs.m4
EXTRA_DIST += \
config/config.rpath \

View File

@ -61,6 +61,7 @@ AC_CHECK_CXXFLAG([CXXFLAGS], [Wall])
AC_CHECK_CXXFLAG([CXXFLAGS], [pedantic])
AC_CHECK_CXXFLAG([CXXFLAGS], [Wextra])
AC_CHECK_CXXFLAG([CXXFLAGS], [Wno-long-long])
AC_CHECK_CXXFLAG([CXXFLAGS], [fvisibility-inlines-hidden])
AC_CHECK_LDFLAG([LDFLAGS], [--as-needed])
dnl see if we've to enable debug flags
@ -110,9 +111,6 @@ PKG_CHECK_MODULES([LIBXML2],
:, AC_MSG_ERROR([$LIBXML2_PKG_ERRORS]))
dnl use DSO visibility tags for systems that supports it correctly
SGPEMV2_VISIBILITY_SUPPORT
dnl see if we've to compile tests
AC_MSG_CHECKING([whether tests have to be built])
AC_ARG_ENABLE([tests],

View File

@ -1,88 +0,0 @@
dnl m4/sgpemv2-visibility.m4 - Copyright 2005, 2006, University
dnl of Padova, dept. of Pure and Applied
dnl Mathematics
dnl
dnl This file is part of SGPEMv2.
dnl
dnl This is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License as published by
dnl the Free Software Foundation; either version 2 of the License, or
dnl (at your option) any later version.
dnl
dnl SGPEMv2 is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
dnl GNU General Public License for more details.
dnl
dnl You should have received a copy of the GNU General Public License
dnl along with SGPEMv2; if not, write to the Free Software
dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
dnl ---------- AC_PROG_SGPEMV2 ---------------------
dnl
dnl Synopsis: AC_PROG_SGPEMV2([min_version])
dnl
dnl This macro enables the new DSO visibility
dnl support for compilers that supports it, defining
dnl the following preprocessor macros:
dnl SG_DLLEXPORT : for objects exported by the DSO
dnl SG_DLLIMPORT : for objects imported by the DSO
dnl SG_DLLLOCAL : for objects local to the DSO
dnl SG_DLLPUBLIC : for objects public outside the DSO
dnl
dnl Example of usage: SGPEMV2_VISIBILITY_SUPPORT
dnl ------------------------------------------------
AC_DEFUN([SGPEMV2_VISIBILITY_SUPPORT],
[
dnl use DSO visibility tags for systems that supports it correctly
dnl (for example, GCC 4.0 and above)
dnl see http://gcc.gnu.org/wiki/Visibility for more informations
AH_TEMPLATE([SG_DLLEXPORT],[Attribute for objects to be exported from DSOs])
AH_TEMPLATE([SG_DLLIMPORT],[Attribute for objects to be imported from DSOs])
AH_TEMPLATE([SG_DLLLOCAL], [Attribute for objects local to current DSO])
AH_TEMPLATE([SG_DLLPUBLIC],[Attribute for DSO public objects])
AC_ARG_ENABLE([visibility-support],
AS_HELP_STRING([--disable-visibility-support],
[disable the new GCC visibility support]),
[enable_gcc_visibility="$enableval"],
[enable_gcc_visibility="yes"])
AC_MSG_CHECKING([whether to use new GCC visibility attributes])
dnl for now it works only with GCC >= 4.0.0
AC_LANG_PUSH([C++])
if test "x$enable_gcc_visibility" = "xyes"; then
AC_COMPILE_IFELSE(
AC_LANG_PROGRAM([], [
#if defined __GNUC__ && (__GNUC__) >= 4
return 0;
#else
bails out with a compilation error.
#endif
]),
:,
[enable_gcc_visibility="no"])
fi
AC_LANG_POP
if test "x$enable_gcc_visibility" = "xyes"; then
AC_MSG_RESULT([yes])
AC_DEFINE([SG_DLLIMPORT],[/* intentionally left with no value */])
AC_DEFINE([SG_DLLEXPORT],[__attribute__ ((visibility("default")))])
AC_DEFINE([SG_DLLLOCAL],[__attribute__ ((visibility("hidden")))])
AC_DEFINE([SG_DLLPUBLIC],[__attribute__ ((visibility("default")))])
AC_CHECK_CXXFLAG([VISIB_HIDDEN], [fvisibility=hidden])
AC_SUBST([VISIB_HIDDEN])
AC_CHECK_CXXFLAG([CXXFLAGS],[fvisibility-inlines-hidden])
else
AC_MSG_RESULT([no])
AC_DEFINE([SG_DLLIMPORT],[/* unsupported */])
AC_DEFINE([SG_DLLEXPORT],[/* unsupported */])
AC_DEFINE([SG_DLLLOCAL],[/* unsupported */])
AC_DEFINE([SG_DLLPUBLIC],[/* unsupported */])
fi
])dnl ------- SGPEMV2_VISIBILITY_SUPPORT ---------------------

View File

@ -27,7 +27,7 @@ namespace sgpem
class Thread;
}
#include "config.h"
#include <gtkmm/treeview.h>
#include <gtkmm/liststore.h>

View File

@ -21,7 +21,7 @@
#ifndef CONCRETE_ENVIRONMENT_HH
#define CONCRETE_ENVIRONMENT_HH 1
#include "config.h"
#include <sgpemv2/environment.hh>
#include <sgpemv2/resource.hh>
#include "dynamic_process.hh"

View File

@ -18,7 +18,7 @@
// along with SGPEMv2; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include "config.h"
#include "dynamic_process.hh"
#include "dynamic_thread.hh"

View File

@ -21,7 +21,7 @@
#ifndef CONCRETE_HISTORY_HH
#define CONCRETE_HISTORY_HH 1
#include "config.h"
#include "concrete_environment.hh"
#include "dynamic_process.hh"

View File

@ -21,7 +21,7 @@
#ifndef CONCRETE_PROCESS_STATISTICS_HH
#define CONCRETE_PROCESS_STATISTICS_HH 1
#include "config.h"
#include <sgpemv2/process_statistics.hh>
#include <sgpemv2/thread_statistics.hh>

View File

@ -21,7 +21,7 @@
#ifndef CONCRETE_SIMULATION_HH
#define CONCRETE_SIMULATION_HH 1
#include "config.h"
#include <sgpemv2/simulation.hh>
#include "concrete_history.hh"

View File

@ -21,7 +21,7 @@
#ifndef CONCRETE_SIMULATION_STATISTICS_HH
#define CONCRETE_SIMULATION_STATISTICS_HH 1
#include "config.h"
#include <sgpemv2/simulation_statistics.hh>
#include "concrete_process_statistics.hh"

View File

@ -21,7 +21,7 @@
#ifndef CONCRETE_STATISTICS_HH
#define CONCRETE_STATISTICS_HH 1
#include "config.h"
#include <sgpemv2/statistics.hh>
#include "concrete_process_statistics.hh"

View File

@ -21,7 +21,7 @@
#ifndef CONCRETE_THREAD_STATISTICS_HH
#define CONCRETE_THREAD_STATISTICS_HH 1
#include "config.h"
#include <sgpemv2/thread_statistics.hh>

View File

@ -18,7 +18,7 @@
// along with SGPEMv2; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include "config.h"
#include <sgpemv2/cpu_policies_gatekeeper.hh>
#include <sgpemv2/cpu_policy_manager.hh>

View File

@ -21,7 +21,7 @@
#ifndef DYNAMIC_PROCESS_HH
#define DYNAMIC_PROCESS_HH 1
#include "config.h"
#include "gettext.h"
#include <sgpemv2/process.hh>

View File

@ -21,7 +21,7 @@
#ifndef DYNAMIC_REQUEST_HH
#define DYNAMIC_REQUEST_HH 1
#include "config.h"
#include <sgpemv2/request.hh>
#include "static_request.hh"

View File

@ -21,7 +21,7 @@
#ifndef DYNAMIC_RESOURCE_HH
#define DYNAMIC_RESOURCE_HH 1
#include "config.h"
#include "glibmm/ustring.h"
#include <sgpemv2/templates/smartp.hh>

View File

@ -21,7 +21,7 @@
#ifndef DYNAMIC_SCHEDULABLE_HH
#define DYNAMIC_SCHEDULABLE_HH 1
#include "config.h"
#include <sgpemv2/schedulable.hh>
#include "static_schedulable.hh"

View File

@ -21,7 +21,7 @@
#ifndef DYNAMIC_SUB_REQUEST_HH
#define DYNAMIC_SUB_REQUEST_HH 1
#include "config.h"
#include <sgpemv2/request.hh>
#include <sgpemv2/sub_request.hh>

View File

@ -21,7 +21,7 @@
#ifndef DYNAMIC_THREAD_HH
#define DYNAMIC_THREAD_HH 1
#include "config.h"
#include "gettext.h"
#include "glibmm/ustring.h"
#include <vector>

View File

@ -18,7 +18,7 @@
// along with SGPEMv2; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include "config.h"
#include "gettext.h"
#include <glib/gstdio.h>

View File

@ -18,7 +18,7 @@
// along with SGPEMv2; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include "config.h"
#include <sgpemv2/history.hh>
#include <sgpemv2/history_observer.hh>

View File

@ -18,7 +18,7 @@
// along with SGPEMv2; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include "config.h"
#include <sgpemv2/invalid_plugin_exception.hh>

View File

@ -18,7 +18,7 @@
// along with SGPEMv2; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include "config.h"
#include <sgpemv2/key_file.hh>
#include <fstream>
#include <string.h>

View File

@ -18,7 +18,7 @@
// along with SGPEMv2; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include "config.h"
#include <sgpemv2/module.hh>

View File

@ -18,7 +18,7 @@
// along with SGPEMv2; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include "config.h"
#include <sgpemv2/plugin_manager.hh>
#include <sgpemv2/module.hh>

View File

@ -18,7 +18,7 @@
// along with SGPEMv2; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include "config.h"
#include "gettext.h"
#include <sgpemv2/ready_queue.hh>

View File

@ -18,7 +18,7 @@
// along with SGPEMv2; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include "config.h"
#include <sgpemv2/resource_policies_gatekeeper.hh>
#include <sgpemv2/resource_policy_manager.hh>

View File

@ -18,7 +18,7 @@
// along with SGPEMv2; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include "config.h"
#include <sgpemv2/serializer_error.hh>

View File

@ -18,7 +18,7 @@
// along with SGPEMv2; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include "config.h"
#include <sgpemv2/serializers_gatekeeper.hh>
#include <sgpemv2/serializer.hh>

View File

@ -28,7 +28,7 @@ namespace sgpem
class History;
}
#include "config.h"
#include <sgpemv2/sgpemv2-visibility.hh>
#include <vector>
#include <map>

View File

@ -21,7 +21,7 @@
#ifndef CPU_POLICY_HH
#define CPU_POLICY_HH 1
#include "config.h"
#include <sgpemv2/sgpemv2-visibility.hh>
#include "gettext.h"
#include "glibmm/ustring.h"

View File

@ -25,7 +25,7 @@
#ifndef CPU_POLICY_EXCEPTION
#define CPU_POLICY_EXCEPTION 1
#include "config.h"
#include <sgpemv2/sgpemv2-visibility.hh>
#include <stdexcept>

View File

@ -26,7 +26,7 @@ namespace sgpem
class CPUPolicyManager;
}
#include "config.h"
#include <sgpemv2/sgpemv2-visibility.hh>
#include <sgpemv2/cpu_policy.hh>

View File

@ -26,7 +26,7 @@ namespace sgpem
class ResourcePolicy;
}
#include "config.h"
#include <sgpemv2/sgpemv2-visibility.hh>
#include <sgpemv2/resource_policy_manager.hh>

View File

@ -21,7 +21,7 @@
#ifndef ENVIRONMENT_HH
#define ENVIRONMENT_HH 1
#include "config.h"
#include <sgpemv2/sgpemv2-visibility.hh>
#include <sgpemv2/sub_request.hh>

View File

@ -21,7 +21,7 @@
#ifndef GLOBAL_PREFERENCES_HH
#define GLOBAL_PREFERENCES_HH 1
#include "config.h"
#include <sgpemv2/sgpemv2-visibility.hh>
#include <glibmm/fileutils.h>
#include <glibmm/ustring.h>

View File

@ -21,7 +21,7 @@
#ifndef HISTORY_HH
#define HISTORY_HH 1
#include "config.h"
#include <sgpemv2/sgpemv2-visibility.hh>
#include <sgpemv2/environment.hh>

View File

@ -21,7 +21,7 @@
#ifndef HISTORY_OBSERVER_HH
#define HISTORY_OBSERVER_HH 1
#include "config.h"
#include <sgpemv2/sgpemv2-visibility.hh>
namespace sgpem
{

View File

@ -21,7 +21,7 @@
#ifndef INVALID_PLUGIN_EXCEPTION_HH
#define INVALID_PLUGIN_EXCEPTION_HH 1
#include "config.h"
#include <sgpemv2/sgpemv2-visibility.hh>
#include <stdexcept>

View File

@ -26,7 +26,7 @@ namespace sgpem
class KeyFile;
}
#include "config.h"
#include <sgpemv2/sgpemv2-visibility.hh>
#include <glibmm/ustring.h>

View File

@ -25,7 +25,7 @@
#ifndef MALFORMED_POLICY_EXCEPTION
#define MALFORMED_POLICY_EXCEPTION 1
#include "config.h"
#include <sgpemv2/sgpemv2-visibility.hh>
#include <sgpemv2/cpu_policy_exception.hh>

View File

@ -21,7 +21,7 @@
#ifndef MODULE_HH
#define MODULE_HH 1
#include "config.h"
#include <sgpemv2/sgpemv2-visibility.hh>
#include <sgpemv2/invalid_plugin_exception.hh>

View File

@ -25,7 +25,7 @@
#ifndef NULL_POLICY_EXCEPTION
#define NULL_POLICY_EXCEPTION 1
#include "config.h"
#include <sgpemv2/sgpemv2-visibility.hh>
#include <stdexcept>

View File

@ -21,7 +21,7 @@
#ifndef SGPEMV2__PLUGIN_HH
#define SGPEMV2__PLUGIN_HH 1
#include "config.h"
#include <sgpemv2/sgpemv2-visibility.hh>
#ifdef __cplusplus
extern "C"

View File

@ -26,7 +26,7 @@ namespace sgpem
class Module;
}
#include "config.h"
#include <sgpemv2/sgpemv2-visibility.hh>
#include <sgpemv2/templates/singleton.hh>

View File

@ -21,7 +21,7 @@
#ifndef POLICY_PARAMETERS_HH
#define POLICY_PARAMETERS_HH 1
#include "config.h"
#include <sgpemv2/sgpemv2-visibility.hh>
#include <map>
#include <stdexcept>

View File

@ -21,7 +21,7 @@
#ifndef PROCESS_HH
#define PROCESS_HH 1
#include "config.h"
#include <sgpemv2/sgpemv2-visibility.hh>
#include "glibmm/ustring.h"
#include <vector>

View File

@ -21,7 +21,7 @@
#ifndef PROCESS_STATISTICS_HH
#define PROCESS_STATISTICS_HH 1
#include "config.h"
#include <sgpemv2/sgpemv2-visibility.hh>
#include <sgpemv2/schedulable_statistics.hh>
#include <sgpemv2/thread_statistics.hh>

View File

@ -21,7 +21,7 @@
#ifndef READY_QUEUE_HH
#define READY_QUEUE_HH 1
#include "config.h"
#include <sgpemv2/sgpemv2-visibility.hh>
#include <stdexcept>
#include <vector>

View File

@ -29,7 +29,7 @@ namespace sgpem
class Thread;
}
#include "config.h"
#include <sgpemv2/sgpemv2-visibility.hh>
#include <vector>
namespace sgpem

View File

@ -21,7 +21,7 @@
#ifndef RESOURCE_HH
#define RESOURCE_HH 1
#include "config.h"
#include <sgpemv2/sgpemv2-visibility.hh>
#include "glibmm/ustring.h"
namespace sgpem

View File

@ -28,7 +28,7 @@ namespace sgpem
class History;
}
#include "config.h"
#include <sgpemv2/sgpemv2-visibility.hh>
#include <vector>
#include <map>

View File

@ -21,7 +21,7 @@
#ifndef RESOURCE_POLICY_HH
#define RESOURCE_POLICY_HH 1
#include "config.h"
#include <sgpemv2/sgpemv2-visibility.hh>
#include "gettext.h"
#include "glibmm/ustring.h"

View File

@ -21,7 +21,7 @@
#ifndef RESOURCE_POLICY_FIFO_HH
#define RESOURCE_POLICY_FIFO_HH 1
#include "config.h"
#include <sgpemv2/sgpemv2-visibility.hh>
#include "gettext.h"
#include "glibmm/ustring.h"

View File

@ -21,7 +21,7 @@
#ifndef RESOURCE_POLICY_LIFO_HH
#define RESOURCE_POLICY_LIFO_HH 1
#include "config.h"
#include <sgpemv2/sgpemv2-visibility.hh>
#include "gettext.h"
#include "glibmm/ustring.h"

View File

@ -26,7 +26,7 @@ namespace sgpem
class ResourcePolicy;
}
#include "config.h"
#include <sgpemv2/sgpemv2-visibility.hh>
#include <vector>

View File

@ -21,7 +21,7 @@
#ifndef RESOURCE_POLICY_PRIORITY_HH
#define RESOURCE_POLICY_PRIORITY_HH 1
#include "config.h"
#include <sgpemv2/sgpemv2-visibility.hh>
#include "gettext.h"
#include "glibmm/ustring.h"

View File

@ -26,7 +26,7 @@ namespace sgpem
class ResourcePolicyPriorityInheritance;
}
#include "config.h"
#include <sgpemv2/sgpemv2-visibility.hh>
#include "gettext.h"
#include <sgpemv2/resource_policy.hh>

View File

@ -21,7 +21,7 @@
#ifndef SCHEDULABLE_HH
#define SCHEDULABLE_HH 1
#include "config.h"
#include <sgpemv2/sgpemv2-visibility.hh>
#include <glibmm/ustring.h>

View File

@ -21,7 +21,7 @@
#ifndef SCHEDULABLE_STATISTICS_HH
#define SCHEDULABLE_STATISTICS_HH 1
#include "config.h"
#include <sgpemv2/sgpemv2-visibility.hh>
#include "schedulable.hh"
#include <glibmm/ustring.h>

View File

@ -26,7 +26,7 @@ namespace sgpem
class CPUPolicy;
}
#include "config.h"
#include <sgpemv2/sgpemv2-visibility.hh>
#include <sgpemv2/history.hh>
#include <sgpemv2/cpu_policy.hh>

View File

@ -32,7 +32,7 @@ namespace sgpem
class SubRequest;
}
#include "config.h"
#include <sgpemv2/sgpemv2-visibility.hh>
#include <sgpemv2/serializer_error.hh>

View File

@ -21,7 +21,7 @@
#ifndef SERIALIZER_HH
#define SERIALIZER_HH 1
#include "config.h"
#include <sgpemv2/sgpemv2-visibility.hh>
#include <sgpemv2/history.hh>
#include <sgpemv2/serializer_error.hh>

View File

@ -21,7 +21,7 @@
#ifndef SERIALIZER_ERROR_HH
#define SERIALIZER_ERROR_HH 1
#include "config.h"
#include <sgpemv2/sgpemv2-visibility.hh>
#include <stdexcept>

View File

@ -26,7 +26,7 @@ namespace sgpem
class Serializer;
}
#include "config.h"
#include <sgpemv2/sgpemv2-visibility.hh>
#include <vector>

View File

@ -0,0 +1,32 @@
// Visibility macros for GNU GCC
#if defined __GNUC__ && (__GNUC__) >= 4
/* Attribute for objects to be exported from DSOs */
#define SG_DLLEXPORT __attribute__ ((visibility("default")))
/* Attribute for objects to be imported from DSOs */
#define SG_DLLIMPORT /* intentionally left with no value */
/* Attribute for objects local to current DSO */
#define SG_DLLLOCAL __attribute__ ((visibility("hidden")))
/* Attribute for DSO public objects */
#define SG_DLLPUBLIC __attribute__ ((visibility("default")))
#else
/* Attribute for objects to be exported from DSOs */
#define SG_DLLEXPORT /* Unsupported */
/* Attribute for objects to be imported from DSOs */
#define SG_DLLIMPORT /* Unsupported */
/* Attribute for objects local to current DSO */
#define SG_DLLLOCAL /* Unsupported */
/* Attribute for DSO public objects */
#define SG_DLLPUBLIC /* Unsupported */
#endif

View File

@ -29,7 +29,7 @@ namespace sgpem
class SimulationObserver;
}
#include "config.h"
#include <sgpemv2/sgpemv2-visibility.hh>
#include <sgpemv2/history.hh>
#include <sgpemv2/templates/singleton.hh>
#include <sgpemv2/cpu_policy_exception.hh>

View File

@ -21,7 +21,7 @@
#ifndef SIMULATION_OBSERVER_HH
#define SIMULATION_OBSERVER_HH 1
#include "config.h"
#include <sgpemv2/sgpemv2-visibility.hh>
namespace sgpem
{

View File

@ -21,7 +21,7 @@
#ifndef SIMULATION_STATISTICS_HH
#define SIMULATION_STATISTICS_HH 1
#include "config.h"
#include <sgpemv2/sgpemv2-visibility.hh>
namespace sgpem

View File

@ -21,7 +21,7 @@
#ifndef STATISTICS_HH
#define STATISTICS_HH 1
#include "config.h"
#include <sgpemv2/sgpemv2-visibility.hh>
#include <sgpemv2/templates/singleton.hh>
#include <sgpemv2/process_statistics.hh>
#include <sgpemv2/simulation_statistics.hh>

View File

@ -21,7 +21,7 @@
#ifndef STRING_UTILS_HH
#define STRING_UTILS_HH 1
#include "config.h"
#include <sgpemv2/sgpemv2-visibility.hh>
#include <sstream>
#include <iostream>
#include <vector>

View File

@ -21,7 +21,7 @@
#ifndef SUB_REQUEST_HH
#define SUB_REQUEST_HH 1
#include "config.h"
#include <sgpemv2/sgpemv2-visibility.hh>
#include <sgpemv2/request.hh>

View File

@ -20,7 +20,7 @@
#define SINGLETON_HH 1
#include <glibmm/thread.h>
#include "config.h"
#include <sgpemv2/sgpemv2-visibility.hh>
namespace sgpem
{

View File

@ -21,7 +21,7 @@
#ifndef THREAD_HH
#define THREAD_HH 1
#include "config.h"
#include <sgpemv2/sgpemv2-visibility.hh>
#include <vector>
#include <sgpemv2/schedulable.hh>

View File

@ -21,7 +21,7 @@
#ifndef THREAD_STATISTICS_HH
#define THREAD_STATISTICS_HH 1
#include "config.h"
#include <sgpemv2/sgpemv2-visibility.hh>
#include <sgpemv2/schedulable_statistics.hh>
#include <sgpemv2/thread.hh>

View File

@ -25,7 +25,7 @@
#ifndef USER_INTERRUPT_EXCEPTION
#define USER_INTERRUPT_EXCEPTION 1
#include "config.h"
#include <sgpemv2/sgpemv2-visibility.hh>
#include <sgpemv2/cpu_policy_exception.hh>
#include <stdexcept>

View File

@ -18,7 +18,7 @@
// along with SGPEMv2; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include "config.h"
#include <sgpemv2/simulation.hh>
#include <sgpemv2/simulation_observer.hh>

View File

@ -21,7 +21,7 @@
#ifndef STATIC_PROCESS_HH
#define STATIC_PROCESS_HH 1
#include "config.h"
#include "static_schedulable.hh"
#include "static_thread.hh"
@ -38,7 +38,7 @@ namespace sgpem
It IS a Schedulable object.
*/
class SG_DLLLOCAL StaticProcess : public StaticSchedulable
class StaticProcess : public StaticSchedulable
{
public:
/** \brief Creates a new object with the given parameters. */

View File

@ -23,7 +23,7 @@
#include "static_thread.hh"
#include "config.h"
#include "glibmm/ustring.h"
namespace sgpem
@ -31,7 +31,7 @@ namespace sgpem
class StaticRequest;
class SerializeVisitor;
class SG_DLLLOCAL StaticRequest
class StaticRequest
{
public:
StaticRequest(StaticThread* thread, unsigned int instant);

View File

@ -21,7 +21,7 @@
#ifndef STATIC_RESOURCE_HH
#define STATIC_RESOURCE_HH 1
#include "config.h"
#include "glibmm/ustring.h"
namespace sgpem
@ -29,7 +29,7 @@ namespace sgpem
class StaticResource;
class SerializeVisitor;
class SG_DLLLOCAL StaticResource
class StaticResource
{
public:
StaticResource(const Glib::ustring& name, unsigned int places = 1);

View File

@ -21,7 +21,7 @@
#ifndef STATIC_SCHEDULABLE_HH
#define STATIC_SCHEDULABLE_HH 1
#include "config.h"
#include "glibmm/ustring.h"
namespace sgpem
@ -38,7 +38,7 @@ namespace sgpem
*
* \see DynamicSchedulable
*/
class SG_DLLLOCAL StaticSchedulable
class StaticSchedulable
{
public:
/** \brief Create a new object with the given parameters */

View File

@ -21,7 +21,7 @@
#ifndef STATIC_SUB_REQUEST_HH
#define STATIC_SUB_REQUEST_HH 1
#include "config.h"
#include <sgpemv2/sub_request.hh>
@ -31,7 +31,7 @@ namespace sgpem
class StaticRequest;
class StaticResource;
class SG_DLLLOCAL StaticSubRequest
class StaticSubRequest
{
public:
typedef SubRequest::resource_key_t resource_key_t;

View File

@ -24,7 +24,7 @@
#include "static_process.hh"
#include "static_schedulable.hh"
#include "config.h"
#include "gettext.h"
#include <glibmm/ustring.h>
@ -37,7 +37,7 @@ namespace sgpem
class StaticThread;
class StaticRequest;
class SG_DLLLOCAL StaticThread : public StaticSchedulable
class StaticThread : public StaticSchedulable
{
public:
StaticThread(const Glib::ustring& name,

0
src/backend/statistics.cc Executable file → Normal file
View File

View File

@ -21,7 +21,7 @@
#ifndef CAIRO_ELEMENTS_HH
#define CAIRO_ELEMENTS_HH 1
#include "config.h"
#include <sgpemv2/thread.hh>
#include <sgpemv2/process.hh>

View File

@ -21,7 +21,7 @@
#ifndef CAIRO_WIDGET_HH
#define CAIRO_WIDGET_HH 1
#include "config.h"
#include <cairo.h>
#include <gtkmm/drawingarea.h>

View File

@ -18,7 +18,7 @@
// along with SGPEMv2; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include "config.h"
#include "gettext.h"
#include "graphical_preferences_editor.hh"

View File

@ -22,7 +22,7 @@
#define GRAPHICAL_PREFERENCES_EDITOR_HH 1
#include "config.h"
#include <sgpemv2/global_preferences.hh>

View File

@ -18,7 +18,7 @@
// along with SGPEMv2; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include "config.h"
#include "gettext.h"
#include "gui_builder.hh"

View File

@ -21,7 +21,7 @@
#ifndef GUI_BUILDER_HH
#define GUI_BUILDER_HH 1
#include "config.h"
#include "holt_container_window.hh"
#include "statistics_container_window.hh"
#include "simulation_widget.hh"

View File

@ -21,7 +21,7 @@
#ifndef HOLT_CONTAINER_WINDOW_HH
#define HOLT_CONTAINER_WINDOW_HH 1
#include "config.h"
#include "gettext.h"
#include <gtkmm/window.h>

View File

@ -21,7 +21,7 @@
#ifndef HOLT_WIDGET_HH
#define HOLT_WIDGET_HH 1
#include "config.h"
#include "cairo_widget.hh"
#include <sgpemv2/history_observer.hh>

View File

@ -21,7 +21,7 @@
#ifndef JUMP_TO_DIALOG_HH
#define JUMP_TO_DIALOG_HH 1
#include "config.h"
#include <sgpemv2/simulation_observer.hh>

View File

@ -18,7 +18,7 @@
// along with SGPEMv2; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include "config.h"
#include "gettext.h"
#include "main.hh"

View File

@ -18,7 +18,7 @@
// along with SGPEMv2; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include "config.h"
#include "gettext.h"
#include <sgpemv2/global_preferences.hh>

Some files were not shown because too many files have changed in this diff Show More