summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/src/osd/windows_cfg.lua
blob: 0e4d2014f3253477e2047d753823c00aafb0563f (plain) (blame)
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
-- license:BSD-3-Clause
-- copyright-holders:MAMEdev Team

defines {
	"OSD_WINDOWS",
	"UNICODE",
	"_UNICODE",
	"WIN32_LEAN_AND_MEAN",
	"NOMINMAX",
}

configuration { "vs*" }
	flags {
		"Unicode",
	}

configuration { }

	defines {
		"WINVER=0x0A00",
		"_WIN32_WINNT=0x0A00",
	}

if _OPTIONS["USE_TAPTUN"]=="1" or _OPTIONS["USE_PCAP"]=="1" then
	defines {
		"USE_NETWORK",
	}
	if _OPTIONS["USE_TAPTUN"]=="1" then
		defines {
			"OSD_NET_USE_TAPTUN",
		}
	end
	if _OPTIONS["USE_PCAP"]=="1" then
		defines {
			"OSD_NET_USE_PCAP",
		}
	end
end

if _OPTIONS["USE_SDL"]=="1" then
	defines {
		"SDLMAME_SDL2=1",
		"USE_XINPUT=0",
		"USE_SDL=1",
		"USE_SDL_SOUND",
	}
elseif _OPTIONS["USE_SDL3"]=="1" then
	defines {
		"SDLMAME_SDL3=1",
		"USE_XINPUT=0",
		"USE_SDL3=1",
		"USE_SDL_SOUND",
	}
else
	defines {
		"USE_SDL=0",
	}
end