forked from ZaaLabs/PushButtonEngine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrakefile.rb
More file actions
58 lines (46 loc) · 1.16 KB
/
rakefile.rb
File metadata and controls
58 lines (46 loc) · 1.16 KB
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
require 'rubygems'
require 'bundler'
require 'bundler/setup'
require 'rake/clean'
require 'flashsdk'
require 'asunit4'
##
# Set USE_FCSH to true in order to use FCSH for all compile tasks.
#
# You can also set this value by calling the :fcsh task
# manually like:
#
# rake fcsh run
#
# These values can also be sent from the command line like:
#
# rake run FCSH_PKG_NAME=flex3
#
# ENV['USE_FCSH'] = true
# ENV['FCSH_PKG_NAME'] = 'flex4'
# ENV['FCSH_PKG_VERSION'] = '1.0.14.pre'
# ENV['FCSH_PORT'] = 12321
##############################
# SWC
compc "bin/PushButtonEngine.swc" do |t|
t.include_sources << "src"
t.static_link_runtime_shared_libraries = false
t.keep_as3_metadata << 'TypeHint'
t.keep_as3_metadata << 'EditorData'
t.keep_as3_metadata << 'Embed'
t.use_resource_bundle_metadata = false
t.source_path << 'src'
end
desc "Compile the SWC file"
task :swc => 'bin/PushButtonEngine.swc'
##############################
# DOC
asdoc 'docs/api' do |t|
t.doc_sources << "src"
t.source_path << "src"
end
desc "Generate documentation at docs/api"
task :doc => 'docs/api'
##############################
# DEFAULT
task :default => :swc