mirror of
https://github.com/boostorg/static_string.git
synced 2025-07-29 20:17:35 +02:00
37
Jamfile
37
Jamfile
@ -4,42 +4,7 @@
|
|||||||
# Distributed under the Boost Software License, Version 1.0. (See accompanying
|
# Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||||
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
#
|
#
|
||||||
# Official repository: https://github.com/boostorg/beast
|
# Official repository: https://github.com/boostorg/fixed_string
|
||||||
#
|
#
|
||||||
|
|
||||||
import ac ;
|
|
||||||
import os ;
|
|
||||||
import feature ;
|
|
||||||
import boost ;
|
|
||||||
import modules ;
|
|
||||||
import testing ;
|
|
||||||
import ../../config/checks/config : requires ;
|
|
||||||
|
|
||||||
boost.use-project ;
|
|
||||||
|
|
||||||
local defines =
|
|
||||||
[ requires
|
|
||||||
cxx11_constexpr
|
|
||||||
cxx11_decltype
|
|
||||||
cxx11_hdr_tuple
|
|
||||||
cxx11_template_aliases
|
|
||||||
cxx11_variadic_templates
|
|
||||||
]
|
|
||||||
<implicit-dependency>/boost//headers
|
|
||||||
<include>.
|
|
||||||
<define>BOOST_ALL_NO_LIB=1
|
|
||||||
<toolset>msvc-14.1:<cxxflags>"/permissive-"
|
|
||||||
<toolset>msvc-14.2:<cxxflags>"/permissive-"
|
|
||||||
<toolset>msvc,<variant>release:<cxxflags>"/Ob2 /Oi /Ot"
|
|
||||||
<target-os>windows:<define>_WIN32_WINNT=0x0601
|
|
||||||
;
|
|
||||||
|
|
||||||
project /boost/fixed_string
|
|
||||||
: requirements
|
|
||||||
<link>static
|
|
||||||
$(defines)
|
|
||||||
: usage-requirements
|
|
||||||
$(defines)
|
|
||||||
;
|
|
||||||
|
|
||||||
build-project test ;
|
build-project test ;
|
||||||
|
@ -13,7 +13,6 @@ GroupSources (test "/")
|
|||||||
add_executable (tests
|
add_executable (tests
|
||||||
${PROJECT_FILES}
|
${PROJECT_FILES}
|
||||||
Jamfile
|
Jamfile
|
||||||
lib.cpp
|
|
||||||
fixed_string.cpp
|
fixed_string.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
|
35
test/Jamfile
35
test/Jamfile
@ -7,28 +7,19 @@
|
|||||||
# Official repository: https://github.com/boostorg/fixed_string
|
# Official repository: https://github.com/boostorg/fixed_string
|
||||||
#
|
#
|
||||||
|
|
||||||
local SOURCES =
|
import testing ;
|
||||||
fixed_string.cpp
|
import ../../config/checks/config : requires ;
|
||||||
|
|
||||||
|
local defines =
|
||||||
|
[ requires
|
||||||
|
cxx11_constexpr
|
||||||
|
cxx11_decltype
|
||||||
|
cxx11_hdr_tuple
|
||||||
|
cxx11_template_aliases
|
||||||
|
cxx11_variadic_templates
|
||||||
|
]
|
||||||
;
|
;
|
||||||
|
|
||||||
local RUN_TESTS ;
|
project : requirements $(defines) ;
|
||||||
|
|
||||||
for local f in $(SOURCES)
|
run fixed_string.cpp ;
|
||||||
{
|
|
||||||
RUN_TESTS += [ run $(f) lib.cpp ] ;
|
|
||||||
}
|
|
||||||
|
|
||||||
alias run-tests : $(RUN_TESTS) ;
|
|
||||||
|
|
||||||
exe fat-tests :
|
|
||||||
$(SOURCES)
|
|
||||||
lib.cpp
|
|
||||||
;
|
|
||||||
|
|
||||||
explicit fat-tests ;
|
|
||||||
|
|
||||||
run $(SOURCES)
|
|
||||||
lib.cpp
|
|
||||||
: : : : run-fat-tests ;
|
|
||||||
|
|
||||||
explicit run-fat-tests ;
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
11
test/lib.cpp
11
test/lib.cpp
@ -1,11 +0,0 @@
|
|||||||
//
|
|
||||||
// Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com)
|
|
||||||
//
|
|
||||||
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
||||||
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
||||||
//
|
|
||||||
// Official repository: https://github.com/boostorg/fixed_string
|
|
||||||
//
|
|
||||||
|
|
||||||
#include <boost/beast/_experimental/unit_test/main.ipp>
|
|
||||||
|
|
Reference in New Issue
Block a user