20 lines
401 B
Ruby
20 lines
401 B
Ruby
require 'pathname'
|
|
require 'rake/clean'
|
|
require 'open3'
|
|
|
|
DFLAGS = ['--warn-no-deprecated', '-L/usr/lib64/gcc-12']
|
|
BINARY = 'build/bin/elna'
|
|
SOURCES = FileList['source/**/*.d']
|
|
|
|
directory 'build/riscv'
|
|
|
|
CLEAN.include 'build'
|
|
CLEAN.include '.dub'
|
|
|
|
file BINARY => SOURCES do |t|
|
|
sh({ 'DFLAGS' => (DFLAGS * ' ') }, 'dub', 'build', '--compiler=gdc')
|
|
end
|
|
|
|
task default: 'build/riscv'
|
|
task default: BINARY
|