Merge pull request #93 from grafikrobot/modular

Add support for modular build structure.
This commit is contained in:
Peter Dimov
2025-05-02 19:15:03 +03:00
committed by GitHub
3 changed files with 34 additions and 20 deletions
-20
View File
@@ -1,20 +0,0 @@
# Boost Build v2 Jamroot for Polygon unit
#
# Copyright 2010 Intel Corporation
#
# Use, modification and distribution is subject to 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)
project
: requirements
<warnings>all
<toolset>intel:<warnings>on
<toolset>intel-win:<cxxflags>"/bigobj"
<toolset>gcc:<cxxflags>"-pedantic -Wall -Wstrict-aliasing -fstrict-aliasing -Wno-long-long"
<toolset>msvc:<cxxflags>"/W4 /bigobj"
<include>../..
<include>.
;
+22
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/polygon
;
explicit
[ alias boost_polygon : : :
: <include>include <library>$(boost_dependencies) ]
[ alias all : boost_polygon test ]
;
call-if
: boost-library polygon
;
+12
View File
@@ -8,6 +8,18 @@
import testing ;
project
: requirements
<library>/boost/core//boost_core
<library>/boost/random//boost_random
<warnings>all
<toolset>intel:<warnings>on
<toolset>intel-win:<cxxflags>"/bigobj"
<toolset>gcc:<cxxflags>"-pedantic -Wall -Wstrict-aliasing -fstrict-aliasing -Wno-long-long"
<toolset>msvc:<cxxflags>"/W4 /bigobj"
;
run polygon_point_test.cpp ;
run polygon_segment_test.cpp ;
run polygon_interval_test.cpp ;