buildr-hx 0.0.3.pre → 0.0.4.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 +1 -1
- data/buildr-hx.gemspec +6 -1
- data/lib/buildr/hx/compiler/hxas3.rb +23 -0
- data/lib/buildr/hx/compiler/hxcpp.rb +26 -0
- data/lib/buildr/hx/compiler/hxneko.rb +25 -0
- data/lib/buildr/hx/compiler/hxphp.rb +23 -0
- data/lib/buildr/hx/compiler/hxxml.rb +25 -0
- data/lib/buildr/hx/compiler.rb +11 -1
- data/lib/buildr/hx/project.rb +2 -1
- metadata +25 -20
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.4.pre
|
data/buildr-hx.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "buildr-hx"
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.4.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"]
|
@@ -29,8 +29,13 @@ Gem::Specification.new do |s|
|
|
29
29
|
"lib/buildr/hx.rb",
|
30
30
|
"lib/buildr/hx/compiler.rb",
|
31
31
|
"lib/buildr/hx/compiler/haxe_compiler_base.rb",
|
32
|
+
"lib/buildr/hx/compiler/hxas3.rb",
|
33
|
+
"lib/buildr/hx/compiler/hxcpp.rb",
|
32
34
|
"lib/buildr/hx/compiler/hxjs.rb",
|
35
|
+
"lib/buildr/hx/compiler/hxneko.rb",
|
36
|
+
"lib/buildr/hx/compiler/hxphp.rb",
|
33
37
|
"lib/buildr/hx/compiler/hxswf.rb",
|
38
|
+
"lib/buildr/hx/compiler/hxxml.rb",
|
34
39
|
"lib/buildr/hx/core.rb",
|
35
40
|
"lib/buildr/hx/core/haxe_lib.rb",
|
36
41
|
"lib/buildr/hx/project.rb",
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module Buildr
|
2
|
+
module Haxe
|
3
|
+
module Compiler
|
4
|
+
class HXAS3 < HaxeCompilerBase
|
5
|
+
|
6
|
+
specify :language => :haxe,
|
7
|
+
:sources => :hx, :source_ext => :hx
|
8
|
+
|
9
|
+
COMPILE_OPTIONS << :version
|
10
|
+
|
11
|
+
def compile(sources, target, dependencies) #:nodoc:
|
12
|
+
@output = @project.get_hx_output(is_test(sources,target,dependencies))
|
13
|
+
super
|
14
|
+
end
|
15
|
+
|
16
|
+
def compiler_args
|
17
|
+
[ "-as3 #{@output}" ]
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
module Buildr
|
2
|
+
module Haxe
|
3
|
+
module Compiler
|
4
|
+
class HXCPP < HaxeCompilerBase
|
5
|
+
|
6
|
+
specify :language => :haxe,
|
7
|
+
:sources => :hx, :source_ext => :hx
|
8
|
+
|
9
|
+
COMPILE_OPTIONS << :version
|
10
|
+
|
11
|
+
def compile(sources, target, dependencies) #:nodoc:
|
12
|
+
|
13
|
+
@project.haxelib("hxcpp:2.08.0")
|
14
|
+
|
15
|
+
@output = @project.get_hx_output(is_test(sources,target,dependencies))
|
16
|
+
super
|
17
|
+
end
|
18
|
+
|
19
|
+
def compiler_args
|
20
|
+
[ "-cpp #{@output}" ]
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
module Buildr
|
2
|
+
module Haxe
|
3
|
+
module Compiler
|
4
|
+
class HXNeko < HaxeCompilerBase
|
5
|
+
|
6
|
+
specify :language => :haxe,
|
7
|
+
:sources => :hx, :source_ext => :hx,
|
8
|
+
:target_ext => "n",
|
9
|
+
:packaging => :n
|
10
|
+
|
11
|
+
COMPILE_OPTIONS << :version
|
12
|
+
|
13
|
+
def compile(sources, target, dependencies) #:nodoc:
|
14
|
+
@output = @project.get_hx_output(is_test(sources,target,dependencies))
|
15
|
+
super
|
16
|
+
end
|
17
|
+
|
18
|
+
def compiler_args
|
19
|
+
[ "-neko #{@output}" ]
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module Buildr
|
2
|
+
module Haxe
|
3
|
+
module Compiler
|
4
|
+
class HXPHP < HaxeCompilerBase
|
5
|
+
|
6
|
+
specify :language => :haxe,
|
7
|
+
:sources => :hx, :source_ext => :hx
|
8
|
+
|
9
|
+
COMPILE_OPTIONS << :version
|
10
|
+
|
11
|
+
def compile(sources, target, dependencies) #:nodoc:
|
12
|
+
@output = @project.get_hx_output(is_test(sources,target,dependencies))
|
13
|
+
super
|
14
|
+
end
|
15
|
+
|
16
|
+
def compiler_args
|
17
|
+
[ "-php #{@output}" ]
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
module Buildr
|
2
|
+
module Haxe
|
3
|
+
module Compiler
|
4
|
+
class HXXML < HaxeCompilerBase
|
5
|
+
|
6
|
+
specify :language => :haxe,
|
7
|
+
:sources => :hx, :source_ext => :hx,
|
8
|
+
:target_ext => "xml",
|
9
|
+
:packaging => :xml
|
10
|
+
|
11
|
+
COMPILE_OPTIONS << :version
|
12
|
+
|
13
|
+
def compile(sources, target, dependencies) #:nodoc:
|
14
|
+
@output = @project.get_hx_output(is_test(sources,target,dependencies))
|
15
|
+
super
|
16
|
+
end
|
17
|
+
|
18
|
+
def compiler_args
|
19
|
+
[ "-xml #{@output}" ]
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
data/lib/buildr/hx/compiler.rb
CHANGED
@@ -23,6 +23,16 @@
|
|
23
23
|
require File.dirname(__FILE__) + '/compiler/haxe_compiler_base'
|
24
24
|
require File.dirname(__FILE__) + '/compiler/hxswf'
|
25
25
|
require File.dirname(__FILE__) + '/compiler/hxjs'
|
26
|
+
require File.dirname(__FILE__) + '/compiler/hxneko'
|
27
|
+
require File.dirname(__FILE__) + '/compiler/hxphp'
|
28
|
+
require File.dirname(__FILE__) + '/compiler/hxxml'
|
29
|
+
require File.dirname(__FILE__) + '/compiler/hxas3'
|
30
|
+
require File.dirname(__FILE__) + '/compiler/hxcpp'
|
26
31
|
|
27
32
|
Buildr::Compiler << Buildr::Haxe::Compiler::HXSWF
|
28
|
-
Buildr::Compiler << Buildr::Haxe::Compiler::HXJS
|
33
|
+
Buildr::Compiler << Buildr::Haxe::Compiler::HXJS
|
34
|
+
Buildr::Compiler << Buildr::Haxe::Compiler::HXNeko
|
35
|
+
Buildr::Compiler << Buildr::Haxe::Compiler::HXPHP
|
36
|
+
Buildr::Compiler << Buildr::Haxe::Compiler::HXXML
|
37
|
+
Buildr::Compiler << Buildr::Haxe::Compiler::HXAS3
|
38
|
+
Buildr::Compiler << Buildr::Haxe::Compiler::HXCPP
|
data/lib/buildr/hx/project.rb
CHANGED
@@ -30,7 +30,8 @@ class Buildr::Project
|
|
30
30
|
options = compile_task.options
|
31
31
|
main = options[:main].to_s
|
32
32
|
return compile_task.options[:output] if compile_task.options.has_key? :output
|
33
|
-
return "#{target}/#{
|
33
|
+
return "#{target}/#{main}.#{compile_task.packaging.to_s}" unless compile_task.packaging.nil?
|
34
|
+
return "#{target}/#{main}" if compile_task.packaging.nil?
|
34
35
|
fail("Could not guess output file for #{name}")
|
35
36
|
end
|
36
37
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: buildr-hx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4.pre
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2011-11-17 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: buildr
|
16
|
-
requirement: &
|
16
|
+
requirement: &2153597100 !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: *
|
24
|
+
version_requirements: *2153597100
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: shoulda
|
27
|
-
requirement: &
|
27
|
+
requirement: &2153595980 !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: *
|
35
|
+
version_requirements: *2153595980
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: bundler
|
38
|
-
requirement: &
|
38
|
+
requirement: &2153594080 !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: *
|
46
|
+
version_requirements: *2153594080
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: jeweler
|
49
|
-
requirement: &
|
49
|
+
requirement: &2153592680 !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: *
|
57
|
+
version_requirements: *2153592680
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: simplecov
|
60
|
-
requirement: &
|
60
|
+
requirement: &2153590620 !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: *
|
68
|
+
version_requirements: *2153590620
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: simplecov-rcov
|
71
|
-
requirement: &
|
71
|
+
requirement: &2153589900 !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: *
|
79
|
+
version_requirements: *2153589900
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: rspec
|
82
|
-
requirement: &
|
82
|
+
requirement: &2153587800 !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: *
|
90
|
+
version_requirements: *2153587800
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: ci_reporter
|
93
|
-
requirement: &
|
93
|
+
requirement: &2153586700 !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: *
|
101
|
+
version_requirements: *2153586700
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: buildr
|
104
|
-
requirement: &
|
104
|
+
requirement: &2153585680 !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: *
|
112
|
+
version_requirements: *2153585680
|
113
113
|
description: Build like you code - now supporting haXe
|
114
114
|
email: dominic @nospam@ devboy.org
|
115
115
|
executables: []
|
@@ -130,8 +130,13 @@ files:
|
|
130
130
|
- lib/buildr/hx.rb
|
131
131
|
- lib/buildr/hx/compiler.rb
|
132
132
|
- lib/buildr/hx/compiler/haxe_compiler_base.rb
|
133
|
+
- lib/buildr/hx/compiler/hxas3.rb
|
134
|
+
- lib/buildr/hx/compiler/hxcpp.rb
|
133
135
|
- lib/buildr/hx/compiler/hxjs.rb
|
136
|
+
- lib/buildr/hx/compiler/hxneko.rb
|
137
|
+
- lib/buildr/hx/compiler/hxphp.rb
|
134
138
|
- lib/buildr/hx/compiler/hxswf.rb
|
139
|
+
- lib/buildr/hx/compiler/hxxml.rb
|
135
140
|
- lib/buildr/hx/core.rb
|
136
141
|
- lib/buildr/hx/core/haxe_lib.rb
|
137
142
|
- lib/buildr/hx/project.rb
|
@@ -157,7 +162,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
157
162
|
version: '0'
|
158
163
|
segments:
|
159
164
|
- 0
|
160
|
-
hash:
|
165
|
+
hash: -556094840901275259
|
161
166
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
162
167
|
none: false
|
163
168
|
requirements:
|