summaryrefslogtreecommitdiffstats
path: root/src/boost/tools/build/test/railsys
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 18:45:59 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 18:45:59 +0000
commit19fcec84d8d7d21e796c7624e521b60d28ee21ed (patch)
tree42d26aa27d1e3f7c0b8bd3fd14e7d7082f5008dc /src/boost/tools/build/test/railsys
parentInitial commit. (diff)
downloadceph-19fcec84d8d7d21e796c7624e521b60d28ee21ed.tar.xz
ceph-19fcec84d8d7d21e796c7624e521b60d28ee21ed.zip
Adding upstream version 16.2.11+ds.upstream/16.2.11+dsupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/boost/tools/build/test/railsys')
-rw-r--r--src/boost/tools/build/test/railsys/libx/include/test_libx.h25
-rw-r--r--src/boost/tools/build/test/railsys/libx/jamroot.jam13
-rw-r--r--src/boost/tools/build/test/railsys/libx/src/jamfile.jam19
-rw-r--r--src/boost/tools/build/test/railsys/libx/src/test_libx.cpp15
-rw-r--r--src/boost/tools/build/test/railsys/program/include/test_a.h22
-rw-r--r--src/boost/tools/build/test/railsys/program/jamfile.jam45
-rw-r--r--src/boost/tools/build/test/railsys/program/jamroot.jam14
-rw-r--r--src/boost/tools/build/test/railsys/program/liba/jamfile.jam14
-rw-r--r--src/boost/tools/build/test/railsys/program/liba/test_a.cpp17
-rw-r--r--src/boost/tools/build/test/railsys/program/main/jamfile.jam12
-rw-r--r--src/boost/tools/build/test/railsys/program/main/main.cpp19
11 files changed, 215 insertions, 0 deletions
diff --git a/src/boost/tools/build/test/railsys/libx/include/test_libx.h b/src/boost/tools/build/test/railsys/libx/include/test_libx.h
new file mode 100644
index 000000000..fe573fc16
--- /dev/null
+++ b/src/boost/tools/build/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/src/boost/tools/build/test/railsys/libx/jamroot.jam b/src/boost/tools/build/test/railsys/libx/jamroot.jam
new file mode 100644
index 000000000..d09982dd1
--- /dev/null
+++ b/src/boost/tools/build/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/src/boost/tools/build/test/railsys/libx/src/jamfile.jam b/src/boost/tools/build/test/railsys/libx/src/jamfile.jam
new file mode 100644
index 000000000..639e0cc90
--- /dev/null
+++ b/src/boost/tools/build/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/src/boost/tools/build/test/railsys/libx/src/test_libx.cpp b/src/boost/tools/build/test/railsys/libx/src/test_libx.cpp
new file mode 100644
index 000000000..be1fbc27f
--- /dev/null
+++ b/src/boost/tools/build/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/src/boost/tools/build/test/railsys/program/include/test_a.h b/src/boost/tools/build/test/railsys/program/include/test_a.h
new file mode 100644
index 000000000..8002859e1
--- /dev/null
+++ b/src/boost/tools/build/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/src/boost/tools/build/test/railsys/program/jamfile.jam b/src/boost/tools/build/test/railsys/program/jamfile.jam
new file mode 100644
index 000000000..9e36f408f
--- /dev/null
+++ b/src/boost/tools/build/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$
+#
+# ================================================================
+
+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/src/boost/tools/build/test/railsys/program/jamroot.jam b/src/boost/tools/build/test/railsys/program/jamroot.jam
new file mode 100644
index 000000000..23d42195f
--- /dev/null
+++ b/src/boost/tools/build/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/src/boost/tools/build/test/railsys/program/liba/jamfile.jam b/src/boost/tools/build/test/railsys/program/liba/jamfile.jam
new file mode 100644
index 000000000..f74311d0d
--- /dev/null
+++ b/src/boost/tools/build/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/src/boost/tools/build/test/railsys/program/liba/test_a.cpp b/src/boost/tools/build/test/railsys/program/liba/test_a.cpp
new file mode 100644
index 000000000..f9e538857
--- /dev/null
+++ b/src/boost/tools/build/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/src/boost/tools/build/test/railsys/program/main/jamfile.jam b/src/boost/tools/build/test/railsys/program/main/jamfile.jam
new file mode 100644
index 000000000..095978eaf
--- /dev/null
+++ b/src/boost/tools/build/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/src/boost/tools/build/test/railsys/program/main/main.cpp b/src/boost/tools/build/test/railsys/program/main/main.cpp
new file mode 100644
index 000000000..3f13f4bfc
--- /dev/null
+++ b/src/boost/tools/build/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();
+};