File: wscript

package info (click to toggle)
xmms2 0.5DrLecter-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 6,988 kB
  • ctags: 11,272
  • sloc: ansic: 51,389; cpp: 26,556; python: 11,479; perl: 202; ruby: 138; makefile: 100; asm: 7; sh: 4
file content (38 lines) | stat: -rw-r--r-- 889 bytes parent folder | download
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
import os
import Params
import Common

def build(bld):
    env = bld.env()

    if env['xmms_icon']:
        obj = bld.create_obj('cc', 'objects')
        obj.target = 'xmms_icon'
        obj.source = 'xmms2.rc'
        obj.install_var = 0

    images = """
    xmms2-16.png
    xmms2-32.png
    xmms2-48.png
    xmms2-128.png
    xmms2.svg
    xmms2-black-on-white.svg
    xmms2-white-on-black.svg
    """.split()
    for image in images:
        Common.install_files("PIXMAP_DIR", "", image)

def configure(conf):
    if Params.g_options.pixmapdir is not None:
        conf.env["PIXMAP_DIR"] = Params.g_options.pixmapdir
    else:
        conf.env["PIXMAP_DIR"] = os.path.join(conf.env["PREFIX"], "share", "pixmaps")

    if not conf.env["PIXMAP_DIR"]:
        return False

    return True

def set_options(opt):
    opt.add_option("--with-pixmap-dir", type="string", dest="pixmapdir")