summaryrefslogtreecommitdiff
path: root/test/Rakefile
diff options
context:
space:
mode:
authorFrederico Linhares <fred@linhares.blue>2023-05-24 14:50:01 -0300
committerFrederico Linhares <fred@linhares.blue>2023-05-24 14:50:01 -0300
commitb8614162cdbb3817a7a58ceadf8b6b0d05fae952 (patch)
tree113d0f269f5e651076c98f41097a571acae588f8 /test/Rakefile
parent959b717b46c00930a66fb8959d3469c0b63f3e66 (diff)
feat Recreate the Menu
Diffstat (limited to 'test/Rakefile')
-rw-r--r--test/Rakefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/Rakefile b/test/Rakefile
index c449fad..c219bca 100644
--- a/test/Rakefile
+++ b/test/Rakefile
@@ -13,11 +13,18 @@
# limitations under the License.
OBJ = 'test'
+SOURCE_DIR = ENV['DESTDIR'] || ''
+
+RB_LIBS_PATH = "#{SOURCE_DIR}/usr/local/share/candy_gear/lib"
+RB_LIBS = [
+ 'menu'
+]
RB_FILES = FileList['src/**/*.rb']
task :build do
- rb_files = RB_FILES.inject('') {_1 + "#{_2} "}
+ rb_files = RB_FILES.inject('') {_1 + "#{_2} "} +
+ RB_LIBS.inject('') {_1 + "#{RB_LIBS_PATH}/#{_2}.rb "}
`mrbc -g -o #{OBJ}.mrb #{rb_files}`
end