aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-11-22 18:31:25 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-11-22 18:31:25 +0000
commit10eda1faa5176853c30beee56578b51fa5750f5c (patch)
treec995667a4713f729703cc9fd53a8cff0646c3679 /meson.build
parentMerge branch 'footclient-m-flag' (diff)
parentpkgbuild: revert accidental update of version (diff)
Merge branch 'pgo'
Closes #107
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build56
1 files changed, 41 insertions, 15 deletions
diff --git a/meson.build b/meson.build
index c9308a74..f93ca732 100644
--- a/meson.build
+++ b/meson.build
@@ -100,44 +100,70 @@ version = custom_target(
output: 'version.h',
command: [generate_version_sh, meson.project_version(), '@SOURCE_DIR@', '@OUTPUT@'])
+misc = static_library(
+ 'misc',
+ 'hsl.c', 'hsl.h',
+ 'log.c', 'log.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',
+ version,
+ dependencies: [pixman, fcft, tllist],
+ link_with: misc,
+)
+
+pgolib = static_library(
+ 'pgolib',
+ 'grid.c', 'grid.h',
+ 'selection.c', 'selection.h',
+ 'terminal.c', 'terminal.h',
+ dependencies: [pixman, fcft, tllist],
+ link_with: vtlib,
+)
+
+executable(
+ 'pgo',
+ 'pgo/pgo.c',
+ wl_proto_src,
+ dependencies: [math, threads, pixman, wayland_client, fcft, tllist],
+ 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',
'search.c', 'search.h',
- '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(