-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpremake5.lua
48 lines (40 loc) · 880 Bytes
/
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
workspace "sln-nc"
objdir "builddir/obj"
targetdir "builddir"
libdirs { "builddir" }
configurations { "Debug", "Release" }
configuration "Debug"
defines { "DEBUG" }
symbols "On"
configuration "Release"
defines { "NDEBUG" }
optimize "On"
project "nc"
kind "StaticLib"
language "C"
files {
"src/*.c",
}
includedirs {
"src",
}
filter { "system:windows", "toolset:gcc" }
defines { "CRT_MINGW", "MINGW_HAS_SECURE_API", "_POSIX_C_SOURCE" }
buildoptions { }
project "test"
kind "ConsoleApp"
language "C"
files {
"tests/*.c",
}
includedirs {
"src",
"tests",
}
libdirs {
"builddir",
}
filter "system:windows"
defines { "CRT_MINGW", "MINGW_HAS_SECURE_API", "_POSIX_C_SOURCE" }
links { "nc" }
linkoptions { "-Wall" }