7ff05580c9
All dependency projects are now separated into their own Premake scripts and are designed to provide easy "import", "includes" and "setup" functions. First, you use project.setup { ... } to provide the library with its respective configuration, this MAY include defines and MUST include the source path of that specific library. Then you can use project.includes() or project.import() in your target application or library project to let the script configure your project. This will configure all necessary include directories and links.
28 lines
643 B
Lua
28 lines
643 B
Lua
winksignals = {
|
|
settings = nil,
|
|
}
|
|
|
|
function winksignals.setup(settings)
|
|
if not settings.source then error("Missing source.") end
|
|
|
|
winksignals.settings = settings
|
|
end
|
|
|
|
function winksignals.import()
|
|
if not winksignals.settings then error("Run winksignals.setup first") end
|
|
|
|
winksignals.includes()
|
|
end
|
|
|
|
function winksignals.includes()
|
|
if not winksignals.settings then error("Run winksignals.setup first") end
|
|
|
|
includedirs { winksignals.settings.source }
|
|
end
|
|
|
|
function winksignals.project()
|
|
if not winksignals.settings then error("Run winksignals.setup first") end
|
|
|
|
-- Wink-Signals is header-only, so no project files needed for this
|
|
end
|