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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ad1b47296c0fc5ba599bf7c15800d3fd8c10d894
4
- data.tar.gz: 97e998cc559855c4fc4eb6049cfd4019abe62543
3
+ metadata.gz: 6ee964b6e33a61a60ab30c374a8f360cfba8cf7c
4
+ data.tar.gz: 0d1907af546dcb7d566e748fc6c535ed61b22b64
5
5
  SHA512:
6
- metadata.gz: a23d0d7795b7333b00131b0bd4d0e6da301401127af8ebbb98793f5d7447b7cabf4ba3499661190ca62ed3e2621a84c8f7b2362db6296c316f4aa875549e416e
7
- data.tar.gz: a7bf422ada12ba39609aab37132bc8992d03498049e10a0342620dc85854bde8bc3970e4a2e566f0cc013844b9fa2f034be46c8d58aef144e969295129dbe166
6
+ metadata.gz: 850f4a5f43e4a46056385a61a80ef6ec8acccdf2d76014be1e5402bcb2b4fcda1336dde6ae36f1fcbc9965d8771695fb02682861daf5bc92b0dcc2add3cd86c3
7
+ data.tar.gz: 6fdeaabec37493c50c0349e2cbc1e7c561d81c3681afe91586aba70ad583bbd9eeb3bdb65d93d6523b426a13e6c39d3e3980ce1f5959ea15a634b394db0e46b1
@@ -1,5 +1,5 @@
1
- require_relative 'target'
2
- require_relative 'application'
1
+ require File.join(File.dirname(__FILE__), 'target')
2
+ require File.join(File.dirname(__FILE__), 'application')
3
3
 
4
4
  require 'rake/clean'
5
5
 
@@ -1,5 +1,5 @@
1
- require_relative 'application'
2
- require_relative 'dsl_definition'
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
- pch_output = pch_source.ext('.gch')
45
- pch_output = File.join(RakeCompile::Application.app.build_directory, pch_output)
46
- self.pch = File.absolute_path(pch_output)
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 -stdlib=libc++'
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
- require_relative 'rake-compile/logging'
4
- require_relative 'rake-compile/install'
5
- require_relative 'rake-compile/compiler'
6
- require_relative 'rake-compile/multi_file_task'
7
- require_relative 'rake-compile/dsl_definition'
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.3
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: 2013-11-04 00:00:00.000000000 Z
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.1.11
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