aboutsummaryrefslogtreecommitdiff
path: root/Src/external_dependencies/openmpt-trunk/build/premake/ext-rtaudio.lua
blob: 1d2094bf3cb0fba53753828b9c378b12f45a82d1 (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

 project "rtaudio"
  uuid "4886456b-1342-4ec8-ad3f-d92aeb8c1097"
  language "C++"
  location ( "../../build/" .. mpt_projectpathname .. "/ext" )
  mpt_projectname = "rtaudio"
  dofile "../../build/premake/premake-defaults-LIB.lua"
  dofile "../../build/premake/premake-defaults.lua"
  targetname "openmpt-rtaudio"
	filter {}
	filter { "action:vs*" }
		characterset "Unicode"
	filter {}
	filter { "action:vs2017" }
		if _OPTIONS["winxp"] then
			defines {
				"__WINDOWS_DS__",
			}
		else
			defines {
				-- WASAPI causes link failure due to confused SDK headers
			}
		end
	filter { "not action:vs2017" }
		if _OPTIONS["winxp"] then
			defines {
				"__WINDOWS_DS__",
			}
		else
			defines {
				"__WINDOWS_WASAPI__",
			}
		end
	filter {}
  files {
   "../../include/rtaudio/RtAudio.cpp",
   "../../include/rtaudio/RtAudio.h",
  }
	if _OPTIONS["winxp"] then
		if _OPTIONS["clang"] then
			filter { "not kind:StaticLib" }
				links { "dsound" }
			filter {}
		else
			filter {}
				links { "dsound" }
			filter {}
		end
	end
  filter { }
  filter { "action:vs*" }
    buildoptions { "/wd4267" }
  filter {}
	filter { "action:vs*" }
		buildoptions { "/wd6031" } -- analyze
	filter {}