summaryrefslogtreecommitdiff
path: root/tools/build/v2/test/railsys
diff options
context:
space:
mode:
Diffstat (limited to 'tools/build/v2/test/railsys')
-rw-r--r--tools/build/v2/test/railsys/libx/include/test_libx.h25
-rw-r--r--tools/build/v2/test/railsys/libx/jamroot.jam13
-rw-r--r--tools/build/v2/test/railsys/libx/src/jamfile.jam19
-rw-r--r--tools/build/v2/test/railsys/libx/src/test_libx.cpp15
-rw-r--r--tools/build/v2/test/railsys/program/include/test_a.h22
-rw-r--r--tools/build/v2/test/railsys/program/jamfile.jam45
-rw-r--r--tools/build/v2/test/railsys/program/jamroot.jam14
-rw-r--r--tools/build/v2/test/railsys/program/liba/jamfile.jam14
-rw-r--r--tools/build/v2/test/railsys/program/liba/test_a.cpp17
-rw-r--r--tools/build/v2/test/railsys/program/main/jamfile.jam12
-rw-r--r--tools/build/v2/test/railsys/program/main/main.cpp19
11 files changed, 215 insertions, 0 deletions
diff --git a/tools/build/v2/test/railsys/libx/include/test_libx.h b/tools/build/v2/test/railsys/libx/include/test_libx.h
new file mode 100644
index 0000000000..fe573fc16f
--- /dev/null
+++ b/tools/build/v2/test/railsys/libx/include/test_libx.h
@@ -0,0 +1,25 @@
+// Copyright (c) 2003 Institute of Transport,
+// Railway Construction and Operation,
+// University of Hanover, Germany
+//
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+
+#ifdef _WIN32
+#ifdef LIBX_SOURCE
+__declspec(dllexport)
+#else
+__declspec(dllimport)
+#endif
+#endif
+class TestLibX
+{
+public:
+
+ TestLibX();
+
+ // Needed to suppress 'unused variable' warning
+ // in some cases.
+ void do_something() {}
+};
diff --git a/tools/build/v2/test/railsys/libx/jamroot.jam b/tools/build/v2/test/railsys/libx/jamroot.jam
new file mode 100644
index 0000000000..d09982dd1a
--- /dev/null
+++ b/tools/build/v2/test/railsys/libx/jamroot.jam
@@ -0,0 +1,13 @@
+# Copyright (c) 2002 Institute of Transport,
+# Railway Construction and Operation,
+# University of Hanover, Germany
+# Copyright (c) 2006 Jürgen Hunold
+#
+# Distributed under the Boost Software License, Version 1.0.
+# (See accompanying file LICENSE_1_0.txt or copy at
+# http://www.boost.org/LICENSE_1_0.txt)
+
+# Tell that Qt3 should be used. QTDIR will give installation prefix.
+using qt3 ;
+
+
diff --git a/tools/build/v2/test/railsys/libx/src/jamfile.jam b/tools/build/v2/test/railsys/libx/src/jamfile.jam
new file mode 100644
index 0000000000..639e0cc90b
--- /dev/null
+++ b/tools/build/v2/test/railsys/libx/src/jamfile.jam
@@ -0,0 +1,19 @@
+# Copyright (c) 2003 Institute of Transport,
+# Railway Construction and Operation,
+# University of Hanover, Germany
+#
+# Copyright (c) 2006 Jürgen Hunold
+#
+# Distributed under the Boost Software License, Version 1.0.
+# (See accompanying file LICENSE_1_0.txt or copy at
+# http://www.boost.org/LICENSE_1_0.txt)
+
+project libx
+ : requirements
+ <include>../include
+ : usage-requirements
+ <include>../include
+ ;
+
+
+lib libx : test_libx.cpp ;
diff --git a/tools/build/v2/test/railsys/libx/src/test_libx.cpp b/tools/build/v2/test/railsys/libx/src/test_libx.cpp
new file mode 100644
index 0000000000..be1fbc27f7
--- /dev/null
+++ b/tools/build/v2/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
+//
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+
+
+#define LIBX_SOURCE
+#include <test_libx.h>
+
+TestLibX::TestLibX()
+{
+}
diff --git a/tools/build/v2/test/railsys/program/include/test_a.h b/tools/build/v2/test/railsys/program/include/test_a.h
new file mode 100644
index 0000000000..8002859e15
--- /dev/null
+++ b/tools/build/v2/test/railsys/program/include/test_a.h
@@ -0,0 +1,22 @@
+// Copyright (c) 2003 Institute of Transport,
+// Railway Construction and Operation,
+// University of Hanover, Germany
+//
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+
+
+#include <qobject.h>
+
+class TestA : public QObject
+{
+ Q_OBJECT
+
+public:
+
+ TestA();
+
+ // Needed to suppress 'unused variable' varning.
+ void do_something() { }
+};
diff --git a/tools/build/v2/test/railsys/program/jamfile.jam b/tools/build/v2/test/railsys/program/jamfile.jam
new file mode 100644
index 0000000000..9d66f2dbb5
--- /dev/null
+++ b/tools/build/v2/test/railsys/program/jamfile.jam
@@ -0,0 +1,45 @@
+# ================================================================
+#
+# Railsys
+# --------------
+#
+# Copyright (c) 2002 Institute of Transport,
+# Railway Construction and Operation,
+# University of Hanover, Germany
+# Copyright (c) 2006 Jürgen Hunold
+#
+# Distributed under the Boost Software License, Version 1.0.
+# (See accompanying file LICENSE_1_0.txt or copy at
+# http://www.boost.org/LICENSE_1_0.txt)
+#
+# 02/21/02! Jürgen Hunold
+#
+# $Id: jamfile.jam 55188 2009-07-26 20:11:03Z danieljames $
+#
+# ================================================================
+
+local BOOST_ROOT = [ modules.peek : BOOST_ROOT ] ;
+
+use-project /libx : ../libx/src ;
+
+project program
+ : requirements
+ <include>$(BOOST_ROOT)
+ <threading>multi
+ <library>/qt3//qt
+ <hardcode-dll-paths>true
+ <stdlib>stlport
+ <use>/libx
+ <library>/libx//libx
+
+ : usage-requirements
+ <include>$(BOOST_ROOT)
+ :
+ default-build release
+ <threading>multi
+ <library>/qt3//qt
+ <hardcode-dll-paths>true
+ ;
+
+build-project main ;
+
diff --git a/tools/build/v2/test/railsys/program/jamroot.jam b/tools/build/v2/test/railsys/program/jamroot.jam
new file mode 100644
index 0000000000..23d42195f7
--- /dev/null
+++ b/tools/build/v2/test/railsys/program/jamroot.jam
@@ -0,0 +1,14 @@
+# Copyright (c) 2002 Institute of Transport,
+# Railway Construction and Operation,
+# University of Hanover, Germany
+# Copyright (c) 2006 Jürgen Hunold
+#
+# Distributed under the Boost Software License, Version 1.0.
+# (See accompanying file LICENSE_1_0.txt or copy at
+# http://www.boost.org/LICENSE_1_0.txt)
+
+# Tell that Qt3 should be used. QTDIR will give installation prefix.
+using qt3 ;
+
+# Not that good, but sufficient for testing
+using stlport : : /path/to/stlport ;
diff --git a/tools/build/v2/test/railsys/program/liba/jamfile.jam b/tools/build/v2/test/railsys/program/liba/jamfile.jam
new file mode 100644
index 0000000000..f74311d0d0
--- /dev/null
+++ b/tools/build/v2/test/railsys/program/liba/jamfile.jam
@@ -0,0 +1,14 @@
+# Copyright (c) 2003 Institute of Transport,
+# Railway Construction and Operation,
+# University of Hanover, Germany
+# Copyright (c) 2006 Jürgen Hunold
+#
+# Distributed under the Boost Software License, Version 1.0.
+# (See accompanying file LICENSE_1_0.txt or copy at
+# http://www.boost.org/LICENSE_1_0.txt)
+
+project liba ;
+
+lib liba : test ../include/test_a.h ;
+
+obj test : test_a.cpp : <optimization>off ;
diff --git a/tools/build/v2/test/railsys/program/liba/test_a.cpp b/tools/build/v2/test/railsys/program/liba/test_a.cpp
new file mode 100644
index 0000000000..f9e5388570
--- /dev/null
+++ b/tools/build/v2/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
+//
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+
+#include "../include/test_a.h"
+
+#include <test_libx.h>
+
+TestA::TestA()
+{
+ TestLibX aTestLibX;
+ aTestLibX.do_something();
+}
diff --git a/tools/build/v2/test/railsys/program/main/jamfile.jam b/tools/build/v2/test/railsys/program/main/jamfile.jam
new file mode 100644
index 0000000000..095978eaf9
--- /dev/null
+++ b/tools/build/v2/test/railsys/program/main/jamfile.jam
@@ -0,0 +1,12 @@
+# Copyright (c) 2002 Institute of Transport,
+# Railway Construction and Operation,
+# University of Hanover, Germany
+# Copyright (c) 2006 Jürgen Hunold
+#
+# Distributed under the Boost Software License, Version 1.0.
+# (See accompanying file LICENSE_1_0.txt or copy at
+# http://www.boost.org/LICENSE_1_0.txt)
+
+project main ;
+
+exe test_a : main.cpp ../liba//liba /libx ;
diff --git a/tools/build/v2/test/railsys/program/main/main.cpp b/tools/build/v2/test/railsys/program/main/main.cpp
new file mode 100644
index 0000000000..3f13f4bfc4
--- /dev/null
+++ b/tools/build/v2/test/railsys/program/main/main.cpp
@@ -0,0 +1,19 @@
+// Copyright (c) 2002 Institute of Transport,
+// Railway Construction and Operation,
+// University of Hanover, Germany
+//
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+
+#include "../include/test_a.h"
+
+#include <test_libx.h>
+
+int main()
+{
+ TestLibX stTestLibX;
+ TestA stTestA;
+
+ stTestLibX.do_something();
+};