2024-02-25 15:16:19 +01:00
|
|
|
require 'pathname'
|
|
|
|
require 'rake/clean'
|
|
|
|
require 'open3'
|
|
|
|
|
|
|
|
DFLAGS = ['--warn-no-deprecated', '-L/usr/lib64/gcc-12']
|
|
|
|
BINARY = 'build/bin/elna'
|
|
|
|
SOURCES = FileList['source/**/*.d']
|
|
|
|
|
2024-02-28 16:18:39 +01:00
|
|
|
directory 'build/riscv'
|
2024-02-25 15:16:19 +01:00
|
|
|
|
|
|
|
CLEAN.include 'build'
|
|
|
|
CLEAN.include '.dub'
|
|
|
|
|
|
|
|
file BINARY => SOURCES do |t|
|
|
|
|
sh({ 'DFLAGS' => (DFLAGS * ' ') }, 'dub', 'build', '--compiler=gdc')
|
|
|
|
end
|
|
|
|
|
2024-02-28 16:18:39 +01:00
|
|
|
task default: 'build/riscv'
|
2024-02-25 15:16:19 +01:00
|
|
|
task default: BINARY
|