~fenryxo/nuvola-player/releases-1.x

« back to all changes in this revision

Viewing changes to wscript

  • Committer: Jiří Janoušek
  • Date: 2012-03-31 11:45:46 UTC
  • Revision ID: janousek.jiri@gmail.com-20120331114546-qlc8qdb5pd2qjeja
wscript clean-up

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
        'VERSION': VERSION,
36
36
        'RELEASE': RELEASE,
37
37
        'RELEASE_URL': WEBSITE_URL + "Releases/" + RELEASE + "/",
38
 
        'TIPS_URL': "http://projects.fenryxo.cz/Google_Music_Frame/Tips/",
39
 
        'DONATE_URL': "http://projects.fenryxo.cz/Google_Music_Frame/Contribute/#donate",
 
38
        'TIPS_URL': WEBSITE_URL + "Tips/",
 
39
        'DONATE_URL': WEBSITE_URL + "Contribute/#donate",
40
40
        'GOOGLE_PLUS_URL': "https://plus.google.com/110794636546911932554",
41
41
        'FACEBOOK_URL': "https://www.facebook.com/nuvolaplayer",
42
42
        'TWITTER_URL': "https://www.twitter.com/NuvolaPlayer",
73
73
        if CHANNEL != "stable":
74
74
                raise ValueError("Wrong channel for stable version")
75
75
 
76
 
GTK3 = False
77
 
# Google Music Frame can be compiled using GTK+ 3, but:
78
 
# a) Maverick is not shipped with GTK+3 theme
79
 
# b) Flash isn't loaded (https://bugzilla.redhat.com/show_bug.cgi?id=695184)
80
76
 
81
77
top = '.'
82
78
out = 'build'
124
120
        else:
125
121
                ctx.msg("libnotify VAPI fix will be applied", "no", "GREEN")
126
122
        check_package(conf, 'x11', 'XLIB', '0.5')
127
 
        if GTK3:
128
 
                check_package(conf, 'webkitgtk-3.0', 'WEBKIT', '1.0')
129
 
                check_package(conf, 'gtk+-3.0', 'GTK+', '2.22.0')
 
123
        if check_package(conf, 'webkit-1.0', 'WEBKIT', '1.5', False) is None:
 
124
                # webkit >= 1.5 not found, but older version can be used
 
125
                check_package(conf, 'webkit-1.0', 'WEBKIT', '1.0')
130
126
        else:
131
 
                if check_package(conf, 'webkit-1.0', 'WEBKIT', '1.5', False) is None:
132
 
                        # webkit >= 1.5 not found, but older version can be used
133
 
                        check_package(conf, 'webkit-1.0', 'WEBKIT', '1.0')
134
 
                else:
135
 
                        # webkit >= 1.5 has separate package for javascriptcore
136
 
                        check_package(conf, 'javascriptcoregtk-1.0', 'JSCORE', '1.5')
137
 
                check_package(conf, 'gtk+-2.0', 'GTK+', '2.20.0')
138
 
                check_package(conf, 'gdk-2.0', 'GDK', '2.20.0')
 
127
                # webkit >= 1.5 has separate package for javascriptcore
 
128
                check_package(conf, 'javascriptcoregtk-1.0', 'JSCORE', '1.5')
 
129
        check_package(conf, 'gtk+-2.0', 'GTK+', '2.20.0')
 
130
        check_package(conf, 'gdk-2.0', 'GDK', '2.20.0')
139
131
                
140
132
        
141
133
        if ctx.options.glib_dbus:
145
137
        else:
146
138
                check_package(conf, 'glib-2.0', 'GLIB', '2.22')
147
139
                check_package(conf, 'gio-2.0', 'GIO', '2.22')
148
 
                print ">>> Building without DBus support"
 
140
                #~ print ">>> Building without DBus support"
149
141
        #~ check_package(conf, 'atk', 'ATK', '2.0')
150
142
        
151
143
        conf.check_cfg(modversion='libsoup-2.4');
346
338
                packages += " unity Dbusmenu-0.4"
347
339
                uselib += " UNITY DBUSMENU"
348
340
        
349
 
        if GTK3: packages += " gtk+-3.0 gdk-3.0 webkitgtk-3.0 gdk-x11-3.0"
350
 
        else: packages += " gtk+-2.0 gdk-2.0 webkit-1.0 gdk-x11-2.0"
 
341
        packages += " gtk+-2.0 gdk-2.0 webkit-1.0 gdk-x11-2.0"
351
342
        if ctx.env.LIBNOTIFY_VERSION < [0, 7, 0]:
352
343
                packages += " libnotify-fix"
353
344
        else: