使用<compc>构建SWC </compc>

时间:2013-04-07 03:34:05

标签: actionscript-3 ant air flash-builder swc

我使用ant自动构建swc,但内置的swc只有3K。我检查了几个解决方案,但是我的build.xml没有任何区别,帮助!

我的build.xml如下所示

<compc debug="true" output="${OUTPUT_DIR}\ExternalLib.swc">
    <source-path path-element="${SOURCE_DIR}" />
    <include-sources dir="${SOURCE_DIR}" includes="*" />
    <external-library-path file="${AIR_SDK_HOME}\frameworks\libs\air\airglobal.swc" append=true />
</compc>

注意:我解压缩了swc并检查了catalog.xml。没有课程。我不知道为什么。 我的源目录结构是

src
    --PNGEncoder.as
    --Box2D
    ----Collision
    ------[Kinds of AS files]
    ----Common
    ------[Kinds of AS files]
    ----Dynamics
    ------[Kinds of AS files]
    --deng
    ----fzip
    ------[Kinds of AS files]
    ----utils
    ------[Kinds of AS files]

1 个答案:

答案 0 :(得分:1)

尝试将更新配置为:

<compc debug="true" output="${OUTPUT_DIR}/ExternalLib.swc">
    <source-path path-element="${SOURCE_DIR}/"/>
    <include-sources dir="${SOURCE_DIR}/" includes="*" />

    <include-libraries dir='${AIR_SDK_HOME}/frameworks/libs/air/' append='true'>
        <include name="airglobal.swc" />
    </include-libraries>
</compc>
相关问题