[12] | 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 example 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 | subproject libs/thread/example ; |
---|
| 26 | |
---|
| 27 | # Include threads.jam for Boost.Threads global build information. |
---|
| 28 | # This greatly simplifies the Jam code needed to configure the build |
---|
| 29 | # for the various Win32 build types. |
---|
| 30 | import ../build/threads ; |
---|
| 31 | |
---|
| 32 | { |
---|
| 33 | template example |
---|
| 34 | ## sources ## |
---|
| 35 | : <template>thread_base |
---|
| 36 | <dll>../build/boost_thread |
---|
| 37 | ## requirements ## |
---|
| 38 | : |
---|
| 39 | ## default build ## |
---|
| 40 | : |
---|
| 41 | ; |
---|
| 42 | |
---|
| 43 | exe monitor : <template>example monitor.cpp ; |
---|
| 44 | exe starvephil : <template>example starvephil.cpp ; |
---|
| 45 | exe tennis : <template>example tennis.cpp ; |
---|
| 46 | exe condition : <template>example condition.cpp ; |
---|
| 47 | exe mutex : <template>example mutex.cpp ; |
---|
| 48 | exe once : <template>example once.cpp ; |
---|
| 49 | exe recursive_mutex : <template>example recursive_mutex.cpp ; |
---|
| 50 | exe thread : <template>example thread.cpp ; |
---|
| 51 | exe thread_group : <template>example thread_group.cpp ; |
---|
| 52 | exe tss : <template>example tss.cpp ; |
---|
| 53 | exe xtime : <template>example xtime.cpp ; |
---|
| 54 | } |
---|