Open aod6060 opened 4 hours ago
Here is an example of creating a SConscript with out addition directories.
This is example is from SConscript in the glw directory.
Import("env")
def source(file):
return "#/src/engine/render/glw/" + file
env["source_files"] += [
source("program.cpp"),
source("shader.cpp"),
source("uniform.cpp"),
source("vertex_array.cpp"),
source("vertex_buffer.cpp"),
source("index_buffer.cpp"),
source("texture2d.cpp")
]
Here is an example of a SConscript with additional directories.
This example is from SConscript in the render directory.
Import("env")
def source(file):
return "#/src/engine/render/" + file
env["source_files"] += [
source("render.cpp"),
source("main_shader.cpp")
]
SConscript("#/src/engine/render/glw/SConscript", exports="env")
Basically this issue covers how to construct a build script.
Note I'll add additional things in the future but for now this is how it. I'm going to add in examples to how to create a SConscript file for a given folder.