1
0
Fork 0

bam: move examples stuff to it's own file.

This commit is contained in:
Henrik Hautakoski 2020-01-07 06:54:50 +01:00
parent f3cada7ac8
commit e4c086a1eb
No known key found for this signature in database
GPG key ID: 96765B12FEAC4745
2 changed files with 30 additions and 28 deletions

27
examples/build.lua Normal file
View file

@ -0,0 +1,27 @@
--------------------------------
-- --
-- Examples --
-- --
--------------------------------
local example_settings = CopySettings(global_settings, "Example")
-- Include spectre headers.
example_settings.cc.includes:Add("include/")
-- Link with spectre.
example_settings.link.extrafiles:Add(libspectre)
if TARGET_OS == "Win32" then
-- Windows needs to link against these.
example_settings.link.libs:Add("opengl32", "gdi32", "user32")
end
-- For now, to get examples working
-- we copy the whole assets directory.
assets = CopyDir(PathJoin(paths.build, paths.examples), "assets")
BuildExamples(example_settings, {
"text"
}, assets)