rake-compile 0.2.2 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rake-compile.rb +5 -7
- data/lib/rake-compile/dsl_definition.rb +0 -4
- data/lib/rake-compile/target.rb +4 -1
- data/lib/rake-compile/version.rb +1 -1
- data/rake-compile.gemspec +4 -3
- metadata +15 -2
- data/lib/rake-compile/multi_file_task.rb +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff310ddb10db9ab5335fbe67f062fcb1a7bd9459
|
4
|
+
data.tar.gz: 567cd21bdd391dde922d1f690c7220938c322ae3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9dfa87a87d83885523a8513cc66b4acccee9e392ed31fb5cd19518aea63846e1b2f0bcef417807c2ccb5fcc6e40924c37c58c83a54eef9b27fc000a7dd8a1aae
|
7
|
+
data.tar.gz: 0b5c08aa5c4b408308f858f4c865861989b189f8aa39d985b67e997341978ef10ca6e39f4d8b0c94c960cc02dd987080e4a0b0d482ddb98cefbdeb94ea1d6d13
|
data/lib/rake-compile.rb
CHANGED
@@ -1,9 +1,7 @@
|
|
1
1
|
require 'colorize'
|
2
|
+
require 'rake-multifile'
|
2
3
|
|
3
|
-
|
4
|
-
|
5
|
-
require
|
6
|
-
require
|
7
|
-
require File.join('rake-compile', 'compiler')
|
8
|
-
require File.join('rake-compile', 'multi_file_task')
|
9
|
-
require File.join('rake-compile', 'dsl_definition')
|
4
|
+
require 'rake-compile/logging'
|
5
|
+
require 'rake-compile/install'
|
6
|
+
require 'rake-compile/compiler'
|
7
|
+
require 'rake-compile/dsl_definition'
|
@@ -42,10 +42,6 @@ module RakeCompile
|
|
42
42
|
RakeCompile::Application.app.pch = name
|
43
43
|
end
|
44
44
|
|
45
|
-
def multifile(*args, &block)
|
46
|
-
RakeCompile::MultiFileTask.define_task(*args, &block)
|
47
|
-
end
|
48
|
-
|
49
45
|
def static_library(name)
|
50
46
|
Target.define_static_library_task(name) do |t|
|
51
47
|
yield t
|
data/lib/rake-compile/target.rb
CHANGED
@@ -1,9 +1,12 @@
|
|
1
|
+
require 'rake-multifile'
|
2
|
+
|
1
3
|
require File.join(File.dirname(__FILE__), 'application')
|
2
4
|
require File.join(File.dirname(__FILE__), 'dsl_definition')
|
3
5
|
|
4
6
|
module RakeCompile
|
5
7
|
class Target
|
6
8
|
include Rake::DSL
|
9
|
+
include RakeMultifile::DSL
|
7
10
|
|
8
11
|
attr_reader :objects
|
9
12
|
attr_reader :name
|
@@ -78,7 +81,7 @@ module RakeCompile
|
|
78
81
|
|
79
82
|
prereqs = [dir, self.objects, self.libraries].flatten
|
80
83
|
|
81
|
-
|
84
|
+
multifile self.name => prereqs do
|
82
85
|
yield self
|
83
86
|
end
|
84
87
|
end
|
data/lib/rake-compile/version.rb
CHANGED
data/rake-compile.gemspec
CHANGED
@@ -26,9 +26,10 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
27
27
|
spec.require_paths = ['lib']
|
28
28
|
|
29
|
-
spec.add_dependency 'rake',
|
29
|
+
spec.add_dependency 'rake', '~> 10.0'
|
30
|
+
spec.add_dependency 'rake-multifile'
|
30
31
|
spec.add_runtime_dependency 'colorize'
|
31
32
|
|
32
|
-
spec.add_development_dependency
|
33
|
-
spec.add_development_dependency
|
33
|
+
spec.add_development_dependency 'bundler', '~> 1.10'
|
34
|
+
spec.add_development_dependency 'minitest'
|
34
35
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rake-compile
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Massicotte
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '10.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake-multifile
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: colorize
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -85,7 +99,6 @@ files:
|
|
85
99
|
- lib/rake-compile/dsl_definition.rb
|
86
100
|
- lib/rake-compile/install.rb
|
87
101
|
- lib/rake-compile/logging.rb
|
88
|
-
- lib/rake-compile/multi_file_task.rb
|
89
102
|
- lib/rake-compile/target.rb
|
90
103
|
- lib/rake-compile/version.rb
|
91
104
|
- rake-compile.gemspec
|