-1
我使用ant自動構建swc,但構建的swc只有3K。我檢查了幾個解決方案,但沒有什麼區別,我的build.xml,幫助!使用<compc>構建SWC
我的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]