Skip to content

Commit f0e452e

Browse files
committed
Add property for Flex 3 SDK and add conditional SDK path to compile-for-platform target to use Flex 4 or Flex 3 SDK as needed.
1 parent c0b802a commit f0e452e

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

build/build.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ swiz.namespace = http://swiz.swizframework.org
66

77
# flex sdk
88
flex.sdk = /Applications/Adobe\ Flash\ Builder\ 4\ Plug-in/sdks/4.0.0
9+
flex3.sdk = /Applications/Adobe\ Flash\ Builder\ 4\ Plug-in/sdks/3.6.0
910

1011
# Unit tests
1112
test.application.name = SwizTestRunner.mxml

build/build.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,12 @@
123123
<property name="isFlex3" value="false"/>
124124
<property name="isFlex4" value="true"/>
125125

126+
<condition property="targetSDK" value="${flex.sdk}/frameworks" else="${flex3.sdk}/frameworks">
127+
<equals arg1="${isFlex4}" arg2="true" />
128+
</condition>
129+
130+
<echo message="sdkpath=${targetSDK}" />
131+
126132
<!-- set up list of classes to include in library -->
127133
<fileset id="src.include.fileset" dir="${src.loc}">
128134
<include name="**/*.as" />
@@ -154,7 +160,7 @@
154160
<compiler.define name="CONFIG::flex4" value="${isFlex4}" />
155161

156162
<!-- Configure the flex framework libraries as external link dependencies -->
157-
<external-library-path dir="${FLEX_HOME}/frameworks" append="true">
163+
<external-library-path dir="${targetSDK}" append="true">
158164
<include name="libs" />
159165
<include name="locale/{locale}" />
160166
</external-library-path>

0 commit comments

Comments
 (0)