move sources to src directory

This commit is contained in:
Josh Holtrop 2019-09-12 20:31:38 -04:00
parent b5e4655f03
commit 24b4b48555
58 changed files with 7 additions and 5 deletions

View File

@ -9,13 +9,15 @@ end
build do
Environment.new do |env|
subdirs = %w[util shapes main distrib parser]
env["CCFLAGS"] += %w[-Wall -O2]
env["CPPPATH"] += %w[.] + subdirs + ["#{env.build_root}/parser"]
sources = glob("{#{subdirs.join(",")}}/*.cc")
env["CPPPATH"] += glob("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"]
env.CFile("^/parser/lexer.cc", "parser/parser.ll")
env.CFile("^/parser/parser.cc", "parser/parser.yy")
env.Program("fart", sources)
end
end

0
main/PointLight.cc → src/main/PointLight.cc Executable file → Normal file
View File

0
shapes/Shape.cc → src/shapes/Shape.cc Executable file → Normal file
View File