aboutsummaryrefslogtreecommitdiff
path: root/Src/external_dependencies/openmpt-trunk/build/genie/genie.lua
blob: 16acbdaa81ffe29a616ab01847577c893ebfd48f (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
59
60
61
62
63
64
65
66
67
68
69
70
71
72

-- genie gets a tiny bit confused if the same project appears in multiple
-- solutions in a single run. genie adds a bogus $projectname path to the
-- intermediate objects directory in that case. work-around using multiple
-- invocations of genie and a custom option to distinguish them.

newoption {
 trigger     = "group",
 value       = "PROJECTS",
 description = "OpenMPT project group",
 allowed = {
  { "libopenmpt", "libopenmpt" },
 }
}


newoption {
 trigger     = "target",
 value       = "PROJECTS",
 description = "windows target platform",
 allowed = {
  { "windesktop81", "windesktop81" },
  { "winphone8"   , "winphone8"  },
  { "winphone81"  , "winphone81" },
  { "winstore81"  , "winstore81" },
  { "winstore82"  , "winstore82" },
  { "winstore10"  , "winstore10" },
 }
}



if _ACTION == "vs2019" then
	if _OPTIONS["target"] == "windesktop81" then
		mpt_projectpathname = "vs2019win81"
		mpt_bindirsuffix = "win81"
	end
	if _OPTIONS["target"] == "winstore10" then
		mpt_projectpathname = "vs2019uwp"
		mpt_bindirsuffix = "uwp"
	end
end
if _ACTION == "vs2017" then
	if _OPTIONS["target"] == "windesktop81" then
		mpt_projectpathname = "vs2017win81"
		mpt_bindirsuffix = "win81"
	end
	if _OPTIONS["target"] == "winstore82" then
		mpt_projectpathname = "vs2017uwp"
		mpt_bindirsuffix = "uwp"
	end
end
--mpt_projectpathname = _OPTIONS["target"]
--mpt_bindirsuffix = _OPTIONS["target"]



solution "libopenmpt"
	location ( "../../build/" .. mpt_projectpathname )
	configurations { "Debug", "Release", "DebugShared", "ReleaseShared" }
	if _OPTIONS["target"] == "winstore10" then
		platforms { "x32", "x64", "ARM", "ARM64" }
	else
		platforms { "x32", "x64", "ARM" }
	end

	dofile "../../build/genie/mpt-libopenmpt.lua"
	dofile "../../build/genie/ext-mpg123.lua"
	dofile "../../build/genie/ext-ogg.lua"
	dofile "../../build/genie/ext-vorbis.lua"
	dofile "../../build/genie/ext-zlib.lua"