-1

我是用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]
4

1 回答 1

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>
于 2013-04-08T08:03:55.470 回答