Compare commits

..

13 Commits

Author SHA1 Message Date
Peter Dimov
26e22b8b37 Update ci.yml 2025-06-09 02:44:22 +03:00
Peter Dimov
d21b8660ce Merge pull request #26 from grafikrobot/modular
Add support for modular build structure.
2025-05-02 19:23:38 +03:00
Rene Rivera
713917981c Move include to target. 2025-04-14 19:16:45 -05:00
Rene Rivera
8db96559c2 Sync from upstream. 2025-04-04 21:39:40 -05:00
Rene Rivera
cfa875a00c Update build deps. 2024-08-17 00:53:07 -05:00
Rene Rivera
bec4e19326 Move inter-lib dependencies to a project variable and into the build targets. 2024-07-23 22:34:22 -05:00
Rene Rivera
67aac44aa4 Update copyright dates. 2024-07-20 22:52:03 -05:00
Rene Rivera
c1a09affd7 Change all <source> references to <library>. 2024-07-20 21:27:22 -05:00
Rene Rivera
11a69febcb Bump B2 require to 5.2 2024-06-14 11:33:56 -05:00
Rene Rivera
2ae4a81989 Update dependencies. 2024-05-13 21:48:15 -05:00
Rene Rivera
65f5be6f9a Add requires-b2 check to top-level build file. 2024-05-05 09:00:01 -05:00
Rene Rivera
c5b6cfdea4 Switch to library requirements instead of source. As source puts extra source in install targets. 2024-03-29 21:16:00 -05:00
Rene Rivera
f2cee6fa26 Make the library modular usable. 2024-03-11 08:38:17 -05:00
3 changed files with 60 additions and 26 deletions

View File

@@ -34,18 +34,22 @@ jobs:
install: g++-6
- toolset: gcc-7
cxxstd: "11,14,17"
os: ubuntu-20.04
container: ubuntu:20.04
os: ubuntu-latest
install: g++-7
- toolset: gcc-8
cxxstd: "11,14,17,2a"
os: ubuntu-20.04
container: ubuntu:20.04
os: ubuntu-latest
install: g++-8
- toolset: gcc-9
cxxstd: "11,14,17,2a"
os: ubuntu-20.04
container: ubuntu:20.04
os: ubuntu-latest
- toolset: gcc-10
cxxstd: "11,14,17,2a"
os: ubuntu-20.04
container: ubuntu:20.04
os: ubuntu-latest
install: g++-10
- toolset: gcc-11
cxxstd: "11,14,17,2a"
@@ -85,37 +89,44 @@ jobs:
- toolset: clang
compiler: clang++-6.0
cxxstd: "11,14,17"
os: ubuntu-20.04
container: ubuntu:20.04
os: ubuntu-latest
install: clang-6.0
- toolset: clang
compiler: clang++-7
cxxstd: "11,14,17"
os: ubuntu-20.04
container: ubuntu:20.04
os: ubuntu-latest
install: clang-7
- toolset: clang
compiler: clang++-8
cxxstd: "11,14,17"
os: ubuntu-20.04
container: ubuntu:20.04
os: ubuntu-latest
install: clang-8
- toolset: clang
compiler: clang++-9
cxxstd: "11,14,17,2a"
os: ubuntu-20.04
container: ubuntu:20.04
os: ubuntu-latest
install: clang-9
- toolset: clang
compiler: clang++-10
cxxstd: "11,14,17,2a"
os: ubuntu-20.04
container: ubuntu:20.04
os: ubuntu-latest
install: clang-10
- toolset: clang
compiler: clang++-11
cxxstd: "11,14,17,2a"
os: ubuntu-20.04
container: ubuntu:20.04
os: ubuntu-latest
install: clang-11
- toolset: clang
compiler: clang++-12
cxxstd: "11,14,17,2a"
os: ubuntu-20.04
container: ubuntu:20.04
os: ubuntu-latest
install: clang-12
- toolset: clang
compiler: clang++-13
@@ -256,7 +267,7 @@ jobs:
- toolset: gcc
cxxstd: "11,14,17,2a"
addrmd: 64
os: windows-2019
os: windows-2022
runs-on: ${{matrix.os}}
@@ -296,7 +307,6 @@ jobs:
fail-fast: false
matrix:
include:
- os: ubuntu-20.04
- os: ubuntu-22.04
- os: ubuntu-24.04
- os: macos-13
@@ -345,7 +355,6 @@ jobs:
fail-fast: false
matrix:
include:
- os: ubuntu-20.04
- os: ubuntu-22.04
- os: ubuntu-24.04
- os: macos-13
@@ -404,7 +413,6 @@ jobs:
fail-fast: false
matrix:
include:
- os: ubuntu-20.04
- os: ubuntu-22.04
- os: ubuntu-24.04
- os: macos-13
@@ -461,8 +469,8 @@ jobs:
fail-fast: false
matrix:
include:
- os: windows-2019
- os: windows-2022
- os: windows-2025
runs-on: ${{matrix.os}}
@@ -510,8 +518,8 @@ jobs:
fail-fast: false
matrix:
include:
- os: windows-2019
- os: windows-2022
- os: windows-2025
runs-on: ${{matrix.os}}
@@ -577,8 +585,8 @@ jobs:
fail-fast: false
matrix:
include:
- os: windows-2019
- os: windows-2022
- os: windows-2025
runs-on: ${{matrix.os}}

22
build.jam Normal file
View File

@@ -0,0 +1,22 @@
# Copyright René Ferdinand Rivera Morell 2023-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)
require-b2 5.2 ;
constant boost_dependencies :
/boost/config//boost_config ;
project /boost/typeof
;
explicit
[ alias boost_typeof : : :
: <include>include <library>$(boost_dependencies) ]
[ alias all : boost_typeof test ]
;
call-if : boost-library typeof
;

View File

@@ -8,6 +8,10 @@
import testing ;
import set ;
project : requirements
<library>/boost/core//boost_core
;
# The special requirement is not ported yet.
#
#local rule special-requirements ( toolset variant : properties * )
@@ -22,7 +26,7 @@ import set ;
# [ replace-properties $(properties) : <build>no ] ;
# }
# }
#
#
# return $(properties) ;
#}
@@ -31,8 +35,8 @@ rule typeof-test ( source )
return [ compile $(source) : <define>BOOST_TYPEOF_NATIVE :
$(source:B)_native ]
[ compile $(source) : <define>BOOST_TYPEOF_EMULATION :
$(source:B)_emulation ]
;
$(source:B)_emulation ]
;
}
rule all-tests ( )
@@ -46,12 +50,12 @@ rule all-tests ( )
all += [ run odr1.cpp odr2.cpp : : : <define>BOOST_TYPEOF_NATIVE :
odr_native ] ;
all += [ run odr1.cpp odr2.cpp : : : <define>BOOST_TYPEOF_EMULATION :
odr_emulation ] ;
all += [ run odr_no_uns1.cpp odr_no_uns2.cpp : : : <define>BOOST_TYPEOF_EMULATION :
odr_no_uns ] ;
return $(all) ;
odr_emulation ] ;
all += [ run odr_no_uns1.cpp odr_no_uns2.cpp : : : <define>BOOST_TYPEOF_EMULATION :
odr_no_uns ] ;
return $(all) ;
}
test-suite "typeof"
test-suite "typeof"
: [ all-tests ]
;