# ***** BEGIN LICENSE BLOCK *****
# Source last modified: $Id: make_tempdir,v 1.36.2.13 2005/02/02 00:59:08 nhart Exp $
# 
# Portions Copyright (c) 1995-2004 RealNetworks, Inc. All Rights Reserved.
# 
# The contents of this file, and the files included with this file,
# are subject to the current version of the RealNetworks Public
# Source License (the "RPSL") available at
# http://www.helixcommunity.org/content/rpsl unless you have licensed
# the file under the current version of the RealNetworks Community
# Source License (the "RCSL") available at
# http://www.helixcommunity.org/content/rcsl, in which case the RCSL
# will apply. You may also obtain the license terms directly from
# RealNetworks.  You may not use this file except in compliance with
# the RPSL or, if you have a valid RCSL with RealNetworks applicable
# to this file, the RCSL.  Please see the applicable RPSL or RCSL for
# the rights, obligations and limitations governing use of the
# contents of the file.
# 
# Alternatively, the contents of this file may be used under the
# terms of the GNU General Public License Version 2 or later (the
# "GPL") in which case the provisions of the GPL are applicable
# instead of those above. If you wish to allow use of your version of
# this file only under the terms of the GPL, and not to allow others
# to use your version of this file under the terms of either the RPSL
# or RCSL, indicate your decision by deleting the provisions above
# and replace them with the notice and other provisions required by
# the GPL. If you do not delete the provisions above, a recipient may
# use your version of this file under the terms of any one of the
# RPSL, the RCSL or the GPL.
# 
# This file is part of the Helix DNA Technology. RealNetworks is the
# developer of the Original Code and owns the copyrights in the
# portions it created.
# 
# This file, and the files included with this file, is distributed
# and made available on an 'AS IS' basis, WITHOUT WARRANTY OF ANY
# KIND, EITHER EXPRESS OR IMPLIED, AND REALNETWORKS HEREBY DISCLAIMS
# ALL SUCH WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES
# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET
# ENJOYMENT OR NON-INFRINGEMENT.
# 
# Technology Compatibility Kit Test Suite(s) Location:
#    http://www.helixcommunity.org/content/tck
# 
# Contributor(s):
# 
# ***** END LICENSE BLOCK *****

#
# make_tempdir - create the 'temp' directory
#
#######################################################################
UmakefileVersion(2,1)

EmptyTarget()

import os.path

execfile("../common/common.py")

inst.CreateMainDir()

inst.MakeDirs(
    "Bin",
    "common",
    "codecs",
    "plugins",
    "share",
    "doc",
    "lib",
    "mozilla",
    "postinst")


# post-install files
inst.CopyInstallerExes(("player/installer/postinst", "postinst", "Bin/setup"))
inst.CopyMultiFiles("../../../player/installer/common", "postinst",
    "postinst.sh",
    "confscript.sh")

# platform-specific files
if "sunos5" in sysinfo.family_list:
    inst.CopyMultiFiles("../../../player/installer/common", "postinst",
        "solarisinst.sh")

# widget exe, script

if project.IsDefined('HELIX_FEATURE_REAL_BRANDING'):
    inst.CopyModuleExes(
        ("player/app/gtk", "realplay.bin", "realplay.bin"),
        ("player/app/gtk", "realplay", "realplay"))
else:
    inst.CopyModuleExes(
        ("player/app/gtk", "hxplay.bin", "hxplay.bin"),
        ("player/app/gtk", "hxplay", "hxplay"))


# widget lib
inst.CopyModuleDlls(("player/common/gtk", "libgtkhx", "lib/libgtkhx"))

# mozilla plugin
inst.CopyModuleDlls(
    ("filesystem/memory", "memfsys", "plugins/memfsys"),
    ("player/app/plugin", "nphelix", "mozilla/nphelix"))
inst.CopyFiles(
    ("../../../player/app/plugin/nphelix.xpt", "mozilla/nphelix.xpt"))

# client core
inst.CopyModuleDlls(
    ("client/core", "clntcore", "common/clntcore"),
    ("client/xres", "clntxres", "common/clntxres"))

# important plugins
inst.CopyModuleDlls(
    ("video/site", "vidsite", "plugins/vidsite"),
    ("common/lang/xml", "hxxml", "plugins/hxxml"),
    ("common/auth/authmgr", "authmgr", "plugins/authmgr"),
    ("client/auth/basicauth", "clbascauth", "plugins/clbascauth"))

# rn5auth (for authenticating to RealServer)
if os.path.exists(os.path.join(project.src_root_path,
                               "common/auth/rn5auth",
                               project.output_dir,
                               "rn5auth.so")):
    inst.CopyModuleDlls(("common/auth/rn5auth", "rn5auth", "plugins/rn5auth"))


# RAM metafile
inst.CopyModuleDlls(
    ("datatype/ram/fileformat", "ramfformat", "plugins/ramfformat"),
    ("datatype/ram/renderer", "ramrender", "plugins/ramrender"))

# SMIL support
inst.CopyModuleDlls(
    ("datatype/smil/fileformat", "smlfformat", "plugins/smlfformat"),
    ("datatype/smil/renderer", "smlrender", "plugins/smlrender"),
    ("datatype/image/gif/fileformat", "giffformat", "plugins/giffformat"),
    ("datatype/image/gif/renderer", "gifrender", "plugins/gifrender"),
    ("datatype/image/jpg/fileformat", "jpgfformat", "plugins/jpgfformat"),
    ("datatype/image/jpg/renderer", "jpgrender", "plugins/jpgrender"),
    ("datatype/image/png/fileformat", "pngfformat", "plugins/pngfformat"),
    ("datatype/image/png/renderer", "pngrender", "plugins/pngrender"),
    ("datatype/image/wbmp/fileformat", "wbmpfformat", "plugins/wbmpfformat"),
    ("datatype/image/wbmp/renderer", "wbmprend", "plugins/wbmprend"))

# RealPix
inst.CopyModuleDlls(
    ("datatype/image/realpix/fileformat", "rpfformat", "plugins/rpfformat"),
    ("datatype/image/realpix/renderer", "rprender", "plugins/rprender"),
    ("datatype/image/realpix/codec/gif", "rpgifplin", "plugins/rpgifplin"),
    ("datatype/image/realpix/codec/jpg", "rpjpgplin", "plugins/rpjpgplin"),
    ("datatype/image/realpix/codec/png", "rppngplin", "plugins/rppngplin"))

# RealText
inst.CopyModuleDlls(
    ("datatype/text/realtext/fileformat", "rtfformat", "plugins/rtfformat"),
    ("datatype/text/realtext/renderer", "rtrender", "plugins/rtrender"))

# local playback
if project.IsDefined("HELIX_FEATURE_PLAYBACK_LOCAL"):
    inst.CopyModuleDlls(
    ("filesystem/local", "smplfsys", "plugins/smplfsys"))

# network playback
if project.IsDefined("HELIX_FEATURE_PLAYBACK_NET"):
    inst.CopyModuleDlls(
    ("filesystem/http", "httpfsys", "plugins/httpfsys"),
    ("protocol/sdp", "hxsdp", "plugins/hxsdp"))

# multicast support
inst.CopyModuleDlls(
    ("datatype/sdp/plugin", "sdpplin", "plugins/sdpplin"))

# color converters (XXXNH: do we need both?)
inst.CopyModuleDlls(
    ("video/colconverter", "colorcvt", "codecs/colorcvt"),
    ("video/colconverter", "cvt1", "codecs/cvt1"))

# view source
if project.IsDefined("HELIX_FEATURE_VIEWSOURCE"):
    inst.CopyModuleDlls(
        ("client/viewsource", "vsrlocal", "plugins/vsrlocal"),
        ("common/appext/vsrcplin", "vsrcplin", "plugins/vsrcplin"))

# AMR support
need_amrff = 0
if project.IsDefined("HELIX_FEATURE_AUDIO_CODEC_AMRWB"):
    need_amrff = 1
    inst.CopyModuleDlls(("datatype/amr/codec/amr-wb", "amrw", "codecs/amrw"))
if project.IsDefined("HELIX_FEATURE_AUDIO_CODEC_AMRNB"):
    need_amrff = 1
    inst.CopyModuleDlls(("datatype/amr/codec/amr-nb", "amrn", "codecs/amrn"))
if need_amrff:
    inst.CopyModuleDlls(("datatype/amr/fileformat", "amrff", "plugins/amrff"))

# h.263 support
if project.IsDefined("HELIX_FEATURE_VIDEO_H263"):
    inst.CopyModuleDlls(
    ("datatype/h263/renderer", "h263render", "plugins/h263render"))
    if project.IsDefined("HELIX_FEATURE_VIDEO_REAL"):
        inst.CopyModuleDlls(
        ("datatype/rm/video/codec/rv89combo", "rv40", "codecs/rv40"))

# MPEG4 support (currently audio only)
if project.IsDefined("HELIX_FEATURE_VIDEO_MPEG4"):
    inst.CopyModuleDlls(
    ("datatype/mp4/fileformat", "mp4fformat", "plugins/mp4fformat"),
    ("datatype/mp4/audio/renderer", "mp4arender", "plugins/mp4arender"))

# RV support
need_rmff = 0
if project.IsDefined("HELIX_FEATURE_VIDEO_REAL"):
    need_rmff = 1
    # RV renderer
    inst.CopyModuleDlls(
    ("datatype/rm/video/renderer", "rvxrender", "plugins/rvxrender"))
    # RV codecs
    if project.IsDefined("HELIX_FEATURE_VIDEO_CODEC_RV10"):
        inst.CopyModuleDlls(
        ("datatype/rm/video/codec/rv1dec", "rv10", "codecs/rv10"))
    if project.IsDefined("HELIX_FEATURE_VIDEO_CODEC_RV20"):
        inst.CopyModuleDlls(
        ("datatype/rm/video/codec/rvg2dec", "rv20", "codecs/rv20"))
    if project.IsDefined("HELIX_FEATURE_VIDEO_CODEC_RV30"):
        inst.CopyModuleDlls(
        ("datatype/rm/video/codec/rv89combo", "rv30", "codecs/rv30"))
    if project.IsDefined("HELIX_FEATURE_VIDEO_CODEC_RV40"):
        inst.CopyModuleDlls(
        ("datatype/rm/video/codec/rv89combo", "rv40", "codecs/rv40"))

# RA support
if project.IsDefined("HELIX_FEATURE_AUDIO_REAL"):
    need_rmff = 1
    # RA renderer
    inst.CopyModuleDlls(
    ("datatype/rm/audio/renderer", "rarender", "plugins/rarender"))
    # RA gecko codec
    if project.IsDefined("HELIX_FEATURE_AUDIO_CODEC_GECKO"):
        inst.CopyModuleDlls(
        ("datatype/rm/audio/codec/ra8lbr", "cook", "codecs/cook"))
    # RA other codecs
    inst.CopyModuleDlls(
        ("datatype/rm/audio/codec/ra8hbr", "atrc", "codecs/atrc"),
        ("datatype/rm/video/codec/rv1dec", "drv1", "codecs/drv1"),
        ("datatype/rm/video/codec/rvg2dec", "drv2", "codecs/drv2"),
        ("datatype/rm/video/codec/rv89combo", "drvc", "codecs/drvc"),
        ("datatype/rm/audio/codec/sipro", "sipr", "codecs/sipr"))
    # AAC support (XXXNH: only if raac.so built!)
    if os.path.exists(os.path.join(project.src_root_path,
                                   "datatype/aac/codec/helixaac",
                                   project.output_dir,
                                   "raac.so")):
        inst.CopyModuleDlls(
            ("datatype/aac/codec/helixaac", "raac", "codecs/raac"),
            ("datatype/aac/fileformat", "aacff", "plugins/aacff"))

# RM file format
if need_rmff:
    inst.CopyModuleDlls(
    ("datatype/rm/fileformat", "rmfformat", "plugins/rmfformat"))
    # RealEvents support
    inst.CopyModuleDlls(
    ("datatype/rm/events/renderer", "smmrender", "plugins/smmrender"))

# MP3 support
if project.IsDefined("HELIX_FEATURE_AUDIO_MPA_LAYER3"):
    inst.CopyModuleDlls(
    ("datatype/mp3/fileformat", "mp3fformat", "plugins/mp3fformat"),
    ("datatype/mp3/renderer", "mp3render", "plugins/mp3render"),
    ("datatype/mp3/mp3metaff", "mp3metaff", "plugins/mp3metaff"))

# Vorbis support
need_ogg = 0
if project.IsDefined("HELIX_FEATURE_AUDIO_VORBIS"):
    need_ogg = 1
    inst.CopyModuleDlls(
    ("datatype/vorbis/renderer", "vorbisrend", "plugins/vorbisrend"))

# Theora support
if project.IsDefined("HELIX_FEATURE_VIDEO_THEORA"):
    # we're having build issues with theora on solaris, so skip it if
    # it isn't there
    if ("sunos5" in sysinfo.family_list and 
        not os.path.exists(os.path.join(project.src_root_path,
                                        "datatype/theora/renderer",
                                        project.output_dir,
                                        "theorarend.so"))):
         umake_lib.warning("skipping inclusion of broken theora renderer")
    else:
        need_ogg = 1
        inst.CopyModuleDlls(
            ("datatype/theora/renderer", "theorarend", "plugins/theorarend"))

# Ogg support
if need_ogg:
    inst.CopyModuleDlls(
    ("datatype/ogg/fileformat", "oggfformat", "plugins/oggfformat"))

# Flash support
if (project.IsDefined("HELIX_FEATURE_FLASH") and 
    not ("linux" in sysinfo.family_list and sysinfo.arch == "powerpc")):
    inst.CopyModuleDlls(
    ("datatype/flash/renderer", "swfrender", "plugins/swfrender"),
    ("datatype/flash/fileformat", "swfformat", "plugins/swfformat"))

# Audplin support
if project.IsDefined("HELIX_FEATURE_AUDIO_WAVE") or project.IsDefined("HELIX_FEATURE_AUDIO_AU") or project.IsDefined("HELIX_FEATURE_AUDIO_AIFF"):
    inst.CopyModuleDlls(
    ("datatype/group/audio", "audplin", "plugins/audplin"))

if project.IsDefined("HELIX_FEATURE_AUDIO_AU"):
    inst.CopyModuleDlls(
    ("datatype/au/fileformat", "aufformat", "plugins/aufformat"))

if project.IsDefined("HELIX_FEATURE_AUDIO_WAVE"):
    inst.CopyModuleDlls(
    ("datatype/wav/renderer/pcm", "pcmrend", "plugins/pcmrend"))

# mo files (gettext)
inst.MakeDirs("share/locale")

language_list = os.listdir("../../../player/app/gtk/locale")
if 'CVS' in language_list:
    language_list.remove('CVS')

for language in language_list:
    locale_path = os.path.join("share/locale", language)
    inst.MakeDirs(locale_path)

    src_path = os.path.join("../../../player/app/gtk/po", language + ".mo")
    dest_path = os.path.join(locale_path, "player.mo")
    if os.path.isfile(src_path):
        inst.CopyFiles((src_path, dest_path))

    src_path = os.path.join("../../../player/common/gtk/po", language + ".mo")
    dest_path = os.path.join(locale_path, "widget.mo")
    if os.path.isfile(src_path):
        inst.CopyFiles((src_path, dest_path))

    if project.IsDefined('HELIX_FEATURE_REAL_BRANDING'):
        src_path = os.path.join("../../../player/app/gtk/locale", language, "README.realplay")
    else:
        src_path = os.path.join("../../../player/app/gtk/locale", language, "README.hxplay")
    dest_path = os.path.join(locale_path, "README")
    if os.path.isfile(src_path):
        inst.CopyFiles((src_path, dest_path))

    # License (for RealPlayer)
    if project.IsDefined("HELIX_FEATURE_RDT"):
        src_path = os.path.join("../../../player/app/doc/real/locale", language, "LICENSE")
    else:
        src_path = os.path.join("../../../player/app/doc/helix/locale", language, "LICENSE")
    dest_path = os.path.join(locale_path, "LICENSE")
    if os.path.isfile(src_path):
        inst.CopyFiles((src_path, dest_path))


# default image resources
inst.MakeDirs("share/default")
inst.CopyMultiFiles("../../../player/app/gtk/res/default", "share/default",
    "clipinfo.png",
    "congestion.png",
    "fastforward.png",
    "next.png",
    "pause.png",
    "play.png",
    "prefs_connection.png",
    "prefs_content.png",
    "prefs_internet.png",
    "prefs_mediatypes.png",
    "prefs_playback.png",
    "prefs_proxy.png",
    "prefs_raw.png",
    "prefs_transport.png",
    "prefs_hardware.png",
    "prefs_advanced.png",
    "previous.png",
    "rewind.png",
    "stop.png",
    "tactoggle.png",
    "volume_high.png",
    "volume_low.png",
    "volume_mid.png",
    "volume_off.png",
    "volume_mute.png",
    "volume_popup_high.png",
    "volume_popup_low.png",
    "volume_popup_mid.png",
    "volume_popup_off.png",
    "volume_popup_mute.png")

inst.MakeDirs("share/icons")
if project.IsDefined("HELIX_FEATURE_REAL_BRANDING"):
    # realplay-specific image resources
    inst.MakeDirs("share/realplay")
    inst.CopyMultiFiles("../../../player/app/gtk/res/realplay", "share/realplay",
        "logo.png",
        "icon.png",
        "prefs_general.png",
        "setup_title.png",
        "setup_welcome.png",
        "embedded_logo.png")

    inst.CopyFiles(
        ("../../../player/app/gtk/res/realplay.png", "share/realplay.png"))

    inst.CopyMultiFiles("../../../player/app/gtk/res/icons/realplay", "share/icons",
        "realplay_16x16.png",
        "realplay_32x32.png",
        "realplay_48x48.png",
        "realplay_192x192.png",
        "mime-application-generic_192x192.png",
        "mime-application-generic_48x48.png",
        "mime-application-ogg_192x192.png",
        "mime-application-ogg_48x48.png",
        "mime-application-ram_192x192.png",
        "mime-application-ram_48x48.png",
        "mime-application-rpm_192x192.png",
        "mime-application-rpm_48x48.png",
        "mime-application-rm_192x192.png",
        "mime-application-rm_48x48.png",
        "mime-application-smil_192x192.png",
        "mime-application-smil_48x48.png",
        "mime-audio-aiff_192x192.png",
        "mime-audio-aiff_48x48.png",
        "mime-audio-au_192x192.png",
        "mime-audio-au_48x48.png",
        "mime-audio-mp3_192x192.png",
        "mime-audio-mp3_48x48.png",
        "mime-audio-mp4_192x192.png",
        "mime-audio-mp4_48x48.png",
        "mime-audio-ogg_192x192.png",
        "mime-audio-ogg_48x48.png",
        "mime-audio-ra_192x192.png",
        "mime-audio-ra_48x48.png",
        "mime-audio-wav_192x192.png",
        "mime-audio-wav_48x48.png",
        "mime-text-realtext_192x192.png",
        "mime-text-realtext_192x192.png",
        "mime-video-avi_192x192.png",
        "mime-video-avi_48x48.png",
        "mime-video-mov_192x192.png",
        "mime-video-mov_48x48.png",
        "mime-video-rv_192x192.png",
        "mime-video-rv_48x48.png",
        "mime-video-swf_192x192.png",
        "mime-video-swf_48x48.png",
        "mime-application-generic_192x192.png",
        "mime-application-generic_48x48.png",
        "mime-audio-generic_192x192.png",
        "mime-audio-generic_48x48.png",
        "mime-text-realtext_192x192.png",
        "mime-text-realtext_48x48.png",
        "mime-video-generic_192x192.png",
        "mime-video-generic_48x48.png",
        "mime-video-ogg_192x192.png",
        "mime-video-ogg_48x48.png")

    if sysinfo.platform_qualifier == "nld":
	# Add crystal icons for NLD / SuSE 9.2
        inst.MakeDirs("share/icons/crystalsvg")
        inst.CopyMultiFiles("../../../player/app/gtk/res/icons/realplay/CrystalSVG",
			    "share/icons/crystalsvg", 
			    "mime-real_128x128.png",
			    "mime-real_64x64.png",
			    "mime-real_48x48.png",
			    "mime-real_32x32.png",
			    "mime-real_22x22.png",
			    "mime-real_16x16.png")
	
    inst.CopyMultiFiles("../../../player/installer/common", "share", 
                        "realplay.desktop",
                        "realplay.applications",
                        "realplay.keys",
                        "realplay.mime",
                        "realplay.xml")

    inst.MakeDirs("share/mimelnk")
    inst.MakeDirs("share/mimelnk/application")
    inst.MakeDirs("share/mimelnk/audio")
    inst.MakeDirs("share/mimelnk/video")
    inst.MakeDirs("share/mimelnk/text")

    inst.CopyMultiFiles("../../../player/installer/common/mimelnk.realplay/application", 
                        "share/mimelnk/application",
                        "sdp.desktop",
                        "x-streamingmedia.desktop",
                        "vnd.rn-realmedia-secure.desktop",
                        "vnd.rn-realmedia.desktop",
                        "x-smil.desktop",
                        "vnd.rn-realmedia-vbr.desktop",
                        "ogg.desktop")

    inst.CopyMultiFiles("../../../player/installer/common/mimelnk.realplay/audio", 
                        "share/mimelnk/audio",
                        "mpeg.desktop",
                        "vnd.rn-realaudio.desktop",
                        "x-aac.desktop",
                        "x-aiff.desktop",
                        "x-m4a.desktop",
                        "x-mpegurl.desktop",
                        "x-pn-realaudio.desktop",
                        "x-scpls.desktop",
                        "x-wav.desktop")

    inst.CopyMultiFiles("../../../player/installer/common/mimelnk.realplay/text", 
                        "share/mimelnk/text",
                        "vnd.rn-realtext.desktop")

    inst.CopyMultiFiles("../../../player/installer/common/mimelnk.realplay/video", 
                        "share/mimelnk/video",
                        "vnd.rn-realvideo.desktop",
                        "x-3gpp2.desktop",
                        "3gpp.desktop")                        
else:
    # hxplay-specific image resources
    inst.MakeDirs("share/hxplay")
    inst.CopyMultiFiles("../../../player/app/gtk/res/hxplay", "share/hxplay",
        "logo.png",
        "icon.png",
        "prefs_general.png",
        "setup_title.png",
        "setup_welcome.png",
        "embedded_logo.png")

    inst.CopyFiles(
        ("../../../player/app/gtk/res/hxplay.png", "share/hxplay.png"))

    inst.CopyMultiFiles("../../../player/app/gtk/res/icons/hxplay", "share/icons",
        "hxplay_16x16.png",
        "hxplay_32x32.png",
        "hxplay_48x48.png",
        "hxplay_192x192.png",
        "mime-application-generic_192x192.png",
        "mime-application-generic_48x48.png",
        "mime-application-ogg_192x192.png",
        "mime-application-ogg_48x48.png",
        "mime-application-ram_192x192.png",
        "mime-application-ram_48x48.png",
        "mime-application-rpm_192x192.png",
        "mime-application-rpm_48x48.png",
        "mime-application-smil_192x192.png",
        "mime-application-smil_48x48.png",
        "mime-audio-aiff_192x192.png",
        "mime-audio-aiff_48x48.png",
        "mime-audio-au_192x192.png",
        "mime-audio-au_48x48.png",
        "mime-audio-ogg_192x192.png",
        "mime-audio-ogg_48x48.png",
        "mime-audio-wav_192x192.png",
        "mime-audio-wav_48x48.png",
        "mime-application-generic_192x192.png",
        "mime-application-generic_48x48.png",
        "mime-audio-generic_192x192.png",
        "mime-audio-generic_48x48.png",
        "mime-text-realtext_192x192.png",
        "mime-text-realtext_48x48.png",
        "mime-video-generic_192x192.png",
        "mime-video-generic_48x48.png",
        "mime-video-ogg_192x192.png",
        "mime-video-ogg_48x48.png")

    inst.CopyMultiFiles("../../../player/installer/common", "share", 
                        "hxplay.desktop",
                        "hxplay.applications",
                        "hxplay.keys",
                        "hxplay.mime",
                        "hxplay.xml")

# other resources
inst.CopyMultiFiles("../../../player/app/gtk/res", "share",
    "hxplay_help.html",
    "tigris.css")

# README
if project.IsDefined('HELIX_FEATURE_REAL_BRANDING'):
    inst.CopyFiles(
        ("../../../player/app/gtk/README.realplay", "README"))
else:
    inst.CopyFiles(
        ("../../../player/app/gtk/README.hxplay", "README"))

# License (for RealPlayer)
if project.IsDefined("HELIX_FEATURE_RDT"):
    inst.CopyMultiFiles("../../../player/app/doc/real", "",
            "LICENSE")
else:
    inst.CopyMultiFiles("../../../player/app/doc/helix", "",
            "LICENSE")

# XXXNH: a bit ugly, but want this to keep from breaking the build while
# these modules are in progress
#if os.path.exists(os.path.join(project.src_root_path, 
#                               "player/mime/gnome",
#                               project.output_dir,
#                               "gnomemime.so")):
#    inst.CopyModuleDlls(
#   ("player/mime/gnome", "gnomemime", "plugins/gnomemime"))

#if os.path.exists(os.path.join(project.src_root_path, 
#                               "player/mime/kde",
#                               project.output_dir,
#                               "kdemime.so")):
#    inst.CopyModuleDlls(
#   ("player/mime/kde", "kdemime", "plugins/kdemime"))




# Platform specific files
#if (platform.name == "win32"):
#    execfile("copyfiles_win32.py")
#elif (platform.type == "unix"):
#    execfile("copyfiles_unix.py")

# Cleanup
inst.CleanupTempdir()

