diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:45:59 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:45:59 +0000 |
commit | 19fcec84d8d7d21e796c7624e521b60d28ee21ed (patch) | |
tree | 42d26aa27d1e3f7c0b8bd3fd14e7d7082f5008dc /src/boost/tools/build/test/railsys/program | |
parent | Initial commit. (diff) | |
download | ceph-upstream.tar.xz ceph-upstream.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/program')
7 files changed, 143 insertions, 0 deletions
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(); +}; |