-
Notifications
You must be signed in to change notification settings - Fork 31
/
units.misc.lua
65 lines (50 loc) · 1.56 KB
/
units.misc.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
57
58
59
60
61
62
63
64
require "tundra.syntax.glob"
require "tundra.path"
require "tundra.util"
-----------------------------------------------------------------------------------------------------------------------
-- Example 6502 emulator
--[[
Program {
Name = "fake6502",
Env = {
CPPPATH = { "api/include" },
CCOPTS = {
{
"-Wno-conversion",
"-Wno-missing-variable-declarations",
"-Werror",
"-Wno-pedantic",
"-Wno-conversion",
"-Wno-missing-field-initializers",
"-Wno-conversion",
"-Wno-switch-enum",
"-Wno-format-nonliteral"; Config = "macosx-*-*" },
},
},
Sources = {
Glob {
Dir = "examples/fake_6502",
Extensions = { ".c", ".cpp", ".m" },
},
},
Libs = { { "wsock32.lib", "kernel32.lib" ; Config = { "win32-*-*", "win64-*-*" } } },
Depends = { "remote_api" },
IdeGenerationHints = { Msvc = { SolutionFolder = "Misc" } },
}
--]]
-----------------------------------------------------------------------------------------------------------------------
-- Crash Example
Program {
Name = "crashing_native",
Sources = {
Glob {
Dir = "examples/crashing_native",
Extensions = { ".c" },
},
},
IdeGenerationHints = { Msvc = { SolutionFolder = "Misc" } },
}
-----------------------------------------------------------------------------------------------------------------------
-- Default "fake6502"
Default "crashing_native"
-- vim: ts=4:sw=4:sts=4