Commit Graph

849 Commits

Author SHA1 Message Date
Mateusz Łoskot
9207ffc52a
Use Boost.Build 'cxxstd' feature instead of '-std' compiler flag (#266)
The cxxstd=11,14,17,... is the recommended way, announced here
https://lists.boost.org/Archives/boost/2017/10/239485.php
2019-03-22 08:16:11 +01:00
Mateusz Łoskot
fc70dafa9e
Fix warning: unused variable 'src_p' [-Wunused-variable] 2019-03-21 21:14:10 +01:00
Mateusz Łoskot
d381474813
Fix warnings about unused variables in tests [ci skip] 2019-03-21 19:33:11 +01:00
Mateusz Łoskot
c43d3ea4e0
Disable pedantic compilation for CI builds (#265)
Some background about rationale behind this change can be found at
https://github.com/boostorg/mp11/issues/31
and
https://github.com/boostorg/build/issues/394
2019-03-21 19:26:25 +01:00
Mateusz Łoskot
d9e7ff588f
Comment unused parameter of channel_premultiply call operator (#264)
Fix warning: unused parameter `c` [-Wunused-parameter].
Clean up typographic quotation marks.
2019-03-21 18:54:06 +01:00
Mateusz Łoskot
5427e60dcc
Add missing #include <sstream> 2019-03-21 18:41:24 +01:00
Mateusz Łoskot
b4a7fda6d6
Fix warning: no return statement in function returning non-void 2019-03-21 18:33:54 +01:00
Mateusz Łoskot
a8697bd21b
Fix Jamfile syntax for multiple <define> 2019-03-21 17:48:13 +01:00
Mateusz Łoskot
11e8fee5d4
Fix warning about unreferenced local variable 2019-03-21 09:43:28 +01:00
Mateusz Łoskot
ef1aa5c50f
Add build using VS2015 to Azure Pipelines (#263)
* Install latest CMake and Python on VS 2015 image.
* Remove libs/gil from installed Boost 1.68 to ensure GIL headers
  from the release are not accidentally used
2019-03-20 10:20:36 +01:00
Nikita Kniazev
33d4ac05ae Use just ::value where is possible (#262)
The ::value member is common convention of all MPL and TypeTraits metafunctions.

Fixes VS2015 failures (#261)
2019-03-19 20:34:11 +01:00
Mateusz Łoskot
af8dcac47e
Add missing #include <boost/mpl/and.hpp> 2019-03-18 22:11:05 +01:00
Nikita Kniazev
4db69da7b8 Add tests requirements (#260)
Will wash away failures on unsupported compilers from the regression board
2019-03-18 19:12:06 +01:00
Mateusz Łoskot
d3c1a2eff4
Add test for some bit-aligned pixel types and metafunctions (#257)
Test bit_aligned_pixel_reference and packed_pixel as well as
some of related metafunctions generating types of their
members and intermediate specializations.
2019-03-13 19:15:33 +01:00
Mateusz Łoskot
c8a8dd4dd2
Correct git clone arguments [ci skip] 2019-03-11 18:55:55 +01:00
Mateusz Łoskot
4905e606fa
Update INPUT list in doc/doxyfile (#254)
Make peace with @vinniefalco & @pdimov, not war!
2019-03-07 14:40:28 +01:00
Mateusz Łoskot
8429300aae
Trim annoying whitespaces in doc/doxyfile [ci skip] 2019-03-07 09:24:19 +01:00
Mateusz Łoskot
ecf41b59ae
Update example/README.txt and convert to Markdown [ci skip]
Update README.md and CONTRIBUTING.md about available examples.

Clarifies #252 and #253
2019-03-06 19:24:13 +01:00
Mateusz Łoskot
9004a67662
Remove old example/Makefile
It is not maintained; may be broken; redundant.
2019-03-06 19:08:12 +01:00
Mateusz Łoskot
a0f3bb7659
Use class for template template parameter (#251)
The current definition using `typename` fails when compiling
with GCC 4.8 and 4.9, because `typename` is allowed since C++17.
2019-03-05 07:54:14 +01:00
Mateusz Łoskot
f81952e115
Fix gray_t and gray_color_t mismatch in default_color_converter_impl (#250)
Add number of static assertions to test indices used to access
elements of color mapping sequence are in range.

Fixes #249
2019-03-04 17:33:03 +01:00
Mateusz Łoskot
b1998d9a74
Add pixel test fixture with all core pixel types (#248)
Add test for pixel_reference_is_mutable metafunction.

From the legacy tests
- port value_core and reference_core fixtures, see
  https://lists.boost.org/boost-gil/2019/02/0138.php
- port representative pixel types and verify with tests of some
  metafunctions.

Clean up test names for CTest in the CMake configuration.
Disable some GCC/clang warnings in tests to avoid CI build
termination due to too long logs.
2019-03-02 23:18:54 +01:00
Mateusz Łoskot
5323eb7c5a
Remove repeated gray16_pixel_t from test list 2019-03-01 00:44:36 +01:00
Mateusz Łoskot
d73e6415c8
Rename channel_test_fixture.hpp to test_fixture.hpp
* It lives in channel/ directory, so the prefix is superfluous
* New name makes a convention for fixture headers for other test topics

Add missing and rename existing include guards.
2019-02-28 21:40:44 +01:00
Mateusz Łoskot
61c23b0529
Add test for some channel, color and pixel metafunctions (#247) 2019-02-27 08:19:44 +01:00
Mateusz Łoskot
1541d5cf8a
Add test for pixels_are_compatible metafunction (#245) 2019-02-26 22:14:34 +01:00
Mateusz Łoskot
bcc26fba40
[cmake] Disable Boost autolinking for MSVC (#244) [skip travis]
Test CMAKE_CXX_COMPILER_ID instead of MSVC variable.
2019-02-26 22:08:21 +01:00
Mateusz Łoskot
22a917dd5b
[azp] Update Python pip [skip appveyor] [skip travis] (#246)
Attempt to solve recent build failures [1] on Azure Pipelines:

- Install pip update
- Add UsePythonVersion

[1] https://developercommunity.visualstudio.com/content/problem/469073/azp-script-is-installed-in-chostedtoolcachewindows.html
2019-02-26 21:02:41 +01:00
Mateusz Łoskot
998d1b1bbe
Add tests for dynamic_{x,y}_step_type specializations (#243)
Basic verification expected specializations of `dynamic_x_step_type`
and `dynamic_y_step_type` are in place.
2019-02-25 07:11:46 +00:00
Mateusz Łoskot
213b55c6ad
Add test for iterator concepts (#242) 2019-02-24 18:15:06 +00:00
Mateusz Łoskot
48db4f51a3
Add test for locator concepts (#241) 2019-02-23 11:16:57 +00:00
Mateusz Łoskot
4cf2a2c1da
Disable detailed warnings on CI builds (#240)
This should help to avoid failures on Travis CI (and possibly others):

  The job exceeded the maximum log length, and has been terminated.
2019-02-22 23:04:12 +00:00
Mateusz Łoskot
cf6627389f
Update test/channel/concepts.cpp name in build config
Change missing from SHA-1:3d8469eafe59bc3fef3052bad375704614023e9d
2019-02-22 22:09:23 +01:00
Mateusz Łoskot
3d8469eafe
Require BOOST_GIL_USE_CONCEPT_CHECK when compiling test/*/concepts.cpp
Add BOOST_GIL_USE_CONCEPT_CHECK define to CMakeLists.txt files.
Rename channel_concepts.cpp to concepts.cpp.
2019-02-22 22:02:25 +01:00
Mateusz Łoskot
52ed09f0bc
Add missing #include <boost/config.hpp> 2019-02-21 00:41:30 +01:00
Mateusz Łoskot
9b1bd58202
Fix year in copyright notice [ci skip] 2019-02-21 00:33:24 +01:00
Mateusz Łoskot
8e7bda62f5
Move GIL's original test suites to test/legacy/ (#239)
Document maintenance rules of `test/legacy/` content.

Motivation to move the `test/legacy/` is to:
* clarify status of those tests
* make it easier to run tests selectively
* separate new/upcoming feature-specific tests
  from those all-in-one tests.

Other changes:
Rename `gil_test_common.hpp` to `unit_test.hpp` to make
it clearer it acts as `boost/test/unit_test.hpp proxy`.
Remove `<include>$(BOOST_ROOT)` from `Jamfile`-s as unnecessary.
2019-02-20 19:03:28 +00:00
Mateusz Łoskot
21139476e5
Include all public headers in gil.hpp (#237) 2019-02-20 19:02:58 +00:00
Mateusz Łoskot
3e4a2d0ed2
[appveyor] Fix accidental YAML breakage [skip travis]
The .travis.yml leaked in here by accident,
in SHA-1:5f241af90daac96b3cff8f990843dcde199094d7
2019-02-19 20:55:35 +01:00
Mateusz Łoskot
5f241af90d
[ci] Ensure CI builds clone pre-determined super-project branch
Rename custom variant with gil_ prefix.
Do not define project ID from Jamfile-s as unnecessary.
The project ID-s and build features are global resources, easy to clash.

Add recently added test/ subdirectories to build.
2019-02-19 18:21:28 +01:00
Mateusz Łoskot
22baac5367
Add dynamic_step.hpp for base templates declaration (#238)
Replace all scattered around forward declarations of
`dynamic_{x,y,xy}_step_type` with this common header,
where the templates are also documented.

Refine documentation of `transposed_type` - this is kept
in locator.hpp as it is not just related to the dynamic step.
2019-02-19 16:34:20 +00:00
Mateusz Łoskot
e72e3862c2
Add tests for image_view metafunctions, image and pixel concepts (#236)
Rename test source files xxx_concepts.cpp to concepts.cpp
2019-02-18 21:52:30 +00:00
Mateusz Łoskot
d8eca48290
Refine previous fix for -Wtype-limits in toolbox test
Implicit conversions from int to uint16_t triggered -Wconversion
2019-02-06 22:55:17 +01:00
Mateusz Łoskot
4b0c424d72
Fix GCC warning -Wtype-limits in toolbox test 2019-02-06 22:46:51 +01:00
Mateusz Łoskot
699d87b40b
Fix GCC warning -Wsign-compare in toolbox test 2019-02-06 22:46:34 +01:00
Mateusz Łoskot
b78a762fdd
Fix clang and GCC warning on unsequenced access 2019-02-06 22:26:09 +01:00
Mateusz Łoskot
545bd85677
Ignore warning -Wunused-but-set-variable in concepts 2019-02-06 22:24:11 +01:00
Mateusz Łoskot
f4133c8068
Ignore warning -Wuninitialized in concepts 2019-02-06 22:23:38 +01:00
Mateusz Łoskot
bde46642d3
Ignore warning -Wfloat-equal in tests 2019-02-06 22:22:35 +01:00
Mateusz Łoskot
db28b19959
Ignore GCC warning -Wunused-but-set-variable 2019-02-06 22:02:08 +01:00