Jamfile 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. #==============================================================================
  2. # Copyright (c) 2001-2011 Joel de Guzman
  3. # Copyright (c) 2001-2012 Hartmut Kaiser
  4. # Copyright (c) 2011 Bryce Lelbach
  5. # Copyright (c) 2016-2019 Nikita Kniazev
  6. #
  7. # Use, modification and distribution is subject to the Boost Software
  8. # License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  9. # http://www.boost.org/LICENSE_1_0.txt)
  10. #==============================================================================
  11. import testing ;
  12. ###############################################################################
  13. project spirit-karma
  14. : requirements
  15. <include>.
  16. <c++-template-depth>512
  17. ;
  18. ###############################################################################
  19. cpp-pch pch : pch.hpp : : : <include>. <toolset>msvc:<cxxflags>"/FIpch.hpp" ;
  20. explicit pch ;
  21. ###############################################################################
  22. local subproject-name = karma ;
  23. rule run ( sources + : args * : input-files *
  24. : requirements * : target-name ? : default-build * )
  25. {
  26. target-name ?= $(subproject-name)_$(sources[1]:D=:S=) ;
  27. return [ testing.run $(sources) : $(args) : $(input-files)
  28. : $(requirements) <pch>on-spirit:<source>pch : $(target-name) : $(default-build) ] ;
  29. }
  30. rule compile ( sources + : requirements * : target-name ? )
  31. {
  32. target-name ?= $(subproject-name)_$(sources[1]:D=:S=) ;
  33. return [ testing.compile $(sources)
  34. : $(requirements) <pch>on-spirit:<source>pch : $(target-name) ] ;
  35. }
  36. rule compile-fail ( sources + : requirements * : target-name ? )
  37. {
  38. target-name ?= $(subproject-name)_$(sources[1]:D=:S=) ;
  39. return [ testing.compile-fail $(sources)
  40. : $(requirements) <pch>on-spirit:<source>pch : $(target-name) ] ;
  41. }
  42. ###############################################################################
  43. compile-fail grammar_fail.cpp ;
  44. compile-fail rule_fail.cpp ;
  45. run actions.cpp ;
  46. run alternative1.cpp ;
  47. run alternative2.cpp ;
  48. run and_predicate.cpp ;
  49. run attribute.cpp ;
  50. run auto1.cpp ;
  51. run auto2.cpp ;
  52. run auto3.cpp ;
  53. run binary1.cpp ;
  54. run binary2.cpp ;
  55. run binary3.cpp ;
  56. run bool.cpp ;
  57. run buffer.cpp ;
  58. run case_handling1.cpp ;
  59. run case_handling2.cpp ;
  60. run case_handling3.cpp ;
  61. run center_alignment.cpp ;
  62. run char1.cpp ;
  63. run char2.cpp ;
  64. run char3.cpp ;
  65. run char_class.cpp ;
  66. run columns.cpp ;
  67. run debug.cpp : : : <pch>off ;
  68. run delimiter.cpp ;
  69. run duplicate.cpp ;
  70. run encoding.cpp ;
  71. run eol.cpp ;
  72. run eps.cpp ;
  73. run format_manip.cpp ;
  74. run format_manip_attr.cpp ;
  75. run format_pointer_container.cpp ;
  76. run generate_attr.cpp ;
  77. run grammar.cpp ;
  78. run int1.cpp ;
  79. run int2.cpp ;
  80. run int3.cpp ;
  81. run kleene.cpp ;
  82. run lazy.cpp ;
  83. run left_alignment.cpp ;
  84. run list.cpp ;
  85. run lit.cpp ;
  86. run maxwidth.cpp ;
  87. run not_predicate.cpp ;
  88. run omit.cpp ;
  89. run optional.cpp ;
  90. run pattern1.cpp ;
  91. run pattern2.cpp ;
  92. run pattern3.cpp ;
  93. run pattern4.cpp ;
  94. run plus.cpp ;
  95. run real1.cpp ;
  96. run real2.cpp ;
  97. run real3.cpp ;
  98. run repeat1.cpp ;
  99. run repeat2.cpp ;
  100. run right_alignment.cpp ;
  101. run sequence1.cpp ;
  102. run sequence2.cpp ;
  103. run stream.cpp ;
  104. run symbols1.cpp ;
  105. run symbols2.cpp ;
  106. run symbols3.cpp ;
  107. run tricky_alignment.cpp ;
  108. run uint_radix.cpp ;
  109. run utree1.cpp ;
  110. run utree2.cpp ;
  111. run utree3.cpp ;
  112. run wstream.cpp ;
  113. compile regression_const_real_policies.cpp ;
  114. run regression_adapt_adt.cpp ;
  115. run regression_center_alignment.cpp ;
  116. run regression_container_variant_sequence.cpp ;
  117. run regression_iterator.cpp ;
  118. run regression_optional_double.cpp ;
  119. run regression_real_0.cpp ;
  120. run regression_real_policy_sign.cpp ;
  121. run regression_real_scientific.cpp ;
  122. run regression_semantic_action_attribute.cpp ;
  123. run regression_unicode_char.cpp : : : <pch>off ;