move to meson, use tfblib as an external dependency

needs: https://github.com/vvaltchev/tfblib/pull/4
This commit is contained in:
Caleb Connolly 2022-01-22 20:46:04 +00:00
parent 2ad7ff2a29
commit 062a665899
No known key found for this signature in database
GPG key ID: 0583312B195F64B6
7 changed files with 21 additions and 15 deletions

3
.gitignore vendored
View file

@ -1 +1,2 @@
build/ builddir/

View file

@ -1,13 +0,0 @@
cmake_minimum_required(VERSION 3.10)
# set the project name
project(pbsplash)
# add the executable
add_executable(pbsplash pbsplash.c)
include_directories(tfblib/include)
add_subdirectory(tfblib)
target_link_libraries(pbsplash tfb)

11
meson.build Normal file
View file

@ -0,0 +1,11 @@
project('pbsplash', 'c')
deps = [
dependency('tfblib'),
]
inc = [
include_directories('include'),
]
subdir('src')

8
src/meson.build Normal file
View file

@ -0,0 +1,8 @@
src = [
'pbsplash.c',
]
executable('pbsplash', src,
include_directories: inc,
dependencies: deps,
install: true)

1
tfblib

@ -1 +0,0 @@
Subproject commit 3e5de1026f2965591fb9feb1256c0ea10f4dc928