×
Namespaces

Variants
Actions

如何对Open C组件进行依赖监测

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata

文章
huwell 在 04 Aug 2007 创建
最后由 hamishwillee 在 15 Dec 2011 编辑
  • 设备, 软件 版本:

S60 3rd Edition

S60 3rd Edition, FP1



  • 详细描述

为确保Open C程序能够正常运行工作,我们有必要确保运行该程序所需要的Open C插件都已安装存在。这样如果当用户安装程序时,系统发现所需Open C库不存在,则会给出警告提示。


要生成这样的依赖监测,我们需要在PKG文件中做如下描述:

  (componentUID), version-range, {"Component name for lang 1","Component name for lang n",...}


对Open C插件的监测,则可描述如下:

  (0x20009a80), 1, 0, 0, {"Symbian OS PIPS"}
 
(0x20009aa2), 1, 0, 0, {"Symbian OS STDIOSERVER"}
 
(0x10281f34), 1, 0, 0, {"Open C LIBSSL"}
 
(0x10281f2c), 1, 0, 0, {"Open C GLIBRARY"}


上述示例中,描述了4个OpenC组件依赖监测:

  'Symbian OS STDIOSERVER' (installed from stdioserver.sis), 
 
'Symbian OS PIPS' (pips_s60_wp.sis),
 
'Open C LIBSSL' (openc_ssl.sis),
 
'Open C GLIBRARY' (openc_glib.sis),


依赖监测也可以正对特定组件的版本进行:

(0x0123BABE), 1, 2, 0 ~ *, *, *, {"ComponentName"} ; Version greater than or equal to 1.2.0 is required
 
(0x0123BABE), 1, 2, 0 ~ 2, 0, 0, {"ComponentName"} ; Version from 1.2.0 to 2.00 required
 
(0x0123BABE), *, *, * ~ 2, 0, 0, {"ComponentName"} ; Any older version up to (and including) 2.0.0 is required
This page was last modified on 15 December 2011, at 13:04.
37 page views in the last 30 days.
×