-
Notifications
You must be signed in to change notification settings - Fork 1
/
premake5.lua
122 lines (92 loc) · 3.18 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
-- premake5.lua
local BUILD_DIR = (".build/" .. _ACTION)
workspace "cpp2lua-bechmarks"
configurations { "Debug", "Release" }
location (BUILD_DIR)
startproject "bechmark"
-- platforms { "x32", "x64" }
-- filter { "platforms:x32" }
-- architecture "x32"
-- filter { "platforms:x64" }
-- architecture "x64"
filter "configurations:Debug"
defines { "DEBUG" }
flags { "Symbols" }
filter "configurations:Release"
defines { "NDEBUG" }
optimize "On"
-- filter "action:vs2010"
-- filter "action:vs*"
-- defines { "VISUAL_STUDIO_2005" }
-- filter { "Debug", "kind:SharedLib or StaticLib" }
-- targetsuffix "_d"
-- filter "system:not windows"
-- defines { "NOT_WINDOWS" }
-- filter "files:**.png"
-- buildaction "Embed" -- Embed the file into the target binary as a resource.
project "liblua"
kind "StaticLib"
location (BUILD_DIR .. "/lua")
language "C"
targetdir (BUILD_DIR .. "/lib/%{cfg.buildcfg}")
includedirs {"./external/lua/src/"}
--libdirs { "../lua/libs", "../zlib" }
files { "./external/lua/src/**.c", "./external/lua/src/**.h" }
removefiles {"**luac.c", "**lua.c"}
project "luabind-deboostified"
kind "StaticLib"
location (BUILD_DIR .. "/luabind-deboostified")
language "C++"
targetdir (BUILD_DIR .. "/lib/%{cfg.buildcfg}")
includedirs {"./external/lua/src/", "./external/luabind-deboostified/"}
--libdirs { "../lua/libs", "../zlib" }
files { "./external/luabind-deboostified/src/**.cpp", "./external/luabind-deboostified/luabind/**.hpp" }
project "lua"
kind "ConsoleApp"
location (BUILD_DIR .. "/lua")
language "C"
targetdir (BUILD_DIR .. "/%{cfg.buildcfg}")
includedirs {"./external/lua/src/"}
files {"./external/lua/src/lua.c"}
libdirs { BUILD_DIR .. "/lib/%{cfg.buildcfg}" }
links { "liblua" }
project "luajit"
kind "StaticLib"
location (BUILD_DIR .. "/luajit")
language "C"
targetdir (BUILD_DIR .. "/lib/%{cfg.buildcfg}")
includedirs {"./external/LuaJIT-2.0.4/src/"}
files { "./external/LuaJIT-2.0.4/src/ljamalg.c", "./external/lua/LuaJIT-2.0.4/**.h" }
project "luac"
kind "ConsoleApp"
location (BUILD_DIR .. "/lua")
language "C"
targetdir (BUILD_DIR .. "/%{cfg.buildcfg}")
includedirs {"./external/lua/src/"}
files {"./external/lua/src/luac.c"}
libdirs { BUILD_DIR .. "/lib/%{cfg.buildcfg}" }
links { "liblua" }
project "bechmark"
kind "ConsoleApp"
location (BUILD_DIR .. "/bechmark")
language "C++"
targetdir (BUILD_DIR .. "/%{cfg.buildcfg}")
defines { "LUAPP_HEADER_ONLY" }
includedirs {
"./external/lua-api-pp/",
"./external/luacxx/src/",
"./external/lua-intf/LuaIntf/",
"./external/luapath/include/",
"./external/LuaState/include/",
"./external/luawrapper/include/",
"./external/Selene/include/",
"./external/sol/",
"./external/lua/src/",
"./external/boost/",
"./bechmark/nonius/include/",
"./external/luabind-deboostified/",
"./external/"
}
libdirs { BUILD_DIR .. "/lib/%{cfg.buildcfg}" }
links { "liblua", "luabind-deboostified"}
files { "./bechmark/**.h", "./bechmark/**.h++", "./bechmark/**.cpp" }