forked from jinq0123/grpc-lua
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpremake5.lua
More file actions
54 lines (46 loc) · 1.11 KB
/
premake5.lua
File metadata and controls
54 lines (46 loc) · 1.11 KB
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
-- premake5.lua
--[[
Usage examples:
for windows: premake5.exe --os=windows vs2015
fot linux: premake5.exe --os=linux gmake
]]
workspace "grpc_lua"
location (_ACTION) -- subdir vs2015 (or gmake, ...)
configurations { "Release", "Debug" }
platforms { "x64", "x32" }
language "C++"
flags {
"C++11",
}
require("conanpremake_multi") -- for third-party libs
filter "configurations:Debug"
flags { "Symbols" }
filter "configurations:Release"
defines { "NDEBUG" }
optimize "On"
filter {}
project "grpc_lua"
kind "SharedLib"
targetname "grpc_lua"
targetprefix "" -- linux: grpc_lua.so
files {
"../src/**",
"../examples/**.lua",
"../examples/**.proto",
"../examples/**.json",
}
includedirs {
"../src/cpp",
}
--[[
From: https://github.com/SteveKChiu/lua-intf
By default LuaIntf expect the Lua library to build under C++.
If you really want to use Lua library compiled under C,
you can use lua.lib instead of lua-cpp.lib and:
defines { "LUAINTF_LINK_LUA_COMPILED_IN_CXX=0" }
--]]
filter { "system:windows" }
defines {
"_WIN32_WINNT=0x0600", -- i.e. Windows 7 target
}
filter {}