mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
wip: pgo without Wayland
* Split up source files into several static libraries: misc + vtlib * Add a new executable, pgo, that links to vtlib * pgo is kind of like a mock test: - provides stub implementations of functions not present in vtlib - sets up a dummy terminal instance - calls vt_from_slave() with static (pre-generated) content
This commit is contained in:
parent
861f3a4e6d
commit
4577bb2bb3
3 changed files with 271 additions and 13 deletions
50
meson.build
50
meson.build
|
|
@ -100,24 +100,52 @@ version = custom_target(
|
|||
output: 'version.h',
|
||||
command: [generate_version_sh, meson.project_version(), '@SOURCE_DIR@', '@OUTPUT@'])
|
||||
|
||||
misc = static_library(
|
||||
'misc',
|
||||
'hsl.c', 'hsl.h',
|
||||
'macros.h',
|
||||
'misc.c', 'misc.h',
|
||||
'uri.c', 'uri.h',
|
||||
'xmalloc.c', 'xmalloc.h',
|
||||
)
|
||||
|
||||
vtlib = static_library(
|
||||
'vtlib',
|
||||
'base64.c', 'base64.h',
|
||||
'csi.c', 'csi.h',
|
||||
'dcs.c', 'dcs.h',
|
||||
'osc.c', 'osc.h',
|
||||
'sixel.c', 'sixel.h',
|
||||
'vt.c', 'vt.h',
|
||||
dependencies: [pixman],
|
||||
link_with: misc,
|
||||
)
|
||||
|
||||
pgolib = static_library(
|
||||
'pgolib',
|
||||
'grid.c', 'grid.h',
|
||||
'terminal.c', 'terminal.h',
|
||||
dependencies: [pixman, fcft],
|
||||
link_with: vtlib,
|
||||
)
|
||||
|
||||
executable(
|
||||
'pgo',
|
||||
'pgo.c',
|
||||
dependencies: [pixman, fcft],
|
||||
link_with: pgolib,
|
||||
)
|
||||
|
||||
executable(
|
||||
'foot',
|
||||
'async.c', 'async.h',
|
||||
'base64.c', 'base64.h',
|
||||
'config.c', 'config.h',
|
||||
'commands.c', 'commands.h',
|
||||
'csi.c', 'csi.h',
|
||||
'dcs.c', 'dcs.h',
|
||||
'extract.c', 'extract.h',
|
||||
'fdm.c', 'fdm.h',
|
||||
'grid.c', 'grid.h',
|
||||
'hsl.c', 'hsl.h',
|
||||
'input.c', 'input.h',
|
||||
'log.c', 'log.h',
|
||||
'macros.h',
|
||||
'main.c',
|
||||
'misc.c', 'misc.h',
|
||||
'osc.c', 'osc.h',
|
||||
'quirks.c', 'quirks.h',
|
||||
'reaper.c', 'reaper.h',
|
||||
'render.c', 'render.h',
|
||||
|
|
@ -125,19 +153,15 @@ executable(
|
|||
'selection.c', 'selection.h',
|
||||
'server.c', 'server.h', 'client-protocol.h',
|
||||
'shm.c', 'shm.h',
|
||||
'sixel.c', 'sixel.h',
|
||||
'slave.c', 'slave.h',
|
||||
'spawn.c', 'spawn.h',
|
||||
'terminal.c', 'terminal.h',
|
||||
'tokenize.c', 'tokenize.h',
|
||||
'uri.c', 'uri.h',
|
||||
'user-notification.h',
|
||||
'vt.c', 'vt.h',
|
||||
'wayland.c', 'wayland.h',
|
||||
'xmalloc.c', 'xmalloc.h',
|
||||
wl_proto_src + wl_proto_headers, version,
|
||||
dependencies: [math, threads, pixman, wayland_client, wayland_cursor, xkb, fontconfig,
|
||||
tllist, fcft],
|
||||
link_with: pgolib,
|
||||
install: true)
|
||||
|
||||
executable(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue