rake-compile 0.1.3 → 0.1.4
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/dsl_definition.rb +2 -2
- data/lib/rake-compile/target.rb +13 -6
- data/lib/rake-compile.rb +7 -5
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ee964b6e33a61a60ab30c374a8f360cfba8cf7c
|
4
|
+
data.tar.gz: 0d1907af546dcb7d566e748fc6c535ed61b22b64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 850f4a5f43e4a46056385a61a80ef6ec8acccdf2d76014be1e5402bcb2b4fcda1336dde6ae36f1fcbc9965d8771695fb02682861daf5bc92b0dcc2add3cd86c3
|
7
|
+
data.tar.gz: 6fdeaabec37493c50c0349e2cbc1e7c561d81c3681afe91586aba70ad583bbd9eeb3bdb65d93d6523b426a13e6c39d3e3980ce1f5959ea15a634b394db0e46b1
|
data/lib/rake-compile/target.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
require File.join(File.dirname(__FILE__), 'application')
|
2
|
+
require File.join(File.dirname(__FILE__), 'dsl_definition')
|
3
3
|
|
4
4
|
module RakeCompile
|
5
5
|
class Target
|
@@ -41,11 +41,18 @@ module RakeCompile
|
|
41
41
|
return if RakeCompile::Application.app.pch.nil?
|
42
42
|
|
43
43
|
pch_source = RakeCompile::Application.app.pch
|
44
|
-
|
45
|
-
|
46
|
-
self.pch
|
44
|
+
header_output = File.join(RakeCompile::Application.app.build_directory, pch_source)
|
45
|
+
header_output = File.absolute_path(header_output)
|
46
|
+
self.pch = header_output + '.gch'
|
47
47
|
|
48
48
|
define_object_dependencies(pch_source, self.pch)
|
49
|
+
|
50
|
+
# The source header for a pch needs to be in the same location for some
|
51
|
+
# compilers. So, we need to copy it.
|
52
|
+
file self.pch => header_output
|
53
|
+
file header_output => pch_source do
|
54
|
+
FileUtils.cp(pch_source, header_output)
|
55
|
+
end
|
49
56
|
end
|
50
57
|
|
51
58
|
def append_pch_to_flags(pch_file, flags)
|
@@ -80,7 +87,7 @@ module RakeCompile
|
|
80
87
|
FileUtils.rm_f(self.name)
|
81
88
|
|
82
89
|
RakeCompile.log("BIN".light_blue, self.name)
|
83
|
-
linker = 'c++ -std=c++11
|
90
|
+
linker = 'c++ -std=c++11'
|
84
91
|
|
85
92
|
inputs = self.objects.join("' '")
|
86
93
|
libs = self.libraries.join("' '")
|
data/lib/rake-compile.rb
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
require 'colorize'
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
3
|
+
$:.unshift File.dirname(__FILE__)
|
4
|
+
|
5
|
+
require File.join('rake-compile', 'logging')
|
6
|
+
require File.join('rake-compile', 'install')
|
7
|
+
require File.join('rake-compile', 'compiler')
|
8
|
+
require File.join('rake-compile', 'multi_file_task')
|
9
|
+
require File.join('rake-compile', 'dsl_definition')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rake-compile
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Massicotte
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-01-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -44,6 +44,7 @@ executables: []
|
|
44
44
|
extensions: []
|
45
45
|
extra_rdoc_files: []
|
46
46
|
files:
|
47
|
+
- lib/rake-compile.rb
|
47
48
|
- lib/rake-compile/application.rb
|
48
49
|
- lib/rake-compile/compiler.rb
|
49
50
|
- lib/rake-compile/dsl_definition.rb
|
@@ -51,7 +52,6 @@ files:
|
|
51
52
|
- lib/rake-compile/logging.rb
|
52
53
|
- lib/rake-compile/multi_file_task.rb
|
53
54
|
- lib/rake-compile/target.rb
|
54
|
-
- lib/rake-compile.rb
|
55
55
|
homepage: https://github.com/mattmassicotte/rake-compile
|
56
56
|
licenses:
|
57
57
|
- MIT
|
@@ -72,7 +72,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
72
72
|
version: '0'
|
73
73
|
requirements: []
|
74
74
|
rubyforge_project:
|
75
|
-
rubygems_version: 2.
|
75
|
+
rubygems_version: 2.2.0
|
76
76
|
signing_key:
|
77
77
|
specification_version: 4
|
78
78
|
summary: Rake-compile makes it easier to use rake to build C/C++ projects
|