cxxproject 0.5.70 → 0.5.71
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/lib/cxxproject/buildingblocks/has_sources_mixin.rb +14 -0
- data/lib/cxxproject/toolchain/clang.rb +5 -1
- data/lib/cxxproject/toolchain/diab.rb +1 -1
- data/lib/cxxproject/toolchain/gcc.rb +1 -1
- data/lib/cxxproject/utils/process.rb +2 -9
- data/lib/cxxproject/version.rb +1 -1
- metadata +52 -50
- checksums.yaml +0 -7
|
@@ -5,6 +5,11 @@ require 'cxxproject/utils/printer'
|
|
|
5
5
|
|
|
6
6
|
module Cxxproject
|
|
7
7
|
module HasSources
|
|
8
|
+
|
|
9
|
+
class << self
|
|
10
|
+
attr_accessor :print_additional_depfile_info
|
|
11
|
+
end
|
|
12
|
+
|
|
8
13
|
|
|
9
14
|
attr_writer :file_dependencies
|
|
10
15
|
attr_reader :incArray
|
|
@@ -300,6 +305,13 @@ module Cxxproject
|
|
|
300
305
|
convert_depfile(dep_file) if dep_file
|
|
301
306
|
|
|
302
307
|
check_config_file()
|
|
308
|
+
|
|
309
|
+
if Cxxproject::HasSources.print_additional_depfile_info
|
|
310
|
+
File.open(dep_file+".org","w") do |f|
|
|
311
|
+
f.write(source+"\n")
|
|
312
|
+
f.write(Dir.pwd+"\n")
|
|
313
|
+
end if dep_file
|
|
314
|
+
end
|
|
303
315
|
end
|
|
304
316
|
end
|
|
305
317
|
enhance_with_additional_files(res)
|
|
@@ -349,6 +361,8 @@ module Cxxproject
|
|
|
349
361
|
puts "Original output:"
|
|
350
362
|
puts console_output
|
|
351
363
|
end
|
|
364
|
+
else
|
|
365
|
+
puts console_output # fallback
|
|
352
366
|
end
|
|
353
367
|
end
|
|
354
368
|
ret
|
|
@@ -2,6 +2,7 @@ require 'cxxproject/utils/utils'
|
|
|
2
2
|
require 'cxxproject/toolchain/provider'
|
|
3
3
|
require 'cxxproject/errorparser/error_parser'
|
|
4
4
|
require 'cxxproject/errorparser/gcc_compiler_error_parser'
|
|
5
|
+
require 'cxxproject/errorparser/gcc_linker_error_parser'
|
|
5
6
|
|
|
6
7
|
module Cxxproject
|
|
7
8
|
module Toolchain
|
|
@@ -15,7 +16,7 @@ module Cxxproject
|
|
|
15
16
|
:OBJECT_FILE_FLAG => "-o",
|
|
16
17
|
:INCLUDE_PATH_FLAG => "-I",
|
|
17
18
|
:COMPILE_FLAGS => "-c ",
|
|
18
|
-
:DEP_FLAGS => "-
|
|
19
|
+
:DEP_FLAGS => "-MD -MF ", # empty space at the end is important!
|
|
19
20
|
:ERROR_PARSER => gccCompilerErrorParser
|
|
20
21
|
})
|
|
21
22
|
|
|
@@ -28,6 +29,7 @@ module Cxxproject
|
|
|
28
29
|
|
|
29
30
|
CLANG_CHAIN[:ARCHIVER][:COMMAND] = "ar"
|
|
30
31
|
CLANG_CHAIN[:ARCHIVER][:ARCHIVE_FLAGS] = "r"
|
|
32
|
+
CLANG_CHAIN[:ARCHIVER][:ERROR_PARSER] = gccCompilerErrorParser
|
|
31
33
|
|
|
32
34
|
CLANG_CHAIN[:LINKER][:COMMAND] = "llvm-g++"
|
|
33
35
|
CLANG_CHAIN[:LINKER][:SCRIPT] = "-T"
|
|
@@ -35,5 +37,7 @@ module Cxxproject
|
|
|
35
37
|
CLANG_CHAIN[:LINKER][:EXE_FLAG] = "-o"
|
|
36
38
|
CLANG_CHAIN[:LINKER][:LIB_FLAG] = "-l"
|
|
37
39
|
CLANG_CHAIN[:LINKER][:LIB_PATH_FLAG] = "-L"
|
|
40
|
+
|
|
41
|
+
CLANG_CHAIN[:LINKER][:ERROR_PARSER] = GCCLinkerErrorParser.new
|
|
38
42
|
end
|
|
39
43
|
end
|
|
@@ -15,7 +15,7 @@ module Cxxproject
|
|
|
15
15
|
:OBJECT_FILE_FLAG => "-o ",
|
|
16
16
|
:INCLUDE_PATH_FLAG => "-I",
|
|
17
17
|
:COMPILE_FLAGS => "-c",
|
|
18
|
-
:DEP_FLAGS => "-Xmake-dependency=
|
|
18
|
+
:DEP_FLAGS => "-Xmake-dependency=5 -Xmake-dependency-savefile=",
|
|
19
19
|
:DEP_FLAGS_SPACE => false,
|
|
20
20
|
:PREPRO_FLAGS => "-P"
|
|
21
21
|
})
|
|
@@ -24,15 +24,8 @@ module Cxxproject
|
|
|
24
24
|
Process.wait(sp)
|
|
25
25
|
rd.close
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
# seems not to work anymore with Ruby 2.0:
|
|
30
|
-
# consoleOutput.gsub!(/\xE2\x80\x98/,"`") # ÔÇÿ
|
|
31
|
-
# consoleOutput.gsub!(/\xE2\x80\x99/,"'") # ÔÇÖ
|
|
32
|
-
|
|
33
|
-
# to be tested:
|
|
34
|
-
# consoleOutput.encode!('UTF-8', :invalid => :replace, :undef => :replace, :replace => '')
|
|
35
|
-
# consoleOutput.encode!('binary', :invalid => :replace, :undef => :replace, :replace => '')
|
|
27
|
+
consoleOutput.encode!('UTF-8', :invalid => :replace, :undef => :replace, :replace => '')
|
|
28
|
+
consoleOutput.encode!('binary', :invalid => :replace, :undef => :replace, :replace => '')
|
|
36
29
|
|
|
37
30
|
consoleOutput
|
|
38
31
|
end
|
data/lib/cxxproject/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,52 +1,48 @@
|
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cxxproject
|
|
3
|
-
version: !ruby/object:Gem::Version
|
|
4
|
-
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
prerelease:
|
|
5
|
+
version: 0.5.71
|
|
5
6
|
platform: ruby
|
|
6
|
-
authors:
|
|
7
|
+
authors:
|
|
7
8
|
- oliver mueller
|
|
8
9
|
autorequire:
|
|
9
10
|
bindir: bin
|
|
10
11
|
cert_chain: []
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
|
|
13
|
+
date: 2014-03-07 00:00:00 Z
|
|
14
|
+
dependencies:
|
|
15
|
+
- !ruby/object:Gem::Dependency
|
|
14
16
|
name: highline
|
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
|
16
|
-
requirements:
|
|
17
|
-
- - '>='
|
|
18
|
-
- !ruby/object:Gem::Version
|
|
19
|
-
version: 1.6.0
|
|
20
|
-
type: :runtime
|
|
21
17
|
prerelease: false
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
18
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
|
19
|
+
none: false
|
|
20
|
+
requirements:
|
|
21
|
+
- - ">="
|
|
22
|
+
- !ruby/object:Gem::Version
|
|
26
23
|
version: 1.6.0
|
|
27
|
-
- !ruby/object:Gem::Dependency
|
|
28
|
-
name: colored
|
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
|
30
|
-
requirements:
|
|
31
|
-
- - '>='
|
|
32
|
-
- !ruby/object:Gem::Version
|
|
33
|
-
version: '0'
|
|
34
24
|
type: :runtime
|
|
25
|
+
version_requirements: *id001
|
|
26
|
+
- !ruby/object:Gem::Dependency
|
|
27
|
+
name: colored
|
|
35
28
|
prerelease: false
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
29
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
|
30
|
+
none: false
|
|
31
|
+
requirements:
|
|
32
|
+
- - ">="
|
|
33
|
+
- !ruby/object:Gem::Version
|
|
34
|
+
version: "0"
|
|
35
|
+
type: :runtime
|
|
36
|
+
version_requirements: *id002
|
|
37
|
+
description: " Some more high level building blocks for cpp projects.\n"
|
|
43
38
|
email: oliver.mueller@gmail.com
|
|
44
|
-
executables:
|
|
39
|
+
executables:
|
|
45
40
|
- cxx
|
|
46
41
|
extensions: []
|
|
42
|
+
|
|
47
43
|
extra_rdoc_files: []
|
|
48
|
-
|
|
49
|
-
|
|
44
|
+
|
|
45
|
+
files:
|
|
50
46
|
- lib/cxxproject/buildingblocks/binary_library.rb
|
|
51
47
|
- lib/cxxproject/buildingblocks/building_block.rb
|
|
52
48
|
- lib/cxxproject/buildingblocks/command_line.rb
|
|
@@ -103,6 +99,7 @@ files:
|
|
|
103
99
|
- lib/cxxproject/utils/utils.rb
|
|
104
100
|
- lib/cxxproject/utils/valgrind.rb
|
|
105
101
|
- lib/cxxproject/version.rb
|
|
102
|
+
- lib/cxxproject.rb
|
|
106
103
|
- lib/tools/project_wizard.rb
|
|
107
104
|
- Rakefile.rb
|
|
108
105
|
- spec/building_block_spec.rb
|
|
@@ -120,33 +117,38 @@ files:
|
|
|
120
117
|
- spec/testdata/multiple_levels/libs/lib1/project.rb
|
|
121
118
|
- spec/testdata/multiple_levels/libs/lib2/project.rb
|
|
122
119
|
- spec/testdata/multiple_levels/mainproject/basic/project.rb
|
|
123
|
-
- spec/testdata/onlyOneHeader/Rakefile.rb
|
|
124
120
|
- spec/testdata/onlyOneHeader/project.rb
|
|
121
|
+
- spec/testdata/onlyOneHeader/Rakefile.rb
|
|
125
122
|
- spec/toolchain_spec.rb
|
|
126
|
-
- lib/tools/Rakefile.rb.template
|
|
127
123
|
- lib/tools/project.rb.template
|
|
124
|
+
- lib/tools/Rakefile.rb.template
|
|
128
125
|
- bin/cxx
|
|
129
126
|
homepage: https://github.com/marcmo/cxxproject
|
|
130
127
|
licenses: []
|
|
131
|
-
|
|
128
|
+
|
|
132
129
|
post_install_message:
|
|
133
130
|
rdoc_options: []
|
|
134
|
-
|
|
131
|
+
|
|
132
|
+
require_paths:
|
|
135
133
|
- lib
|
|
136
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
134
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
135
|
+
none: false
|
|
136
|
+
requirements:
|
|
137
|
+
- - ">="
|
|
138
|
+
- !ruby/object:Gem::Version
|
|
139
|
+
version: "0"
|
|
140
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
141
|
+
none: false
|
|
142
|
+
requirements:
|
|
143
|
+
- - ">="
|
|
144
|
+
- !ruby/object:Gem::Version
|
|
145
|
+
version: "0"
|
|
146
146
|
requirements: []
|
|
147
|
+
|
|
147
148
|
rubyforge_project:
|
|
148
|
-
rubygems_version:
|
|
149
|
+
rubygems_version: 1.8.24
|
|
149
150
|
signing_key:
|
|
150
|
-
specification_version:
|
|
151
|
+
specification_version: 3
|
|
151
152
|
summary: Cpp Support for Rake.
|
|
152
153
|
test_files: []
|
|
154
|
+
|
checksums.yaml
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
SHA1:
|
|
3
|
-
metadata.gz: 4241f8b0d6b0af8bc85e0637664820575a19c7ba
|
|
4
|
-
data.tar.gz: 0464a6c1c1c93c98cb72ce16dccfba17d2d8d706
|
|
5
|
-
SHA512:
|
|
6
|
-
metadata.gz: 92eaba35323b2949acf5865da5cfc964129f363f7ebc5b704bd6375eacb12623eef1b3d0aed1717f70511ab38b8ce689b23357d7da3bcc8cc37cef0dab8c4972
|
|
7
|
-
data.tar.gz: 55f0ef37e765852b49745684baa1c5dc87e89121ffb90f3af61df9fc934106a35f226a036059c5918889909ad21091b8789515ef17a9af0c4e202b1dc490d8f8
|