move source files under src

This commit is contained in:
Josh Holtrop 2018-01-23 05:51:04 -05:00
parent 9bad7a1d86
commit 33bf113f26
5 changed files with 4 additions and 3 deletions

View File

View File

@ -7,7 +7,7 @@ def configure(conf):
conf.load("compiler_c compiler_cxx")
conf.env.INCLUDES += ["libs/glcxx/include"]
conf.env.INCLUDES += ["libs/glm"]
conf.env.INCLUDES += ["."]
conf.env.INCLUDES += ["src"]
conf.env.DEFINES += ['''GLCXX_GL_INCLUDE="GL3/gl3w.h"''']
conf.env.CXXFLAGS += ["-Wall"]
conf.env.CXXFLAGS += ["-std=gnu++14"]
@ -21,9 +21,10 @@ def configure(conf):
Popen(["git", "submodule", "update", "--init"]).wait()
def build(bld):
sources = ["app.cc"] + \
sources = \
bld.path.ant_glob("src/**/*.cc") + \
bld.path.ant_glob("libs/glcxx/src/**/*.cpp") + \
bld.path.ant_glob("GL3/**/*.c")
bld.path.ant_glob("src/GL3/**/*.c")
libs = []
if "MINGW" in os.popen("uname").read():