summaryrefslogtreecommitdiffstats
path: root/lvgl/hello/wscript
diff options
context:
space:
mode:
authorVijay Kumar Banerjee <vijaykumar9597@gmail.com>2019-09-18 02:56:46 +0530
committerChris Johns <chrisj@rtems.org>2019-09-20 14:21:57 +1000
commit4c71eb2a7b742aca65eda1ab343aa1a646aea692 (patch)
tree3a422368caed1b9b09085b91c9f7f73452bd52d1 /lvgl/hello/wscript
parentupdate rtems_waf (diff)
downloadrtems-examples-4c71eb2a7b742aca65eda1ab343aa1a646aea692.tar.bz2
Add lvgl/hello: Sample Hello world app using littleVGL and libbsd
Diffstat (limited to 'lvgl/hello/wscript')
-rw-r--r--lvgl/hello/wscript32
1 files changed, 32 insertions, 0 deletions
diff --git a/lvgl/hello/wscript b/lvgl/hello/wscript
new file mode 100644
index 0000000..cbc001a
--- /dev/null
+++ b/lvgl/hello/wscript
@@ -0,0 +1,32 @@
+# Copyright 2019 Vijay Kumar Banerjee (vijaykumar9597@gmail.com)
+#
+# This file's license is 2-clause BSD as in this distribution's LICENSE.2 file.
+#
+
+import rtems_waf.rtems as rtems
+import rtems_waf.rtems_bsd as rtems_bsd
+import os
+
+def configure(conf):
+ rtems.check_lib_path(conf, lib = 'm')
+ rtems.check_lib_path(conf, lib = 'lvgl', mandatory = False)
+ rtems.check_lib_path(conf, lib = 'bsd', mandatory = False)
+
+def build(bld):
+ rtems.build(bld)
+ if rtems.check_lib(bld, ['bsd', 'lvgl']):
+ arch_inc_path = rtems.arch_bsp_include_path(str(bld.env.RTEMS_VERSION),
+ str(bld.env.RTEMS_ARCH_BSP))
+ include_paths = ['',
+ 'lvgl',
+ 'lvgl/src',
+ 'lv_drivers/display',]
+
+ for i in range(0,len(include_paths)):
+ include_paths[i] = os.path.join(bld.env.PREFIX, arch_inc_path, include_paths[i])
+
+ bld(features = 'c cprogram',
+ target = 'lvgl_hello.exe',
+ source = ['test.c'],
+ includes = include_paths,
+ lib = ['m', 'lvgl', 'bsd'])