buildr-hx 0.0.9.pre → 0.0.12.pre

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.9.pre
1
+ 0.0.12.pre
data/buildr-hx.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "buildr-hx"
8
- s.version = "0.0.9.pre"
8
+ s.version = "0.0.12.pre"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Dominic Graefen"]
12
- s.date = "2011-11-19"
12
+ s.date = "2012-02-19"
13
13
  s.description = "Build like you code - now supporting haXe"
14
14
  s.email = "dominic @nospam@ devboy.org"
15
15
  s.extra_rdoc_files = [
@@ -41,7 +41,7 @@ Gem::Specification.new do |s|
41
41
  "lib/buildr/hx/core/haxe_lib.rb",
42
42
  "lib/buildr/hx/packaging.rb",
43
43
  "lib/buildr/hx/packaging/haxelib.rb",
44
- "lib/buildr/hx/project.rb",
44
+ "lib/buildr/hx/packaging/hxlib.rb",
45
45
  "rake/jeweler.rb",
46
46
  "rake/jeweler_prerelease_tasks.rb",
47
47
  "rake/pre_release_gemspec.rb",
data/buildr-hx.iml CHANGED
@@ -5,6 +5,34 @@
5
5
  <content url="file://$MODULE_DIR$" />
6
6
  <orderEntry type="jdk" jdkName="RVM: ruby-1.9.2-p180" jdkType="RUBY_SDK" />
7
7
  <orderEntry type="sourceFolder" forTests="false" />
8
+ <orderEntry type="library" scope="PROVIDED" name="atoulme-Antwrap (v0.7.1, RVM: ruby-1.9.2-p180) [gem]" level="application" />
9
+ <orderEntry type="library" scope="PROVIDED" name="builder (v2.1.2, RVM: ruby-1.9.2-p180) [gem]" level="application" />
10
+ <orderEntry type="library" scope="PROVIDED" name="buildr (v1.4.6, RVM: ruby-1.9.2-p180) [gem]" level="application" />
11
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v1.0.21, RVM: ruby-1.9.2-p180) [gem]" level="application" />
12
+ <orderEntry type="library" scope="PROVIDED" name="ci_reporter (v1.6.5, RVM: ruby-1.9.2-p180) [gem]" level="application" />
13
+ <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.1.2, RVM: ruby-1.9.2-p180) [gem]" level="application" />
14
+ <orderEntry type="library" scope="PROVIDED" name="git (v1.2.5, RVM: ruby-1.9.2-p180) [gem]" level="application" />
15
+ <orderEntry type="library" scope="PROVIDED" name="highline (v1.5.1, RVM: ruby-1.9.2-p180) [gem]" level="application" />
16
+ <orderEntry type="library" scope="PROVIDED" name="hoe (v2.3.3, RVM: ruby-1.9.2-p180) [gem]" level="application" />
17
+ <orderEntry type="library" scope="PROVIDED" name="jeweler (v1.5.2, RVM: ruby-1.9.2-p180) [gem]" level="application" />
18
+ <orderEntry type="library" scope="PROVIDED" name="json_pure (v1.4.3, RVM: ruby-1.9.2-p180) [gem]" level="application" />
19
+ <orderEntry type="library" scope="PROVIDED" name="minitar (v0.5.3, RVM: ruby-1.9.2-p180) [gem]" level="application" />
20
+ <orderEntry type="library" scope="PROVIDED" name="multi_json (v1.0.3, RVM: ruby-1.9.2-p180) [gem]" level="application" />
21
+ <orderEntry type="library" scope="PROVIDED" name="net-sftp (v2.0.4, RVM: ruby-1.9.2-p180) [gem]" level="application" />
22
+ <orderEntry type="library" scope="PROVIDED" name="net-ssh (v2.0.23, RVM: ruby-1.9.2-p180) [gem]" level="application" />
23
+ <orderEntry type="library" scope="PROVIDED" name="rake (v0.8.7, RVM: ruby-1.9.2-p180) [gem]" level="application" />
24
+ <orderEntry type="library" scope="PROVIDED" name="rjb (v1.3.3, RVM: ruby-1.9.2-p180) [gem]" level="application" />
25
+ <orderEntry type="library" scope="PROVIDED" name="rspec (v2.1.0, RVM: ruby-1.9.2-p180) [gem]" level="application" />
26
+ <orderEntry type="library" scope="PROVIDED" name="rspec-core (v2.1.0, RVM: ruby-1.9.2-p180) [gem]" level="application" />
27
+ <orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v2.1.0, RVM: ruby-1.9.2-p180) [gem]" level="application" />
28
+ <orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v2.1.0, RVM: ruby-1.9.2-p180) [gem]" level="application" />
29
+ <orderEntry type="library" scope="PROVIDED" name="rubyforge (v2.0.3, RVM: ruby-1.9.2-p180) [gem]" level="application" />
30
+ <orderEntry type="library" scope="PROVIDED" name="rubyzip (v0.9.4, RVM: ruby-1.9.2-p180) [gem]" level="application" />
31
+ <orderEntry type="library" scope="PROVIDED" name="shoulda (v2.11.3, RVM: ruby-1.9.2-p180) [gem]" level="application" />
32
+ <orderEntry type="library" scope="PROVIDED" name="simplecov (v0.5.4, RVM: ruby-1.9.2-p180) [gem]" level="application" />
33
+ <orderEntry type="library" scope="PROVIDED" name="simplecov-html (v0.5.3, RVM: ruby-1.9.2-p180) [gem]" level="application" />
34
+ <orderEntry type="library" scope="PROVIDED" name="simplecov-rcov (v0.2.3, RVM: ruby-1.9.2-p180) [gem]" level="application" />
35
+ <orderEntry type="library" scope="PROVIDED" name="xml-simple (v1.0.12, RVM: ruby-1.9.2-p180) [gem]" level="application" />
8
36
  </component>
