- Add revision left out from last merging (Subversion has one of

the worst merge systems I've seen thus far)


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@563 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
tchernobog 2006-04-07 19:57:58 +00:00
parent 51f0d7fbe7
commit 38a7990e26
3 changed files with 31 additions and 141 deletions

View File

@ -22,23 +22,30 @@
# extra calls # extra calls
.PHONY : apidox .PHONY : apidox
# this should be the only recursive call # this should be the only recursive call inside sgpemv2 main pkg
SUBDIRS = po # please note the "." directory _has_ to come first, before plugins
SUBDIRS = . po
# ################################# #
# Additional directories building: #
# ################################# #
# allow building of provided plugins
# FIXME: how to make this dynamic? e.g. for plugins/* ?
SUBDIRS += plugins/pyloader
# directories definition # directories definition
sharedir = $(pkgdatadir) sharedir = $(pkgdatadir)
policiesdir = $(sharedir)/policies policiesdir = $(sharedir)/policies
plugindir = $(sharedir)/plugins plugindir = $(sharedir)/plugins
moduledir = $(plugindir)/extras
localedir = @datadir@/locale localedir = @datadir@/locale
testsdir = $(pkgdatadir)/tests aclocaldir = @datadir@/aclocal
#define empty global variables #define empty global variables
bin_PROGRAMS = bin_PROGRAMS =
plugin_LTLIBRARIES = plugin_LTLIBRARIES =
noinst_HEADERS = noinst_HEADERS =
pkglib_LTLIBRARIES = pkglib_LTLIBRARIES =
noinst_PYTHON =
EXTRA_DIST = EXTRA_DIST =
MAINTAINERCLEANFILES = MAINTAINERCLEANFILES =
MOSTLYCLEANFILES = MOSTLYCLEANFILES =
@ -52,19 +59,20 @@ CLEANFILES =
ACLOCAL_AMFLAGS = -I m4 ACLOCAL_AMFLAGS = -I m4
install_macros = m4/sgpemv2-dirs.m4
macros = m4/compilerflags.m4 \ macros = m4/compilerflags.m4 \
m4/linkingflags.m4 \ m4/linkingflags.m4
m4/ac_python_devel.m4 \
m4/ac_pkg_swig.m4 \
m4/ac_python_module.m4
EXTRA_DIST += \ EXTRA_DIST += \
config/config.rpath \ config/config.rpath \
config/mkinstalldirs \ config/mkinstalldirs \
configure.ac \ configure.ac \
gettext.h \ gettext.h \
$(install_macros) \
$(macros) $(macros)
aclocal_DATA = $(install_macros)
MAINTAINERCLEANFILES += doc/API MAINTAINERCLEANFILES += doc/API
# ############################################################ # ############################################################
@ -73,9 +81,8 @@ MAINTAINERCLEANFILES += doc/API
# #
# ############################################################ # ############################################################
# to be written when something will go here... pkgconfdir = $(libdir)/pkgconfig
pkgconf_DATA = config/sgpemv2.pc
# ############################################################ # ############################################################
# #
@ -215,107 +222,17 @@ noinst_HEADERS += \
src/start_gui.hh \ src/start_gui.hh \
src/text_simulation.hh src/text_simulation.hh
# ############################################################
#
# source : libpyloader.la
#
# ############################################################
pyloaderdir = $(moduledir)/pyloader
plugin_LTLIBRARIES += src/backend/pyloader/libpyloader.la
src_backend_pyloader_libpyloader_la_CPPFLAGS = \
-I@top_srcdir@ \
-DMODDIR="\"$(pyloaderdir)\"" \
-DLOCALEDIR="\"$(localedir)\"" \
$(PYTHON_CPPFLAGS) \
$(GLIBMM_CFLAGS)
src_backend_pyloader_libpyloader_la_CXXFLAGS = \
$(VISIB_HIDDEN)
src_backend_pyloader_libpyloader_la_LIBADD = \
$(PYTHON_LDFLAGS) \
$(PYTHON_EXTRA_LIBS) \
$(GLIBMM_LIBS) \
src/backend/libbackend.la
src_backend_pyloader_libpyloader_la_LDFLAGS = \
$(PYTHON_EXTRA_LDFLAGS) \
$(LT_LDFLAGS) \
-version-info 0:0:0 \
-module
# Please keep this in sorted order:
src_backend_pyloader_libpyloader_la_SOURCES = \
src/backend/pyloader/python_policy.cc \
src/backend/pyloader/python_policy_manager.cc \
src/backend/pyloader/hook.cc
noinst_HEADERS += \
src/backend/pyloader/python_policy.hh \
src/backend/pyloader/python_policy_manager.hh
pyloader_PYTHON = \
src/backend/pyloader/Abstract.py \
src/backend/pyloader/Policy.py \
src/backend/pyloader/ScriptAdapter.py
# ############################################################
#
# C++ modules -> Python loadable modules
#
# ############################################################
proxies = src/backend/pyloader/sgpem.py
wrappers = src/backend/pyloader/sgpem_wrap.cc
pyloader_LTLIBRARIES = _sgpem.la
pyloader_PYTHON += $(proxies)
# static pattern rule
$(proxies) $(wrappers) : src/backend/pyloader/sgpem.i
test -d "$(@D)" || mkdir -p -- "$(@D)"
$(SWIG) $(SWIG_PYTHON_OPT) -o $@ $<
_sgpem_la_INTERFACES = src/backend/pyloader/sgpem.i
_sgpem_la_CPPFLAGS = \
-I@top_srcdir@ \
-I@top_srcdir@/src/backend \
$(SWIG_PYTHON_CPPFLAGS) \
$(GLIBMM_CFLAGS)
_sgpem_la_LDFLAGS = -module -export-dynamic \
$(GLIBMM_LDFLAGS)
_sgpem_la_LIBADD = src/backend/libbackend.la \
$(GLIBMM_LIBS)
_sgpem_la_SOURCES = $(wrappers)
EXTRA_DIST += $(_sgpem_la_INTERFACES)
MOSTLYCLEANFILES += $(proxies) $(wrappers)
# ############################################################ # ############################################################
# #
# source : templates # source : templates
# #
# ############################################################ # ############################################################
EXTRA_DIST += \
src/templates/parameter.tcc \
src/templates/smartp.tcc
noinst_HEADERS += \ noinst_HEADERS += \
src/templates/parameter.tcc \
src/templates/smartp.tcc \
src/templates/smartp.hh src/templates/smartp.hh
# ############################################################
#
# source : builtin-policies
#
# ############################################################
# built-in policies
policies_PYTHON = \
src/builtin-policies/fcfs.py \
src/builtin-policies/sjf.py
# ############################################################ # ############################################################
# #
# check : testsuite # check : testsuite
@ -327,8 +244,7 @@ if COND_TESTS
# DEJATOOL = src/testsuite/example-test.exp # DEJATOOL = src/testsuite/example-test.exp
noinst_PROGRAMS = \ noinst_PROGRAMS = \
src/testsuite/test-history \ src/testsuite/test-history
src/testsuite/test-python_loader
# disable : # disable :
# src/testsuite/test-parse_command # src/testsuite/test-parse_command
@ -355,33 +271,6 @@ src_testsuite_test_history_SOURCES = \
# src/testsuite/test-parse_command.cc # src/testsuite/test-parse_command.cc
src_testsuite_test_python_loader_CPPFLAGS = \
-I@top_srcdir@/src \
-DMODDIR="\"$(pyloaderdir)\"" \
$(PYTHON_CPPFLAGS) \
$(GLIBMM_CFLAGS) \
$(GTHREAD_CFLAGS)
src_testsuite_test_python_loader_DEPENDENCIES = \
src/backend/pyloader/libpyloader.la
src_testsuite_test_python_loader_LDFLAGS = \
src/backend/libbackend.la \
$(GLIBMM_LIBS) $(GTHREAD_LIBS) \
$(PYTHON_LDFLAGS) \
$(PYTHON_EXTRA_LIBS) \
$(PYTHON_EXTRA_LDFLAGS)
src_testsuite_test_python_loader_SOURCES = \
src/testsuite/test-python_loader.cc \
src/backend/pyloader/python_policy.cc \
src/backend/pyloader/python_policy_manager.cc
noinst_PYTHON += src/testsuite/python_loader_configure.py \
src/testsuite/python_loader_sort_queue.py \
src/testsuite/python_loader_is_preemptive.py \
src/testsuite/python_loader_get_time_slice.py
# advice: get dummy_policy from the somewhere in the repository, and compile it in. # advice: get dummy_policy from the somewhere in the repository, and compile it in.
#src_testsuite_test_stepforward_CPPFLAGS = \ #src_testsuite_test_stepforward_CPPFLAGS = \
# -I@top_srcdir@/src \ # -I@top_srcdir@/src \
@ -396,7 +285,7 @@ noinst_PYTHON += src/testsuite/python_loader_configure.py \
# Workaround an automake bug that leaves behind some files # Workaround an automake bug that leaves behind some files
# while it's finishing the distcheck target # while it's finishing the distcheck target
CLEANFILES += \ CLEANFILES += \
src/testsuite/.libs/test-python_loader \
src/testsuite/.libs/test-history src/testsuite/.libs/test-history
endif #~ if COND_TESTS endif #~ if COND_TESTS

View File

@ -6,6 +6,11 @@ if [ -d .svn ]; then
# only recreate if we in svn repository # only recreate if we in svn repository
echo "*info* creating ChangeLog from SVN history" echo "*info* creating ChangeLog from SVN history"
sh ./config/svn2cl.sh sh ./config/svn2cl.sh
curdir=`pwd`
for i in plugins/*; do
cd "${i}" && sh ../../config/svn2cl.sh
cd ${curdir}
done
fi fi
fi fi
touch ChangeLog touch ChangeLog

View File

@ -71,13 +71,8 @@ AC_PROG_INSTALL
dnl make dnl make
AC_PROG_MAKE_SET AC_PROG_MAKE_SET
dnl check for python and SWIG
AC_PYTHON_DEVEL([>= '2.3'])
AC_PROG_SWIG
SWIG_ENABLE_CXX
SWIG_PYTHON
dnl check for gtkmm & cairo dnl check for gtkmm & cairo
PKG_PROG_PKG_CONFIG([0.20])
PKG_CHECK_MODULES([CAIRO], PKG_CHECK_MODULES([CAIRO],
[cairo >= $CAIRO_VERSION], [cairo >= $CAIRO_VERSION],
:, AC_MSG_ERROR([$CAIRO_PKG_ERRORS])) :, AC_MSG_ERROR([$CAIRO_PKG_ERRORS]))
@ -147,8 +142,9 @@ AC_MSG_RESULT([$compile_tests])
AM_CONDITIONAL([COND_TESTS], [test "$compile_tests" = "yes"]) AM_CONDITIONAL([COND_TESTS], [test "$compile_tests" = "yes"])
dnl output files dnl output files
AC_CONFIG_FILES([config/Doxyfile]) AC_CONFIG_FILES([config/Doxyfile config/sgpemv2.pc config/sgpemv2-uninstalled.pc])
AC_CONFIG_HEADERS([config.h:config.h.in]) AC_CONFIG_HEADERS([config.h:config.h.in])
AC_CONFIG_SUBDIRS([plugins/pyloader])
AC_CONFIG_FILES([ AC_CONFIG_FILES([
Makefile Makefile