mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-28 07:58:00 -04:00
fcft: use fcft instead of local copy of font.c/font.h
This commit is contained in:
parent
3c939f76e3
commit
fd9c28464d
8 changed files with 23 additions and 8 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
|
@ -1,3 +1,6 @@
|
||||||
[submodule "subprojects/tllist"]
|
[submodule "subprojects/tllist"]
|
||||||
path = subprojects/tllist
|
path = subprojects/tllist
|
||||||
url = https://codeberg.org/dnkl/tllist.git
|
url = https://codeberg.org/dnkl/tllist.git
|
||||||
|
[submodule "subprojects/fcft"]
|
||||||
|
path = subprojects/fcft
|
||||||
|
url = https://codeberg.org/dnkl/fcft.git
|
||||||
|
|
|
||||||
3
config.h
3
config.h
|
|
@ -3,8 +3,9 @@
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
|
#include <tllist.h>
|
||||||
|
|
||||||
#include "terminal.h"
|
#include "terminal.h"
|
||||||
#include "tllist.h"
|
|
||||||
|
|
||||||
struct config {
|
struct config {
|
||||||
char *term;
|
char *term;
|
||||||
|
|
|
||||||
3
main.c
3
main.c
|
|
@ -10,13 +10,14 @@
|
||||||
|
|
||||||
#include <sys/sysinfo.h>
|
#include <sys/sysinfo.h>
|
||||||
|
|
||||||
|
#include <fcft.h>
|
||||||
|
|
||||||
#define LOG_MODULE "main"
|
#define LOG_MODULE "main"
|
||||||
#define LOG_ENABLE_DBG 0
|
#define LOG_ENABLE_DBG 0
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "fdm.h"
|
#include "fdm.h"
|
||||||
#include "font.h"
|
|
||||||
#include "server.h"
|
#include "server.h"
|
||||||
#include "shm.h"
|
#include "shm.h"
|
||||||
#include "terminal.h"
|
#include "terminal.h"
|
||||||
|
|
|
||||||
10
meson.build
10
meson.build
|
|
@ -69,6 +69,13 @@ else
|
||||||
tllist = dependency('tllist')
|
tllist = dependency('tllist')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
fcft_proj = subproject('fcft')
|
||||||
|
if fcft_proj.found()
|
||||||
|
fcft = fcft_proj.get_variable('fcft')
|
||||||
|
else
|
||||||
|
fcft = dependency('fcft')
|
||||||
|
endif
|
||||||
|
|
||||||
executable(
|
executable(
|
||||||
'foot',
|
'foot',
|
||||||
'async.c', 'async.h',
|
'async.c', 'async.h',
|
||||||
|
|
@ -77,7 +84,6 @@ executable(
|
||||||
'commands.c', 'commands.h',
|
'commands.c', 'commands.h',
|
||||||
'csi.c', 'csi.h',
|
'csi.c', 'csi.h',
|
||||||
'fdm.c', 'fdm.h',
|
'fdm.c', 'fdm.h',
|
||||||
'font.c', 'font.h',
|
|
||||||
'grid.c', 'grid.h',
|
'grid.c', 'grid.h',
|
||||||
'input.c', 'input.h',
|
'input.c', 'input.h',
|
||||||
'log.c', 'log.h',
|
'log.c', 'log.h',
|
||||||
|
|
@ -95,7 +101,7 @@ executable(
|
||||||
'wayland.c', 'wayland.h',
|
'wayland.c', 'wayland.h',
|
||||||
wl_proto_src + wl_proto_headers, version,
|
wl_proto_src + wl_proto_headers, version,
|
||||||
dependencies: [threads, math, freetype, fontconfig, pixman, wayland_client, wayland_cursor, xkb,
|
dependencies: [threads, math, freetype, fontconfig, pixman, wayland_client, wayland_cursor, xkb,
|
||||||
tllist],
|
tllist, fcft],
|
||||||
install: true)
|
install: true)
|
||||||
|
|
||||||
executable(
|
executable(
|
||||||
|
|
|
||||||
3
render.c
3
render.c
|
|
@ -10,12 +10,13 @@
|
||||||
#include <wayland-cursor.h>
|
#include <wayland-cursor.h>
|
||||||
#include <xdg-shell.h>
|
#include <xdg-shell.h>
|
||||||
|
|
||||||
|
#include <fcft.h>
|
||||||
|
|
||||||
#define LOG_MODULE "render"
|
#define LOG_MODULE "render"
|
||||||
#define LOG_ENABLE_DBG 0
|
#define LOG_ENABLE_DBG 0
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
#include "shm.h"
|
#include "shm.h"
|
||||||
#include "grid.h"
|
#include "grid.h"
|
||||||
#include "font.h"
|
|
||||||
|
|
||||||
#define min(x, y) ((x) < (y) ? (x) : (y))
|
#define min(x, y) ((x) < (y) ? (x) : (y))
|
||||||
#define max(x, y) ((x) > (y) ? (x) : (y))
|
#define max(x, y) ((x) > (y) ? (x) : (y))
|
||||||
|
|
|
||||||
1
subprojects/fcft
Submodule
1
subprojects/fcft
Submodule
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 6377db4464f9a411c17b681f4a41c36950f1a232
|
||||||
|
|
@ -8,10 +8,11 @@
|
||||||
#include <threads.h>
|
#include <threads.h>
|
||||||
#include <semaphore.h>
|
#include <semaphore.h>
|
||||||
|
|
||||||
|
#include <tllist.h>
|
||||||
|
#include <fcft.h>
|
||||||
|
|
||||||
//#include "config.h"
|
//#include "config.h"
|
||||||
#include "fdm.h"
|
#include "fdm.h"
|
||||||
#include "font.h"
|
|
||||||
#include "tllist.h"
|
|
||||||
#include "wayland.h"
|
#include "wayland.h"
|
||||||
|
|
||||||
#define likely(c) __builtin_expect(!!(c), 1)
|
#define likely(c) __builtin_expect(!!(c), 1)
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,9 @@
|
||||||
#include <primary-selection-unstable-v1.h>
|
#include <primary-selection-unstable-v1.h>
|
||||||
#include <xkbcommon/xkbcommon.h>
|
#include <xkbcommon/xkbcommon.h>
|
||||||
|
|
||||||
|
#include <tllist.h>
|
||||||
|
|
||||||
#include "fdm.h"
|
#include "fdm.h"
|
||||||
#include "tllist.h"
|
|
||||||
|
|
||||||
struct monitor {
|
struct monitor {
|
||||||
struct wayland *wayl;
|
struct wayland *wayl;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue