Class: Buildr::AS3::Compiler::Compc

Inherits:
FlexCompilerBase show all
Defined in:
lib/buildr/as3/compiler/compc.rb

Overview

Compc compiler:

compile.using(:compc)

Accepts the following options:

  • :warnings – Issue warnings when compiling. Defaults to “true”

  • :debug – Generates bytecode with debugging information. Set from the debug environment variable/global option.

  • :flexsdk – Specify an FlexSDK Artifact of the type Buildr::AS3::Flex::FlexSDK

  • :apparat – Specify an Apparat Artifact of the type Buildr::AS3::Apparat::ApparatToolkit (this is only necessary if you want to make use of the apparat-toolkit)

  • :other – Array of options passed to the compiler (e.g. [‘-compiler.incremental=true’, ‘-static-link-runtime-shared-libraries=true’, ‘-optimize’])

Direct Known Subclasses

AirCompc

Constant Summary

Constants inherited from FlexCompilerBase

FlexCompilerBase::COMPILE_OPTIONS

Instance Method Summary collapse

Methods inherited from FlexCompilerBase

#initialize, #needed?

Constructor Details

This class inherits a constructor from Buildr::AS3::Compiler::FlexCompilerBase

Instance Method Details

#compile(sources, target, dependencies) ⇒ Object

:nodoc:



42
43
44
45
# File 'lib/buildr/as3/compiler/compc.rb', line 42

def compile(sources, target, dependencies) #:nodoc:
  @compiler_jar = options[:flexsdk].compc_jar
  super
end