]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/compute/test/Jamfile.v2
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / compute / test / Jamfile.v2
1 # (C) Copyright 2015: Kyle Lutz
2 # Distributed under the Boost Software License, Version 1.0.
3 # (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
4
5 import testing ;
6
7 lib boost_unit_test_framework ;
8
9 project
10 : source-location .
11 : requirements
12 <define>BOOST_ALL_NO_LIB=1
13 <toolset>msvc:<define>_SCL_SECURE_NO_WARNINGS
14 <toolset>msvc:<define>_CRT_SECURE_NO_WARNINGS
15 <toolset>msvc:<define>NOMINMAX
16 <toolset>msvc:<cxxflags>/wd4003 # Not enough actual parameters for a BOOST_PP macro
17 <toolset>msvc:<cxxflags>/wd4244 # Warning C4244: 'initializing': conversion from 'double' to 'int', possible loss of data
18 <toolset>msvc:<cxxflags>/wd4305 # Warning C4305: 'initializing': truncation from 'double' to 'float'
19 <toolset>msvc:<cxxflags>/wd4800 # Warning C4800: 'uint32_t' : forcing value to bool 'true' or 'false' (performance warning)
20 <toolset>msvc:<cxxflags>/wd4838 # Warning C4838: conversion from 'double' to 'float' requires a narrowing conversion
21 <library>/boost/test//boost_unit_test_framework
22 ;
23
24 rule test_all
25 {
26 local all_rules = ;
27
28 for local fileb in [ glob *.cpp ]
29 {
30 all_rules += [ run $(fileb)
31 :
32 :
33 :
34 <link>shared:<define>BOOST_TEST_DYN_LINK=1
35 <host-os>linux:<linkflags>"-lOpenCL"
36 <host-os>darwin:<linkflags>"-framework OpenCL"
37 <host-os>freebsd:<linkflags>"-lOpenCL"
38 ] ;
39 }
40
41 return $(all_rules) ;
42 }
43
44 test-suite compute : [ test_all r ] : ;