2024-01-25 12:36:40 +01:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
|
|
from compat import open_utf8
|
|
|
|
|
|
|
|
Import("env")
|
|
|
|
|
|
|
|
env.platform_sources = []
|
|
|
|
|
2024-01-25 13:01:54 +01:00
|
|
|
env.add_source_files(env.platform_sources, "sfw.cpp")
|
2024-01-25 14:50:51 +01:00
|
|
|
env.add_source_files(env.platform_sources, "image.cpp")
|
2024-01-25 12:36:40 +01:00
|
|
|
|
|
|
|
lib = env.add_library("platform", env.platform_sources)
|
|
|
|
env.Prepend(LIBS=[lib])
|
2024-01-25 12:49:59 +01:00
|
|
|
|
|
|
|
# TODO Move this to somewhere else, so it can be easily overridden
|
|
|
|
env.main_sources = []
|
|
|
|
|
|
|
|
env.add_source_files(env.main_sources, "main.cpp")
|
|
|
|
lib = env.add_library("main", env.main_sources)
|
|
|
|
env.Prepend(LIBS=[lib])
|