-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpremake4.lua
38 lines (32 loc) · 938 Bytes
/
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
local action = _ACTION or ""
solution "tinyboard-tools"
-- location("build")
-- targetdir("bin")
includedirs { "ftd2xx", "src" }
libdirs {"ftd2xx"}
configurations { "Debug", "Release" }
platforms {"native", "x64", "x32"}
buildoptions {"-std=c99"}
linkoptions {"-l:ftd2xx.lib"}
configuration "Debug"
defines { "DEBUG" }
flags { "Symbols", "ExtraWarnings"}
configuration "Release"
defines { "NDEBUG" }
flags { "Optimize", "ExtraWarnings"}
project "i2cdetect"
language "C"
kind "ConsoleApp"
files { "src/i2c_detect.c", "src/i2c_bitbang.c" }
project "i2cdump"
language "C"
kind "ConsoleApp"
files { "src/i2c_dump.c", "src/i2c_bitbang.c" }
project "eeprom_test"
language "C"
kind "ConsoleApp"
files { "src/i2c_eeprom.c", "src/i2c_bitbang.c" }
-- project "spitest"
-- language "C"
-- kind "ConsoleApp"
-- files { "src/spi_test.c", "src/spi_bitbang.c" }