Skip to content

Commit e9a8aed

Browse files
Merge pull request flameshot-org#4393 from Quentium-Forks/master
2 parents 535032b + 6360fa9 commit e9a8aed

File tree

7 files changed

+85
-78
lines changed

7 files changed

+85
-78
lines changed

.github/workflows/build_cmake.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,7 @@ jobs:
6868
shell: bash
6969
working-directory: ${{runner.workspace}}/build
7070
# Note the current convention is to use the -S and -B options here to specify source
71-
# and build directories, but this is only available with CMake 3.13 and higher.
72-
# The CMake binaries on the Github Actions machines are (as of this writing) 3.12
73-
#
74-
# We need to source the profile file to make sure conan is in PATH
71+
# and build directories. We need to source the profile file to make sure conan is in PATH
7572
run: |
7673
cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE
7774
- name: Build

CMakeLists.txt

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.13)
1+
cmake_minimum_required(VERSION 3.22)
22
# cmake_policy(SET CMP0076 OLD)
33

44
set(FLAMESHOT_VERSION 13.3.0)
@@ -7,9 +7,9 @@ set(FLAMESHOT_VERSION 13.3.0)
77
set(GIT_API_URL "https://api.github.com/repos/flameshot-org/flameshot/releases/latest")
88

99
project(
10-
flameshot
11-
VERSION ${FLAMESHOT_VERSION}
12-
LANGUAGES CXX)
10+
flameshot
11+
VERSION ${FLAMESHOT_VERSION}
12+
LANGUAGES CXX)
1313
set(PROJECT_NAME_CAPITALIZED "Flameshot")
1414

1515
include(FetchContent)
@@ -27,27 +27,27 @@ set(CMAKE_POSITION_INDEPENDENT_CODE ON)
2727

2828
# Dependency can be fetched via flatpak builder
2929
if(EXISTS "${CMAKE_SOURCE_DIR}/external/Qt-Color-Widgets/CMakeLists.txt")
30-
add_subdirectory("${CMAKE_SOURCE_DIR}/external/Qt-Color-Widgets" EXCLUDE_FROM_ALL)
30+
add_subdirectory("${CMAKE_SOURCE_DIR}/external/Qt-Color-Widgets" EXCLUDE_FROM_ALL)
3131
else()
32-
FetchContent_Declare(
33-
qtColorWidgets
34-
GIT_REPOSITORY https://gitlab.com/mattbas/Qt-Color-Widgets.git
35-
GIT_TAG 352bc8f99bf2174d5724ee70623427aa31ddc26a
36-
)
32+
FetchContent_Declare(
33+
qtColorWidgets
34+
GIT_REPOSITORY https://gitlab.com/mattbas/Qt-Color-Widgets.git
35+
GIT_TAG 352bc8f99bf2174d5724ee70623427aa31ddc26a
36+
)
3737
#Workaround for duplicate GUID in windows WIX installer
38-
if (WIN32)
39-
FetchContent_GetProperties(qtColorWidgets)
40-
if(NOT qtcolorwidgets_POPULATED)
41-
FetchContent_Populate(qtColorWidgets)
42-
add_subdirectory(${qtcolorwidgets_SOURCE_DIR} ${qtcolorwidgets_BINARY_DIR} EXCLUDE_FROM_ALL)
43-
endif()
38+
if(WIN32)
39+
FetchContent_GetProperties(qtColorWidgets)
40+
if(NOT qtcolorwidgets_POPULATED)
41+
FetchContent_Populate(qtColorWidgets)
42+
add_subdirectory(${qtcolorwidgets_SOURCE_DIR} ${qtcolorwidgets_BINARY_DIR} EXCLUDE_FROM_ALL)
43+
endif()
4444
else()
45-
FetchContent_MakeAvailable(qtColorWidgets)
45+
FetchContent_MakeAvailable(qtColorWidgets)
4646
endif()
4747
endif()
4848

4949
# This can be read from ${PROJECT_NAME} after project() is called
50-
if (APPLE)
50+
if(APPLE)
5151
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15" CACHE STRING "Minimum OS X deployment version")
5252
endif()
5353

@@ -66,8 +66,8 @@ elseif(APPLE)
6666
set(Qt6_DIR "$(brew --prefix qt6)/lib/cmake/Qt6/" CACHE PATH "directory where Qt6Config.cmake exists.")
6767
endif()
6868
set(RUN_IN_PLACE
69-
${DEFAULT_RUN_IN_PLACE}
70-
CACHE BOOL "Run directly in source directory structure")
69+
${DEFAULT_RUN_IN_PLACE}
70+
CACHE BOOL "Run directly in source directory structure")
7171

7272

7373
option(FLAMESHOT_DEBUG_CAPTURE "Enable mode to make debugging easier" OFF)
@@ -80,13 +80,13 @@ option(USE_WAYLAND_CLIPBOARD "USE KF Gui Wayland Clipboard" OFF)
8080
option(DISABLE_UPDATE_CHECKER "Disable check for updates" OFF)
8181
option(ENABLE_IMGUR "Enable Imgur Uploader" OFF)
8282

83-
if (ENABLE_IMGUR)
83+
if(ENABLE_IMGUR)
8484
add_compile_definitions(ENABLE_IMGUR)
8585
endif()
8686

87-
if (DISABLE_UPDATE_CHECKER)
87+
if(DISABLE_UPDATE_CHECKER)
8888
add_compile_definitions(DISABLE_UPDATE_CHECKER)
89-
endif ()
89+
endif()
9090

9191
include(cmake/StandardProjectSettings.cmake)
9292

@@ -108,8 +108,8 @@ enable_sanitizers(project_options)
108108

109109
# allow for static analysis options include(cmake/StaticAnalyzers.cmake)
110110

111-
if (USE_KDSINGLEAPPLICATION)
112-
if (USE_BUNDLED_KDSINGLEAPPLICATION)
111+
if(USE_KDSINGLEAPPLICATION)
112+
if(USE_BUNDLED_KDSINGLEAPPLICATION)
113113
set(KDSingleApplication_EXAMPLES OFF CACHE BOOL "Don't build the examples")
114114
set(KDSingleApplication_STATIC ON CACHE BOOL "Build static versions of the libraries")
115115

@@ -118,9 +118,9 @@ if (USE_KDSINGLEAPPLICATION)
118118
add_subdirectory("${CMAKE_SOURCE_DIR}/external/KDSingleApplication")
119119
else()
120120
FetchContent_Declare(
121-
kdsingleApplication
122-
GIT_REPOSITORY https://github.com/KDAB/KDSingleApplication.git
123-
GIT_TAG v1.2.0
121+
kdsingleApplication
122+
GIT_REPOSITORY https://github.com/KDAB/KDSingleApplication.git
123+
GIT_TAG v1.2.0
124124
)
125125
FetchContent_MakeAvailable(kdsingleApplication)
126126
endif()
@@ -132,11 +132,11 @@ endif()
132132
# ToDo: Check if this is used anywhere
133133
option(BUILD_STATIC_LIBS ON)
134134

135-
if (APPLE)
135+
if(APPLE)
136136
FetchContent_Declare(
137-
qHotKey
138-
GIT_REPOSITORY https://github.com/flameshot-org/QHotkey
139-
GIT_TAG master
137+
qHotKey
138+
GIT_REPOSITORY https://github.com/flameshot-org/QHotkey
139+
GIT_TAG master
140140
)
141141
FetchContent_MakeAvailable(QHotKey)
142142
endif()

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
<img alt="Get it from the Snap Store" src="https://snapcraft.io/static/images/badges/en/snap-store-black.svg" />
4343
</a>
4444
<a href="https://flathub.org/apps/details/org.flameshot.Flameshot">
45-
<img height="60" alt="Download on Flathub" src="https://flathub.org/assets/badges/flathub-badge-en.svg"/>
45+
<img height="60" alt="Get it on Flathub" src="https://flathub.org/api/badge?locale=en"/>
4646
</a>
4747
</p>
4848
</div>
@@ -414,10 +414,10 @@ Also you can open and build/debug the project in a C++ IDE. For example, in Qt C
414414