9
37
  </module>
10
38
 
data/lib/buildr/hx.rb CHANGED
@@ -2,5 +2,4 @@ require 'buildr'
2
2
 
3
3
  require File.dirname(__FILE__) + '/../buildr/hx/core'
4
4
  require File.dirname(__FILE__) + '/../buildr/hx/compiler'
5
- require File.dirname(__FILE__) + '/../buildr/hx/project'
6
5
  require File.dirname(__FILE__) + '/../buildr/hx/packaging'
@@ -3,7 +3,7 @@ module Buildr
3
3
  module Compiler
4
4
  class HaxeCompilerBase < Buildr::Compiler::Base
5
5
 
6
- COMPILE_OPTIONS = [:warnings, :debug, :args, :main, :output]
6
+ COMPILE_OPTIONS = [:warnings, :debug, :args, :main, :output, :hxml, :resources, :flags]
7
7
 
8
8
  def initialize(project, options)
9
9
  super
@@ -13,56 +13,66 @@ module Buildr
13
13
 
14
14
  def compile(sources, target, dependencies)
15
15
  check_options options, COMPILE_OPTIONS
16
- @output = @project.get_hx_output(is_test(sources,target,dependencies))
16
+ @output = get_output_file(target)
17
17
  args = ["haxe"]
18
18
  args += generate_source_args sources
19
19
  args += generate_dependency_args dependencies
20
20
  args += base_compiler_args
21
21
  args += compiler_args if respond_to? :compiler_args
22
22
  unless Buildr.application.options.dryrun
23
+ create_hxml args, is_test(sources,target,dependencies)
24
+ appwd = Dir.pwd
25
+ Dir.chdir @project.base_dir
23
26
  sh args.join " "
27
+ Dir.chdir appwd
24
28
  end
25
29
  end
26
30
 
27
31
  def needed?(sources, target, dependencies)
