diff --git a/test/railsys/libx/boost-build.jam b/test/railsys/libx/boost-build.jam new file mode 100644 index 000000000..741aec4ea --- /dev/null +++ b/test/railsys/libx/boost-build.jam @@ -0,0 +1,18 @@ +if --v2 in $(ARGV) +{ + if $(JAM_VERSION:J="") < 030103 + { + ECHO "error: Boost.Jam 3.1.3 or later required" ; + EXIT ; + } + else + { + boost-build $(BOOST_ROOT)/tools/build/new/ ; + } +} +else +{ + ECHO "error: Boost.Jam --v2 required" ; + EXIT ; +} + diff --git a/test/railsys/libx/include/libx/test_libx.h b/test/railsys/libx/include/libx/test_libx.h new file mode 100644 index 000000000..016cb0615 --- /dev/null +++ b/test/railsys/libx/include/libx/test_libx.h @@ -0,0 +1,15 @@ +// Copyright (c) 2003 Institute of Transport, +// Railway Construction and Operation, +// University of Hanover, Germany +// +// Permission to copy, use, modify, sell and distribute this software is +// granted provided this copyright notice appears in all copies. This +// software is provided "as is" without express or implied warranty, and +// with no claim as to its suitability for any purpose. + +class TestLibX +{ +public: + + TestLibX(); +}; diff --git a/test/railsys/libx/project-root.jam b/test/railsys/libx/project-root.jam new file mode 100644 index 000000000..5e727508f --- /dev/null +++ b/test/railsys/libx/project-root.jam @@ -0,0 +1,10 @@ + +import gcc ; +import toolset ; + +# Tell that QT should be used. QTDIR will give installation +# prefix. +toolset.using qt ; + +#Alternatively, the prefix can be given as second argument +#toolset.using qt : /usr/share/qt ; \ No newline at end of file diff --git a/test/railsys/libx/src/Jamfile b/test/railsys/libx/src/Jamfile new file mode 100644 index 000000000..89a910a97 --- /dev/null +++ b/test/railsys/libx/src/Jamfile @@ -0,0 +1,18 @@ +# Copyright (c) 2003 Institute of Transport, +# Railway Construction and Operation, +# University of Hanover, Germany +# +# Permission to copy, use, modify, sell and distribute this software is +# granted provided this copyright notice appears in all copies. This +# software is provided "as is" without express or implied warranty, and +# with no claim as to its suitability for any purpose. + +project libx + : requirements + ../include + : usage-requirements + ../include + ; + + +lib libx : test_libx.cpp ; diff --git a/test/railsys/libx/src/test_libx.cpp b/test/railsys/libx/src/test_libx.cpp new file mode 100644 index 000000000..d006d442e --- /dev/null +++ b/test/railsys/libx/src/test_libx.cpp @@ -0,0 +1,15 @@ +// Copyright (c) 2003 Institute of Transport, +// Railway Construction and Operation, +// University of Hanover, Germany +// +// Permission to copy, use, modify, sell and distribute this software is +// granted provided this copyright notice appears in all copies. This +// software is provided "as is" without express or implied warranty, and +// with no claim as to its suitability for any purpose. + + +#include + +TestLibX::TestLibX() +{ +} diff --git a/test/railsys/program/Jamfile b/test/railsys/program/Jamfile new file mode 100644 index 000000000..69078fedf --- /dev/null +++ b/test/railsys/program/Jamfile @@ -0,0 +1,47 @@ +# ================================================================ +# +# Railsys +# -------------- +# +# Copyright (c) 2002 Institute of Transport, +# Railway Construction and Operation, +# University of Hanover, Germany +# +# Permission to copy, use, modify, sell and distribute this software is +# granted provided this copyright notice appears in all copies. This +# software is provided "as is" without express or implied warranty, and +# with no claim as to its suitability for any purpose. +# +# 02/21/02! Jürgen Hunold +# +# $Id$ +# +# ================================================================ + +local BOOST_ROOT = [ modules.peek : BOOST_ROOT ] ; + +use-project /libx : ../libx/src ; + +project program + : requirements + $(BOOST_ROOT) + multi + qt + true + stlport + @/libx +# ../libx/src + + : usage-requirements + $(BOOST_ROOT) + : + default-build release + multi + qt + stlport + true + ; + + +build-project main ; + diff --git a/test/railsys/program/boost-build.jam b/test/railsys/program/boost-build.jam new file mode 100644 index 000000000..741aec4ea --- /dev/null +++ b/test/railsys/program/boost-build.jam @@ -0,0 +1,18 @@ +if --v2 in $(ARGV) +{ + if $(JAM_VERSION:J="") < 030103 + { + ECHO "error: Boost.Jam 3.1.3 or later required" ; + EXIT ; + } + else + { + boost-build $(BOOST_ROOT)/tools/build/new/ ; + } +} +else +{ + ECHO "error: Boost.Jam --v2 required" ; + EXIT ; +} + diff --git a/test/railsys/program/include/test_a.h b/test/railsys/program/include/test_a.h new file mode 100644 index 000000000..d86a7dd95 --- /dev/null +++ b/test/railsys/program/include/test_a.h @@ -0,0 +1,20 @@ +// Copyright (c) 2003 Institute of Transport, +// Railway Construction and Operation, +// University of Hanover, Germany +// +// Permission to copy, use, modify, sell and distribute this software is +// granted provided this copyright notice appears in all copies. This +// software is provided "as is" without express or implied warranty, and +// with no claim as to its suitability for any purpose. + + +#include + +class TestA : public QObject +{ + Q_OBJECT + +public: + + TestA(); +}; diff --git a/test/railsys/program/liba/Jamfile b/test/railsys/program/liba/Jamfile new file mode 100644 index 000000000..3e79425e3 --- /dev/null +++ b/test/railsys/program/liba/Jamfile @@ -0,0 +1,14 @@ +# Copyright (c) 2003 Institute of Transport, +# Railway Construction and Operation, +# University of Hanover, Germany +# +# Permission to copy, use, modify, sell and distribute this software is +# granted provided this copyright notice appears in all copies. This +# software is provided "as is" without express or implied warranty, and +# with no claim as to its suitability for any purpose. + +project liba ; + +lib liba : test ../include/test_a.h ; + +obj test : test_a.cpp : off ; \ No newline at end of file diff --git a/test/railsys/program/liba/test_a.cpp b/test/railsys/program/liba/test_a.cpp new file mode 100644 index 000000000..b2aa64fc6 --- /dev/null +++ b/test/railsys/program/liba/test_a.cpp @@ -0,0 +1,17 @@ +// Copyright (c) 2003 Institute of Transport, +// Railway Construction and Operation, +// University of Hanover, Germany +// +// Permission to copy, use, modify, sell and distribute this software is +// granted provided this copyright notice appears in all copies. This +// software is provided "as is" without express or implied warranty, and +// with no claim as to its suitability for any purpose. + +#include "../include/test_a.h" + +#include + +TestA::TestA() +{ + TestLibX aTestLibX; +} diff --git a/test/railsys/program/main/Jamfile b/test/railsys/program/main/Jamfile new file mode 100644 index 000000000..92cc79ea1 --- /dev/null +++ b/test/railsys/program/main/Jamfile @@ -0,0 +1,12 @@ +# Copyright (c) 2002 Institute of Transport, +# Railway Construction and Operation, +# University of Hanover, Germany +# +# Permission to copy, use, modify, sell and distribute this software is +# granted provided this copyright notice appears in all copies. This +# software is provided "as is" without express or implied warranty, and +# with no claim as to its suitability for any purpose. + +project main ; + +exe test_a : main.cpp ../liba/liba @/libx ; \ No newline at end of file diff --git a/test/railsys/program/main/main.cpp b/test/railsys/program/main/main.cpp new file mode 100644 index 000000000..3ce665738 --- /dev/null +++ b/test/railsys/program/main/main.cpp @@ -0,0 +1,18 @@ +// Copyright (c) 2002 Institute of Transport, +// Railway Construction and Operation, +// University of Hanover, Germany +// +// Permission to copy, use, modify, sell and distribute this software is +// granted provided this copyright notice appears in all copies. This +// software is provided "as is" without express or implied warranty, and +// with no claim as to its suitability for any purpose. + +#include "../include/test_a.h" + +#include + +int main() +{ + TestLibX stTestLibX; + TestA stTestA; +}; diff --git a/test/railsys/program/project-root.jam b/test/railsys/program/project-root.jam new file mode 100644 index 000000000..33ce8decc --- /dev/null +++ b/test/railsys/program/project-root.jam @@ -0,0 +1,11 @@ + +import gcc ; +#import msvc ; +import toolset ; + +# Tell that QT should be used. QTDIR will give installation +# prefix. +toolset.using qt ; + +#Alternatively, the prefix can be given as second argument +#toolset.using qt : /usr/share/qt ;