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

📄 symbian.pcf

📁 symbian 下的helix player源代码
💻 PCF
📖 第 1 页 / 共 2 页
字号:
#
# ***** BEGIN LICENSE BLOCK *****
# Version: RCSL 1.0/RPSL 1.0
#
# Portions Copyright (c) 1995-2002 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
# Version 1.0 (the "RPSL") available at
# http://www.helixcommunity.org/content/rpsl unless you have licensed
# the file under the RealNetworks Community Source License Version 1.0
# (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.
#
# 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 *****


# root directory for source relative to current directory; empty means current directory
try:
    sourceRoot = sourceRoot
except:
    sourceRoot = ""

#
# get list of files for installation (in app_files, cfg_files, lib_files, mdl_files)
#
execfile("install.pcf")
installName = GetInstallName('rplay')

#
# ************* local defines *************
#

# debug feature for debugging/testing mmc lock/unlock related functionality
# project.AddDefines('SYMBIANPLAYER_INCLUDE_LOCK_DRIVE_UI')

# for about box
project.AddDefines('SYMBIANPLAYER_INSTALL_NAME=%s' % installName)


#
# ************* MBM file generation *************
#

mbmList = ["audio_icon_left.bmp",
"audio_icon_right.bmp",
"background_logo.bmp",
"file_folder.bmp",
"file_folder_mask.bmp",
"file_local.bmp",
"file_local_mask.bmp",
"file_mmc.bmp",
"file_mmc_broken.bmp",
"file_mmc_broken_mask.bmp",
"file_mmc_mask.bmp",
"file_network.bmp",
"file_network_mask.bmp",
"fileview_mmc_tab.bmp",
"fileview_mmc_tab_mask.bmp",
"fileview_local_tab.bmp",
"fileview_local_tab_mask.bmp",
"mark_check.bmp",
"mark_check_mask.bmp",
"qgn_menu_rp_grey_cxt.bmp",
"qgn_menu_rp_grey_cxt_mask.bmp",
"qgn_prop_media_sub.bmp",
"qgn_prop_media_sub_mask.bmp",
"qgn_indi_live_disabled.bmp",
"qgn_indi_live_disabled_mask.bmp",
"qgn_indi_live_enabled.bmp",
"qgn_indi_live_enabled_mask.bmp",
"qgn_indi_paused.bmp",
"qgn_indi_paused_mask.bmp",
"qgn_prop_sett_network_sub.bmp",
"qgn_prop_sett_network_sub_mask.bmp",
"qgn_prop_sett_network_tab.bmp",
"qgn_prop_mmc_locked_small.bmp",
"qgn_prop_mmc_locked_small_mask.bmp",
"qgn_prop_mmc_non_small.bmp",
"qgn_prop_mmc_non_small_mask.bmp",
"qgn_prop_phone_small.bmp",
"qgn_prop_phone_small_mask.bmp",
"qgn_prop_mmc_small.bmp",
"qgn_prop_mmc_small_mask.bmp",
"qgn_prop_network_sub.bmp",
"qgn_prop_network_sub_mask.bmp",
"qgn_prop_sett_network_tab_mask.bmp",
"qgn_prop_sett_playback_sub.bmp",
"qgn_prop_sett_playback_sub_mask.bmp",
"qgn_prop_sett_playback_tab.bmp",
"qgn_prop_sett_playback_tab_mask.bmp",
"qgn_prop_sett_proxy_sub.bmp",
"qgn_prop_sett_proxy_sub_mask.bmp",
"qgn_prop_sett_proxy_tab.bmp",
"qgn_prop_sett_proxy_tab_mask.bmp",
"qgn_prop_sett_video_sub.bmp",
"qgn_prop_sett_video_sub_mask.bmp",
"qgn_prop_sett_video_tab.bmp",
"qgn_prop_sett_video_tab_mask.bmp",
"vol_mute.bmp",
"vol_mute_mask.bmp"]


mbmBase = sourceRoot + "platform/symbian/images/"
mbmList = AddPrefixForEach(mbmBase, mbmList)

if (not os.path.exists(project.output_dir)):
    os.mkdir(project.output_dir)
mbmFileOut =  project.output_dir + "/realplayer.mbm"

mbmHeaderOut = mbmBase + "realplayer.mbg"

# XXXLCM mbm file and includes output to dir where source is; consider revising!
project.symbianUtil.create_mbm_file(mbmFileOut, mbmHeaderOut, "/c8", mbmList)

# add include for generated mbm header file
mbmInclude = mbmBase[:-1] # get rid of trailing '/'
project.AddIncludes(mbmInclude)



#
# ************* resource file generation *************
#
def CreateResourceIncludeFile(outputDir):
#     Writes out include file with preprocessor defines for inclusion
#     by app rss file. We do this because the rss generation tool does
#     not allow us to pass macros on the command line.
    name = os.path.join(outputDir, "realplayer_rss.inc")
    file = open(name, 'w')
    file.write("/* GENERATED FILE - DO NOT EDIT */\n")
    if project.IsDefined("HELIX_FEATURE_DPRINTF"):
        file.write("#define HELIX_FEATURE_DPRINTF\n");
    file.write("\n")
    file.close();

resourceSourceDir = os.path.join(sourceRoot,  "platform\\symbian\\resource")
CreateResourceIncludeFile(resourceSourceDir)

resourceFiles = ["platform/symbian/resource/realplayer.rss",
"platform/symbian/resource/realplayer_caption.rss"]
resourceFiles = AddPrefixForEach(sourceRoot, resourceFiles)
apply(project.symbianUtil.AddResourceFiles, resourceFiles)

project.symbianUtil.AddResourceIncludes(sourceRoot + "platform/symbian/resource")




#
# ************* aif  file generation *************
#
def CreateAIFIncludeFile(outputDir):
#     Writes out include file with preprocessor defines for inclusion
#     by AIF rss file. We do this because the aif generation tool
#     (epocaif.pl) does not allow us to pass macros on the command
#     line.
    name = os.path.join(outputDir, "realplayer_aif.inc")
    file = open(name, 'w')
    file.write("/* GENERATED FILE - DO NOT EDIT */\n")
    if project.IsDefined("HELIX_FEATURE_3GPP"):
        file.write("#define HELIX_FEATURE_3GPP\n");
    if project.IsDefined("HELIX_FEATURE_AUDIO_MPA_LAYER3"):
        file.write("#define HELIX_FEATURE_AUDIO_MPA_LAYER3\n");
    if project.IsDefined("HELIX_FEATURE_SMIL2"):
        file.write("#define HELIX_FEATURE_SMIL2\n");
    file.write("\n")
    file.close();

aifSourceDir = os.path.join(sourceRoot, "platform\\symbian\\aif")

# generate include file first
CreateAIFIncludeFile(aifSourceDir)

aifIcons = "qgn_menu_rp_cxt.bmp qgn_menu_rp_cxt_mask.bmp qgn_menu_rp_lst.bmp qgn_menu_rp_lst_mask.bmp"
aifIconList = string.split(aifIcons)

aif = SymbianAIF(aifSourceDir, "realplayer_aif.rss", aifIconList)
aif.AddIncludeDir(sourceRoot + "platform\\symbian\\resource")
aif.AddIncludeDir(aifSourceDir)


aifOutputDir = project.output_dir
EnsureDirExists(aifOutputDir)

aifOutputName = os.path.join(aifOutputDir, "realplayer.aif")
aif.Generate(aifOutputName)




#
# ************* pkg file generation ***************
#

 

pkg = SymbianPkg(installName, "RealPlayer", ["EN"])

pkg.SetHeader(['RealOne Player'], 0x10009D06, 4, 0, 0)

pkg.AddPackageDependency(0x101F6F88, 0, 0, 0, 'Series60ProductID')

for file in app_files:
    pkg.AddFile(file)

for file in cfg_files:
    pkg.AddFile(file, 'data\%s' % os.path.basename(file))

for file in lib_files:
    pkg.AddFile(file, 'lib\\%s' % os.path.basename(file))

for file in mdl_files:
    pkg.AddFile(file, "!:\\system\\recogs\\hxsymrecog.mdl")

pkg.Generate()




#
# ************* module inclues *************
#

# module includes relative to build root
moduleIncludeList = ["common/runtime/pub",
"clientapps_rn/symbianplayer",
"client/include",
"datatype/rm/include",
"common/container/pub",
"common/util/pub",
"common/fileio/pub",
"common/include",
"common/dbgtool/pub",
"common/dbgtool/pub/platform/symbian",
"common/system/pub",
"video/sitelib/pub",
"video/sitelib/pub/platform/symbian"]

apply(project.AddModuleIncludes, moduleIncludeList)





#
# ************* local inclues *************
#

# local includes relative to current dir
localIncludeList = ["platform/symbian",
"platform/symbian/resource",
"platform/symbian/util",
"platform/symbian/file/pub",
"platform/symbian/misc",
"platform/symbian/help",
"util/pub",
"debug/pub"]

# local includes that are debug/release specific
if (project.IsDefined("HELIX_FEATURE_DPRINTF")):
    localIncludeList.append("debug/pub/dbg")
else:
    localIncludeList.append("debug/pub/rel")

localIncludeList = AddPrefixForEach(sourceRoot, localIncludeList)

apply(project.AddIncludes, localIncludeList)






#
# ************* local sources *************
#

sourceList = ["platform/symbian/chxavactivewatcher.cpp",
"platform/symbian/chxavaccesspointdb.cpp",
"platform/symbian/chxavaccesspointsettingsitem.cpp",
"platform/symbian/chxavnetconnectui.cpp",
"platform/symbian/chxavselectsettingsview.cpp",
"platform/symbian/chxavselectsettingsviewwindow.cpp",
"platform/symbian/chxavsettingsview.cpp",
"platform/symbian/chxavsettingsviewwindow.cpp",
"platform/symbian/chxavsettingsdata.cpp",
"platform/symbian/chxavsettingslist.cpp",
"platform/symbian/chxavcallback.cpp",
"platform/symbian/chxavclipinfolist.cpp",

⌨️ 快捷键说明

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