28
- return true unless File.exist?(@project.get_hx_output(is_test(sources,target,dependencies)))
29
- source_files = Dir.glob(sources.collect{ |source| "#{source}/**/*"})
30
- dep_files = dependencies.collect{ |dep|
32
+ return true unless File.exist? get_output_file(target)
33
+ source_files = Dir.glob(sources.collect { |source| "#{source}/**/*" })
34
+ dep_files = dependencies.collect { |dep|
31
35
  File.directory?(dep) ? Dir.glob("#{dep}/**/*") : dep
32
36
  }.flatten
33
- maxtime = (source_files + dep_files).collect{ |file| File.stat(file).mtime }.max || Time.at(0)
34
- maxtime > File.stat(@project.get_hx_output(is_test(sources,target,dependencies))).mtime
37
+ maxtime = (source_files + dep_files).collect { |file| File.stat(file).mtime }.max || Time.at(0)
38
+ maxtime > File.stat(get_output_file(target)).mtime
35
39
  end
36
40
 
37
- private
41
+ protected
38
42
 
39
43
  def base_compiler_args #:nodoc:
40
44
  args = []
41
45
  args << "-main #{options[:main]}"
42
46
  args << '-debug' if options[:debug]
47
+ args += options[:resources].map{|id,path| "-resource #{path}@#{id.to_s}"} unless options[:resources].nil?
48
+ args += options[:flags].map{|flag| "-D #{flag.to_s}"} unless options[:flags].nil?
43
49
  args + Array(options[:args])
44
50
  end
45
51
 
46
52
  def generate_source_args sources
47
- sources.collect { |source| "-cp #{source}"}
53
+ sources.collect { |source| "-cp #{source}" }
48
54
  end
49
55
 
50
56
  def generate_dependency_args dependencies
51
57
  args = []
52
- dependencies.collect { |dep|
58
+ dependencies.each { |dep|
53
59
  spec = HaxeLib.path_to_spec(dep)
54
60
  if spec
55
61
  args << "-lib #{spec[:id]}:#{spec[:version]}"
56
- elsif File.extname(dep) == ".zip" && Buildr.zip(dep).contain?("haxelib.xml")
57
- xml = Zip::ZipFile.open(dep) { |zip| zip.file.read("haxelib.xml") }
58
- require 'rexml/document'
59
- doc = REXML::Document.new(xml)
60
- id = doc.root.attribute("name")
61
- version = doc.root.elements['version'].attribute("name")
62
- fail "Could not install #{id}:#{version}." unless install_haxelib_zip dep
63
- args << "-lib #{id}:#{version}"
64
- else
65
- args << "-cp #{dep}"
62
+ #elsif File.extname(dep) == ".zip" && Buildr.zip(dep).contain?("haxelib.xml")
63
+ # xml = Zip::ZipFile.open(dep) { |zip| zip.file.read("haxelib.xml") }
64
+ # require 'rexml/document'
65
+ # doc = REXML::Document.new(xml)
66
+ # id = doc.root.attribute("name")
67
+ # version = doc.root.elements['version'].attribute("name")
68
+ # fail "Could not install #{id}:#{version}." unless install_haxelib_zip dep
69
+ # args << "-lib #{id}:#{version}"
70
+ elsif File.extname(dep) == ".swf"
71
+ args << "-swf-lib #{dep}"
72
+ elsif File.extname(dep) == ".hxlib"
73
+ args += File.read(dep).split("\n").map{ |dep|
74
+ dep.start_with?("-cp") ? "-cp #{File.join(root_project_dir, dep.gsub("-cp ", "").strip )}" : dep
75
+ }
66
76
  end
67
77
  }
68
78
  args
@@ -72,9 +82,43 @@ module Buildr
72
82
  system "haxelib test #{zip}"
73
83
  end
74
84
 
75
- def is_test( sources, target, dependencies )
85
+ def is_test(sources, target, dependencies)
76
86
  test_task = @project.test.compile
77
- sources==test_task.sources && dependencies==test_task.dependencies.collect{|dep|dep.to_s} && target==test_task.target.to_s
87
+ sources==test_task.sources && dependencies==test_task.dependencies.collect { |dep| dep.to_s } && target==test_task.target.to_s
88
+ end
89
+
90
+ def get_output_file target
91
+ File.join(target.to_s, options["output"] || "#{@project.name.split(":").last}.#{self.class.packaging.to_s}")
92
+ end
93
+
94
+ def create_hxml( args, test )
95
+ file = File.join(@project.base_dir, options[:hxml] || test ? "test.hxml" : "compile.hxml")
96
+ puts "Creating hxml '#{file}'"
97
+ with_path = ["cp", "swf-lib", "swf", "js", "as3", "cpp", "neko", "xml", "swf9", "resource"].map{|p|"-#{p}"}
98
+ File.open(file, 'w') {|f| f.write(
99
+ args.reject{|a| a == "haxe"}.
100
+ map{|a|
101
+ cmd = a.split(" ").first
102
+ if with_path.include? cmd
103
+ path = a.gsub(cmd,"").strip
104
+ path, id = path.split("@") if cmd == "-resource"
105
+ path = relative_path(path,@project.base_dir)
106
+ entry = "#{cmd} #{path}"
107
+ id.nil? ? entry : entry + "@#{id}"
108
+ else
109
+ a
110
+ end
111
+ }.
112
+ join("\n")
113
+ ) }
114
+ end
115
+
116
+ def relative_path path, from
117
+ Pathname.new(path).relative_path_from(Pathname.new(from)).to_s
118
+ end
119
+
120
+ def root_project_dir
121
+ Buildr.application.instance_eval { find_rakefile_location.last }
78
122
  end
79
123
 
80
124
  end
@@ -1,16 +1,24 @@
1
+ require "fileutils"
2
+ require "pathname"
3
+
1
4
  module Buildr
2
5
  module Haxe
3
6
  module Compiler
4
- class HXLib < Buildr::Compiler::Base
7
+ class HXLib < HaxeCompilerBase
5
8
 
6
9
  specify :language => :haxe,
7
- :sources => :hx, :source_ext => :hx
10
+ :sources => :hx, :source_ext => :hx,
11
+ :packaging => :hxlib
8
12
 
9
13
  def compile(sources, target, dependencies)
10
- end
11
-
12
- def needed?(sources, target, dependencies)
13
- true
14
+ dependency_list = (generate_dependency_args(dependencies) + generate_source_args(sources)).
15
+ reject{|dep| !( dep.start_with?("-cp") || dep.start_with?("-lib") ) }.
16
+ map{ |dep|
17
+ dep.start_with?("-cp") ? "-cp #{relative_path( dep.gsub("-cp ", "").strip, root_project_dir )}" : dep
18
+ }
19
+ file = get_output_file(target)
20
+ FileUtils.mkdir_p File.dirname(file)
21
+ File.open(file, 'w') {|f| f.write( dependency_list.join("\n") ) }
14
22
  end
15
23
 
16
24
  end
@@ -8,11 +8,15 @@ module Buildr
8
8
  :target_ext => "swf",
9
9
  :packaging => :swf
10
10
 
11
- COMPILE_OPTIONS << :version
11
+ COMPILE_OPTIONS << :swfversion << :swfheader << :flashstrict
12
12
 
13
13
  def compiler_args
14
- [ "-swf #{@output}",
15
- "-swf-version #{options[:version]}" ]
14
+ args = []
15
+ args << "-swf #{@output}"
16
+ args << "-swf-version #{options[:swfversion]}"
17
+ args << "-swf-header #{options[:swfheader]}" unless options[:swfheader].nil?
18
+ args << "--flash-strict" if options[:flashstrict]
19
+ args
16
20
  end
17
21
 
18
22
  end
@@ -6,6 +6,7 @@ class HaxeLib < Rake::FileTask
6
6
 
7
7
  def spec_to_path spec
8
8
  id, version = spec.split(":")
9
+ fail("No version number provided for haxelib '#{id}'!") if version.nil?
9
10
  File.join( home, id, version.gsub(".",",") )
10
11
  end
11
12
 
@@ -58,7 +59,6 @@ end
58
59
 
59
60
  module Buildr
60
61
  def haxelib spec
61
- haxelib = HaxeLib.lookup(spec)
62
- haxelib
62
+ HaxeLib.lookup(spec)
63
63
  end
64
64
  end
@@ -20,6 +20,7 @@
20
20
  # THE SOFTWARE.
21
21
  #
22
22
  require File.dirname(__FILE__)+"/packaging/haxelib"
23
+ require File.dirname(__FILE__)+"/packaging/hxlib"
23
24
 
24
25
  class Buildr::Project
25
26
  include Buildr::Haxe::Packaging
@@ -0,0 +1,78 @@
1
+ #
2
+ # Copyright (C) 2011 by Dominic Graefen / http://devboy.org
3
+ #
4
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ # of this software and associated documentation files (the "Software"), to deal
6
+ # in the Software without restriction, including without limitation the rights
7
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ # copies of the Software, and to permit persons to whom the Software is
9
+ # furnished to do so, subject to the following conditions:
10
+ #
11
+ # The above copyright notice and this permission notice shall be included in
12
+ # all copies or substantial portions of the Software.
13
+ #
14
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
+ # THE SOFTWARE.
21
+ #
22
+
23
+ require 'buildr'
24
+ require 'fileutils'
25
+
26
+ module Buildr
27
+ module AS3
28
+ module Packaging
29
+
30
+ class HxlibTask < Rake::FileTask
31
+
32
+ include Extension
33
+
34
+ attr_accessor :target_hxlib, :src_hxlib
35
+
36
+ def initialize(*args) #:nodoc:
37
+ super
38
+ enhance do
39
+ fail "File not found: #{src_hxlib}" unless File.exists? src_hxlib
40
+ FileUtils.cp(src_hxlib, target_hxlib)
41
+ end
42
+ end
43
+
44
+ def needed?
45
+ return true unless File.exists?(target_hxlib)
46
+ File.stat(src_hxlib).mtime > File.stat(target_hxlib).mtime
47
+ end
48
+
49
+ first_time do
50
+ desc 'create hxlib package task'
51
+ Project.local_task('package_hxlib')
52
+ end
53
+
54
+ before_define do |project|
55
+ HxlibTask.define_task('package_hxlib').tap do |package_hxlib|
56
+ package_hxlib
57
+ end
58
+ end
59
+
60
+ end
61
+
62
+ def package_hxlib(&block)
63
+ task("package_hxlib").enhance &block
64
+ end
65
+
66
+ protected
67
+
68
+ def package_as_hxlib(file_name)
69
+ fail("Package types don't match! :hxlib vs. :#{compile.packaging.to_s}") unless compile.packaging == :hxlib
70
+ HxlibTask.define_task(file_name).tap do |hxlib|
71
+ hxlib.src_hxlib = File.join(compile.target.to_s, compile.options[:output] || "#{project.name.split(":").last}.#{compile.packaging.to_s}")
72
+ hxlib.target_hxlib = file_name
73
+ end
74
+ end
75
+
76
+ end
77
+ end
78
+ end
metadata CHANGED
@@ -1,19 +1,19 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: buildr-hx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9.pre
5
- prerelease: 6
4
+ version: 0.0.12.pre
5
+ prerelease: 7
6
6
  platform: ruby
7
7
  authors:
8
8
  - Dominic Graefen
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-11-19 00:00:00.000000000Z
12
+ date: 2012-02-19 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: buildr
16
- requirement: &2158602980 !ruby/object:Gem::Requirement
16
+ requirement: &2155535100 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 1.4.6
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *2158602980
24
+ version_requirements: *2155535100
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: shoulda
27
- requirement: &2158601840 !ruby/object:Gem::Requirement
27
+ requirement: &2155536540 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *2158601840
35
+ version_requirements: *2155536540
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: bundler
38
- requirement: &2158599820 !ruby/object:Gem::Requirement
38
+ requirement: &2155537980 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 1.0.0
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *2158599820
46
+ version_requirements: *2155537980
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: jeweler
49
- requirement: &2158598320 !ruby/object:Gem::Requirement
49
+ requirement: &2155539420 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 1.5.2
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *2158598320
57
+ version_requirements: *2155539420
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: simplecov
60
- requirement: &2158596740 !ruby/object:Gem::Requirement
60
+ requirement: &2155540860 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *2158596740
68
+ version_requirements: *2155540860
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: simplecov-rcov
71
- requirement: &2158595560 !ruby/object:Gem::Requirement
71
+ requirement: &2155542300 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *2158595560
79
+ version_requirements: *2155542300
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: rspec
82
- requirement: &2158593700 !ruby/object:Gem::Requirement
82
+ requirement: &2155549780 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ~>
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: 2.1.0
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *2158593700
90
+ version_requirements: *2155549780
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: ci_reporter
93
- requirement: &2158592480 !ruby/object:Gem::Requirement
93
+ requirement: &2155661940 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ~>
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: 1.6.5
99
99
  type: :development
100
100
  prerelease: false
101
- version_requirements: *2158592480
101
+ version_requirements: *2155661940
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: buildr
104
- requirement: &2158590660 !ruby/object:Gem::Requirement
104
+ requirement: &2155762360 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ! '>='
@@ -109,7 +109,7 @@ dependencies:
109
109
  version: 1.4.6
110
110
  type: :runtime
111
111
  prerelease: false
112
- version_requirements: *2158590660
112
+ version_requirements: *2155762360
113
113
  description: Build like you code - now supporting haXe
114
114
  email: dominic @nospam@ devboy.org
115
115
  executables: []
@@ -142,7 +142,7 @@ files:
142
142
  - lib/buildr/hx/core/haxe_lib.rb
143
143
  - lib/buildr/hx/packaging.rb
144
144
  - lib/buildr/hx/packaging/haxelib.rb
145
- - lib/buildr/hx/project.rb
145
+ - lib/buildr/hx/packaging/hxlib.rb
146
146
  - rake/jeweler.rb
147
147
  - rake/jeweler_prerelease_tasks.rb
148
148
  - rake/pre_release_gemspec.rb
@@ -165,7 +165,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
165
165
  version: '0'
166
166
  segments:
167
167
  - 0
168
- hash: -1001432485971167274
168
+ hash: 1921785001659672374
169
169
  required_rubygems_version: !ruby/object:Gem::Requirement
170
170
  none: false
171
171
  requirements:
@@ -1,38 +0,0 @@
1
- #
2
- # Copyright (C) 2011 by Dominic Graefen / http://devboy.org
3
- #
4
- # Permission is hereby granted, free of charge, to any person obtaining a copy
5
- # of this software and associated documentation files (the "Software"), to deal
6
- # in the Software without restriction, including without limitation the rights
7
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- # copies of the Software, and to permit persons to whom the Software is
9
- # furnished to do so, subject to the following conditions:
10
- #
11
- # The above copyright notice and this permission notice shall be included in
12
- # all copies or substantial portions of the Software.
13
- #
14
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
- # THE SOFTWARE.
21
- #
22
-
23
- require "buildr"
24
-
25
- class Buildr::Project
26
-
27
- def get_hx_output( is_test = false )
28
- compile_task = is_test ? test.compile : compile
29
- target = compile_task.target
30
- options = compile_task.options
31
- main = options[:main].to_s
32
- return compile_task.options[:output] if compile_task.options.has_key? :output
33
- return "#{target}/#{main}.#{compile_task.packaging.to_s}" unless compile_task.packaging.nil?
34
- return "#{target}/#{main}" if compile_task.packaging.nil?
35
- fail("Could not guess output file for #{name}")
36
- end
37
-
38
- end