From b8614162cdbb3817a7a58ceadf8b6b0d05fae952 Mon Sep 17 00:00:00 2001 From: Frederico Linhares Date: Wed, 24 May 2023 14:50:01 -0300 Subject: feat Recreate the Menu --- test/Rakefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'test/Rakefile') 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 -- cgit v1.2.3