move sources to src directory
This commit is contained in:
parent
b5e4655f03
commit
24b4b48555
12
Rsconscript
12
Rsconscript
@ -9,13 +9,15 @@ end
|
|||||||
|
|
||||||
build do
|
build do
|
||||||
Environment.new do |env|
|
Environment.new do |env|
|
||||||
subdirs = %w[util shapes main distrib parser]
|
|
||||||
env["CCFLAGS"] += %w[-Wall -O2]
|
env["CCFLAGS"] += %w[-Wall -O2]
|
||||||
env["CPPPATH"] += %w[.] + subdirs + ["#{env.build_root}/parser"]
|
env["CPPPATH"] += glob("src/**")
|
||||||
sources = glob("{#{subdirs.join(",")}}/*.cc")
|
|
||||||
|
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 += ["^/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)
|
env.Program("fart", sources)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
0
main/PointLight.cc → src/main/PointLight.cc
Executable file → Normal file
0
main/PointLight.cc → src/main/PointLight.cc
Executable file → Normal file
0
shapes/Shape.cc → src/shapes/Shape.cc
Executable file → Normal file
0
shapes/Shape.cc → src/shapes/Shape.cc
Executable file → Normal file
Loading…
x
Reference in New Issue
Block a user