Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

如何使用PRJ EXPORTS导出整个目录

From Wiki
Jump to: navigation, search
Article Metadata

代码示例
文章
翻译:
chenziteng
最后由 hamishwillee 在 22 Dec 2011 编辑

正文:

  众所周知bld.inf中使用prj_exports指令可以在构建一个模块时将一个文件从源代码目录中拷贝到SDK中。例如可以将一个C++头文件拷贝到\epoc32\include\目录下.

PRJ_EXPORTS ../inc/HelloWorld.hrh /epoc32/include/HelloWorld.hrh

  但是,很少有人知道prj_exports也可以用来拷贝一个完整的目录结构:

prj_exports
 
:zip zip_file [destination_path]

  以:zip开头的语句指示构建工具解压指定的zip文件,并将解压的内容拷贝到指定的目标路径下。如果未指定的目标路径,那么解压的内容会被拷贝到SDK根目录。

  例如下面的指令将epoc32.zip中的内容解压到SDK根目录。

// bld.inf
...
PRJ_EXPORTS
:zip epoc32.zip \

完整的示例程序: QHelloWorld(EXIF).zip

  注: 这份代码用于演示一个通用的Symbian bld.inf语法,因此它不必非得是S60程序。实际上这是一份UIQ3程序,用S60 SDK构建它会出错,但的确能看到epoc32.zip中的文件和目录被解压到SDK中了。

参见:

"prj_exports in bld.inf file syntax"

This page was last modified on 22 December 2011, at 05:06.
164 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×