rpi_player/custom_modules/sdl/SCsub

23 lines
620 B
Python

#!/usr/bin/env python
Import("env_mod")
Import("env")
env_mod.core_sources = []
env_mod.add_source_files(env_mod.core_sources, "*.cpp")
env_mod.add_source_files(env_mod.core_sources, "core/*.cpp")
env_mod.add_source_files(env_mod.core_sources, "renderer/*.cpp")
env_mod.add_source_files(env_mod.core_sources, "widgets/*.cpp")
env_mod.Prepend(LINKFLAGS=["-lSDL2_ttf"])
env.Prepend(LINKFLAGS=["-lSDL2_ttf"])
env_mod.Prepend(CPPPATH=["#../custom_modules/sdl"])
env.Prepend(CPPPATH=["#../custom_modules/sdl"])
# Build it all as a library
lib = env_mod.add_library("sdl", env_mod.core_sources)
env.Prepend(LIBS=[lib])