mirror of
https://github.com/boostorg/parser.git
synced 2026-01-19 04:22:13 +00:00
Add/update b2 build for docs and tests.
This commit is contained in:
@@ -6,20 +6,21 @@ import path ;
|
||||
import doxygen ;
|
||||
import quickbook ;
|
||||
|
||||
using auto-index ;
|
||||
using doxygen ;
|
||||
using quickbook ;
|
||||
using boostbook ;
|
||||
|
||||
path-constant here : . ;
|
||||
|
||||
rule run_doxygen ( files * : name : expand ? )
|
||||
{
|
||||
|
||||
expand ?= <doxygen:param>EXPAND_ONLY_PREDEF=YES ;
|
||||
|
||||
doxygen parser_reference
|
||||
:
|
||||
$(files)
|
||||
:
|
||||
doxygen parser_reference
|
||||
:
|
||||
$(files)
|
||||
:
|
||||
<doxygen:param>EXTRACT_ALL=YES
|
||||
# note that there is no detail::unspecified -- this is a hack to get all
|
||||
# the SFINAE code out of the API docs.
|
||||
@@ -34,15 +35,23 @@ doxygen parser_reference
|
||||
<doxygen:param>SEARCH_INCLUDES=NO
|
||||
<doxygen:param>EXAMPLE_PATH=.
|
||||
<reftitle>$(name)
|
||||
;
|
||||
;
|
||||
|
||||
}
|
||||
|
||||
run_doxygen [ glob ../include/boost/parser/*.hpp : ../include/boost/parser/concepts.hpp ] : "Reference" ;
|
||||
run_doxygen [ glob $(here)/../../../boost/parser/*.hpp : $(here)/../../../boost/parser/concepts.hpp ] : "Headers" ;
|
||||
|
||||
install images_standalone : [ glob *.png ] : <location>html/parser/img ;
|
||||
explicit images_standalone ;
|
||||
|
||||
install images_boostdoc : [ glob *.png ] : <location>../../../doc/html/parser/img ;
|
||||
explicit images_boostdoc ;
|
||||
|
||||
xml parser
|
||||
:
|
||||
parser.qbk
|
||||
:
|
||||
<dependency>parser_reference
|
||||
;
|
||||
|
||||
boostbook standalone
|
||||
@@ -52,8 +61,6 @@ boostbook standalone
|
||||
<dependency>css
|
||||
<dependency>images
|
||||
|
||||
<dependency>parser_reference
|
||||
|
||||
# HTML options first:
|
||||
# Use graphics not text for navigation:
|
||||
<xsl:param>navig.graphics=1
|
||||
@@ -91,18 +98,25 @@ boostbook standalone
|
||||
# better use SVG's instead:
|
||||
# <xsl:param>admon.graphics.extension=".svg"
|
||||
|
||||
<auto-index>on
|
||||
<auto-index-verbose>on
|
||||
<auto-index-internal>on
|
||||
<auto-index-script>parser.idx
|
||||
<quickbook-define>enable_index
|
||||
<auto-index-prefix>..
|
||||
<xsl:param>index.on.type=1
|
||||
# <auto-index>on
|
||||
# <auto-index-verbose>on
|
||||
# <auto-index-internal>on
|
||||
# <auto-index-script>parser.idx
|
||||
# <quickbook-define>enable_index
|
||||
# <auto-index-prefix>..
|
||||
# <xsl:param>index.on.type=1
|
||||
|
||||
<dependency>images_standalone
|
||||
;
|
||||
|
||||
install css : [ glob $(BOOST_ROOT)/doc/src/*.css ]
|
||||
: <location>html ;
|
||||
install images : [ glob $(BOOST_ROOT)/doc/src/images/*.png ]
|
||||
: <location>html/images ;
|
||||
|
||||
alias boostdoc : parser : : : <dependency>images_boostdoc ;
|
||||
explicit boostdoc ;
|
||||
alias boostrelease ;
|
||||
explicit boostrelease ;
|
||||
explicit css ;
|
||||
explicit images ;
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2006 João Abecasis
|
||||
#
|
||||
# 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)
|
||||
#
|
||||
|
||||
##
|
||||
## IMPORTANT NOTE: This file MUST NOT be copied over a boost installation
|
||||
##
|
||||
|
||||
path-constant top : . ;
|
||||
|
||||
import modules ;
|
||||
import path ;
|
||||
|
||||
local boost-root = [ modules.peek : BOOST_ROOT ] ;
|
||||
|
||||
if ! $(boost-root)
|
||||
{
|
||||
local boost-search-dirs = [ modules.peek : BOOST_BUILD_PATH ] ;
|
||||
|
||||
for local dir in $(boost-search-dirs)
|
||||
{
|
||||
if [ path.glob $(dir)/../../../ : boost/version.hpp ]
|
||||
{
|
||||
boost-root += $(dir)/../../../ ;
|
||||
}
|
||||
}
|
||||
|
||||
if $(boost-root)
|
||||
{
|
||||
boost-root = [ path.make $(boost-root[1]) ] ;
|
||||
}
|
||||
else
|
||||
{
|
||||
ECHO "Warning: couldn't find BOOST_ROOT in" $(boost-root) ;
|
||||
}
|
||||
}
|
||||
|
||||
path-constant BOOST_ROOT : $(boost-root) ;
|
||||
modules.poke : QUICKBOOK_ROOT : $(top) ;
|
||||
|
||||
use-project /boost : $(BOOST_ROOT) ;
|
||||
48
test/Jamfile.v2
Normal file
48
test/Jamfile.v2
Normal file
@@ -0,0 +1,48 @@
|
||||
# Copyright 2024 T. Zachary Laine
|
||||
# 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)
|
||||
|
||||
import config : requires ;
|
||||
import testing ;
|
||||
|
||||
# TODO project ;
|
||||
|
||||
compile compile_all_t.cpp ;
|
||||
compile compile_attribute.cpp ;
|
||||
compile compile_combining_groups.cpp ;
|
||||
compile compile_or_attribute.cpp ;
|
||||
compile compile_seq_attribute.cpp ;
|
||||
compile compile_tests_main.cpp ;
|
||||
|
||||
run aggr_tuple_assignment.cpp ;
|
||||
run case_fold_generated.cpp ;
|
||||
run class_type.cpp ;
|
||||
run github_issues.cpp ;
|
||||
run hl.cpp ;
|
||||
run merge_separate.cpp ;
|
||||
run no_case.cpp ;
|
||||
run parse_coords_new.cpp ;
|
||||
run parse_empty.cpp ;
|
||||
run parser_action.cpp ;
|
||||
run parser_action_with_params.cpp ;
|
||||
run parser_api.cpp ;
|
||||
run parser_attributes.cpp ;
|
||||
run parser.cpp ;
|
||||
run parser_if_switch.cpp ;
|
||||
run parser_lazy_params.cpp ;
|
||||
run parser_or_permutations_1.cpp ;
|
||||
run parser_or_permutations_2.cpp ;
|
||||
run parser_perm.cpp ;
|
||||
run parser_quoted_string.cpp ;
|
||||
run parser_rule.cpp ;
|
||||
run parser_rule_with_params.cpp ;
|
||||
run parser_seq_permutations_1.cpp ;
|
||||
run parser_seq_permutations_2.cpp ;
|
||||
run parser_symbol_table.cpp ;
|
||||
run replace.cpp ;
|
||||
run search.cpp ;
|
||||
run split.cpp ;
|
||||
run tracing.cpp ;
|
||||
run transform_replace.cpp ;
|
||||
run tuple_aggregate.cpp ;
|
||||
Reference in New Issue
Block a user