-
Notifications
You must be signed in to change notification settings - Fork 2
/
premake5.lua
68 lines (52 loc) · 1.47 KB
/
premake5.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
--require "monodevelop"
require "d"
solution "FeedBack"
if _ACTION == "gmake" then
configurations { "Release", "Debug", "DebugOpt", "Retail" }
else
configurations { "Debug", "DebugOpt", "Release", "Retail" }
platforms { "x64" }
end
-- include the fuji project...
local linkFujiDirectly = not os.istarget("linux") or true
if linkFujiDirectly then
-- fujiDll = true
dofile "fuji/Fuji/Project/fujiproj.lua"
dofile "fuji/Fuji/Project/fujidproj.lua"
end
-- LuaD project
project "LuaD"
language "C++"
kind "StaticLib"
staticruntime "On"
flags { "OmitDefaultLibrary" }
-- setup paths --
files { "LuaD/luad/**.d" }
importdirs { "LuaD/" }
targetname "luad"
targetdir("lib")
objdir "build"
dofile "fuji/dist/Project/fujiconfig.lua"
configuration { }
-- FeedBack project
project "FeedBack"
kind "WindowedApp"
language "C++"
files { "src/**.d" }
importdirs { "src/", "LuaD/" }
-- include 'code' data
files { "data/**.lua", "data/**.xml", "data/**.ini", "data/**.mfx", "data/**.hlsl", "data/**.glsl" }
files { "themes/**.lua", "themes/**.xml" }
libdirs { "lib" }
links { "Fuji", "FujiD", "LuaD" }
targetname "FeedBack"
-- targetdir "bin"
objdir "build"
dofile "fuji/dist/Project/fujiconfig.lua"
-- dofile "fuji/dist/Project/hakuconfig.lua"
configuration { "windows" }
links { "Gdi32.lib", "Ole32.lib", "oleaut32.lib" }
links { "FujiMiddleware.lib" }
links { "lua.lib" }
configuration { "linux" }
links { "lua5.1.a" }