Sha256: e30e0ce6cf1aedfd11f7f85bb7c3eff163421615b05d727ede0474ed05bebc30

Contents?: true

Size: 1.74 KB

Versions: 17

Compression:

Stored size: 1.74 KB

Contents

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

##############################
# Debug

# Compile the debug swf
mxmlc "<%= bin %>/<%= debug_swf_name %>" do |t|
  t.input = "<%= src %>/<%= class_name %>.as"
  t.static_link_runtime_shared_libraries = true
  t.debug = true
end

desc "Compile and run the debug swf"
flashplayer :run => "<%= bin %>/<%= debug_swf_name %>"

##############################
# Test

library :asunit4

# Compile the test swf
mxmlc "<%= bin %>/<%= test_swf_name %>" => :asunit4 do |t|
  t.input = "<%= src %>/<%= test_runner_name %>.as"
  t.static_link_runtime_shared_libraries = true
  t.source_path << 'test'
  t.debug = true
end

desc "Compile and run the test swf"
flashplayer :test => "<%= bin %>/<%= test_swf_name %>"

##############################
# SWC

compc "<%= bin %>/<%= class_name %>.swc" do |t|
  t.input_class = "<%= class_name %>"
  t.static_link_runtime_shared_libraries = true
  t.source_path << 'src'
end

desc "Compile the SWC file"
task :swc => '<%= bin %>/<%= class_name %>.swc'

##############################
# DOC

desc "Generate documentation at <%= doc %>/"
asdoc '<%= doc %>' do |t|
  t.doc_sources << "<%= src %>"
  t.exclude_sources << "<%= src %>/<%= test_runner_name %>.as"
end

##############################
# DEFAULT
task :default => :run

Version data entries

17 entries across 17 versions & 3 rubygems

Version Path
h4oflashsdk-1.0.13 lib/flashsdk/generators/templates/rakefile.rb
h4oflashsdk-1.0.12 lib/flashsdk/generators/templates/rakefile.rb
h4oflashsdk-1.0.11 lib/flashsdk/generators/templates/rakefile.rb
h4oflashsdk-1.0.10 lib/flashsdk/generators/templates/rakefile.rb
h4oflashsdk-1.0.9 lib/flashsdk/generators/templates/rakefile.rb
h4oflashsdk-1.0.8 lib/flashsdk/generators/templates/rakefile.rb
h4oflashsdk-1.0.7 lib/flashsdk/generators/templates/rakefile.rb
h4oflashsdk-1.0.6 lib/flashsdk/generators/templates/rakefile.rb
h4oflashsdk-1.0.5 lib/flashsdk/generators/templates/rakefile.rb
h4oflashsdk-1.0.4 lib/flashsdk/generators/templates/rakefile.rb
h4oflashsdk-1.0.3 lib/flashsdk/generators/templates/rakefile.rb
h4oflashsdk-1.0.2 lib/flashsdk/generators/templates/rakefile.rb
h4oflashsdk-1.0.1 lib/flashsdk/generators/templates/rakefile.rb
h4oflashsdk-1.0.0 lib/flashsdk/generators/templates/rakefile.rb
flashsdk_sqe-0.0.2 lib/flashsdk/generators/templates/rakefile.rb
flashsdk_sqe-0.0.1 lib/flashsdk/generators/templates/rakefile.rb
flashsdk-1.1.36.pre lib/flashsdk/generators/templates/rakefile.rb