Sha256: 99c408a14d52d5f49b283ceba0be5b192deecd445116cd6f5cb94896e2296d9c

Contents?: true

Size: 1.93 KB

Versions: 1

Compression:

Stored size: 1.93 KB

Contents

require 'rubygems'
require 'asproject'

# NOTE: The asclass tools will load this file
# and use these constants...
SRC_DIR             = 'src'
TEST_DIR            = 'test'
LIB_DIR             = 'lib'
BIN_DIR             = 'bin'
SKIN_DIR            = 'assets/img/skins'
DEFAULT_TEMPLATES   = ['as2']

############################################
# Launch the Application using Flash Player 8

task :run => [:compile_main]

# Assign this to the default task
task :default => [:run]

AsProject::FlashPlayer.new(:run) do |t|
  t.version = 8
  t.swf = BIN_DIR + '/<%= project_name %>.swf'
end

############################################
# Launch the Test Suites using Flash Player 8

task :test => [:compile_tests]

AsProject::FlashPlayer.new(:test) do |t|
  t.version = 8
  t.swf = BIN_DIR + '/<%= project_name %>Runner.swf'
end

############################################
# Compile your library using SWFMill

AsProject::SWFMill.new(:compile_skin) do |t|
  t.input = SKIN_DIR + '/default'
  t.template = SKIN_DIR + '/SWFMillTemplate.erb'
  t.output = BIN_DIR + '/<%= project_name %>Skin.swf'
end

############################################
# Compile your Application using HAMTASC

task :compile_main => [:compile_skin]

AsProject::MTASC.new(:compile_main) do |t|
  t.input = '<%= project_name %>'
  t.main = true
  t.version = 8
  t.frame = 2
  t.swf = BIN_DIR + '/<%= project_name %>Skin.swf'
  t.out = BIN_DIR + '/<%= project_name %>.swf'
  t.cp << SRC_DIR
end

############################################
# Compile your Application using HAMTASC

AsProject::MTASC.new(:compile_tests) do |t|
  t.input = '<%= project_name %>Runner'
  t.version = 8
  t.frame = 2
  t.main = true
  t.swf = BIN_DIR + '/<%= project_name %>Skin.swf'
  t.out = BIN_DIR + '/<%= project_name %>Runner.swf'
  t.cp << SRC_DIR
  t.cp << TEST_DIR
  t.cp << LIB_DIR + '/asunit'
end

############################################

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
asproject-0.1.89 templates/asproject/as2/project/rakefile.rb