2
0
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:
Vladimir Prus
2003-03-12 13:30:21 +00:00
parent 4ac0bc3f06
commit 5ab287d535
13 changed files with 233 additions and 0 deletions

View 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 ;
}

View 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();
};

View 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 ;

View 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 ;

View 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()
{
}

View 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 ;

View 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 ;
}

View 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();
};

View 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 ;

View 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;
}

View 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 ;

View 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;
};

View 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 ;