mirror of
https://github.com/boostorg/build.git
synced 2026-02-02 08:42:13 +00:00
Add big testcase from Jürgen Hunold.
[SVN r17838]
This commit is contained in:
18
test/railsys/libx/boost-build.jam
Normal file
18
test/railsys/libx/boost-build.jam
Normal file
@@ -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 ;
|
||||
}
|
||||
|
||||
15
test/railsys/libx/include/libx/test_libx.h
Normal file
15
test/railsys/libx/include/libx/test_libx.h
Normal file
@@ -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();
|
||||
};
|
||||
10
test/railsys/libx/project-root.jam
Normal file
10
test/railsys/libx/project-root.jam
Normal file
@@ -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 ;
|
||||
18
test/railsys/libx/src/Jamfile
Normal file
18
test/railsys/libx/src/Jamfile
Normal file
@@ -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>../include
|
||||
: usage-requirements
|
||||
<include>../include
|
||||
;
|
||||
|
||||
|
||||
lib libx : test_libx.cpp ;
|
||||
15
test/railsys/libx/src/test_libx.cpp
Normal file
15
test/railsys/libx/src/test_libx.cpp
Normal file
@@ -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 <libx/test_libx.h>
|
||||
|
||||
TestLibX::TestLibX()
|
||||
{
|
||||
}
|
||||
47
test/railsys/program/Jamfile
Normal file
47
test/railsys/program/Jamfile
Normal file
@@ -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
|
||||
<include>$(BOOST_ROOT)
|
||||
<threading>multi
|
||||
<uses>qt
|
||||
<hardcode-dll-paths>true
|
||||
<stdlib>stlport
|
||||
<dependency>@/libx
|
||||
# <dependency>../libx/src
|
||||
|
||||
: usage-requirements
|
||||
<include>$(BOOST_ROOT)
|
||||
:
|
||||
default-build release
|
||||
<threading>multi
|
||||
<uses>qt
|
||||
<stdlib>stlport
|
||||
<hardcode-dll-paths>true
|
||||
;
|
||||
|
||||
|
||||
build-project main ;
|
||||
|
||||
18
test/railsys/program/boost-build.jam
Normal file
18
test/railsys/program/boost-build.jam
Normal file
@@ -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 ;
|
||||
}
|
||||
|
||||
20
test/railsys/program/include/test_a.h
Normal file
20
test/railsys/program/include/test_a.h
Normal file
@@ -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 <qobject.h>
|
||||
|
||||
class TestA : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
|
||||
TestA();
|
||||
};
|
||||
14
test/railsys/program/liba/Jamfile
Normal file
14
test/railsys/program/liba/Jamfile
Normal file
@@ -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 : <optimization>off ;
|
||||
17
test/railsys/program/liba/test_a.cpp
Normal file
17
test/railsys/program/liba/test_a.cpp
Normal file
@@ -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 <libx/test_libx.h>
|
||||
|
||||
TestA::TestA()
|
||||
{
|
||||
TestLibX aTestLibX;
|
||||
}
|
||||
12
test/railsys/program/main/Jamfile
Normal file
12
test/railsys/program/main/Jamfile
Normal file
@@ -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 ;
|
||||
18
test/railsys/program/main/main.cpp
Normal file
18
test/railsys/program/main/main.cpp
Normal file
@@ -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 <libx/test_libx.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
TestLibX stTestLibX;
|
||||
TestA stTestA;
|
||||
};
|
||||
11
test/railsys/program/project-root.jam
Normal file
11
test/railsys/program/project-root.jam
Normal file
@@ -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 ;
|
||||
Reference in New Issue
Block a user