stabilize build system: depends, installer, boost/bdb fixes, cross targets groundwork

This commit is contained in:
2026-02-24 18:38:47 +00:00
parent da8c28aaeb
commit 65cb2619a7
13106 changed files with 2484322 additions and 1804 deletions
@@ -0,0 +1,69 @@
//---------------------------------------------------------------------------//
// Copyright (c) 2013-2014 Kyle Lutz <kyle.r.lutz@gmail.com>
//
// 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
//
// See http://boostorg.github.com/compute for more information.
//---------------------------------------------------------------------------//
#ifndef BOOST_COMPUTE_INTEROP_QT_QIMAGE_HPP
#define BOOST_COMPUTE_INTEROP_QT_QIMAGE_HPP
#include <boost/throw_exception.hpp>
#include <boost/compute/command_queue.hpp>
#include <boost/compute/exception/opencl_error.hpp>
#include <boost/compute/image/image2d.hpp>
#include <boost/compute/image/image_format.hpp>
#include <boost/compute/utility/dim.hpp>
#include <QImage>
namespace boost {
namespace compute {
inline image_format qt_qimage_format_to_image_format(const QImage::Format &format)
{
if(format == QImage::Format_RGB32){
return image_format(image_format::bgra, image_format::unorm_int8);
}
BOOST_THROW_EXCEPTION(opencl_error(CL_IMAGE_FORMAT_NOT_SUPPORTED));
}
inline QImage::Format qt_image_format_to_qimage_format(const image_format &format)
{
if(format == image_format(image_format::bgra, image_format::unorm_int8)){
return QImage::Format_RGB32;
}
return QImage::Format_Invalid;
}
inline image_format qt_qimage_get_format(const QImage &image)
{
return qt_qimage_format_to_image_format(image.format());
}
inline void qt_copy_qimage_to_image2d(const QImage &qimage,
image2d &image,
command_queue &queue)
{
queue.enqueue_write_image(image, image.origin(), image.size(), qimage.constBits());
}
inline void qt_copy_image2d_to_qimage(const image2d &image,
QImage &qimage,
command_queue &queue)
{
queue.enqueue_read_image(
image, dim(0, 0), dim(qimage.width(), qimage.height()), qimage.bits()
);
}
} // end compute namespace
} // end boost namespace
#endif // BOOST_COMPUTE_INTEROP_QT_QIMAGE_HPP
@@ -0,0 +1,20 @@
//---------------------------------------------------------------------------//
// Copyright (c) 2013-2014 Kyle Lutz <kyle.r.lutz@gmail.com>
//
// 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
//
// See http://boostorg.github.com/compute for more information.
//---------------------------------------------------------------------------//
#ifndef BOOST_COMPUTE_INTEROP_QT_QPOINT_HPP
#define BOOST_COMPUTE_INTEROP_QT_QPOINT_HPP
#include <QPoint>
#include <boost/compute/type_traits/type_name.hpp>
BOOST_COMPUTE_TYPE_NAME(QPoint, "int2")
#endif // BOOST_COMPUTE_INTEROP_QT_QPOINT_HPP
@@ -0,0 +1,20 @@
//---------------------------------------------------------------------------//
// Copyright (c) 2013-2014 Kyle Lutz <kyle.r.lutz@gmail.com>
//
// 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
//
// See http://boostorg.github.com/compute for more information.
//---------------------------------------------------------------------------//
#ifndef BOOST_COMPUTE_INTEROP_QT_QPOINTF_HPP
#define BOOST_COMPUTE_INTEROP_QT_QPOINTF_HPP
#include <QPointF>
#include <boost/compute/type_traits/type_name.hpp>
BOOST_COMPUTE_TYPE_NAME(QPointF, "float2")
#endif // BOOST_COMPUTE_INTEROP_QT_QPOINTF_HPP
@@ -0,0 +1,18 @@
//---------------------------------------------------------------------------//
// Copyright (c) 2013-2014 Kyle Lutz <kyle.r.lutz@gmail.com>
//
// 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
//
// See http://boostorg.github.com/compute for more information.
//---------------------------------------------------------------------------//
#ifndef BOOST_COMPUTE_INTEROP_QT_QTCORE_HPP
#define BOOST_COMPUTE_INTEROP_QT_QTCORE_HPP
#include <boost/compute/interop/qt/qpoint.hpp>
#include <boost/compute/interop/qt/qpointf.hpp>
#include <boost/compute/interop/qt/qvector.hpp>
#endif // BOOST_COMPUTE_INTEROP_QT_QTCORE_HPP
@@ -0,0 +1,16 @@
//---------------------------------------------------------------------------//
// Copyright (c) 2013-2014 Kyle Lutz <kyle.r.lutz@gmail.com>
//
// 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
//
// See http://boostorg.github.com/compute for more information.
//---------------------------------------------------------------------------//
#ifndef BOOST_COMPUTE_INTEROP_QT_QTGUI_HPP
#define BOOST_COMPUTE_INTEROP_QT_QTGUI_HPP
#include <boost/compute/interop/qt/qimage.hpp>
#endif // BOOST_COMPUTE_INTEROP_QT_QTGUI_HPP
@@ -0,0 +1,48 @@
//---------------------------------------------------------------------------//
// Copyright (c) 2013-2014 Kyle Lutz <kyle.r.lutz@gmail.com>
//
// 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
//
// See http://boostorg.github.com/compute for more information.
//---------------------------------------------------------------------------//
#ifndef BOOST_COMPUTE_INTEROP_QT_QVECTOR_HPP
#define BOOST_COMPUTE_INTEROP_QT_QVECTOR_HPP
#include <boost/compute/detail/is_contiguous_iterator.hpp>
#include <QVector>
namespace boost {
namespace compute {
namespace detail {
template<class Iterator>
struct _is_contiguous_iterator<
Iterator,
typename boost::enable_if<
typename boost::is_same<
Iterator,
typename QVector<typename Iterator::value_type>::iterator
>::type
>::type
> : public boost::true_type {};
template<class Iterator>
struct _is_contiguous_iterator<
Iterator,
typename boost::enable_if<
typename boost::is_same<
Iterator,
typename QVector<typename Iterator::value_type>::const_iterator
>::type
>::type
> : public boost::true_type {};
} // end detail namespace
} // end compute namespace
} // end boost namespace
#endif // BOOST_COMPUTE_INTEROP_QT_QVECTOR_HPP