- Merged branch 0.3-r556--SPLIT_PYLOADER_CONFIG back into trunk
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@561 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
c6d4f5fd27
commit
51f0d7fbe7
36 changed files with 849 additions and 48 deletions
196
plugins/pyloader/Makefile.am
Normal file
196
plugins/pyloader/Makefile.am
Normal file
|
@ -0,0 +1,196 @@
|
|||
# Makefile.am - Copyright 2005, 2006, University
|
||||
# of Padova, dept. of Pure and Applied
|
||||
# Mathematics
|
||||
#
|
||||
# This file is part of SGPEMv2.
|
||||
#
|
||||
# This is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# SGPEMv2 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. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with SGPEMv2; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
|
||||
# extra calls
|
||||
.PHONY : apidox
|
||||
|
||||
# this should be the only recursive call
|
||||
SUBDIRS = po
|
||||
|
||||
# directories definition
|
||||
localedir = @datadir@/locale
|
||||
plugindir = $(SGPEMV2_PLUGINS_DIR)
|
||||
sharedir = $(plugindir)/extras/pyloader
|
||||
policiesdir = $(SGPEMV2_POLICIES_DIR)
|
||||
|
||||
#define empty global variables
|
||||
plugin_LTLIBRARIES =
|
||||
noinst_HEADERS =
|
||||
noinst_PYTHON =
|
||||
EXTRA_DIST =
|
||||
MAINTAINERCLEANFILES =
|
||||
MOSTLYCLEANFILES =
|
||||
CLEANFILES =
|
||||
|
||||
# ############################################################
|
||||
#
|
||||
# extra dist, cleanup and automake/aclocal flags
|
||||
#
|
||||
# ############################################################
|
||||
|
||||
ACLOCAL_AMFLAGS = -I m4
|
||||
|
||||
macros = m4/compilerflags.m4 \
|
||||
m4/linkingflags.m4 \
|
||||
m4/sgpemv2-dirs.m4
|
||||
|
||||
EXTRA_DIST += \
|
||||
config/config.rpath \
|
||||
config/mkinstalldirs \
|
||||
configure.ac \
|
||||
gettext.h \
|
||||
$(macros)
|
||||
|
||||
# ############################################################
|
||||
#
|
||||
# source : libpyloader.la
|
||||
#
|
||||
# ############################################################
|
||||
|
||||
plugin_LTLIBRARIES += libpyloader.la
|
||||
|
||||
libpyloader_la_CPPFLAGS = \
|
||||
-I@top_srcdir@ \
|
||||
-DSHAREDIR="\"$(sharedir)\"" \
|
||||
-DLOCALEDIR="\"$(localedir)\"" \
|
||||
$(PYTHON_CPPFLAGS) \
|
||||
$(GLIBMM_CFLAGS) \
|
||||
$(SGPEMV2_CFLAGS)
|
||||
libpyloader_la_CXXFLAGS = \
|
||||
$(VISIB_HIDDEN)
|
||||
libpyloader_la_LIBADD = \
|
||||
$(PYTHON_LDFLAGS) \
|
||||
$(PYTHON_EXTRA_LIBS) \
|
||||
$(GLIBMM_LIBS) \
|
||||
$(SGPEMV2_LIBS)
|
||||
libpyloader_la_LDFLAGS = \
|
||||
$(PYTHON_EXTRA_LDFLAGS) \
|
||||
$(LT_LDFLAGS) \
|
||||
-version-info 0:0:0 \
|
||||
-module
|
||||
|
||||
# Please keep this in sorted order:
|
||||
libpyloader_la_SOURCES = \
|
||||
python_policy.cc \
|
||||
python_policy_manager.cc \
|
||||
hook.cc
|
||||
|
||||
noinst_HEADERS += \
|
||||
python_policy.hh \
|
||||
python_policy_manager.hh
|
||||
|
||||
share_PYTHON = \
|
||||
Abstract.py \
|
||||
Policy.py \
|
||||
ScriptAdapter.py
|
||||
|
||||
# ############################################################
|
||||
#
|
||||
# C++ modules -> Python loadable modules
|
||||
#
|
||||
# ############################################################
|
||||
|
||||
proxies = sgpem.py
|
||||
wrappers = sgpem_wrap.cc
|
||||
|
||||
share_LTLIBRARIES = _sgpem.la
|
||||
share_PYTHON += $(proxies)
|
||||
|
||||
# static pattern rule
|
||||
$(proxies) $(wrappers) : sgpem.i
|
||||
test -d "$(@D)" || mkdir -p -- "$(@D)"
|
||||
$(SWIG) $(SWIG_PYTHON_OPT) -o $@ $<
|
||||
|
||||
_sgpem_la_INTERFACES = sgpem.i
|
||||
|
||||
_sgpem_la_CPPFLAGS = \
|
||||
-I@top_srcdir@ \
|
||||
$(SWIG_PYTHON_CPPFLAGS) \
|
||||
$(GLIBMM_CFLAGS) \
|
||||
$(SGPEMV2_CFLAGS)
|
||||
_sgpem_la_LDFLAGS = -module -export-dynamic \
|
||||
$(GLIBMM_LDFLAGS)
|
||||
_sgpem_la_LIBADD = $(SGPEMV2_LIBS) \
|
||||
$(GLIBMM_LIBS)
|
||||
_sgpem_la_SOURCES = $(wrappers)
|
||||
|
||||
EXTRA_DIST += $(_sgpem_la_INTERFACES)
|
||||
MOSTLYCLEANFILES += $(proxies) $(wrappers)
|
||||
|
||||
# ############################################################
|
||||
#
|
||||
# source : builtin-policies
|
||||
#
|
||||
# ############################################################
|
||||
|
||||
# built-in policies
|
||||
policies_PYTHON = \
|
||||
builtin-policies/fcfs.py \
|
||||
builtin-policies/sjf.py
|
||||
|
||||
|
||||
# ############################################################
|
||||
#
|
||||
# check : testsuite
|
||||
#
|
||||
# ############################################################
|
||||
|
||||
if COND_TESTS
|
||||
|
||||
# DEJATOOL = src/testsuite/example-test.exp
|
||||
|
||||
noinst_PROGRAMS = \
|
||||
testsuite/test-pyloader
|
||||
|
||||
testsuite_test_pyloader_CPPFLAGS = \
|
||||
-I@top_srcdir@ \
|
||||
-DSHAREDIR="\"$(sharedir)\"" \
|
||||
$(PYTHON_CPPFLAGS) \
|
||||
$(GLIBMM_CFLAGS) \
|
||||
$(GTHREAD_CFLAGS) \
|
||||
$(SGPEMV2_CFLAGS)
|
||||
testsuite_test_pyloader_DEPENDENCIES = \
|
||||
libpyloader.la
|
||||
testsuite_test_pyloader_LDFLAGS = \
|
||||
$(SGPEMV2_LIBS) \
|
||||
$(GLIBMM_LIBS) \
|
||||
$(GTHREAD_LIBS) \
|
||||
$(PYTHON_LDFLAGS) \
|
||||
$(PYTHON_EXTRA_LIBS) \
|
||||
$(PYTHON_EXTRA_LDFLAGS)
|
||||
testsuite_test_pyloader_SOURCES = \
|
||||
testsuite/test-python_loader.cc \
|
||||
python_policy.cc \
|
||||
python_policy_manager.cc
|
||||
|
||||
noinst_PYTHON += testsuite/python_loader_configure.py \
|
||||
testsuite/python_loader_sort_queue.py \
|
||||
testsuite/python_loader_is_preemptive.py \
|
||||
testsuite/python_loader_get_time_slice.py
|
||||
|
||||
|
||||
# Workaround an automake bug that leaves behind some files
|
||||
# while it's finishing the distcheck target
|
||||
CLEANFILES += \
|
||||
testsuite/.libs/test-pyloader
|
||||
|
||||
endif #~ if COND_TESTS
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue