Skip to content

Commit 9f4eb87

Browse files
committed
Misc: Update CMake files & docs
Update CMake files and docs. CPackConfig.cmake has some issues. At least, it builds correctly with CMake now.
1 parent 4acbd56 commit 9f4eb87

File tree

3 files changed

+19
-8
lines changed

3 files changed

+19
-8
lines changed

CPackConfig.cmake

+2-4
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,10 @@ set(CPACK_STRIP_FILES 1)
2929
# == DEB package config ==
3030
set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE "${CPACK_SYSTEM_NAME}")
3131
set(CPACK_DEBIAN_PACKAGE_SECTION "x11")
32-
# The dependencies are unreliable, just an example here
33-
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libx11-6, libxext6, libxcomposite1, libxrender1, libxdamage1, libxfixes3, libpcre3, libconfig8, libdrm2")
32+
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libc6 (>= 2.15), libconfig9, libdbus-1-3 (>= 1.1.1), libgl1-mesa-glx | libgl1 | libgl1-nvidia-glx | libgl1-fglrx-glx, libpcre3 (>= 8.10), libx11-6, libxcomposite1 (>= 1:0.3-1), libxdamage1 (>= 1:1.1), libxext6, libxfixes3, libxrandr2 (>= 4.3), libxrender1, libxinerama1")
3433

3534
# == RPM package config ==
36-
# The dependencies are unreliable, just an example here
37-
set(CPACK_RPM_PACKAGE_REQUIRES "libx11, libxext, libxcomposite, libxrender, libxdamage, libxfixes, libpcre, libconfig, libdrm")
35+
set(CPACK_RPM_PACKAGE_REQUIRES "/bin/sh,libGL.so.1,libX11.so.6,libXcomposite.so.1,libXdamage.so.1,libXext.so.6,libXfixes.so.3,libXrandr.so.2,libXrender.so.1,libc.so.6,libconfig.so.9,libdbus-1.so.3,libm.so.6,libpcre.so.1")
3836

3937
# == Source package config ==
4038
set(CPACK_SOURCE_GENERATOR "TBZ2 DEB RPM")

_CMakeLists.txt

+11-4
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ if (CONFIG_VSYNC_OPENGL)
4949
list(APPEND compton_SRCS src/opengl.c)
5050
endif ()
5151

52+
option(CONFIG_XINERAMA "Enable additional Xinerama features" ON)
53+
if (CONFIG_XINERAMA)
54+
add_definitions("-DCONFIG_XINERAMA")
55+
endif ()
56+
5257
option(CONFIG_C2 "Enable matching system" ON)
5358
if (CONFIG_C2)
5459
add_definitions("-DCONFIG_C2")
@@ -78,12 +83,16 @@ macro(X11LIB_CHK lib)
7883
target_link_libraries(compton "${X11_${lib}_LIB}")
7984
endmacro ()
8085

86+
target_link_libraries(compton "${X11_X11_LIB}")
8187
X11LIB_CHK(Xcomposite)
8288
X11LIB_CHK(Xdamage)
8389
X11LIB_CHK(Xext)
8490
X11LIB_CHK(Xfixes)
8591
X11LIB_CHK(Xrender)
8692
X11LIB_CHK(Xrandr)
93+
if (CONFIG_XINERAMA)
94+
X11LIB_CHK(Xinerama)
95+
endif ()
8796

8897
# --- Find libpcre ---
8998
if (CONFIG_REGEX_PCRE)
@@ -170,12 +179,10 @@ set(CPACK_SOURCE_IGNORE_FILES
170179

171180
# --- DEB package config ---
172181
set(CPACK_DEBIAN_PACKAGE_SECTION "x11")
173-
# The dependencies are unreliable, just an example here
174-
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libx11-6, libxext6, libxcomposite1, libxrender1, libxdamage1, libxfixes3, libpcre3, libconfig8, libdrm2")
182+
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libc6 (>= 2.15), libconfig9, libdbus-1-3 (>= 1.1.1), libgl1-mesa-glx | libgl1 | libgl1-nvidia-glx | libgl1-fglrx-glx, libpcre3 (>= 8.10), libx11-6, libxcomposite1 (>= 1:0.3-1), libxdamage1 (>= 1:1.1), libxext6, libxfixes3, libxrandr2 (>= 4.3), libxrender1, libxinerama1")
175183

176184
# --- RPM package config ---
177185
set(CPACK_RPM_PACKAGE_LICENSE "unknown")
178-
# The dependencies are unreliable, just an example here
179-
set(CPACK_RPM_PACKAGE_REQUIRES "libx11, libxext, libxcomposite, libxrender, libxdamage, libxfixes, libpcre, libconfig, libdrm")
186+
set(CPACK_RPM_PACKAGE_REQUIRES "/bin/sh,libGL.so.1,libX11.so.6,libXcomposite.so.1,libXdamage.so.1,libXext.so.6,libXfixes.so.3,libXrandr.so.2,libXrender.so.1,libc.so.6,libconfig.so.9,libdbus-1.so.3,libm.so.6,libpcre.so.1")
180187

181188
include(CPack)

man/compton.1.asciidoc

+6
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,12 @@ OPTIONS
163163
*--unredir-if-possible*::
164164
Unredirect all windows if a full-screen opaque window is detected, to maximize performance for full-screen windows. Known to cause flickering when redirecting/unredirecting windows. *--paint-on-overlay* may make the flickering less obvious.
165165

166+
*--unredir-if-possible-delay* 'MILLISECONDS'::
167+
Delay before unredirecting the window, in milliseconds. Defaults to 0.
168+
169+
*--unredir-if-possible-exclude* 'CONDITION'::
170+
Conditions of windows that shouldn't be considered full-screen for unredirecting screen.
171+
166172
*--shadow-exclude* 'CONDITION'::
167173
Specify a list of conditions of windows that should have no shadow.
168174

0 commit comments

Comments
 (0)