-
Notifications
You must be signed in to change notification settings - Fork 5
/
rakefile.rb
61 lines (53 loc) · 2.07 KB
/
rakefile.rb
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
require 'sprout'
# Optionally load gems from a server other than rubyforge:
# set_sources 'http://gems.projectsprouts.org'
sprout 'as3'
############################################
# Configure your Project Model
project_model :model do |m|
m.project_name = 'robotEyesDemoApp'
m.language = 'as3'
m.background_color = '#FFFFFF'
m.width = 800
m.height = 600
# m.use_fdb = true
# m.use_fcsh = true
# m.preprocessor = 'cpp -D__DEBUG=false -P - - | tail -c +3'
# m.preprocessed_path = '.preprocessed'
# m.src_dir = 'src'
# m.lib_dir = 'lib'
# m.swc_dir = 'lib'
# m.bin_dir = 'bin'
# m.test_dir = 'test'
# m.doc_dir = 'doc'
# m.asset_dir = 'assets'
# m.compiler_gem_name = 'sprout-flex4sdk-tool'
# m.compiler_gem_version = '>= 4.0.0'
# m.source_path << "#{m.lib_dir}/somelib"
# m.libraries << :corelib
end
desc 'Compile and debug the application'
debug :debug
desc 'Compile run the test harness'
unit :test
desc 'Compile the optimized deployment'
deploy :deploy
desc 'Create documentation'
document :doc
desc 'Compile a SWC file'
swc :swc do |t|
t.include_classes = "com.newloop.roboteyes.getA"
t.include_classes << " com.newloop.roboteyes.inViewOf"
t.include_classes << " com.newloop.roboteyes.core.RobotEyes"
t.include_classes << " com.newloop.roboteyes.core.RobotEyesChief"
t.include_classes << " com.newloop.roboteyes.core.RobotEyesMaster"
t.include_classes << " com.newloop.roboteyes.drivers.DisplayObjectDriver"
t.include_classes << " com.newloop.roboteyes.drivers.DisplayObjectDriverList"
t.include_classes << " com.newloop.roboteyes.drivers.InteractiveObjectDriver"
t.include_classes << " com.newloop.roboteyes.drivers.TextFieldDriver"
t.include_classes << " com.newloop.roboteyes.errors.RobotEyesError"
end
desc 'Compile and run the test harness for CI'
ci :cruise
# set up the default rake task
task :default => :debug