Sha256: fef003381850a03a6a9a8f49cf8d39f043ba7b36325b2c5af3b78ef02d91ad88

Contents?: true

Size: 661 Bytes

Versions: 2

Compression:

Stored size: 661 Bytes

Contents

module Buildr
  module Haxe
    module Compiler
      class HXSWF < HaxeCompilerBase

        specify :language => :haxe,
                :sources => :hx, :source_ext => :hx,
                :target_ext => "swf",
                :packaging => :swf

        COMPILE_OPTIONS << :swfversion << :swfheader << :flashstrict

        def compiler_args
          args = []
          args << "-swf #{@output}"
          args << "-swf-version #{options[:swfversion]}"
          args << "-swf-header #{options[:swfheader]}" unless options[:swfheader].nil?
          args << "--flash-strict" if options[:flashstrict]
          args
        end

      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
buildr-hx-0.0.14.pre lib/buildr/hx/compiler/hxswf.rb
buildr-hx-0.0.12.pre lib/buildr/hx/compiler/hxswf.rb