-
-
Notifications
You must be signed in to change notification settings - Fork 623
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RFC: Better Text Rendering for cairo / lua #1501
base: main
Are you sure you want to change the base?
Changes from all commits
2a0db1d
79b81a6
24706e8
d5d20e8
b625e93
4077ad5
00b2ec0
5036cc4
488b450
b0063e5
945ce1f
dc7c0e0
ca1be94
47c45af
7553faf
2c74058
7e2a662
ac50fa7
ba71b73
8f34c9d
9ba643c
f4f7462
e5482ca
f9676c6
78b222f
9fc5fa9
755c700
872d87b
b1bd605
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,15 +26,15 @@ if(NOT CMAKE_BUILD_TYPE) | |
set( | ||
CMAKE_BUILD_TYPE Debug | ||
CACHE | ||
STRING | ||
"Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel." | ||
STRING | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It looks like the only thing that changed in this file is the formatting. I think it would be better to preserve the formatting here. |
||
"Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel." | ||
FORCE) | ||
else(MAINTAINER_MODE) | ||
set( | ||
CMAKE_BUILD_TYPE RelWithDebInfo | ||
CACHE | ||
STRING | ||
"Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel." | ||
STRING | ||
"Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel." | ||
FORCE) | ||
endif(MAINTAINER_MODE) | ||
endif(NOT CMAKE_BUILD_TYPE) | ||
|
@@ -74,12 +74,12 @@ option(BUILD_COLOUR_NAME_MAP "Include mappings of colour name -> RGB (i.e., red | |
|
||
if(BUILD_I18N) | ||
set(LOCALE_DIR "${CMAKE_INSTALL_PREFIX}/share/locale" | ||
CACHE STRING "Directory containing the locales") | ||
CACHE STRING "Directory containing the locales") | ||
endif(BUILD_I18N) | ||
|
||
# Some standard options | ||
set(SYSTEM_CONFIG_FILE "/etc/conky/conky.conf" | ||
CACHE STRING "Default system-wide Conky configuration file") | ||
CACHE STRING "Default system-wide Conky configuration file") | ||
|
||
# use FORCE below to make sure this changes when CMAKE_INSTALL_PREFIX is | ||
# modified | ||
|
@@ -88,8 +88,8 @@ if(NOT LIB_INSTALL_DIR) | |
endif(NOT LIB_INSTALL_DIR) | ||
|
||
set(PACKAGE_LIBRARY_DIR "${LIB_INSTALL_DIR}/conky" | ||
CACHE STRING "Package library path (where Lua bindings are installed" | ||
FORCE) | ||
CACHE STRING "Package library path (where Lua bindings are installed" | ||
FORCE) | ||
set(DEFAULTNETDEV "eno1" CACHE STRING "Default networkdevice") | ||
|
||
# Mac only override | ||
|
@@ -98,13 +98,13 @@ if(OS_DARWIN) | |
endif(OS_DARWIN) | ||
|
||
set(XDG_CONFIG_FILE "$HOME/.config/conky/conky.conf" | ||
CACHE STRING "Configfile of the user (XDG)") | ||
CACHE STRING "Configfile of the user (XDG)") | ||
set(CONFIG_FILE "$HOME/.conkyrc" CACHE STRING "Configfile of the user") | ||
set(MAX_USER_TEXT_DEFAULT "16384" | ||
CACHE STRING | ||
"Default maximum size of config TEXT buffer, i.e. below TEXT line.") | ||
CACHE STRING | ||
"Default maximum size of config TEXT buffer, i.e. below TEXT line.") | ||
set(DEFAULT_TEXT_BUFFER_SIZE "256" | ||
CACHE STRING "Default size used for temporary, static text buffers") | ||
CACHE STRING "Default size used for temporary, static text buffers") | ||
set(MAX_NET_INTERFACES "256" CACHE STRING "Maximum number of network devices") | ||
|
||
# Platform specific options Linux only | ||
|
@@ -142,7 +142,7 @@ option(BUILD_BUILTIN_CONFIG "Enable builtin default configuration" true) | |
option(BUILD_IOSTATS "Enable disk I/O stats" true) | ||
|
||
option(BUILD_OLD_CONFIG "Enable support for the old syntax of configurations" | ||
true) | ||
true) | ||
|
||
option(BUILD_MATH "Enable math support" true) | ||
|
||
|
@@ -227,6 +227,9 @@ dependent_option(BUILD_LUA_IMLIB2 "Build Imlib2 bindings for Lua" false | |
dependent_option(BUILD_LUA_RSVG "Build rsvg bindings for Lua" false | ||
"BUILD_GUI" false | ||
"RSVG Lua bindings depend on BUILD_GUI") | ||
dependent_option(BUILD_LUA_TEXT "Build Fontconfig Freetype and Harfbuzz for Lua" false | ||
"BUILD_GUI" false | ||
"Text Lua bindings depend on BUILD_GUI") | ||
|
||
option(BUILD_AUDACIOUS "Build audacious (music player) support" false) | ||
|
||
|
@@ -263,13 +266,13 @@ option(BUILD_ICONV "Enable iconv support" false) | |
option(BUILD_CMUS "Enable support for cmus music player" true) | ||
|
||
option(BUILD_JOURNAL "Enable support for reading from the systemd journal" | ||
false) | ||
false) | ||
|
||
option(BUILD_PULSEAUDIO | ||
"Enable support for Pulseaudio's default sink and source" false) | ||
"Enable support for Pulseaudio's default sink and source" false) | ||
|
||
option(BUILD_INTEL_BACKLIGHT | ||
"Enable support for Intel backlight" false) | ||
"Enable support for Intel backlight" false) | ||
|
||
run_dependency_checks() | ||
|
||
|
@@ -287,6 +290,6 @@ message(STATUS "CMAKE_CXX_FLAGS_RELEASE: " ${CMAKE_CXX_FLAGS_RELEASE}) | |
|
||
message(STATUS "CMAKE_C_FLAGS_RELWITHDEBINFO: " ${CMAKE_C_FLAGS_RELWITHDEBINFO}) | ||
message(STATUS "CMAKE_CXX_FLAGS_RELWITHDEBINFO: " | ||
${CMAKE_CXX_FLAGS_RELWITHDEBINFO}) | ||
${CMAKE_CXX_FLAGS_RELWITHDEBINFO}) | ||
|
||
message(STATUS "CMAKE_BUILD_TYPE: " ${CMAKE_BUILD_TYPE}) |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -375,12 +375,7 @@ if(BUILD_X11) | |
|
||
# check for Xft | ||
if(BUILD_XFT) | ||
if(FREETYPE_INCLUDE_DIR_freetype2) | ||
set(FREETYPE_FOUND true) | ||
set(conky_includes ${conky_includes} ${FREETYPE_INCLUDE_DIR_freetype2}) | ||
else(FREETYPE_INCLUDE_DIR_freetype2) | ||
message(FATAL_ERROR "Unable to find freetype library") | ||
endif(FREETYPE_INCLUDE_DIR_freetype2) | ||
find_package(Freetype REQUIRED) | ||
|
||
if(NOT X11_Xft_FOUND) | ||
message(FATAL_ERROR "Unable to find Xft library") | ||
|
@@ -499,32 +494,32 @@ set(conky_libs ${conky_libs} ${LUA_LIBRARIES}) | |
set(conky_includes ${conky_includes} ${LUA_INCLUDE_DIR}) | ||
include_directories(3rdparty/toluapp/include) | ||
|
||
# Check for libraries used by Lua bindings | ||
if(BUILD_LUA_CAIRO) | ||
# Check for libraries used by Lua bindings | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Preserve formatting. |
||
if(BUILD_LUA_CAIRO) | ||
pkg_check_modules(CAIRO REQUIRED cairo>=1.14) | ||
set(luacairo_libs ${CAIRO_LIBRARIES} ${LUA_LIBRARIES}) | ||
set(luacairo_includes ${CAIRO_INCLUDE_DIRS} ${LUA_INCLUDE_DIR}) | ||
set(luacairo_libs ${CAIRO_LIBRARIES} ${LUA_LIBRARIES}) | ||
set(luacairo_includes ${CAIRO_INCLUDE_DIRS} ${LUA_INCLUDE_DIR}) | ||
|
||
if(BUILD_LUA_CAIRO_XLIB) | ||
pkg_check_modules(CAIROXLIB REQUIRED cairo-xlib) | ||
set(luacairo_libs ${CAIROXLIB_LIBRARIES} ${luacairo_libs}) | ||
set(luacairo_includes ${CAIROXLIB_INCLUDE_DIRS} ${luacairo_includes}) | ||
endif(BUILD_LUA_CAIRO_XLIB) | ||
|
||
find_program(APP_PATCH patch) | ||
find_program(APP_PATCH patch) | ||
|
||
if(NOT APP_PATCH) | ||
message(FATAL_ERROR "Unable to find program 'patch'") | ||
endif(NOT APP_PATCH) | ||
endif(BUILD_LUA_CAIRO) | ||
if(NOT APP_PATCH) | ||
message(FATAL_ERROR "Unable to find program 'patch'") | ||
endif(NOT APP_PATCH) | ||
endif(BUILD_LUA_CAIRO) | ||
|
||
if(BUILD_LUA_IMLIB2) | ||
pkg_search_module(IMLIB2 REQUIRED imlib2 Imlib2) | ||
set(luaimlib2_libs ${IMLIB2_LIBS} ${IMLIB2_LDFLAGS} ${LUA_LIBRARIES}) | ||
set(luaimlib2_includes | ||
${IMLIB2_INCLUDE_DIRS} | ||
${LUA_INCLUDE_DIR} | ||
${X11_INCLUDE_DIR}) | ||
pkg_search_module(IMLIB2 REQUIRED imlib2 Imlib2) | ||
set(luaimlib2_libs ${IMLIB2_LIBS} ${IMLIB2_LDFLAGS} ${LUA_LIBRARIES}) | ||
set(luaimlib2_includes | ||
${IMLIB2_INCLUDE_DIRS} | ||
${LUA_INCLUDE_DIR} | ||
${X11_INCLUDE_DIR}) | ||
endif(BUILD_LUA_IMLIB2) | ||
|
||
if(BUILD_LUA_RSVG) | ||
|
@@ -533,6 +528,14 @@ if(BUILD_LUA_RSVG) | |
set(luarsvg_includes ${RSVG_INCLUDE_DIRS} ${LUA_INCLUDE_DIR}) | ||
endif(BUILD_LUA_RSVG) | ||
|
||
if(BUILD_LUA_TEXT) | ||
find_package(Freetype REQUIRED) | ||
PKG_CHECK_MODULES(FONTCONFIG REQUIRED fontconfig) | ||
PKG_CHECK_MODULES(HARFBUZZ REQUIRED harfbuzz) | ||
set(luatext_libs ${FREETYPE_LIBRARIES} ${FONTCONFIG_LIBRARIES} ${HARFBUZZ_LIBRARIES} ${LUA_LIBRARIES}) | ||
set(luatext_includes ${FREETYPE_INCLUDE_DIR_freetype2} ${FONTCONFIG_INCLUDE_DIRS} ${HARFBUZZ_INCLUDE_DIRS} ${LUA_INCLUDE_DIRS}) | ||
endif(BUILD_LUA_TEXT) | ||
|
||
if(BUILD_AUDACIOUS) | ||
set(WANT_GLIB true) | ||
pkg_check_modules(NEW_AUDACIOUS audacious>=1.4.0) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is adding this back intentional? It was removed in a533bcb, so I'm wondering if this is just a merge issue.