Using the Flex Compilers Flex编译器的使用 第三部分

来源:互联网 发布:富爸爸现金流游戏 mac 编辑:程序博客网 时间:2024/05/16 09:12

命令行语法:

mxml和compc编译器需要许多选项。通过如下的命令你可以查看到选项列表:

mxmlc -help

这会列出a menu of choices for getting help。最常见的选择是列出基本的配置选项:

mxmlc -help list

如果想查看高级选项可以如下命令:

mxmlc -help list advanced

查看包含带有指定字符串的条目列表,可以使用如下的命令:

mxmlc -help pattern

下面的例子返回external-library-pathlibrary-path, and runtime-shared-libraries 有关的所有描述:

mxmlc -help list library

For a complete description of mxmlc options, see About the application compiler options. For a complete description of compc options, see About the component compiler options.


许多命令行选项,比如show-actionscript-warnings and accessible, have true and false values.你可以通过如下的缘分来给定这些值:

mxmlc -accessible=true -show-actionscript-warnings=true

有些选项, such as source-path, 自身就带有一个活多个选项列表。你可以通过examing help的输出来查看那些选项带有选项列表。Square brackets ([ ]) that surround options indicate that the option can take a list of one or more parameters. 

You can separate each entry in a list with a space or a comma. The syntax is as follows:

-var val1 val2          or                 -var=val1, val2

如果你不用逗号来分割条目,那么你就需要用双横线来结束一个选项列表,如下:

-var val1 val2 -- -next_option

而如果你用逗号来分割条目,那么你可以通过在最后的选项后面省略逗号的方式来结束一个列表,如下:

-var=val1, val2 -next_option

你可以用+=算符来给一个选项增加值。它将新条目增加到已经存在的选项列表的末尾而不是替换掉原有的条目。例如在library-path后面增加一个c:/myfiles的目录:

mxmlc -library-path+=c:/myfiles

原创粉丝点击