buildr-as3 0.1.5 → 0.1.6
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-as3.gemspec +1 -1
- data/lib/buildr/as3/compiler.rb +4 -5
- data/lib/buildr/as3/packaging.rb +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.6
|
data/buildr-as3.gemspec
CHANGED
data/lib/buildr/as3/compiler.rb
CHANGED
@@ -221,7 +221,7 @@ public class Build
|
|
221
221
|
end
|
222
222
|
include NeededTools
|
223
223
|
def needed?(sources, target, dependencies)
|
224
|
-
output = (options[:output] || "#{target}/#{project.
|
224
|
+
output = (options[:output] || "#{target}/#{project.name.gsub(":", "-")}.swc")
|
225
225
|
sources.each do |source|
|
226
226
|
return true if is_output_outdated?(output,source)
|
227
227
|
end
|
@@ -235,7 +235,7 @@ public class Build
|
|
235
235
|
def compile(sources, target, dependencies)
|
236
236
|
# write_build_info_class sources[0], project
|
237
237
|
flex_sdk = options[:flexsdk]
|
238
|
-
output = (options[:output] || "#{target}/#{project.
|
238
|
+
output = (options[:output] || "#{target}/#{project.name.gsub(":", "-")}.swc")
|
239
239
|
cmd_args = []
|
240
240
|
cmd_args << "-jar" << flex_sdk.compc_jar
|
241
241
|
cmd_args << "-output" << output
|
@@ -269,7 +269,7 @@ public class Build
|
|
269
269
|
end
|
270
270
|
include NeededTools
|
271
271
|
def needed?(sources, target, dependencies)
|
272
|
-
output = (options[:output] || "#{target}/#{project.
|
272
|
+
output = (options[:output] || "#{target}/#{project.name.gsub(":", "-")}.swc")
|
273
273
|
sources.each do |source|
|
274
274
|
if is_output_outdated?(output, source)
|
275
275
|
puts "Recompile needed: Sources are newer than target"
|
@@ -350,7 +350,7 @@ public class Build
|
|
350
350
|
def compile(sources, target, dependencies)
|
351
351
|
alchemy_tk = options[:alchemytk]
|
352
352
|
flex_sdk = alchemy_tk.flex_sdk
|
353
|
-
output = (options[:output] || "#{target}/#{project.
|
353
|
+
output = (options[:output] || "#{target}/#{project.name.gsub(":", "-")}.swc")
|
354
354
|
|
355
355
|
# gcc stringecho.c -O3 -Wall -swc -o stringecho.swc
|
356
356
|
cmd_args = []
|
@@ -375,7 +375,6 @@ public class Build
|
|
375
375
|
ENV["PATH"] = "#{ENV["PATH"]}:#{flex_sdk.bin}"
|
376
376
|
project_dir = Dir.getwd
|
377
377
|
Dir.chdir File.dirname options[:main]
|
378
|
-
puts "working-dir: ", Dir.getwd
|
379
378
|
system(cmd_args.join(" "))
|
380
379
|
File.copy( File.basename(output), output)
|
381
380
|
Dir.chdir project_dir
|
data/lib/buildr/as3/packaging.rb
CHANGED
@@ -81,7 +81,7 @@ module Buildr
|
|
81
81
|
protected
|
82
82
|
def package_as_swc(file_name)
|
83
83
|
SwcTask.define_task(file_name).tap do |swc|
|
84
|
-
swc.src_swc = (compile.options[:output] || "#{compile.target}/#{project.
|
84
|
+
swc.src_swc = (compile.options[:output] || "#{compile.target}/#{project.name.gsub(":", "-")}.swc")
|
85
85
|
swc.target_swc = file_name
|
86
86
|
end
|
87
87
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: buildr-as3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 6
|
10
|
+
version: 0.1.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Dominic Graefen
|