summaryrefslogtreecommitdiffstats
path: root/lvgl/hello/wscript
diff options
context:
space:
mode:
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'])