~midori/midori/gtk3WebKit2only

« back to all changes in this revision

Viewing changes to wscript

  • Committer: Christian Dywan
  • Date: 2008-11-18 01:07:53 UTC
  • Revision ID: git-v1:3cd50f419b55c8ac81d557ddf5764f78bffd75ff
Introduce a C extension interface

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
        nls = 'no'
52
52
    conf.check_message_custom ('localization', 'support', nls)
53
53
 
 
54
    if Params.g_options.libdir == '':
 
55
        libdir = os.path.join (conf.env['PREFIX'], 'lib')
 
56
    else:
 
57
        libdir = Params.g_options.libdir
 
58
    conf.define ('LIBDIR', libdir)
 
59
 
54
60
    # We support building without intltool
55
61
    # Therefore datadir may not have been defined
56
62
    if not conf.is_defined ('DATADIR'):
100
106
        sqlite = 'no'
101
107
    conf.check_message_custom ('history database', 'support', sqlite)
102
108
 
 
109
    conf.check_pkg ('gmodule-2.0', destvar='GMODULE', vnum='2.8.0', mandatory=False)
103
110
    conf.check_pkg ('gio-2.0', destvar='GIO', vnum='2.16.0', mandatory=False)
104
111
    conf.check_pkg ('gtk+-2.0', destvar='GTK', vnum='2.10.0', mandatory=True)
105
112
    conf.check_pkg ('webkit-1.0', destvar='WEBKIT', vnum='0.1', mandatory=True)
141
148
    opt.tool_options ('compiler_cc')
142
149
    opt.tool_options ('intltool')
143
150
    opt.add_option ('--docdir', type='string', default='',
144
 
        help='documentation root', dest='docdir')
 
151
        help='Documentation root', dest='docdir')
145
152
    opt.add_option ('--disable-docs', action='store_true', default=False,
146
153
        help='Disables user documentation', dest='disable_docs')
147
154
 
161
168
    opt.add_option ('--update-po', action='store_true', default=False,
162
169
        help='Update localization files', dest='update_po')
163
170
 
 
171
    opt.add_option ('--libdir', type='string', default='',
 
172
        help='Library root', dest='libdir')
 
173
    opt.add_option ('--disable-extensions', action='store_true', default=False,
 
174
        help='Disables building of extensions', dest='disable_extensions')
 
175
 
164
176
def build (bld):
165
177
    def mkdir (path):
166
178
        if not os.access (path, os.F_OK):
174
186
 
175
187
    bld.add_subdirs ('katze midori icons')
176
188
 
 
189
    if not Params.g_options.disable_extensions:
 
190
        bld.add_subdirs ('extensions')
 
191
 
177
192
    install_files ('DOCDIR', '/' + APPNAME + '/', \
178
193
        'AUTHORS ChangeLog COPYING EXPAT README TRANSLATE')
179
194