diff --git a/.gitignore b/.gitignore index 21430e0..4bcdb79 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -fart +/fart *.bmp *.png /.rscons* diff --git a/Rsconscript b/Rsconscript index 9e3d5fa..3548c37 100644 --- a/Rsconscript +++ b/Rsconscript @@ -1,21 +1,11 @@ configure do - check_cxx_compiler - check_program "flex" - check_program "bison" - check_lib ":libfl.a" - check_lib "pthread" - check_lib "freeimage" + check_d_compiler end env do |env| - env["CCFLAGS"] += %w[-Wall -O2] - env["CPPPATH"] += glob("src/**") + env["DFLAGS"] += %w[-Werror -O2] + env["D_IMPORT_PATH"] += %w[src] - env.CFile("^/parser/lexer.cc", "src/parser/parser.ll") - env.CFile("^/parser/parser.cc", "src/parser/parser.yy") - env["CPPPATH"] += ["#{env.build_root}/parser"] - - sources = glob("src/**/*.cc") - sources += ["^/parser/lexer.cc", "^/parser/parser.cc"] + sources = glob("src/**/*.d") env.Program("fart", sources) end diff --git a/src/fart/main.d b/src/fart/main.d new file mode 100644 index 0000000..5f69c53 --- /dev/null +++ b/src/fart/main.d @@ -0,0 +1,4 @@ +int main(string[] args) +{ + return 0; +}