Skip to content

Commit

Permalink
updated README, build file
Browse files Browse the repository at this point in the history
  • Loading branch information
Karim Piyar Ali committed Aug 5, 2015
1 parent 04ffcce commit af8e499
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,14 @@ Pull requests and issues are welcome.

#### Building

Build Requirements:
##### Requirements:
- Mac OS X
- XCode
- Ant
- [AIR SDK](http://www.adobe.com/devnet/air/air-sdk-download.html)

From the root of the folder, run `ant`.
##### Building:
- Add the path to your AIR SDK in `build.config` (under `air.sdk`)
- From the root of the folder, run `ant`.

After build completes, the native extension will be in `bin/FacebookAudienceNetwork.ane`.
2 changes: 1 addition & 1 deletion build.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
flex.sdk = {PATH_TO_AIR_SDK}
air.sdk = {PATH_TO_AIR_SDK}
build.dir = ./build
output.dir = ./bin
ios.dir = ./ios
Expand Down
6 changes: 3 additions & 3 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@
</pathconvert>

<!-- Compile create .swc -->
<exec executable="${flex.sdk}/bin/compc" failonerror="true">
<exec executable="${air.sdk}/bin/compc" failonerror="true">
<arg line='-source-path ${actionscript.dir}/src'/>
<arg line='-output ${build.dir}/swc/${actionscript.output.name}.swc'/>
<arg line='-swf-version=14'/>
<arg line='-external-library-path+="${flex.sdk}/frameworks/libs/air/airglobal.swc"'/>
<arg line='-external-library-path+="${air.sdk}/frameworks/libs/air/airglobal.swc"'/>
<arg line='-include-classes ${actionscript.classlist}'/>
</exec>

Expand All @@ -119,7 +119,7 @@
<mkdir dir="${output.dir}/"/>

<!-- Compile ANE -->
<exec executable="${flex.sdk}/bin/adt" failonerror="true" dir="./">
<exec executable="${air.sdk}/bin/adt" failonerror="true" dir="./">
<arg value="-package"/>
<arg value="-target"/>
<arg value="ane"/>
Expand Down

0 comments on commit af8e499

Please sign in to comment.