summaryrefslogtreecommitdiff
path: root/test/Rakefile
diff options
context:
space:
mode:
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