mirror of
https://github.com/boostorg/auto_index.git
synced 2025-05-09 23:24:02 +00:00
Add modular build.
This commit is contained in:
parent
d8be00789c
commit
0b9dd5ebdf
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
@ -7,6 +7,7 @@ on:
|
|||||||
- master
|
- master
|
||||||
- develop
|
- develop
|
||||||
- feature/**
|
- feature/**
|
||||||
|
- modular
|
||||||
|
|
||||||
env:
|
env:
|
||||||
UBSAN_OPTIONS: print_stacktrace=1
|
UBSAN_OPTIONS: print_stacktrace=1
|
||||||
|
15
build.jam
Normal file
15
build.jam
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
# Copyright René Ferdinand Rivera Morell 2024
|
||||||
|
# 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 project ;
|
||||||
|
|
||||||
|
project /boost/auto_index
|
||||||
|
: common-requirements
|
||||||
|
;
|
||||||
|
|
||||||
|
explicit
|
||||||
|
[ alias auto_index : build//auto_index ]
|
||||||
|
[ alias all : auto_index test ]
|
||||||
|
;
|
@ -18,16 +18,16 @@ DIST_DIR ?= [ path.join $(BOOST_ROOT) dist ] ;
|
|||||||
DIST_DIR = [ path.root [ path.make $(DIST_DIR) ] [ path.pwd ] ] ;
|
DIST_DIR = [ path.root [ path.make $(DIST_DIR) ] [ path.pwd ] ] ;
|
||||||
local DIST_BIN = [ path.join $(DIST_DIR) bin ] ;
|
local DIST_BIN = [ path.join $(DIST_DIR) bin ] ;
|
||||||
|
|
||||||
exe auto_index :
|
exe auto_index :
|
||||||
../src/auto_index.cpp
|
../src/auto_index.cpp
|
||||||
../src/file_scanning.cpp
|
../src/file_scanning.cpp
|
||||||
../src/index_generator.cpp
|
../src/index_generator.cpp
|
||||||
../src/tiny_xml.cpp
|
../src/tiny_xml.cpp
|
||||||
/boost//regex
|
/boost/regex//boost_regex
|
||||||
/boost//filesystem
|
/boost/filesystem//boost_filesystem
|
||||||
/boost//system
|
/boost/system//boost_system
|
||||||
/boost//program_options
|
/boost/program_options//boost_program_options
|
||||||
: <define>BOOST_ALL_NO_LIB=1 <link>static release ;
|
: <define>BOOST_ALL_NO_LIB=1 <link>static release ;
|
||||||
|
|
||||||
install aii : auto_index : <location>. ;
|
install aii : auto_index : <location>. ;
|
||||||
explicit aii ;
|
explicit aii ;
|
||||||
|
@ -15,11 +15,6 @@ boostbook standalone
|
|||||||
:
|
:
|
||||||
auto_index
|
auto_index
|
||||||
:
|
:
|
||||||
# Path for links to Boost:
|
|
||||||
<xsl:param>boost.root=../../../..
|
|
||||||
# Path for libraries index:
|
|
||||||
<xsl:param>boost.libraries=$(boost-root)/libs/libraries.htm
|
|
||||||
|
|
||||||
# Some general style settings:
|
# Some general style settings:
|
||||||
<xsl:param>table.footnote.number.format=1
|
<xsl:param>table.footnote.number.format=1
|
||||||
<xsl:param>footnote.number.format=1
|
<xsl:param>footnote.number.format=1
|
||||||
@ -83,6 +78,3 @@ boostbook standalone
|
|||||||
;
|
;
|
||||||
|
|
||||||
install pdf-install : standalone : <install-type>PDF <location>. <name>auto_index.pdf ;
|
install pdf-install : standalone : <install-type>PDF <location>. <name>auto_index.pdf ;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -12,56 +12,31 @@ import toolset ;
|
|||||||
import type ;
|
import type ;
|
||||||
|
|
||||||
path-constant ROOT : ../../.. ;
|
path-constant ROOT : ../../.. ;
|
||||||
path-constant HERE : . ;
|
|
||||||
|
|
||||||
exe line_compare_tool : text_diff.cpp ;
|
actions auto-index
|
||||||
|
{
|
||||||
|
"$(>[1])" "--prefix=$(ROOT)" "--in=$(>[2])" "--script=$(>[3])" "--out=$(<[1])"
|
||||||
|
}
|
||||||
|
|
||||||
rule auto-index-test ( target-name : input-file : script-file : output-file ? : options * )
|
rule auto-index-test ( target-name : input-file : script-file : output-file ? : options * )
|
||||||
{
|
{
|
||||||
local project = [ project.current ] ;
|
make $(target-name)._out
|
||||||
|
: ../build//auto_index/<variant>release
|
||||||
local t =
|
$(input-file)
|
||||||
[ targets.create-typed-target RUN
|
$(script-file)
|
||||||
: $(project)
|
: @auto-index
|
||||||
: $(target-name)
|
: <location-prefix>$(target-name).test
|
||||||
: [ alias autoindex : ../build//auto_index : release ]
|
<dependency>Jamfile.v2
|
||||||
: $(requirements)
|
|
||||||
<location-prefix>$(target-name).test
|
|
||||||
<testing.arg>--prefix=$(ROOT)
|
|
||||||
<testing.arg>$(options)
|
|
||||||
<testing.arg>--in=$(HERE)/$(input-file)
|
|
||||||
<testing.arg>--script=$(HERE)/$(script-file)
|
|
||||||
<testing.arg>--out=$(HERE)/$(target-name).out
|
|
||||||
<preserve-test-targets>on
|
|
||||||
<dependency>Jamfile.v2
|
|
||||||
<dependency>$(input-file)
|
|
||||||
<dependency>$(script-file)
|
|
||||||
]
|
|
||||||
;
|
;
|
||||||
|
|
||||||
local n = [ $(t).name ] ;
|
testing.run text_diff.cpp
|
||||||
#ECHO n: $(n) ;
|
:
|
||||||
|
: $(target-name)._out
|
||||||
t +=
|
$(target-name).gold
|
||||||
[ targets.create-typed-target RUN
|
: <preserve-test-targets>on
|
||||||
: $(project)
|
<dependency>Jamfile.v2
|
||||||
: $(target-name)_check
|
: $(target-name)_check
|
||||||
: [ alias lct : line_compare_tool : release ]
|
|
||||||
: $(requirements)
|
|
||||||
<location-prefix>$(target-name).test
|
|
||||||
<testing.arg>$(HERE)/$(target-name).out
|
|
||||||
<testing.arg>$(HERE)/$(target-name).gold
|
|
||||||
<preserve-test-targets>on
|
|
||||||
<dependency>$(n)
|
|
||||||
<dependency>Jamfile.v2
|
|
||||||
<dependency>$(input-file)
|
|
||||||
<dependency>$(script-file)
|
|
||||||
]
|
|
||||||
;
|
;
|
||||||
|
|
||||||
modules.poke testing : .all-tests : \$\(all-tests\) $(t) ;
|
|
||||||
|
|
||||||
return $(t) ;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
auto-index-test test1 : type_traits.docbook : index.idx ;
|
auto-index-test test1 : type_traits.docbook : index.idx ;
|
||||||
|
160
test/test2.gold
160
test/test2.gold
File diff suppressed because one or more lines are too long
160
test/test3.gold
160
test/test3.gold
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user