| 1 | # Copyright (C) 2001-2003 |
|---|
| 2 | # William E. Kempf |
|---|
| 3 | # |
|---|
| 4 | # Permission to use, copy, modify, distribute and sell this software |
|---|
| 5 | # and its documentation for any purpose is hereby granted without fee, |
|---|
| 6 | # provided that the above copyright notice appear in all copies and |
|---|
| 7 | # that both that copyright notice and this permission notice appear |
|---|
| 8 | # in supporting documentation. William E. Kempf makes no representations |
|---|
| 9 | # about the suitability of this software for any purpose. |
|---|
| 10 | # It is provided "as is" without express or implied warranty. |
|---|
| 11 | # |
|---|
| 12 | # Boost.Threads tutorial Jamfile |
|---|
| 13 | # |
|---|
| 14 | # Additional configuration variables used: |
|---|
| 15 | # 1. PTW32 may be used on Win32 platforms to specify that the pthreads-win32 |
|---|
| 16 | # library should be used instead of "native" threads. This feature is |
|---|
| 17 | # mostly used for testing and it's generally recommended you use the |
|---|
| 18 | # native threading libraries instead. PTW32 should be set to be a list |
|---|
| 19 | # of two strings, the first specifying the installation path of the |
|---|
| 20 | # pthreads-win32 library and the second specifying which library |
|---|
| 21 | # variant to link against (see the pthreads-win32 documentation). |
|---|
| 22 | # Example: jam -sPTW32="c:\pthreads-win32 pthreadVCE.lib" |
|---|
| 23 | |
|---|
| 24 | # Declare the location of this subproject relative to the root. |
|---|
| 25 | |
|---|
| 26 | subproject libs/thread/tutorial ; |
|---|
| 27 | |
|---|
| 28 | # Include threads.jam for Boost.Threads global build information. |
|---|
| 29 | # This greatly simplifies the Jam code needed to configure the build |
|---|
| 30 | # for the various Win32 build types. |
|---|
| 31 | import ../build/threads ; |
|---|
| 32 | |
|---|
| 33 | { |
|---|
| 34 | template tutorial |
|---|
| 35 | ## sources ## |
|---|
| 36 | : <template>thread_base |
|---|
| 37 | <dll>../build/boost_thread |
|---|
| 38 | ## requirements ## |
|---|
| 39 | : |
|---|
| 40 | ## default build ## |
|---|
| 41 | : |
|---|
| 42 | ; |
|---|
| 43 | |
|---|
| 44 | exe helloworld : <template>tutorial helloworld.cpp ; |
|---|
| 45 | exe helloworld2 : <template>tutorial helloworld2.cpp ; |
|---|
| 46 | exe helloworld3 : <template>tutorial helloworld3.cpp ; |
|---|
| 47 | exe helloworld4 : <template>tutorial helloworld4.cpp ; |
|---|
| 48 | exe factorial : <template>tutorial factorial.cpp ; |
|---|
| 49 | exe factorial2 : <template>tutorial factorial2.cpp ; |
|---|
| 50 | exe factorial3 : <template>tutorial factorial3.cpp ; |
|---|
| 51 | exe counter : <template>tutorial counter.cpp ; |
|---|
| 52 | exe bounded_buffer : <template>tutorial bounded_buffer.cpp ; |
|---|
| 53 | exe once : <template>tutorial once.cpp ; |
|---|
| 54 | } |
|---|