Hello community,
here is the log from the commit of package lxqt-build-tools for
openSUSE:Factory checked in at 2020-04-28 22:29:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/lxqt-build-tools (Old)
and /work/SRC/openSUSE:Factory/.lxqt-build-tools.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "lxqt-build-tools"
Tue Apr 28 22:29:53 2020 rev:6 rq:797664 version:0.7.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/lxqt-build-tools/lxqt-build-tools.changes
2019-02-25 17:49:15.826811242 +0100
+++
/work/SRC/openSUSE:Factory/.lxqt-build-tools.new.2738/lxqt-build-tools.changes
2020-04-28 22:29:56.541481945 +0200
@@ -1,0 +2,8 @@
+Fri Apr 24 19:41:58 UTC 2020 - Callum Farmer <[email protected]>
+
+- Update to version 0.7.0
+ * String casts are forbidden explicitly.
+ * CMake find modules are added for some xdg-utils tools.
+ * The minimum Qt version is incremented to 5.10.
+
+-------------------------------------------------------------------
Old:
----
lxqt-build-tools-0.6.0.tar.xz
lxqt-build-tools-0.6.0.tar.xz.asc
New:
----
lxqt-build-tools-0.7.0.tar.xz
lxqt-build-tools-0.7.0.tar.xz.asc
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ lxqt-build-tools.spec ++++++
--- /var/tmp/diff_new_pack.ItLBU6/_old 2020-04-28 22:29:57.405483558 +0200
+++ /var/tmp/diff_new_pack.ItLBU6/_new 2020-04-28 22:29:57.405483558 +0200
@@ -1,7 +1,7 @@
#
# spec file for package lxqt-build-tools
#
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,17 +17,17 @@
Name: lxqt-build-tools
-Version: 0.6.0
+Version: 0.7.0
Release: 0
Summary: Core build tools for LXQt
License: BSD-3-Clause
Group: Development/Libraries/C and C++
URL: http://www.lxqt.org
-Source:
https://github.com/lxde/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz
-Source1:
https://github.com/lxde/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz.asc
+Source:
https://github.com/lxqt/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz
+Source1:
https://github.com/lxqt/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz.asc
BuildRequires: cmake >= 3.1.0
BuildRequires: pkgconfig
-BuildRequires: pkgconfig(Qt5Core) >= 5.7.1
+BuildRequires: pkgconfig(Qt5Core) >= 5.10
BuildRequires: pkgconfig(glib-2.0) >= 2.50
BuildArch: noarch
++++++ lxqt-build-tools-0.6.0.tar.xz -> lxqt-build-tools-0.7.0.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lxqt-build-tools-0.6.0/CHANGELOG
new/lxqt-build-tools-0.7.0/CHANGELOG
--- old/lxqt-build-tools-0.6.0/CHANGELOG 2019-01-24 22:40:14.000000000
+0100
+++ new/lxqt-build-tools-0.7.0/CHANGELOG 2020-04-21 19:02:33.000000000
+0200
@@ -1,3 +1,14 @@
+lxqt-build-tools-0.7.0 / 2020-04-21
+===================================
+ * Bump version to 0.7.0.
+ * Initial support for Xcode (AppleClang and ld64).
+ * Added a section for settings related to CMake build.
+ * Set C++ extensions to be disabled.
+ * Forbid string casts in LXQtCompilerSettings.
+ * Added a FindClazy CMake module.
+ * Enabled Clazy option when building with clang.
+ * Adds CMake find modules for some xdg-utils tools.
+ * The minimum Qt version is bumped to 5.10.0.
lxqt-build-tools-0.6.0 / 2018-01-25
===================================
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lxqt-build-tools-0.6.0/CMakeLists.txt
new/lxqt-build-tools-0.7.0/CMakeLists.txt
--- old/lxqt-build-tools-0.6.0/CMakeLists.txt 2019-01-24 22:40:14.000000000
+0100
+++ new/lxqt-build-tools-0.7.0/CMakeLists.txt 2020-04-21 19:02:33.000000000
+0200
@@ -9,15 +9,15 @@
option(WITH_XDG_DIRS_FALLBACK "Use our XDG_CONFIG_DIRS fallback" ON)
set(LXQT_BUILD_TOOLS_MAJOR_VERSION 0)
-set(LXQT_BUILD_TOOLS_MINOR_VERSION 6)
+set(LXQT_BUILD_TOOLS_MINOR_VERSION 7)
set(LXQT_BUILD_TOOLS_PATCH_VERSION 0)
set(LXQT_BUILD_TOOLS_VERSION
${LXQT_BUILD_TOOLS_MAJOR_VERSION}.${LXQT_BUILD_TOOLS_MINOR_VERSION}.${LXQT_BUILD_TOOLS_PATCH_VERSION})
# Check for needed versions
-# We need at least Qt 5.7.1 and glib-2.0 >= 2.50 to build all LXQt parts
+# We need at least Qt 5.10.0 and glib-2.0 >= 2.50 to build all LXQt parts
find_package(PkgConfig REQUIRED)
-find_package(Qt5Core "5.7.1" REQUIRED)
+find_package(Qt5Core "5.10.0" REQUIRED)
pkg_check_modules(GLIB2 glib-2.0>=2.50 REQUIRED)
include(CMakePackageConfigHelpers)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/lxqt-build-tools-0.6.0/cmake/find-modules/FindClazy.cmake
new/lxqt-build-tools-0.7.0/cmake/find-modules/FindClazy.cmake
--- old/lxqt-build-tools-0.6.0/cmake/find-modules/FindClazy.cmake
1970-01-01 01:00:00.000000000 +0100
+++ new/lxqt-build-tools-0.7.0/cmake/find-modules/FindClazy.cmake
2020-04-21 19:02:33.000000000 +0200
@@ -0,0 +1,131 @@
+#.rst:
+# FindClazy
+# ------------
+#
+# Try to find the Clazy package
+#
+# This will define the following variables:
+#
+# ``Clazy_FOUND``
+# True if (the requested version of) Clazy is available
+#
+# ``Clazy_VERSION``
+# The version of Clazy
+#
+# ``Clazy_EXECUTABLE``
+# The clazy executable
+#
+# ``Clazy_STANDALONE_EXECUTABLE
+# The clazy executable
+#
+# ``Clazy_PLUGIN``
+# The clazy library
+#
+# If ``Clazy_FOUND`` is TRUE, it will also define the following imported
+# targets:
+#
+# ``Clazy::Clazy``
+# The clazy executable
+#
+# ``Clazy::Standalone``
+# The clazy-standalone executable
+#
+# ``Clazy::Plugin``
+# The clazy plugin
+#
+#=============================================================================
+# Copyright (c) 2019, Luís Pereira <[email protected]>
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are met:
+#
+# 1. Redistributions of source code must retain the above copyright notice,
this
+# list of conditions and the following disclaimer.
+#
+# 2. Redistributions in binary form must reproduce the above copyright notice,
+# this list of conditions and the following disclaimer in the documentation
+# and/or other materials provided with the distribution.
+#
+# 3. Neither the name of the copyright holder nor the names of its
+# contributors may be used to endorse or promote products derived from
+# this software without specific prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE
+# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#=============================================================================
+
+include(FindPackageHandleStandardArgs)
+
+set(_clazy_REQUIRED_VARS)
+
+find_program(Clazy_EXECUTABLE NAMES clazy)
+
+if (Clazy_EXECUTABLE)
+ execute_process(COMMAND ${Clazy_EXECUTABLE} --version
+ OUTPUT_VARIABLE _clazy_version
+ ERROR_QUIET
+ OUTPUT_STRIP_TRAILING_WHITESPACE
+ )
+endif()
+
+string(REGEX REPLACE "clazy version: ([0-9]\\.[0-9]+).*"
+ "\\1" Clazy_VERSION_STRING "${_clazy_version}")
+
+if (Clazy_VERSION_STRING VERSION_LESS 1.5)
+ if (Clazy_FIND_REQUIRED)
+ message(FATAL_ERROR "Clazy versions prior to 1.5 not supported. Found
Clazy version: ${Clazy_VERSION_STRING}")
+ else()
+ message(WARNING "Clazy versions prior to 1.5 not supported. Found
Clazy version: ${Clazy_VERSION_STRING}")
+ endif()
+endif()
+
+if (Clazy_FIND_REQUIRED)
+ list(APPEND _clazy_REQUIRED_VARS ${Clazy_EXECUTABLE})
+endif()
+
+find_program(Clazy_STANDALONE NAMES clazy-standalone)
+if (Clazy_FIND_REQUIRED)
+ list(APPEND _clazy_REQUIRED_VARS ${Clazy_STANDALONE})
+endif()
+
+find_library(Clazy_PLUGIN NAMES ClazyPlugin
ClazyPlugin${CMAKE_SHARED_LIBRARY_SUFFIX})
+if (Clazy_FIND_REQUIRED)
+ list(APPEND _clazy_REQUIRED_VARS ${Clazy_PLUGIN})
+endif()
+
+find_package_handle_standard_args(Clazy
+ REQUIRED_VARS _clazy_REQUIRED_VARS
+ VERSION_VAR Clazy_VERSION_STRING
+)
+
+if (Clazy_FOUND)
+ if (NOT TARGET Clazy::Clazy)
+ add_executable(Clazy::Clazy IMPORTED)
+ set_target_properties(Clazy::Clazy PROPERTIES
+ IMPORTED_LOCATION "${Clazy_EXECUTABLE}"
+ )
+ endif()
+
+ if (NOT TARGET Clazy::Standalone)
+ add_executable(Clazy::Standalone IMPORTED)
+ set_target_properties(Clazy::Standalone PROPERTIES
+ IMPORTED_LOCATION "${Clazy_STANDALONE}"
+ )
+ endif()
+
+ if (NOT TARGET Clazy::Plugin)
+ add_library(Clazy::Plugin SHARED IMPORTED)
+ set_target_properties(Clazy::Plugin PROPERTIES
+ IMPORTED_LOCATION "${Clazy_PLUGIN}"
+ )
+ endif()
+endif()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/lxqt-build-tools-0.6.0/cmake/find-modules/FindXdgEmail.cmake
new/lxqt-build-tools-0.7.0/cmake/find-modules/FindXdgEmail.cmake
--- old/lxqt-build-tools-0.6.0/cmake/find-modules/FindXdgEmail.cmake
1970-01-01 01:00:00.000000000 +0100
+++ new/lxqt-build-tools-0.7.0/cmake/find-modules/FindXdgEmail.cmake
2020-04-21 19:02:33.000000000 +0200
@@ -0,0 +1,106 @@
+#.rst:
+# FindXdgEmail
+# ------------
+#
+# Try to find the xdg-email executable
+#
+# This will define the following variables:
+#
+# ``XdgEmail_FOUND``
+# True if (the requested version of) XdgEmail is available
+#
+# ``XdgEmail_VERSION``
+# The version of XdgEmail
+#
+# ``XdgEmail_EXECUTABLE``
+# The xdg-email executable
+#
+# If ``XdgEmail_FOUND`` is TRUE, it will also define the following imported
+# target:
+#
+# ``XdgEmail::XdgEmail``
+# The xdg-email executable
+#
+#
+#=============================================================================
+# Copyright (c) 2019, Luís Pereira <[email protected]>
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are met:
+#
+# 1. Redistributions of source code must retain the above copyright notice,
this
+# list of conditions and the following disclaimer.
+#
+# 2. Redistributions in binary form must reproduce the above copyright notice,
+# this list of conditions and the following disclaimer in the documentation
+# and/or other materials provided with the distribution.
+#
+# 3. Neither the name of the copyright holder nor the names of its
+# contributors may be used to endorse or promote products derived from
+# this software without specific prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE
+# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#=============================================================================
+
+include(FindPackageHandleStandardArgs)
+
+set(_xdgemail_REQUIRED_VARS)
+set(_xdgemail_deps XdgMime XdgOpen)
+
+set(_xdgemail_QUIET)
+if (XdgEmail_FIND_QUIETLY)
+ set(_xdgemail_QUIET QUIET)
+endif()
+
+set(_xdgemail_REQUIRED)
+if (XdgEmail_FIND_REQUIRED)
+ set(_xdgemail_REQUIRED REQUIRED)
+endif()
+
+find_program(XdgEmail_EXECUTABLE NAMES xdg-email)
+
+if (XdgEmail_EXECUTABLE)
+ execute_process(COMMAND ${XdgEmail_EXECUTABLE} --version
+ OUTPUT_VARIABLE _xdgemail_version
+ ERROR_QUIET
+ OUTPUT_STRIP_TRAILING_WHITESPACE
+ )
+endif()
+
+string(REGEX REPLACE "xdg-email ([0-9]\\.[0-9]\\.[0-9]+).*"
+ "\\1" XdgEmail_VERSION_STRING "${_xdgemail_version}")
+
+if (XdgEmail_FIND_REQUIRED)
+ list(APPEND _xdgemail_REQUIRED_VARS ${XdgEmail_EXECUTABLE})
+endif()
+
+foreach(module ${_xdgemail_deps})
+ find_package(${module} ${XdgEmail_FIND_VERSION} ${_xdgemail_QUIET}
${_xdgemail_REQUIRED})
+ if (XdgEmail_FIND_REQUIRED)
+ list(APPEND _xdgemail_REQUIRED_VARS ${${module}_EXECUTABLE})
+ endif()
+endforeach()
+
+find_package_handle_standard_args(XdgEmail
+ REQUIRED_VARS _xdgemail_REQUIRED_VARS
+ VERSION_VAR XdgEmail_VERSION_STRING
+)
+
+if (XdgEmail_FOUND AND NOT TARGET XdgEmail::XdgEmail)
+ add_executable(XdgEmail::XdgEmail IMPORTED)
+ set_target_properties(XdgEmail::XdgEmail PROPERTIES
+ IMPORTED_LOCATION "${XdgEmail_EXECUTABLE}"
+ )
+endif()
+
+mark_as_advanced(XdgEmail_EXECUTABLE)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/lxqt-build-tools-0.6.0/cmake/find-modules/FindXdgMime.cmake
new/lxqt-build-tools-0.7.0/cmake/find-modules/FindXdgMime.cmake
--- old/lxqt-build-tools-0.6.0/cmake/find-modules/FindXdgMime.cmake
1970-01-01 01:00:00.000000000 +0100
+++ new/lxqt-build-tools-0.7.0/cmake/find-modules/FindXdgMime.cmake
2020-04-21 19:02:33.000000000 +0200
@@ -0,0 +1,88 @@
+#.rst:
+# FindXdgMime
+# ------------
+#
+# Try to find the xdg-mime executable
+#
+# This will define the following variables:
+#
+# ``XdgMime_FOUND``
+# True if (the requested version of) XdgMime is available
+#
+# ``XdgMime_VERSION``
+# The version of XdgMime
+#
+# ``XdgMime_EXECUTABLE``
+# The xdg-mime executable
+#
+# If ``XdgMime_FOUND`` is TRUE, it will also define the following imported
+# target:
+#
+# ``XdgMime::XdgMime``
+# The xdg-mime executable
+#
+#
+#=============================================================================
+# Copyright (c) 2019, Luís Pereira <[email protected]>
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are met:
+#
+# 1. Redistributions of source code must retain the above copyright notice,
this
+# list of conditions and the following disclaimer.
+#
+# 2. Redistributions in binary form must reproduce the above copyright notice,
+# this list of conditions and the following disclaimer in the documentation
+# and/or other materials provided with the distribution.
+#
+# 3. Neither the name of the copyright holder nor the names of its
+# contributors may be used to endorse or promote products derived from
+# this software without specific prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE
+# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#=============================================================================
+
+include(FindPackageHandleStandardArgs)
+
+set(_xdgmime_REQUIRED_VARS)
+
+find_program(XdgMime_EXECUTABLE NAMES xdg-mime)
+
+if (XdgMime_EXECUTABLE)
+ execute_process(COMMAND ${XdgMime_EXECUTABLE} --version
+ OUTPUT_VARIABLE _xdgmime_version
+ ERROR_QUIET
+ OUTPUT_STRIP_TRAILING_WHITESPACE
+ )
+endif()
+
+string(REGEX REPLACE "xdg-mime ([0-9]\\.[0-9]\\.[0-9]+).*"
+ "\\1" XdgMime_VERSION_STRING "${_xdgmime_version}")
+
+if (XdgMime_FIND_REQUIRED)
+ list(APPEND _xdgmime_REQUIRED_VARS ${XdgMime_EXECUTABLE})
+endif()
+
+find_package_handle_standard_args(XdgMime
+ REQUIRED_VARS _xdgmime_REQUIRED_VARS
+ VERSION_VAR XdgMime_VERSION_STRING
+)
+
+if (XdgMime_FOUND AND NOT TARGET XdgMime::XdgMime)
+ add_executable(XdgMime::XdgMime IMPORTED)
+ set_target_properties(XdgMime::XdgMime PROPERTIES
+ IMPORTED_LOCATION "${XdgMime_EXECUTABLE}"
+ )
+endif()
+
+mark_as_advanced(XdgMime_EXECUTABLE)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/lxqt-build-tools-0.6.0/cmake/find-modules/FindXdgOpen.cmake
new/lxqt-build-tools-0.7.0/cmake/find-modules/FindXdgOpen.cmake
--- old/lxqt-build-tools-0.6.0/cmake/find-modules/FindXdgOpen.cmake
1970-01-01 01:00:00.000000000 +0100
+++ new/lxqt-build-tools-0.7.0/cmake/find-modules/FindXdgOpen.cmake
2020-04-21 19:02:33.000000000 +0200
@@ -0,0 +1,106 @@
+#.rst:
+# FindXdgOpen
+# ------------
+#
+# Try to find the xdg-open executable
+#
+# This will define the following variables:
+#
+# ``XdgOpen_FOUND``
+# True if (the requested version of) XdgOpen is available
+#
+# ``XdgOpen_VERSION``
+# The version of XdgOpen
+#
+# ``XdgOpen_EXECUTABLE``
+# The xdg-open executable
+#
+# If ``XdgOpen_FOUND`` is TRUE, it will also define the following imported
+# target:
+#
+# ``XdgOpen::XdgOpen``
+# The xdg-open executable
+#
+#
+#=============================================================================
+# Copyright (c) 2019, Luís Pereira <[email protected]>
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are met:
+#
+# 1. Redistributions of source code must retain the above copyright notice,
this
+# list of conditions and the following disclaimer.
+#
+# 2. Redistributions in binary form must reproduce the above copyright notice,
+# this list of conditions and the following disclaimer in the documentation
+# and/or other materials provided with the distribution.
+#
+# 3. Neither the name of the copyright holder nor the names of its
+# contributors may be used to endorse or promote products derived from
+# this software without specific prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE
+# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#=============================================================================
+
+include(FindPackageHandleStandardArgs)
+
+set(_xdgopen_REQUIRED_VARS)
+set(_xdgopen_deps XdgMime)
+
+set(_xdgopen_QUIET)
+if (XdgOpen_FIND_QUIETLY)
+ set(_xdgopen_QUIET QUIET)
+endif()
+
+set(_xdgopen_REQUIRED)
+if (XdgOpen_FIND_REQUIRED)
+ set(_xdgopen_REQUIRED REQUIRED)
+endif()
+
+find_program(XdgOpen_EXECUTABLE NAMES xdg-open)
+
+if (XdgOpen_EXECUTABLE)
+ execute_process(COMMAND ${XdgOpen_EXECUTABLE} --version
+ OUTPUT_VARIABLE _xdgopen_version
+ ERROR_QUIET
+ OUTPUT_STRIP_TRAILING_WHITESPACE
+ )
+endif()
+
+string(REGEX REPLACE "xdg-open ([0-9]\\.[0-9]\\.[0-9]+).*"
+ "\\1" XdgOpen_VERSION_STRING "${_xdgopen_version}")
+
+if (XdgOpen_FIND_REQUIRED)
+ list(APPEND _xdgopen_REQUIRED_VARS ${XdgOpen_EXECUTABLE})
+endif()
+
+foreach(module ${_xdgopen_deps})
+ find_package(${module} ${XdgOpen_FIND_VERSION} ${_xdgopen_QUIET}
${_xdgopen_REQUIRED})
+ if (XdgOpen_FIND_REQUIRED)
+ list(APPEND _xdgopen_REQUIRED_VARS ${${module}_EXECUTABLE})
+ endif()
+endforeach()
+
+find_package_handle_standard_args(XdgOpen
+ REQUIRED_VARS _xdgopen_REQUIRED_VARS
+ VERSION_VAR XdgOpen_VERSION_STRING
+)
+
+if (XdgOpen_FOUND AND NOT TARGET XdgOpen::XdgOpen)
+ add_executable(XdgOpen::XdgOpen IMPORTED)
+ set_target_properties(XdgOpen::XdgOpen PROPERTIES
+ IMPORTED_LOCATION "${XdgOpen_EXECUTABLE}"
+ )
+endif()
+
+mark_as_advanced(XdgOpen_EXECUTABLE)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/lxqt-build-tools-0.6.0/cmake/find-modules/FindXdgSettings.cmake
new/lxqt-build-tools-0.7.0/cmake/find-modules/FindXdgSettings.cmake
--- old/lxqt-build-tools-0.6.0/cmake/find-modules/FindXdgSettings.cmake
1970-01-01 01:00:00.000000000 +0100
+++ new/lxqt-build-tools-0.7.0/cmake/find-modules/FindXdgSettings.cmake
2020-04-21 19:02:33.000000000 +0200
@@ -0,0 +1,106 @@
+#.rst:
+# FindXdgSettings
+# ------------
+#
+# Try to find the xdg-settings executable
+#
+# This will define the following variables:
+#
+# ``XdgSettings_FOUND``
+# True if (the requested version of) XdgSettings is available
+#
+# ``XdgSettings_VERSION``
+# The version of XdgSettings
+#
+# ``XdgSettings_EXECUTABLE``
+# The xdg-settings executable
+#
+# If ``XdgSettings_FOUND`` is TRUE, it will also define the following imported
+# target:
+#
+# ``XdgSettings::XdgSettings``
+# The xdg-settings executable
+#
+#
+#=============================================================================
+# Copyright (c) 2019, Luís Pereira <[email protected]>
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are met:
+#
+# 1. Redistributions of source code must retain the above copyright notice,
this
+# list of conditions and the following disclaimer.
+#
+# 2. Redistributions in binary form must reproduce the above copyright notice,
+# this list of conditions and the following disclaimer in the documentation
+# and/or other materials provided with the distribution.
+#
+# 3. Neither the name of the copyright holder nor the names of its
+# contributors may be used to endorse or promote products derived from
+# this software without specific prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE
+# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#=============================================================================
+
+include(FindPackageHandleStandardArgs)
+
+set(_xdgsettings_REQUIRED_VARS)
+set(_xdgsettings_deps XdgMime)
+
+set(_xdgsettings_QUIET)
+if (XdgSettings_FIND_QUIETLY)
+ set(_xdgsettings_QUIET QUIET)
+endif()
+
+set(_xdgsettings_REQUIRED)
+if (XdgSettings_FIND_REQUIRED)
+ set(_xdgsettings_REQUIRED REQUIRED)
+endif()
+
+find_program(XdgSettings_EXECUTABLE NAMES xdg-settings)
+
+if (XdgSettings_EXECUTABLE)
+ execute_process(COMMAND ${XdgSettings_EXECUTABLE} --version
+ OUTPUT_VARIABLE _xdgsettings_version
+ ERROR_QUIET
+ OUTPUT_STRIP_TRAILING_WHITESPACE
+ )
+endif()
+
+string(REGEX REPLACE "xdg-settings ([0-9]\\.[0-9]\\.[0-9]+).*"
+ "\\1" XdgSettings_VERSION_STRING "${_xdgsettings_version}")
+
+if (XdgSettings_FIND_REQUIRED)
+ list(APPEND _xdgsettings_REQUIRED_VARS ${XdgSettings_EXECUTABLE})
+endif()
+
+foreach(module ${_xdgsettings_deps})
+ find_package(${module} ${XdgSettings_FIND_VERSION} ${_xdgsettings_QUIET}
${_xdgsettings_REQUIRED})
+ if (XdgSettings_FIND_REQUIRED)
+ list(APPEND _xdgsettings_REQUIRED_VARS ${${module}_EXECUTABLE})
+ endif()
+endforeach()
+
+find_package_handle_standard_args(XdgSettings
+ REQUIRED_VARS _xdgsettings_REQUIRED_VARS
+ VERSION_VAR XdgSettings_VERSION_STRING
+)
+
+if (XdgSettings_FOUND AND NOT TARGET XdgSettings::XdgSettings)
+ add_executable(XdgSettings::XdgSettings IMPORTED)
+ set_target_properties(XdgSettings::XdgSettings PROPERTIES
+ IMPORTED_LOCATION "${XdgSettings_EXECUTABLE}"
+ )
+endif()
+
+mark_as_advanced(XdgSettings_EXECUTABLE)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/lxqt-build-tools-0.6.0/cmake/modules/LXQtCompilerSettings.cmake
new/lxqt-build-tools-0.7.0/cmake/modules/LXQtCompilerSettings.cmake
--- old/lxqt-build-tools-0.6.0/cmake/modules/LXQtCompilerSettings.cmake
2019-01-24 22:40:14.000000000 +0100
+++ new/lxqt-build-tools-0.7.0/cmake/modules/LXQtCompilerSettings.cmake
2020-04-21 19:02:33.000000000 +0200
@@ -73,6 +73,10 @@
#-----------------------------------------------------------------------------
add_definitions(
-DQT_USE_QSTRINGBUILDER
+ -DQT_NO_CAST_FROM_ASCII
+ -DQT_NO_CAST_TO_ASCII
+ -DQT_NO_URL_CAST_FROM_STRING
+ -DQT_NO_CAST_FROM_BYTEARRAY
-DQT_NO_FOREACH
)
@@ -84,7 +88,7 @@
#-----------------------------------------------------------------------------
# Detect Clang compiler
#-----------------------------------------------------------------------------
-if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
+if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
set(LXQT_COMPILER_IS_CLANGCXX 1)
endif()
@@ -99,6 +103,26 @@
#-----------------------------------------------------------------------------
+# Build related settings
+#-----------------------------------------------------------------------------
+
+# Automatically add the current source and build directories to the include
+# path.
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+# Enable Clazy when building with Clang.
+# Clazy is a Qt oriented code checker based on clang framework.
+if(LXQT_COMPILER_IS_CLANGCXX)
+ option(LXQT_ENABLE_CLAZY "Enable Clazy warnings" OFF)
+
+ if (LXQT_ENABLE_CLAZY)
+ find_package(Clazy 1.5 REQUIRED)
+ set(CMAKE_CXX_COMPILE_OBJECT "${CMAKE_CXX_COMPILE_OBJECT} -Xclang
-load -Xclang ${Clazy_PLUGIN} -Xclang -add-plugin -Xclang clazy")
+ endif()
+endif()
+
+
+#-----------------------------------------------------------------------------
# Disable exceptions
#-----------------------------------------------------------------------------
if (CMAKE_COMPILER_IS_GNUCXX OR LXQT_COMPILER_IS_CLANGCXX)
@@ -131,16 +155,23 @@
# Do not allow undefined symbols
#-----------------------------------------------------------------------------
if (CMAKE_COMPILER_IS_GNUCXX OR LXQT_COMPILER_IS_CLANGCXX)
- # -Bsymbolic-functions: replace dynamic symbols used internally in
- # shared libs with direct addresses.
- set(SYMBOLIC_FLAGS
- "-Wl,-Bsymbolic-functions -Wl,-Bsymbolic"
- )
+ # Assume Xcode Clang is always used with Apple ld64
+ if (${CMAKE_CXX_COMPILER_ID} STREQUAL AppleClang)
+ set(NO_UNDEFINED_FLAGS "-Wl,-undefined,error")
+ # -Bsymbolic* make sense for ELF only
+ set(SYMBOLIC_FLAGS "")
+ else()
+ set(NO_UNDEFINED_FLAGS "-Wl,--no-undefined")
+ # -Bsymbolic-functions: replace dynamic symbols used internally in
+ # shared libs with direct addresses.
+ set(SYMBOLIC_FLAGS "-Wl,-Bsymbolic-functions -Wl,-Bsymbolic")
+ endif()
+
set(CMAKE_SHARED_LINKER_FLAGS
- "-Wl,--no-undefined ${SYMBOLIC_FLAGS} ${CMAKE_SHARED_LINKER_FLAGS}"
+ "${NO_UNDEFINED_FLAGS} ${SYMBOLIC_FLAGS} ${CMAKE_SHARED_LINKER_FLAGS}"
)
set(CMAKE_MODULE_LINKER_FLAGS
- "-Wl,--no-undefined ${SYMBOLIC_FLAGS} ${CMAKE_MODULE_LINKER_FLAGS}"
+ "${NO_UNDEFINED_FLAGS} ${SYMBOLIC_FLAGS} ${CMAKE_MODULE_LINKER_FLAGS}"
)
set(CMAKE_EXE_LINKER_FLAGS
"${SYMBOLIC_FLAGS} ${CMAKE_EXE_LINKER_FLAGS}"
@@ -153,6 +184,7 @@
# CXX14 requirements - no checks, we just set it
#-----------------------------------------------------------------------------
set(CMAKE_CXX_STANDARD_REQUIRED True)
+set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_CXX_STANDARD 14 CACHE STRING "C++ ISO Standard")