Skip to content
Snippets Groups Projects
Unverified Commit 50ce4b27 authored by Caleb Connolly's avatar Caleb Connolly :recycle:
Browse files

make it build

parent ab5af18a
No related branches found
Tags unl0kr-1.0.0
1 merge request!1Unify build system
......@@ -28,23 +28,26 @@ cmake = import('cmake')
# Common things (mostly unl0kr?)
# Used for lv_drivers to find lv_drv_conf.h, we could probably get rid of the need for the header
# but even better is to drop lv_drivers entirely and update to newer lvgl
# ALSO used for lv_conf.h in LVGL...
HACK_unl0kr_dir = '@0@/unl0kr'.format(meson.current_source_dir())
add_project_arguments('-DBUFFYBOX_VERSION="@0@"'.format(meson.project_version()), language: ['c'])
# Fun hacks to correctly include lv_conf.h
add_project_arguments('-DLV_CONF_PATH=@0@/lv_conf.h'.format(HACK_unl0kr_dir), language: ['c'])
libdrm_dep = dependency('libdrm', required: get_option('with-drm'))
if libdrm_dep.found()
add_project_arguments('-DUSE_DRM=1', language: ['c'])
endif
# Used for lv_drivers to find lv_drv_conf.h, we could probably get rid of the need for the header
# but even better is to drop lv_drivers entirely and update to newer lvgl
# ALSO used for lv_conf.h in LVGL...
HACK_unl0kr_dir = '@0@/unl0kr'.format(meson.current_source_dir())
# LVGL
lvgl_opts = cmake.subproject_options()
# Fun hacks to correctly include lv_conf.h
# We have to do this *again* because subprojects don't adopt our top level project args.
lvgl_opts.append_compile_args('c', '-DLV_CONF_PATH=@0@/lv_conf.h'.format(HACK_unl0kr_dir))
# LVGL library
......
squeek2lvgl_src = files(
'sq2lv.c',
)
squeek2lvgl_lib = static_library(
'squeek2lvgl',
squeek2lvgl_src,
dependencies: [
lvgl,
],
)
squeek2lvgl = declare_dependency(
link_with: squeek2lvgl_lib,
include_directories: [
'.',
],
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment