⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 make_tempdir

📁 linux下的一款播放器
💻
📖 第 1 页 / 共 2 页
字号:
# ***** BEGIN LICENSE BLOCK *****# Source last modified: $Id: make_tempdir,v 1.36.2.12 2004/12/13 09:04:05 rggammon 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.pathexecfile("../common/common.py")inst.CreateMainDir()inst.MakeDirs(    "Bin",    "common",    "codecs",    "plugins",    "share",    "doc",    "lib",    "mozilla",    "postinst")# post-install filesinst.CopyInstallerExes(("player/installer/postinst", "postinst", "Bin/setup"))inst.CopyMultiFiles("../../../player/installer/common", "postinst",    "postinst.sh",    "confscript.sh")# platform-specific filesif "sunos5" in sysinfo.family_list:    inst.CopyMultiFiles("../../../player/installer/common", "postinst",        "solarisinst.sh")# widget exe, scriptif 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 libinst.CopyModuleDlls(("player/common/gtk", "libgtkhx", "lib/libgtkhx"))# mozilla plugininst.CopyModuleDlls(    ("filesystem/memory", "memfsys", "plugins/memfsys"),    ("player/app/plugin", "nphelix", "mozilla/nphelix"))inst.CopyFiles(    ("../../../player/app/plugin/nphelix.xpt", "mozilla/nphelix.xpt"))# client coreinst.CopyModuleDlls(    ("client/core", "clntcore", "common/clntcore"),    ("client/xres", "clntxres", "common/clntxres"))# important pluginsinst.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 metafileinst.CopyModuleDlls(    ("datatype/ram/fileformat", "ramfformat", "plugins/ramfformat"),    ("datatype/ram/renderer", "ramrender", "plugins/ramrender"))# SMIL supportinst.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"))# RealPixinst.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"))# RealTextinst.CopyModuleDlls(    ("datatype/text/realtext/fileformat", "rtfformat", "plugins/rtfformat"),    ("datatype/text/realtext/renderer", "rtrender", "plugins/rtrender"))# local playbackif project.IsDefined("HELIX_FEATURE_PLAYBACK_LOCAL"):    inst.CopyModuleDlls(    ("filesystem/local", "smplfsys", "plugins/smplfsys"))# network playbackif project.IsDefined("HELIX_FEATURE_PLAYBACK_NET"):    inst.CopyModuleDlls(    ("filesystem/http", "httpfsys", "plugins/httpfsys"),    ("protocol/sdp", "hxsdp", "plugins/hxsdp"))# multicast supportinst.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 sourceif project.IsDefined("HELIX_FEATURE_VIEWSOURCE"):    inst.CopyModuleDlls(        ("client/viewsource", "vsrlocal", "plugins/vsrlocal"),        ("common/appext/vsrcplin", "vsrcplin", "plugins/vsrcplin"))# AMR supportneed_amrff = 0if 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 supportif 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 supportneed_rmff = 0if 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 supportif 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 formatif need_rmff:    inst.CopyModuleDlls(    ("datatype/rm/fileformat", "rmfformat", "plugins/rmfformat"))    # RealEvents support    inst.CopyModuleDlls(    ("datatype/rm/events/renderer", "smmrender", "plugins/smmrender"))# MP3 supportif 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 supportneed_ogg = 0if project.IsDefined("HELIX_FEATURE_AUDIO_VORBIS"):    need_ogg = 1    inst.CopyModuleDlls(    ("datatype/vorbis/renderer", "vorbisrend", "plugins/vorbisrend"))# Theora supportif project.IsDefined("HELIX_FEATURE_VIDEO_THEORA"):    need_ogg = 1    inst.CopyModuleDlls(    ("datatype/theora/renderer", "theorarend", "plugins/theorarend"))# Ogg supportif need_ogg:    inst.CopyModuleDlls(    ("datatype/ogg/fileformat", "oggfformat", "plugins/oggfformat"))# Flash supportif (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 supportif 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"))

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -