-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake4.lua
54 lines (44 loc) · 1.3 KB
/
premake4.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
solution "usbus"
configurations { "Debug", "Release" }
project "usbus"
kind "StaticLib"
language "C"
files "src/*.c"
includedirs { "src" }
if os.is("macosx") then
defines { "USBUS_PLATFORM_OSX" }
files { "src/platform/iokit.c" }
elseif os.is("windows") then
defines { "USBUS_PLATFORM_WIN" }
files { "src/platform/winusb.c" }
end
configuration "Debug"
defines { "DEBUG" }
flags { "Symbols", "ExtraWarnings", "FatalWarnings" }
configuration "Release"
defines { "RELEASE" }
flags { "Optimize", "ExtraWarnings", "FatalWarnings" }
project "enumerator"
kind "ConsoleApp"
language "C"
location "example/enumerator"
files { "example/enumerator/*.c" }
includedirs { "src" }
links { "usbus" }
if os.is("macosx") then
links { "IOKit.framework", "CoreFoundation.framework" }
elseif os.is("windows") then
links { "setupapi", "winusb" }
end
project "echo"
kind "ConsoleApp"
language "C"
location "example/echo"
files { "example/echo/*.c" }
includedirs { "src" }
links { "usbus" }
if os.is("macosx") then
links { "IOKit.framework", "CoreFoundation.framework" }
elseif os.is("windows") then
links { "setupapi", "winusb" }
end