Added imgui and an option to inject source files into dependant projects.

This commit is contained in:
2023-11-28 01:36:23 +01:00
parent d15baed4c4
commit 30e7e348c6
3 changed files with 37 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
import os
from SCons.Script import *
def cook(env: Environment, git_ref: str = "main") -> dict:
@@ -10,7 +11,7 @@ def cook(env: Environment, git_ref: str = "main") -> dict:
}.get(env['BUILD_TYPE'], 'SDL2')
return {
'LIBPATH': build_result['LIBPATH'],
'CPPPATH': build_result['CPPPATH'],
'CPPPATH': [os.path.join(build_result['install_dir'], 'include/SDL2')], # SDL is really weird about include paths ...
'LIBS': [lib_name]
}