Skip to content

Commit

Permalink
Merge pull request #117 from Habbie/compile-less
Browse files Browse the repository at this point in the history
lvgl: compile less
  • Loading branch information
cyclops1982 authored Oct 4, 2024
2 parents 0446edf + 977ec8c commit 05b3b87
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ if brew.found()
endif

cmake = import('cmake')

# FIXME: we call this cmake_options but really it's mostly for LVGL, and we have separate cmake.subproject_options for quickjs. Need to rename.
cmake_options = cmake.subproject_options()
cmake_options.append_compile_args(
'c',
Expand All @@ -92,6 +94,12 @@ cmake_options.append_compile_args(
'-I' + meson.current_build_dir() + '/../subprojects/lvgl',
'-I/' + brew_prefix + '/include',
)
cmake_options.add_cmake_defines(
{
'LV_CONF_BUILD_DISABLE_EXAMPLES': true,
'LV_CONF_BUILD_DISABLE_DEMOS': true,
},
)

if cpp.links(
'''int main(int argc, char **argv) { return 0; }''',
Expand Down

0 comments on commit 05b3b87

Please sign in to comment.