summaryrefslogtreecommitdiffstats
blob: 1283dc7f3aef2397e679047c50c920fc71b7c4c3 (plain)
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
Import("env")

myenv = env.Clone()
myenv.UseFlags(env["LIMBER_FLAGS"])
myenv.MergeFlags(env["SLIMBER_FLAGS"])
myenv.MergeFlags(env["SWIFTOOLS_FLAGS"])
myenv.MergeFlags(env["SWIFTEN_FLAGS"])
myenv.MergeFlags(env["LIBIDN_FLAGS"])
myenv.MergeFlags(env["BOOST_FLAGS"])
myenv.MergeFlags(env.get("LIBXML_FLAGS", ""))
myenv.MergeFlags(env.get("EXPAT_FLAGS", ""))
myenv.Append(CXXFLAGS = myenv["OBJCCFLAGS"])
myenv.Append(FRAMEWORKS = "Cocoa")
myenv.MergeFlags(myenv["PLATFORM_FLAGS"])

myenv.Program("Slimber", [
		"main.mm",
		"CocoaController.mm",
		"CocoaMenulet.mm",
	])

myenv.Nib("MainMenu")

myenv.AppBundle("Slimber", resources = { "": [
		"MainMenu.nib",
		"../Resources/Slimber.icns",
		"../Resources/Credits.html",
		"../Resources/Online.png",
		"../Resources/Offline.png",
		"../Resources/UsersOnline.png",
		"../Resources/UsersOffline.png"
	]}, info = {
		"NSMainNibFile" : "MainMenu",
		"LSUIElement" : "1",
	})