aboutsummaryrefslogtreecommitdiff
path: root/Src/external_dependencies/openmpt-trunk/build/genie/genie-defaults.lua
blob: 887ef4050824e2b2a95ceedd632cc4252946724c (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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128

  configuration {}

	objdir ( "../../build/obj/" .. mpt_projectpathname .. "/" .. mpt_projectname )
	
	flags { "Cpp17" }

	configuration { "Debug", "x32" }
		targetdir ( "../../bin/debug/" .. _ACTION .. "-" .. mpt_bindirsuffix .. "-static/x86" )
	configuration { "DebugShared", "x32" }
		targetdir ( "../../bin/debug/" .. _ACTION .. "-" .. mpt_bindirsuffix .. "-shared/x86" )
	configuration { "Release", "x32" }
		targetdir ( "../../bin/release/" .. _ACTION .. "-" .. mpt_bindirsuffix .. "-static/x86" )
	configuration { "ReleaseShared", "x32" }
		targetdir ( "../../bin/release/" .. _ACTION .. "-" .. mpt_bindirsuffix .. "-shared/x86" )

	configuration { "Debug", "x64" }
		targetdir ( "../../bin/debug/" .. _ACTION .. "-" .. mpt_bindirsuffix .. "-static/amd64" )
	configuration { "DebugShared", "x64" }
		targetdir ( "../../bin/debug/" .. _ACTION .. "-" .. mpt_bindirsuffix .. "-shared/amd64" )
	configuration { "Release", "x64" }
		targetdir ( "../../bin/release/" .. _ACTION .. "-" .. mpt_bindirsuffix .. "-static/amd64" )
	configuration { "ReleaseShared", "x64" }
		targetdir ( "../../bin/release/" .. _ACTION .. "-" .. mpt_bindirsuffix .. "-shared/amd64" )

	configuration { "Debug", "ARM" }
		targetdir ( "../../bin/debug/" .. _ACTION .. "-" .. mpt_bindirsuffix .. "-static/arm" )
	configuration { "DebugShared", "ARM" }
		targetdir ( "../../bin/debug/" .. _ACTION .. "-" .. mpt_bindirsuffix .. "-shared/arm" )
	configuration { "Release", "ARM" }
		targetdir ( "../../bin/release/" .. _ACTION .. "-" .. mpt_bindirsuffix .. "-static/arm" )
	configuration { "ReleaseShared", "ARM" }
		targetdir ( "../../bin/release/" .. _ACTION .. "-" .. mpt_bindirsuffix .. "-shared/arm" )
  
	configuration { "Debug", "ARM64" }
		targetdir ( "../../bin/debug/" .. _ACTION .. "-" .. mpt_bindirsuffix .. "-static/arm64" )
	configuration { "DebugShared", "ARM64" }
		targetdir ( "../../bin/debug/" .. _ACTION .. "-" .. mpt_bindirsuffix .. "-shared/arm64" )
	configuration { "Release", "ARM64" }
		targetdir ( "../../bin/release/" .. _ACTION .. "-" .. mpt_bindirsuffix .. "-static/arm64" )
	configuration { "ReleaseShared", "ARM64" }
		targetdir ( "../../bin/release/" .. _ACTION .. "-" .. mpt_bindirsuffix .. "-shared/arm64" )
  
  configuration "Debug"
   defines { "DEBUG" }
   defines { "MPT_BUILD_DEBUG" }
   defines { "MPT_BUILD_MSVC_STATIC" }
   flags { "Symbols" }

  configuration "DebugShared"
   defines { "DEBUG" }
   defines { "MPT_BUILD_DEBUG" }
   defines { "MPT_BUILD_MSVC_SHARED" }
   flags { "Symbols" }

  configuration "Release"
   defines { "NDEBUG" }
   defines { "MPT_BUILD_MSVC_STATIC" }
   flags { "Symbols" }
   flags { "OptimizeSpeed" }

  configuration "ReleaseShared"
   defines { "NDEBUG" }
   defines { "MPT_BUILD_MSVC_SHARED" }
   flags { "Symbols" }
   flags { "OptimizeSpeed" }

  configuration {}
   defines { "MPT_BUILD_MSVC" }
   
	configuration {}
		defines {
			"WIN32",
			"_CRT_NONSTDC_NO_WARNINGS",
			"_CRT_SECURE_NO_WARNINGS",
			"_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES=1",
			"_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT=1",
		}

  configuration {}

	if _ACTION ~= "postprocess" then

		if _OPTIONS["target"] == "windesktop81" then
			defines { "_WIN32_WINNT=0x0603" }
			
		elseif _OPTIONS["target"] == "winphone8" then
			defines { "_WIN32_WINNT=0x0602" }
			premake.vstudio.toolset = "v110_wp80"

		elseif _OPTIONS["target"] == "winphone81" then
			defines { "_WIN32_WINNT=0x0603" }
			premake.vstudio.toolset = "v120_wp81"
			premake.vstudio.storeapp = "8.1"

		elseif _OPTIONS["target"] == "winstore81" then
			defines { "_WIN32_WINNT=0x0603" }
			premake.vstudio.toolset = "v120"
			premake.vstudio.storeapp = "8.1"

		elseif _OPTIONS["target"] == "winstore82" then
			defines { "_WIN32_WINNT=0x0603" }
			premake.vstudio.storeapp = "8.2"
			local action = premake.action.current()
			action.vstudio.windowsTargetPlatformVersion = "10.0.10240.0"
			action.vstudio.windowsTargetPlatformMinVersion = "10.0.10240.0"

		elseif _OPTIONS["target"] == "winstore10" then
			defines { "_WIN32_WINNT=0x0A00" }
			premake.vstudio.storeapp = "10.0"
			configuration {}
			configuration { "x32" }
				defines { "NTDDI_VERSION=0x0A000000" }
			configuration {}
			configuration { "x64" }
				defines { "NTDDI_VERSION=0x0A000000" }
			configuration {}
			configuration { "ARM" }
				defines { "NTDDI_VERSION=0x0A000000" }
			configuration {}
			configuration { "ARM64" }
				defines { "NTDDI_VERSION=0x0A000004" }
			configuration {}
		end

	end

  configuration {}