Jamfile.v2 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. # Boost.Wave: A Standard compliant C++ preprocessor library
  2. #
  3. # Boost Wave Library Test Jamfile
  4. #
  5. # http://www.boost.org/
  6. #
  7. # Copyright (c) 2001-2011 Hartmut Kaiser. Distributed under the Boost
  8. # Software License, Version 1.0. (See accompanying file
  9. # LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  10. #
  11. # These are the sources to compile for the testwave application
  12. #
  13. SOURCES_STATIC = testwave testwave_app
  14. ;
  15. SOURCES_DYNAMIC = testwave_dll testwave_app_dll
  16. ;
  17. SOURCES = $(SOURCE_STATIC) $(SOURCES_DYNAMIC)
  18. ;
  19. path-constant TESTWAVE_DIR : $(BOOST_ROOT)/libs/wave/test/testwave/testfiles
  20. ;
  21. #
  22. # This are the arguments for the testwave executable
  23. #
  24. TESTWAVE_ARGUMENTS =
  25. -d4 # use -d4 for verbose results
  26. --hooks=1 # test hooks as well
  27. -S$(TESTWAVE_DIR)
  28. -S$(BOOST_ROOT) -I$(BOOST_ROOT)
  29. ;
  30. #
  31. # These are the names of the different unit tests to run
  32. #
  33. TESTWAVE_FILES = test.cfg
  34. ;
  35. project wave/test
  36. ;
  37. for local source in $(SOURCES)
  38. {
  39. local requirements ;
  40. requirements += <toolset-msvc:version>7.1:<rtti>off ; # workaround for compiler bug
  41. requirements += <toolset-msvc:version>7.1_stlport4:<rtti>off ;
  42. obj $(source) : ../testwave/$(source).cpp : $(requirements) ;
  43. }
  44. #
  45. # Wave test suite
  46. #
  47. test-suite wave
  48. :
  49. [
  50. run
  51. # sources
  52. ../testwave/$(SOURCES_DYNAMIC).cpp
  53. /boost/wave//boost_wave
  54. /boost/program_options//boost_program_options
  55. /boost/filesystem//boost_filesystem
  56. /boost/system//boost_system
  57. /boost/thread//boost_thread
  58. /boost/date_time//boost_date_time
  59. :
  60. # arguments
  61. $(TESTWAVE_ARGUMENTS)
  62. --config-file $(TESTWAVE_DIR)/$(TESTWAVE_FILES)
  63. :
  64. # input files
  65. :
  66. # requirements
  67. <threading>multi
  68. <variant>debug
  69. <link>shared:<define>BOOST_ALL_DYN_LINK=1
  70. <toolset>msvc:<define>_SCL_SECURE_NO_DEPRECATE
  71. <toolset>msvc:<define>_CRT_SECURE_NO_DEPRECATE
  72. # <define>BOOST_LIB_DIAGNOSTIC=1
  73. :
  74. # name
  75. testwave_dll
  76. ]
  77. [
  78. run
  79. # sources
  80. ../testwave/$(SOURCES_STATIC).cpp
  81. /boost/wave//boost_wave/<link>static
  82. /boost/program_options//boost_program_options/<link>static
  83. /boost/filesystem//boost_filesystem/<link>static
  84. /boost/system//boost_system/<link>static
  85. /boost/thread//boost_thread/<link>static
  86. /boost/date_time//boost_date_time/<link>static
  87. :
  88. # arguments
  89. $(TESTWAVE_ARGUMENTS)
  90. --config-file $(TESTWAVE_DIR)/$(TESTWAVE_FILES)
  91. :
  92. # input files
  93. :
  94. # requirements
  95. <threading>multi
  96. <variant>debug
  97. <link>static # Linking to DLL tested by testwave_dll
  98. <toolset>msvc:<define>_SCL_SECURE_NO_DEPRECATE
  99. <toolset>msvc:<define>_CRT_SECURE_NO_DEPRECATE
  100. # <define>BOOST_LIB_DIAGNOSTIC=1
  101. :
  102. # name
  103. testwave
  104. ]
  105. # test the Slex wave lexing component
  106. [
  107. run
  108. # sources
  109. ../testlexers/test_slex_lexer.cpp
  110. /boost/wave//boost_wave
  111. /boost/program_options//boost_program_options
  112. /boost/filesystem//boost_filesystem
  113. /boost/thread//boost_thread
  114. /boost/system//boost_system
  115. /boost/date_time//boost_date_time
  116. :
  117. # arguments
  118. :
  119. # input files
  120. :
  121. # requirements
  122. <threading>multi
  123. <variant>debug
  124. <toolset>msvc:<define>_SCL_SECURE_NO_DEPRECATE
  125. <toolset>msvc:<define>_CRT_SECURE_NO_DEPRECATE
  126. :
  127. # name
  128. test_slex_lexer
  129. ]
  130. # test the Re2C wave lexing component
  131. [
  132. run
  133. # sources
  134. ../testlexers/test_re2c_lexer.cpp
  135. /boost/wave//boost_wave
  136. /boost/program_options//boost_program_options
  137. /boost/filesystem//boost_filesystem
  138. /boost/thread//boost_thread
  139. /boost/system//boost_system
  140. /boost/date_time//boost_date_time
  141. :
  142. # arguments
  143. :
  144. # input files
  145. :
  146. # requirements
  147. <threading>multi
  148. <variant>debug
  149. <toolset>msvc:<define>_SCL_SECURE_NO_DEPRECATE
  150. <toolset>msvc:<define>_CRT_SECURE_NO_DEPRECATE
  151. :
  152. # name
  153. test_re2c_lexer
  154. ]
  155. [
  156. run
  157. # sources
  158. ../testwave/quick.cpp
  159. /boost/wave//boost_wave
  160. /boost/thread//boost_thread
  161. /boost/filesystem//boost_filesystem
  162. ]
  163. ;