diff --git a/examples-v2/boost-build.jam b/examples-v2/boost-build.jam deleted file mode 100644 index 776bf004a..000000000 --- a/examples-v2/boost-build.jam +++ /dev/null @@ -1,2 +0,0 @@ - -boost-build ../kernel ; \ No newline at end of file diff --git a/examples-v2/customization/Jamfile b/examples-v2/customization/Jamfile deleted file mode 100644 index 60101fb52..000000000 --- a/examples-v2/customization/Jamfile +++ /dev/null @@ -1,2 +0,0 @@ - -exe codegen : codegen.cpp class.verbatim usage.verbatim ; \ No newline at end of file diff --git a/examples-v2/customization/class.verbatim b/examples-v2/customization/class.verbatim deleted file mode 100644 index 5c0d7b803..000000000 --- a/examples-v2/customization/class.verbatim +++ /dev/null @@ -1,7 +0,0 @@ -class_template - -class %class_name% { -public: - %class_name%() {} - ~%class_name%() {} -}; \ No newline at end of file diff --git a/examples-v2/customization/codegen.cpp b/examples-v2/customization/codegen.cpp deleted file mode 100644 index 027af816e..000000000 --- a/examples-v2/customization/codegen.cpp +++ /dev/null @@ -1,37 +0,0 @@ -// (C) Copyright Vladimir Prus, 2003 -// 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. - -// Please see 'usage.verbatim' file for usage notes. - -#include -#include -#include -using std::cout; -using std::string; -using std::strlen; - -extern const char class_template[]; -extern const char usage[]; - -int main(int ac, char* av[]) -{ - if (av[1]) { - - string class_name = av[1]; - string s = class_template; - - string::size_type n; - while((n = s.find("%class_name%")) != string::npos) { - s.replace(n, strlen("%class_name%"), class_name); - } - std::cout << "Output is:\n"; - std::cout << s << "\n"; - return 0; - } else { - std::cout << usage << "\n"; - return 1; - } -} diff --git a/examples-v2/customization/inline_file.py b/examples-v2/customization/inline_file.py deleted file mode 100644 index 4b8d82751..000000000 --- a/examples-v2/customization/inline_file.py +++ /dev/null @@ -1,45 +0,0 @@ -#!/usr/bin/python - -# Copyright (C) Vladimir Prus 2003. 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. - -import sys -from string import strip - -def quote_line(line): - - result = "" - - for i in line: - if (i == '\\'): - result = result + '\\\\' - elif (i == '\"'): - result = result + '\\\"' - elif (i != '\r' and i != '\n'): - result = result + i; - - return '\"' + result + '\\n\"' - -def quote_file(file): - result = "" - - for i in file.readlines(): - result = result + quote_line(i) + "\n" - - return result - -if len(sys.argv) < 3: - print "Usage: inline_file.py output_c_file file_to_include" -else: - output_c_file = sys.argv[1] - out_file = open(output_c_file, "w"); - - file_to_include = sys.argv[2] - - in_file = open(file_to_include, "r"); - variable_name = strip(in_file.readline()) - out_file.write("extern const char %s[] = {\n%s};\n\n" % (variable_name, quote_file(in_file))) - in_file.close() - out_file.close() diff --git a/examples-v2/customization/project-root.jam b/examples-v2/customization/project-root.jam deleted file mode 100644 index b822c673d..000000000 --- a/examples-v2/customization/project-root.jam +++ /dev/null @@ -1,2 +0,0 @@ - -import verbatim ; \ No newline at end of file diff --git a/examples-v2/customization/readme.txt b/examples-v2/customization/readme.txt deleted file mode 100644 index 52c71757a..000000000 --- a/examples-v2/customization/readme.txt +++ /dev/null @@ -1,7 +0,0 @@ - -This example show how to add a new target type and a new tool -support to Boost.Build. Please refer to extender manual for -complete description of this example. - -Note that this example requires Python. If cygwin Python on Windows is -to be used, please go to "verbatim.jam" and follow instructions there. diff --git a/examples-v2/customization/usage.verbatim b/examples-v2/customization/usage.verbatim deleted file mode 100644 index 041fc12bc..000000000 --- a/examples-v2/customization/usage.verbatim +++ /dev/null @@ -1,6 +0,0 @@ -usage -Usage: codegen class_name - -This program takes a template of C++ code and replaces of -occurences of %class_name% with the passed 'class_name' -parameter. diff --git a/examples-v2/customization/verbatim.jam b/examples-v2/customization/verbatim.jam deleted file mode 100644 index 44bd9f444..000000000 --- a/examples-v2/customization/verbatim.jam +++ /dev/null @@ -1,14 +0,0 @@ - -import type ; -type.register VERBATIM : verbatim ; - -import generators ; -generators.register-standard verbatim.inline-file : VERBATIM : CPP ; - -# Note: To use Cygwin Python on Windows change the following line -# to "python inline_file.py $(<) $(>)" -# Also, make sure that "python" in in PATH. -actions inline-file -{ - "./inline_file.py" $(<) $(>) -} \ No newline at end of file diff --git a/examples-v2/gettext/Jamfile b/examples-v2/gettext/Jamfile deleted file mode 100644 index 90a84bc8a..000000000 --- a/examples-v2/gettext/Jamfile +++ /dev/null @@ -1,22 +0,0 @@ - -# Declare a main target. -exe main : main.cpp ; - -# Declare an action for updating translations -# After changing main.cpp, invocation of -# -# bjam update-russian -# -# will update translations in russian.po -gettext.update update-russian : russian.po main ; - -# Compiled message catalog. -gettext.catalog russian : russian.po ; - -# A stage rule which installs message catalog to the -# location gettext expects. -stage messages-russian : russian - : messages/ru_RU.KOI8-R/LC_MESSAGES - main - ; - diff --git a/examples-v2/gettext/main.cpp b/examples-v2/gettext/main.cpp deleted file mode 100644 index d40c3fc23..000000000 --- a/examples-v2/gettext/main.cpp +++ /dev/null @@ -1,23 +0,0 @@ - -#include -#include -#define i18n(s) gettext(s) - -#include -using namespace std; - -int main() -{ - // Specify that translations are stored in directory - // "messages". - bindtextdomain("main", "messages"); - textdomain("main"); - - // Switch to russian locale. - setlocale(LC_MESSAGES, "ru_RU.KOI8-R"); - - // Output localized message. - std::cout << i18n("hello") << "\n"; - - return 0; -} diff --git a/examples-v2/gettext/project-root.jam b/examples-v2/gettext/project-root.jam deleted file mode 100644 index ad03c4d23..000000000 --- a/examples-v2/gettext/project-root.jam +++ /dev/null @@ -1,2 +0,0 @@ - -using gettext ; \ No newline at end of file diff --git a/examples-v2/gettext/readme.txt b/examples-v2/gettext/readme.txt deleted file mode 100644 index 490752867..000000000 --- a/examples-v2/gettext/readme.txt +++ /dev/null @@ -1,21 +0,0 @@ - -This example shows how it's possible to used GNU gettext utilities with -Boost.Build. - -A simple translation file is compiled and installed as message catalog for -russian. The main application explicitly switches to russian locale and -output the translation of "hello". - -To test: - - bjam - bin/gcc/debug/main - -To test even more: - - - add more localized strings to "main.cpp" - - run "bjam update-russian" - - edit "russian.po" - - run bjam - - run "main" - diff --git a/examples-v2/gettext/russian.po b/examples-v2/gettext/russian.po deleted file mode 100644 index daa7121c3..000000000 --- a/examples-v2/gettext/russian.po +++ /dev/null @@ -1,21 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: PACKAGE VERSION\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2003-07-01 15:45+0400\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=CHARSET\n" -"Content-Transfer-Encoding: 8bit\n" - -#: main.cpp:16 -msgid "hello" -msgstr "international hello" diff --git a/examples-v2/hello/Jamfile b/examples-v2/hello/Jamfile deleted file mode 100644 index 2d46eebe8..000000000 --- a/examples-v2/hello/Jamfile +++ /dev/null @@ -1,2 +0,0 @@ - -exe hello : hello.cpp ; diff --git a/examples-v2/hello/hello.cpp b/examples-v2/hello/hello.cpp deleted file mode 100644 index 15cfc30d0..000000000 --- a/examples-v2/hello/hello.cpp +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright (c) 2003 boost.org -// -// 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. -// -// http://www.boost.org -// - -#include - -int main() -{ - std::cout << "Hello!\n"; - return 1; -} diff --git a/examples-v2/hello/project-root.jam b/examples-v2/hello/project-root.jam deleted file mode 100644 index e69de29bb..000000000 diff --git a/examples-v2/libraries/Jamfile b/examples-v2/libraries/Jamfile deleted file mode 100644 index 99d5f7cfb..000000000 --- a/examples-v2/libraries/Jamfile +++ /dev/null @@ -1,2 +0,0 @@ - -build-project app ; \ No newline at end of file diff --git a/examples-v2/libraries/app/Jamfile b/examples-v2/libraries/app/Jamfile deleted file mode 100644 index 28ba4ddd9..000000000 --- a/examples-v2/libraries/app/Jamfile +++ /dev/null @@ -1,5 +0,0 @@ - -# Declare a executable file, which uses a library. Note that -# includes that for library will be automatically used -# when compiling 'app.cpp' -exe app : app.cpp ../lib1//lib1 ; \ No newline at end of file diff --git a/examples-v2/libraries/app/app.cpp b/examples-v2/libraries/app/app.cpp deleted file mode 100644 index e25fe132c..000000000 --- a/examples-v2/libraries/app/app.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright (c) 2003 boost.org -// -// 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. -// -// http://www.boost.org -// - -#include - -int main() -{ - foo(); -} diff --git a/examples-v2/libraries/lib1/Jamfile b/examples-v2/libraries/lib1/Jamfile deleted file mode 100644 index 33c8fba09..000000000 --- a/examples-v2/libraries/lib1/Jamfile +++ /dev/null @@ -1,5 +0,0 @@ - -project lib1 - : usage-requirements include ; - -lib lib1 : lib1.cpp ; \ No newline at end of file diff --git a/examples-v2/libraries/lib1/include/lib1.h b/examples-v2/libraries/lib1/include/lib1.h deleted file mode 100644 index 4e29bf343..000000000 --- a/examples-v2/libraries/lib1/include/lib1.h +++ /dev/null @@ -1,11 +0,0 @@ -// Copyright (c) 2003 boost.org -// -// 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. -// -// http://www.boost.org -// - -void foo(); diff --git a/examples-v2/libraries/lib1/lib1.cpp b/examples-v2/libraries/lib1/lib1.cpp deleted file mode 100644 index 3e5597a16..000000000 --- a/examples-v2/libraries/lib1/lib1.cpp +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright (c) 2003 boost.org -// -// 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. -// -// http://www.boost.org -// - -#ifdef _WIN32 -__declspec(dllexport) -#endif -void foo() {}; diff --git a/examples-v2/libraries/project-root.jam b/examples-v2/libraries/project-root.jam deleted file mode 100644 index b3db2b405..000000000 --- a/examples-v2/libraries/project-root.jam +++ /dev/null @@ -1,5 +0,0 @@ - -import gcc ; -import toolset : using ; - -using borland ; \ No newline at end of file diff --git a/examples-v2/make/Jamfile b/examples-v2/make/Jamfile deleted file mode 100644 index 5e9ff9b45..000000000 --- a/examples-v2/make/Jamfile +++ /dev/null @@ -1,22 +0,0 @@ - -# Declare a project id. -project make - # Specify requirements for this project. They will be propagated to child project. - # Use 'bjam -n' to see that MACRO is defined when compiling lib/b.obj - : requirements MACRO - ; - -# Load a project located at "extlib", and associated with project-id "/extlib". -use-project /extlib : extlib ; - -# Construct a target 'a' from a list of sources using the specified rule. -make a - : a.o # Use a target declared in this Jamfile - lib/b.o # Use a target from other Jamfile - @/extlib/c.o # Refer to a library by project-id - - : gcc.link ; - - -# Construct another target. -make a.o : a.cpp : gcc.compile ; diff --git a/examples-v2/make/a.cpp b/examples-v2/make/a.cpp deleted file mode 100644 index 052255b3c..000000000 --- a/examples-v2/make/a.cpp +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright (c) 2003 boost.org -// -// 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. -// -// http://www.boost.org -// - -int main() -{ - return 0; -} diff --git a/examples-v2/make/extlib/Jamfile b/examples-v2/make/extlib/Jamfile deleted file mode 100644 index fb21b1ccf..000000000 --- a/examples-v2/make/extlib/Jamfile +++ /dev/null @@ -1,4 +0,0 @@ - -project extlib ; - -make c.o : c.cpp : gcc.compile ; \ No newline at end of file diff --git a/examples-v2/make/extlib/c.cpp b/examples-v2/make/extlib/c.cpp deleted file mode 100644 index 607d73ece..000000000 --- a/examples-v2/make/extlib/c.cpp +++ /dev/null @@ -1,9 +0,0 @@ -// Copyright (c) 2003 boost.org -// -// 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. -// -// http://www.boost.org -// diff --git a/examples-v2/make/extlib/gcc.jam b/examples-v2/make/extlib/gcc.jam deleted file mode 100644 index 3818bac2f..000000000 --- a/examples-v2/make/extlib/gcc.jam +++ /dev/null @@ -1,44 +0,0 @@ - -import property ; - -rule compile ( target : sources * : property-set * ) -{ - local options ; - for local p in $(property-set) - { - if $(p) = on - { - options += -O2 ; - } - else if $(p) = on - { - options += -g ; - } - else if $(p:G) = - { - options += -D$(p:G=) ; - } - } - OPTIONS on $(target) = $(options) ; -} - -actions compile -{ - g++ $(OPTIONS) -c -o $(<) $(>) -} - -rule link ( target : sources * : property-set * ) -{ - local options ; - if on in $(property-set) - { - options += -g ; - } - OPTIONS on $(target) = $(options) ; -} - -actions link -{ - g++ $(OPTIONS) -o $(<) $(>) -} - diff --git a/examples-v2/make/extlib/project-root.jam b/examples-v2/make/extlib/project-root.jam deleted file mode 100644 index e69de29bb..000000000 diff --git a/examples-v2/make/gcc.jam b/examples-v2/make/gcc.jam deleted file mode 100644 index 3818bac2f..000000000 --- a/examples-v2/make/gcc.jam +++ /dev/null @@ -1,44 +0,0 @@ - -import property ; - -rule compile ( target : sources * : property-set * ) -{ - local options ; - for local p in $(property-set) - { - if $(p) = on - { - options += -O2 ; - } - else if $(p) = on - { - options += -g ; - } - else if $(p:G) = - { - options += -D$(p:G=) ; - } - } - OPTIONS on $(target) = $(options) ; -} - -actions compile -{ - g++ $(OPTIONS) -c -o $(<) $(>) -} - -rule link ( target : sources * : property-set * ) -{ - local options ; - if on in $(property-set) - { - options += -g ; - } - OPTIONS on $(target) = $(options) ; -} - -actions link -{ - g++ $(OPTIONS) -o $(<) $(>) -} - diff --git a/examples-v2/make/lib/Jamfile b/examples-v2/make/lib/Jamfile deleted file mode 100644 index 1f29af62d..000000000 --- a/examples-v2/make/lib/Jamfile +++ /dev/null @@ -1,2 +0,0 @@ - -make b.o : b.cpp : gcc.compile ; \ No newline at end of file diff --git a/examples-v2/make/lib/b.cpp b/examples-v2/make/lib/b.cpp deleted file mode 100644 index 607d73ece..000000000 --- a/examples-v2/make/lib/b.cpp +++ /dev/null @@ -1,9 +0,0 @@ -// Copyright (c) 2003 boost.org -// -// 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. -// -// http://www.boost.org -// diff --git a/examples-v2/make/project-root.jam b/examples-v2/make/project-root.jam deleted file mode 100644 index 487eef980..000000000 --- a/examples-v2/make/project-root.jam +++ /dev/null @@ -1,2 +0,0 @@ - -import gcc ; diff --git a/examples-v2/make/readme.txt b/examples-v2/make/readme.txt deleted file mode 100644 index 499dbba96..000000000 --- a/examples-v2/make/readme.txt +++ /dev/null @@ -1,17 +0,0 @@ - -Example of a simple project, which builds an executable using g++. -All the transformations are specified explicitly. -It illustrates the use of project identifiers to refer to other targets -and also project requirements. - - -Interesting commands would be - - bjam - bjam release - bjam release clean - bjam release debug-symbols=on - -Also, you can use jam's "-n" option to check if "debug"/"release" have any -effect on commands executed. (Note that "-n" should go before any non-option -elements on command line). diff --git a/examples-v2/qt-ui/Jamfile b/examples-v2/qt-ui/Jamfile deleted file mode 100644 index 82a114002..000000000 --- a/examples-v2/qt-ui/Jamfile +++ /dev/null @@ -1,6 +0,0 @@ - -project - : default-build multi - ; - -exe hello : main.cpp hello_world_widget.ui : /qt//qt ; diff --git a/examples-v2/qt-ui/hello_world.pro b/examples-v2/qt-ui/hello_world.pro deleted file mode 100644 index 6b6891e7e..000000000 --- a/examples-v2/qt-ui/hello_world.pro +++ /dev/null @@ -1,6 +0,0 @@ -TEMPLATE = app -TARGET = helloworld -CONFIG += qt warn_on debug -SOURCES += main.cpp -FORMS = hello_world_widget.ui -OBJECTS_DIR = foo diff --git a/examples-v2/qt-ui/hello_world_widget.ui b/examples-v2/qt-ui/hello_world_widget.ui deleted file mode 100644 index 0c47418dd..000000000 --- a/examples-v2/qt-ui/hello_world_widget.ui +++ /dev/null @@ -1,50 +0,0 @@ - -HelloWorldWidget - - - HelloWorldWidget - - - - 0 - 0 - 124 - 63 - - - - Hello World! - - - - unnamed - - - 11 - - - 6 - - - - TextLabel2 - - - Hello World! - - - AlignCenter - - - - - OkButton - - - OK - - - - - - diff --git a/examples-v2/qt-ui/main.cpp b/examples-v2/qt-ui/main.cpp deleted file mode 100644 index c455b36e5..000000000 --- a/examples-v2/qt-ui/main.cpp +++ /dev/null @@ -1,13 +0,0 @@ -#include "hello_world_widget.h" -#include - -#include - -int main(int argc, char **argv) { - QApplication a(argc, argv); - HelloWorldWidget w; - QObject::connect(static_cast(w.OkButton), SIGNAL(clicked()), &w, SLOT(close())); - a.setMainWidget(&w); - w.show(); - return a.exec(); -} diff --git a/examples-v2/qt-ui/project-root.jam b/examples-v2/qt-ui/project-root.jam deleted file mode 100644 index 2a397b22b..000000000 --- a/examples-v2/qt-ui/project-root.jam +++ /dev/null @@ -1,12 +0,0 @@ - -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 ; - -#type.change-generated-target-suffix H : : hpp ; \ No newline at end of file diff --git a/examples-v2/qt/Jamfile b/examples-v2/qt/Jamfile deleted file mode 100644 index 48f243d1a..000000000 --- a/examples-v2/qt/Jamfile +++ /dev/null @@ -1,7 +0,0 @@ - -project - # built MT version, unless asked otherwise. - : default-build multi - ; - -exe t7 : main.cpp lcdrange.cpp lcdrange.h : /qt//qt ; \ No newline at end of file diff --git a/examples-v2/qt/lcdrange.cpp b/examples-v2/qt/lcdrange.cpp deleted file mode 100644 index 2f25068b9..000000000 --- a/examples-v2/qt/lcdrange.cpp +++ /dev/null @@ -1,33 +0,0 @@ -/**************************************************************** -** -** Implementation of LCDRange class, Qt tutorial 7 -** -****************************************************************/ - -#include "lcdrange.h" - -#include -#include - -LCDRange::LCDRange( QWidget *parent, const char *name ) - : QVBox( parent, name ) -{ - QLCDNumber *lcd = new QLCDNumber( 2, this, "lcd" ); - slider = new QSlider( Horizontal, this, "slider" ); - slider->setRange( 0, 99 ); - slider->setValue( 0 ); - connect( slider, SIGNAL(valueChanged(int)), - lcd, SLOT(display(int)) ); - connect( slider, SIGNAL(valueChanged(int)), - SIGNAL(valueChanged(int)) ); -} - -int LCDRange::value() const -{ - return slider->value(); -} - -void LCDRange::setValue( int value ) -{ - slider->setValue( value ); -} diff --git a/examples-v2/qt/lcdrange.h b/examples-v2/qt/lcdrange.h deleted file mode 100644 index 0c0219b1b..000000000 --- a/examples-v2/qt/lcdrange.h +++ /dev/null @@ -1,34 +0,0 @@ -/**************************************************************** -** -** Definition of LCDRange class, Qt tutorial 7 -** -****************************************************************/ - -#ifndef LCDRANGE_H -#define LCDRANGE_H - -#include - -class QSlider; - - -class LCDRange : public QVBox -{ - Q_OBJECT -public: - LCDRange( QWidget *parent=0, const char *name=0 ); - - int value() const; - -public slots: - void setValue( int ); - -signals: - void valueChanged( int ); - -private: - QSlider *slider; -}; - - -#endif // LCDRANGE_H diff --git a/examples-v2/qt/main.cpp b/examples-v2/qt/main.cpp deleted file mode 100644 index f610b4689..000000000 --- a/examples-v2/qt/main.cpp +++ /dev/null @@ -1,55 +0,0 @@ -/**************************************************************** -** -** Qt tutorial 7 -** -****************************************************************/ - -#include -#include -#include -#include -#include -#include - -#include "lcdrange.h" - - -class MyWidget : public QVBox -{ -public: - MyWidget( QWidget *parent=0, const char *name=0 ); -}; - - -MyWidget::MyWidget( QWidget *parent, const char *name ) - : QVBox( parent, name ) -{ - QPushButton *quit = new QPushButton( "Quit", this, "quit" ); - quit->setFont( QFont( "Times", 18, QFont::Bold ) ); - - connect( quit, SIGNAL(clicked()), qApp, SLOT(quit()) ); - - QGrid *grid = new QGrid( 4, this ); - - LCDRange *previous = 0; - for( int r = 0 ; r < 4 ; r++ ) { - for( int c = 0 ; c < 4 ; c++ ) { - LCDRange* lr = new LCDRange( grid ); - if ( previous ) - connect( lr, SIGNAL(valueChanged(int)), - previous, SLOT(setValue(int)) ); - previous = lr; - } - } -} - - -int main( int argc, char **argv ) -{ - QApplication a( argc, argv ); - - MyWidget w; - a.setMainWidget( &w ); - w.show(); - return a.exec(); -} diff --git a/examples-v2/qt/project-root.jam b/examples-v2/qt/project-root.jam deleted file mode 100644 index 6ee72a742..000000000 --- a/examples-v2/qt/project-root.jam +++ /dev/null @@ -1,9 +0,0 @@ - -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 ; \ No newline at end of file diff --git a/examples-v2/versioned/hello.cpp b/examples-v2/versioned/hello.cpp deleted file mode 100644 index 68966276e..000000000 --- a/examples-v2/versioned/hello.cpp +++ /dev/null @@ -1,12 +0,0 @@ -/* (C) Copyright Rene Rivera, 2003. -** -** See accompanying license for terms and conditions of use. -*/ - -#include - -int main() -{ - std::cout << "Hello!\n"; - return 1; -} diff --git a/examples-v2/versioned/jamfile.jam b/examples-v2/versioned/jamfile.jam deleted file mode 100644 index ef30354db..000000000 --- a/examples-v2/versioned/jamfile.jam +++ /dev/null @@ -1,10 +0,0 @@ -# (C) Copyright Rene Rivera, 2003. -# -# See accompanying license for terms and conditions of use. -# - -#~ exe hello : hello.cpp : 1.0 ; -lib hello : hello.cpp : 1.0 ; - -symlink hello_debug hello_release : hello/debug hello/release ; -symlink links/hello_release : hello/release ; diff --git a/examples-v2/versioned/project-root.jam b/examples-v2/versioned/project-root.jam deleted file mode 100644 index dec7f8d33..000000000 --- a/examples-v2/versioned/project-root.jam +++ /dev/null @@ -1,8 +0,0 @@ -# (C) Copyright Rene Rivera, 2003. -# -# See accompanying license for terms and conditions of use. -# - -import gcc ; -import toolset ; -import modifiers ; diff --git a/new/m2-transformations.txt b/new/m2-transformations.txt deleted file mode 100644 index 8cd2a9a77..000000000 --- a/new/m2-transformations.txt +++ /dev/null @@ -1,104 +0,0 @@ - - -(Transformations which include some parser/lexer generators) -EXE <------- OBJ* <--------- foo.cpp - ^ - | asm_parser.lr0 - | ^ - | | - --------- asm_parser.{cpp,h} <------ parser.whl -O - | | | - | | |---- asm.wd - | | | - | O--- asm_lexer.{cpp,h} <------ lexer.dlp -O - | - | - | - O-------- g.cpp, g.h ----- g.y - - -(QT transformation sequence) -EXE <------- OBJ* <-------- foo.cpp - ^ - | - | - | - O------ dialog_ui.cpp <---------------------O - | ^ |---- dialog.ui - | \------- dialog_ui.h <---O - | - O------ foo_moc.cpp <------- foo.h - -(Transofrmation sequence I need) - -EST.EXE <---- OBJ* <----------------------------------------- CPP - ^ - | - +--------------------- CPP <---+------------NM_ ASM - | | - +- CPP <------ STATIC_DATA* <--+ - | STATIC_DATA ^ - | | - | | - | NM_ASM <--- CPP <---------- ECPP - +--------------------------- CPP <-+ - -NM.EXE <---- NM_OBJ * <-------- NM_ASM <------ CPP - <-------- NM_ASM - -Note: all STATIC_DATA files produced from sources are linked together -to create one CPP and one STATIC_DATA file. - - -(MSVC transformation seqeuence, thanks to Markus Schöpflin) - -The project consists of a static library (build with cl and not using -precompiled headers), ressources and more source files (compiled using -precompiled headers) and results in a dll, the import library for the -dll and the program database file (for debugging). Source code browser -information are build as well. A debug build is assumed. - -The picture gets a little more complicated if you're doing COM. :-) - - bscmake -stdafx.cpp stdafx.sbr ---------+-----+------------> project.bsc -*.h \ cl ^ ^ (7) - >--------> stdafx.obj----+ | | - / (1) project.pch +----------------+ -stdafx.h | | | | - \ cl v *.sbr | | -*.cpp, *.h >-----------------+--------> | | - / (2) *.obj --------+ -ressource.h | | link project.dll - \ rc | +------> project.lib -project.rc >--------> project.res --------------------+ (6) project.pdb -*.rc2 / (5) | | -... / +-----------------------+ | - | | -*.cpp \ cl *.sbr | - >---------> lib | -*.h / (3) *.obj ---------> *.lib ---------+ - (4) - -Notes: - -(1) The precompiled header file (project.pch) is created using cl with -some special command line options. The names stdafx.h and stdafx.cpp can -be changed of course but are pretty common. - -(2) The sources are compiled using the precompiled header file created -in step 1. cl needs another command line option for this. - -(3) Some more sources are compiled not using precompiled headers at all. -Yet another command line for cl. - -(4) The object files create in step 3 are combined into a static library. - -(5) Various ressource files are compiled using rc. - -(6) The whole project is linked with stdafx.obj, the object files created -in step 2, project.res, the libs creates in step 4 and any other external -libraries needed. - -(7) Source code browser information is compiled from all sbr files into -the single bsc file needed by the IDE. diff --git a/test/test2/Jamfile b/test/test2/Jamfile deleted file mode 100644 index ca3adadbc..000000000 --- a/test/test2/Jamfile +++ /dev/null @@ -1,4 +0,0 @@ - -project-root ; - -exe foo : foo.cpp ; \ No newline at end of file diff --git a/test/test2/Jamrules b/test/test2/Jamrules deleted file mode 100644 index e69de29bb..000000000 diff --git a/test/test2/foo.cpp b/test/test2/foo.cpp deleted file mode 100644 index be6abcae7..000000000 --- a/test/test2/foo.cpp +++ /dev/null @@ -1,11 +0,0 @@ -// Copyright (c) 2003 boost.org -// -// 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. -// -// http://www.boost.org -// - -int main() { return 0; }