415415
#### Compile-time
416416

417-
- Qt >= 6.0
417+
- Qt >= 6.2.4 (available by default on Ubuntu Jammy)
418418
+ Development tools
419-
- GCC >= 7.4
420-
- CMake >= 3.29
419+
- GCC >= 11
420+
- CMake >= 3.22
421421

422422
#### Run-time
423423

packaging/debian/compat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
11
1+
12

packaging/debian/control

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,37 @@ Section: graphics
33
Priority: optional
44
Maintainer: Boyuan Yang <[email protected]>
55
Build-Depends:
6-
cmake (>= 3.13~),
7-
debhelper (>= 11),
8-
qt6-base-dev (>= 6.2.0~),
9-
qt6-tools-dev (>= 6.2.0~),
10-
qt6-tools-dev-tools (>= 6.2.0~),
11-
qt6-svg-dev (>= 6.2.0~) | libqt6svg6-dev (>= 6.2.0~),
12-
qt6-l10n-tools,
6+
cmake (>= 3.22~),
7+
debhelper (>= 12),
8+
qt6-base-dev (>= 6.2.4~),
9+
qt6-tools-dev (>= 6.2.4~),
10+
qt6-tools-dev-tools (>= 6.2.4~),
11+
qt6-svg-dev (>= 6.2.4~) | libqt6svg6-dev (>= 6.2.4~),
12+
qt6-l10n-tools (>= 6.2.4~),
1313
libgl-dev,
14-
Standards-Version: 4.5.0
15-
Homepage: https://github.com/flameshot-org/flameshot
14+
Rules-Requires-Root: no
15+
Standards-Version: 4.7.2
16+
Homepage: https://flameshot.org/
1617
Vcs-Browser: https://github.com/flameshot-org/flameshot
1718
Vcs-Git: https://github.com/flameshot-org/flameshot.git
1819

1920
Package: flameshot
2021
Architecture: any
22+
# Ubuntu noble expanded shlibs are suffixed with t64 for Qt dependencies, later versions of Ubuntu reverted back without suffix so make it future proof
23+
# ${shlibs:Depends},
2124
Depends:
22-
hicolor-icon-theme,
23-
libqt6svg6 (>= 6.2.0~),
24-
qt6-qpa-plugins (>= 6.2.0~),
25-
${shlibs:Depends},
2625
${misc:Depends},
26+
libc6 (>= 2.35),
27+
libgcc-s1 (>= 11),
28+
libstdc++6 (>= 11),
29+
hicolor-icon-theme,
30+
qt6-qpa-plugins (>= 6.2.4~),
31+
libqt6core6 (>= 6.2.4~),
32+
libqt6dbus6 (>= 6.2.4~),
33+
libqt6gui6 (>= 6.2.4~),
34+
libqt6network6 (>= 6.2.4~),
35+
libqt6widgets6 (>= 6.2.4~),
36+
libqt6svg6 (>= 6.2.4~),
2737
Recommends:
2838
xdg-desktop-portal-gtk | xdg-desktop-portal-gnome | xdg-desktop-portal-kde | xdg-desktop-portal-wlr,
2939
grim,

packaging/rpm/fedora/flameshot.spec

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,26 @@ URL: https://github.com/flameshot-org/flameshot
1010
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
1111
Vendor: Flameshot
1212

13-
BuildRequires: cmake >= 3.13.0
14-
BuildRequires: gcc-c++ >= 7
13+
BuildRequires: cmake >= 3.22
14+
BuildRequires: gcc-c++ >= 11
1515
BuildRequires: fdupes
1616
BuildRequires: libappstream-glib
1717
BuildRequires: ninja-build
1818
BuildRequires: desktop-file-utils
1919

