-
Notifications
You must be signed in to change notification settings - Fork 2
/
rakefile.rb
61 lines (51 loc) · 1.78 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
Dir.glob('rakefiles/*.rb').each { |r| import r }
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 = 'RelaxedEventMap'
m.language = 'as3'
m.background_color = '#FFFFFF'
m.width = 970
m.height = 550
m.keep_as3_metadata = 'Inject'
# 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}/robotlegs_v1_0" #1_0 and 1_4 both in lib
m.source_path << "#{m.lib_dir}/mockolate"
m.support_dir = 'support'
m.library_path << 'lib/asx.swc'
m.library_path << 'lib/hamcrest.swc'
m.library_path << 'lib/FLoxy.swc'
# m.libraries << :corelib
end
desc 'Compile and debug the application'
debug :debug
desc 'Compile run the test harness'
unit :test do |t|
t.source_path << "support"
end
desc 'Compile the optimized deployment'
deploy :deploy
desc 'Create documentation'
document :doc
desc 'Compile a SWC file'
swc :swc
desc 'Compile and run the test harness for CI'
ci :cruise
# set up the default rake task
task :default => :debug