iw4x-client/premake/winksignals.lua
/dev/urandom 7ff05580c9
Premake: Split up dependencies, make them easily configurable and provide easy-to-use imports.
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.
2016-08-13 19:45:11 +02:00

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