Allow multiple platform API files

This commit is contained in:
Max Hilbrunner 2024-10-31 16:07:01 +01:00
parent ef8d981267
commit 8c5debeaed

View File

@ -60,7 +60,7 @@ register_platform_apis = env.CommandNoCache(
)
env.add_source_files(env.platform_sources, register_platform_apis)
for platform in env.platform_apis:
env.add_source_files(env.platform_sources, f"{platform}/api/api.cpp")
env.add_source_files(env.platform_sources, f"{platform}/api/*.cpp")
lib = env.add_library("platform", env.platform_sources)
env.Prepend(LIBS=[lib])