-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuildfile
47 lines (34 loc) · 1.36 KB
/
buildfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
require "fileutils"
require "buildr/as3" # needs buildr-as3 v0.2.30.pre
# You can use bundler to install the correct buildr gem: bundle install
# Then you can run buildr isolated: bundle exec buildr [tasks] ...
repositories.remote << "http://artifacts.devboy.org" << "http://repo2.maven.org/maven2"
THIS_VERSION = "0.1.0-SNAPSHOT"
define "xember" do
project.group = "xember"
project.version = THIS_VERSION
as3_layout = Layout::Default.new
as3_layout[:source, :main, :as3] = "src"
as3_layout[:source, :test, :as3] = "test"
define "as3", :layout => as3_layout do
compile.using( :compc, :flexsdk => flexsdk ).
with( _(:libs,"as3-signals.swc"),
_(:libs,"robotlegs-framework-v1.4.0.swc") )
test.using( :flexunit4 => true, :version => "4.1.0-8" )
test.compile.using( :main => _(:test,"FlexUnitTestRunner.as") ).
with( _(:libs, "asunit_prerelease.swc"),
_(:libs, "hamcrest-as3-only-1.1.3.swc" ) )
doc_title = "Xember v#{THIS_VERSION}"
doc.using :maintitle => doc_title,
:windowtitle => doc_title
package :swc
end
end
def flexsdk
@flexsdk ||= begin
# should be using the flex sdk version from user.properties (if it exists) or environment
flexsdk = FlexSDK.new("4.1.0.16076")
flexsdk.default_options << "-keep-as3-metadata+=Inject" << "-keep-as3-metadata+=PostConstruct"
flexsdk
end
end