20-
BuildRequires: cmake(Qt6Core) >= 6.0.0
20+
BuildRequires: cmake(Qt6Core) >= 6.2.4
2121
BuildRequires: cmake(KF6GuiAddons) >= 6.7.0
22-
BuildRequires: cmake(Qt6DBus) >= 6.0.0
23-
BuildRequires: cmake(Qt6Gui) >= 6.0.0
24-
BuildRequires: cmake(Qt6LinguistTools) >= 6.0.0
25-
BuildRequires: cmake(Qt6Network) >= 6.0.0
26-
BuildRequires: cmake(Qt6Svg) >= 6.0.0
27-
BuildRequires: cmake(Qt6Widgets) >= 6.0.0
22+
BuildRequires: cmake(Qt6DBus) >= 6.2.4
23+
BuildRequires: cmake(Qt6Gui) >= 6.2.4
24+
BuildRequires: cmake(Qt6LinguistTools) >= 6.2.4
25+
BuildRequires: cmake(Qt6Network) >= 6.2.4
26+
BuildRequires: cmake(Qt6Svg) >= 6.2.4
27+
BuildRequires: cmake(Qt6Widgets) >= 6.2.4
2828

2929
Requires: hicolor-icon-theme
30-
Requires: qt6-qtbase >= 6.0.0
31-
Requires: qt6-qttools >= 6.0.0
32-
Requires: qt6-qtsvg >= 6.0.0
30+
Requires: qt6-qtbase >= 6.2.4
31+
Requires: qt6-qttools >= 6.2.4
32+
Requires: qt6-qtsvg >= 6.2.4
3333

3434
Recommends: qt6-qtimageformats
3535
Recommends: xdg-desktop-portal%{?_isa}

packaging/rpm/opensuse/flameshot.spec

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,25 @@ URL: https://github.com/flameshot-org/flameshot
1010
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
1111
Vendor: Flameshot
1212

13-
BuildRequires: cmake >= 3.13.0
14-
BuildRequires: gcc-c++ >= 7
13+
BuildRequires: cmake >= 3.22
14+
BuildRequires: gcc-c++ >= 11
1515
BuildRequires: fdupes
1616
BuildRequires: update-desktop-files
1717
BuildRequires: appstream-glib
1818
BuildRequires: desktop-file-utils
1919

20-
BuildRequires: cmake(Qt6Core) >= 6.0.0
21-
BuildRequires: cmake(Qt6DBus) >= 6.0.0
22-
BuildRequires: cmake(Qt6Gui) >= 6.0.0
23-
BuildRequires: cmake(Qt6LinguistTools) >= 6.0.0
24-
BuildRequires: cmake(Qt6Network) >= 6.0.0
25-
BuildRequires: cmake(Qt6Svg) >= 6.0.0
26-
BuildRequires: cmake(Qt6Widgets) >= 6.0.0
20+
BuildRequires: cmake(Qt6Core) >= 6.2.4
21+
BuildRequires: cmake(Qt6DBus) >= 6.2.4
22+
BuildRequires: cmake(Qt6Gui) >= 6.2.4
23+
BuildRequires: cmake(Qt6LinguistTools) >= 6.2.4
24+
BuildRequires: cmake(Qt6Network) >= 6.2.4
25+
BuildRequires: cmake(Qt6Svg) >= 6.2.4
26+
BuildRequires: cmake(Qt6Widgets) >= 6.2.4
2727

2828
Requires: hicolor-icon-theme
29-
Requires: qt6-base >= 6.0.0
30-
Requires: qt6-tools >= 6.0.0
31-
Requires: qt6-svg >= 6.0.0
29+
Requires: qt6-base >= 6.2.4
30+
Requires: qt6-tools >= 6.2.4
31+
Requires: qt6-svg >= 6.2.4
3232

3333
Recommends: qt6-imageformats
3434
Recommends: xdg-desktop-portal%{?_isa}

0 commit comments

Comments
 (0)