-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathandroidmk.lua
56 lines (43 loc) · 992 Bytes
/
androidmk.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
--
-- androidmk.lua
-- Generator for ndk-build makefiles
-- Author : Bastien Brunnenstein
--
premake.extensions.androidmk = premake.extensions.androidmk or {}
local androidmk = premake.extensions.androidmk
include "_preload.lua"
function androidmk.slnApplicationFile(sln)
return sln.name .."_Application.mk"
end
function androidmk.slnAndroidFile(sln)
return sln.name .."_Android.mk"
end
function androidmk.prjFile(prj)
return prj.name ..".mk"
end
androidmk.ldflags = {
flags = {
--LinkTimeOptimization = "-flto",
}
}
androidmk.cflags = {
flags = {
FatalCompileWarnings = "-Werror",
ShadowedVariables = "-Wshadow",
UndefinedIdentifiers = "-Wundef",
--LinkTimeOptimization = "-flto",
},
warnings = {
Extra = "-Wall -Wextra",
Off = "-w",
}
}
androidmk.cppflags = {
flags = {
["C++11"] = "-std=c++11",
["C++14"] = "-std=c++14",
}
}
include "androidmk_api.lua"
include "androidmk_solution.lua"
include "androidmk_project.lua"