cxxproject 0.6.14 → 0.6.17
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +18 -0
- data/.rvmrc +1 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +31 -0
- data/LICENSE +22 -0
- data/README.md +868 -0
- data/Rakefile.rb +25 -24
- data/cxx.gemspec +22 -0
- data/example/.gitignore +1 -0
- data/example/Rakefile.rb +35 -0
- data/example/big_project/.gitignore +2 -0
- data/example/big_project/Rakefile_generator.rb +80 -0
- data/example/big_project/fak.h +9 -0
- data/example/ckLayout/cxxproject/Rakefile.rb +4 -0
- data/example/ckLayout/io/Io.cpp +7 -0
- data/example/ckLayout/io/Io.h +6 -0
- data/example/ckLayout/io/project.rb +5 -0
- data/example/ckLayout/lang/Lang.cpp +7 -0
- data/example/ckLayout/lang/Lang.h +6 -0
- data/example/ckLayout/lang/project.rb +3 -0
- data/example/ckLayout/projects/test/main.cpp +8 -0
- data/example/ckLayout/projects/test/project.rb +6 -0
- data/example/custom/.gitignore +1 -0
- data/example/custom/Rakefile.rb +12 -0
- data/example/custom/foo.cpp +5 -0
- data/example/custom/project.rb +27 -0
- data/example/dependency_tests/Rakefile.rb +3 -0
- data/example/dependency_tests/help1.h +12 -0
- data/example/dependency_tests/help2.h +10 -0
- data/example/dependency_tests/main.cpp +6 -0
- data/example/dependency_tests/project.rb +3 -0
- data/example/generator/Rakefile.rb +12 -0
- data/example/generator/main/main.cpp +3 -0
- data/example/generator/main/project/project.rb +3 -0
- data/example/oneFileOnly/Rakefile.rb +3 -0
- data/example/oneFileOnly/config.h +2 -0
- data/example/oneFileOnly/main.cpp +8 -0
- data/example/oneFileOnly/project_compile.rb +3 -0
- data/example/protobuf/.gitignore +4 -0
- data/example/protobuf/Rakefile.rb +70 -0
- data/example/protobuf/addressbook/addressbook.proto +24 -0
- data/example/protobuf/addressbook/addressbook_read.cc +67 -0
- data/example/protobuf/addressbook/addressbook_write.cc +93 -0
- data/example/protobuf/addressbook/project.rb +16 -0
- data/example/protobuf/protobuf.files +37 -0
- data/example/protobuf/protobuf_project.rb +9 -0
- data/example/simpleUnitTest/Rakefile.rb +4 -0
- data/example/simpleUnitTest/atest.cpp +16 -0
- data/example/simpleUnitTest/atest.h +11 -0
- data/example/simpleUnitTest/project.rb +5 -0
- data/example/simpleUnitTest/test.cpp +13 -0
- data/example/strange_dirs/Rakefile.rb +4 -0
- data/example/strange_dirs/lazyLib/project.rb +5 -0
- data/example/strange_dirs/main/main.cpp +5 -0
- data/example/strange_dirs/main/project.rb +5 -0
- data/example/strange_dirs/src/test.cpp +4 -0
- data/example/test.rb +10 -0
- data/example/three_tests/Rakefile.rb +5 -0
- data/example/three_tests/allsuites/project.rb +4 -0
- data/example/three_tests/main/main.cpp +13 -0
- data/example/three_tests/main/project.rb +5 -0
- data/example/three_tests/suite1/project.rb +6 -0
- data/example/three_tests/suite1/suite1.cpp +3 -0
- data/example/three_tests/suite1/suite1.h +28 -0
- data/example/three_tests/suite2/project.rb +6 -0
- data/example/three_tests/suite2/suite2.cpp +3 -0
- data/example/three_tests/suite2/suite2.h +29 -0
- data/lib/cxxproject/version.rb +4 -1
- data/plugins/tmp/.rvmrc +1 -0
- data/plugins/tmp/BuildDir/objects/testme/test.o +0 -0
- data/plugins/tmp/BuildDir/objects/testme/test.o.d +1 -0
- data/plugins/tmp/BuildDir/testme.exe +0 -0
- data/plugins/tmp/Rakefile.rb +6 -0
- data/plugins/tmp/project.rb +6 -0
- data/plugins/tmp/reinstall/Rakefile.rb +15 -0
- data/plugins/tmp/test.cpp +7 -0
- data/rake_helper/perftools.rb +34 -0
- data/rake_helper/spec.rb +80 -0
- data/roodi.yml +8 -0
- data/spec/testdata/basic/exe12/help.cpp +5 -0
- data/spec/testdata/basic/exe12/help.h +6 -0
- data/spec/testdata/basic/exe12/main.cpp +10 -0
- data/spec/testdata/basic/lib1/lib1.cpp +7 -0
- data/spec/testdata/basic/lib1/lib1.h +8 -0
- data/spec/testdata/basic/lib2/lib2.cpp +17 -0
- data/spec/testdata/basic/lib2/lib2.h +6 -0
- data/spec/testdata/multiple_levels/libs/lib1/lib1.cpp +7 -0
- data/spec/testdata/multiple_levels/libs/lib1/lib1.h +8 -0
- data/spec/testdata/multiple_levels/libs/lib2/lib2.cpp +21 -0
- data/spec/testdata/multiple_levels/libs/lib2/lib2.h +6 -0
- data/spec/testdata/multiple_levels/mainproject/basic/help.cpp +5 -0
- data/spec/testdata/multiple_levels/mainproject/basic/help.h +6 -0
- data/spec/testdata/multiple_levels/mainproject/basic/main.cpp +10 -0
- data/spec/testdata/onlyOneHeader/.gitignore +1 -0
- data/spec/testdata/onlyOneHeader/help.cpp +5 -0
- data/spec/testdata/onlyOneHeader/help.h +7 -0
- data/spec/testdata/onlyOneHeader/main.cpp +8 -0
- data/spec/testdata/onlyOneHeader/testin.c +0 -0
- metadata +191 -91
@@ -0,0 +1,21 @@
|
|
1
|
+
#include "lib2.h"
|
2
|
+
|
3
|
+
#include <iostream>
|
4
|
+
#include <math.h>
|
5
|
+
#include "lib1.h"
|
6
|
+
#include <dlfcn.h>
|
7
|
+
#include <zlib.h>
|
8
|
+
|
9
|
+
void lib2() {
|
10
|
+
#ifdef UNIT_TEST
|
11
|
+
std::cout << "lib2 for UNIT_TEST defined" << std::endl;
|
12
|
+
#else
|
13
|
+
std::cout << "lib2" << std::endl;
|
14
|
+
#endif
|
15
|
+
lib1();
|
16
|
+
std::cout << sin(5) << std::endl;
|
17
|
+
void* help = dlopen("test", RTLD_LAZY);
|
18
|
+
std::cout << (long)help << std::endl;
|
19
|
+
Bytef b = 0;
|
20
|
+
uLong res = crc32(0, &b, 1);
|
21
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
output
|
File without changes
|
metadata
CHANGED
@@ -1,143 +1,243 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: cxxproject
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.6.17
|
4
5
|
prerelease:
|
5
|
-
version: 0.6.14
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- oliver mueller
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-07-17 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
16
15
|
name: colored
|
17
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
18
17
|
none: false
|
19
|
-
requirements:
|
20
|
-
- -
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version:
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
23
22
|
type: :runtime
|
24
23
|
prerelease: false
|
25
|
-
version_requirements:
|
26
|
-
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
27
31
|
name: frazzle
|
28
|
-
requirement:
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
29
33
|
none: false
|
30
|
-
requirements:
|
31
|
-
- -
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version:
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
34
38
|
type: :runtime
|
35
39
|
prerelease: false
|
36
|
-
version_requirements:
|
37
|
-
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
description: ! ' Some more high level building blocks for cpp projects.
|
47
|
+
|
48
|
+
'
|
38
49
|
email: oliver.mueller@gmail.com
|
39
50
|
executables: []
|
40
|
-
|
41
51
|
extensions: []
|
42
|
-
|
43
52
|
extra_rdoc_files: []
|
44
|
-
|
45
|
-
|
46
|
-
-
|
47
|
-
-
|
48
|
-
-
|
49
|
-
-
|
50
|
-
-
|
51
|
-
-
|
52
|
-
-
|
53
|
-
-
|
54
|
-
-
|
55
|
-
-
|
56
|
-
-
|
57
|
-
-
|
58
|
-
-
|
59
|
-
-
|
60
|
-
-
|
61
|
-
-
|
62
|
-
-
|
63
|
-
-
|
64
|
-
-
|
65
|
-
-
|
66
|
-
-
|
67
|
-
-
|
68
|
-
-
|
69
|
-
-
|
70
|
-
-
|
71
|
-
-
|
72
|
-
-
|
73
|
-
-
|
74
|
-
-
|
75
|
-
-
|
76
|
-
-
|
53
|
+
files:
|
54
|
+
- .gitignore
|
55
|
+
- .rvmrc
|
56
|
+
- Gemfile
|
57
|
+
- Gemfile.lock
|
58
|
+
- LICENSE
|
59
|
+
- README.md
|
60
|
+
- Rakefile.rb
|
61
|
+
- cxx.gemspec
|
62
|
+
- example/.gitignore
|
63
|
+
- example/Rakefile.rb
|
64
|
+
- example/big_project/.gitignore
|
65
|
+
- example/big_project/Rakefile_generator.rb
|
66
|
+
- example/big_project/fak.h
|
67
|
+
- example/ckLayout/cxxproject/Rakefile.rb
|
68
|
+
- example/ckLayout/io/Io.cpp
|
69
|
+
- example/ckLayout/io/Io.h
|
70
|
+
- example/ckLayout/io/project.rb
|
71
|
+
- example/ckLayout/lang/Lang.cpp
|
72
|
+
- example/ckLayout/lang/Lang.h
|
73
|
+
- example/ckLayout/lang/project.rb
|
74
|
+
- example/ckLayout/projects/test/main.cpp
|
75
|
+
- example/ckLayout/projects/test/project.rb
|
76
|
+
- example/custom/.gitignore
|
77
|
+
- example/custom/Rakefile.rb
|
78
|
+
- example/custom/foo.cpp
|
79
|
+
- example/custom/project.rb
|
80
|
+
- example/dependency_tests/Rakefile.rb
|
81
|
+
- example/dependency_tests/help1.h
|
82
|
+
- example/dependency_tests/help2.h
|
83
|
+
- example/dependency_tests/main.cpp
|
84
|
+
- example/dependency_tests/project.rb
|
85
|
+
- example/generator/Rakefile.rb
|
86
|
+
- example/generator/main/main.cpp
|
87
|
+
- example/generator/main/project/project.rb
|
88
|
+
- example/oneFileOnly/Rakefile.rb
|
89
|
+
- example/oneFileOnly/config.h
|
90
|
+
- example/oneFileOnly/main.cpp
|
91
|
+
- example/oneFileOnly/project_compile.rb
|
92
|
+
- example/protobuf/.gitignore
|
93
|
+
- example/protobuf/Rakefile.rb
|
94
|
+
- example/protobuf/addressbook/addressbook.proto
|
95
|
+
- example/protobuf/addressbook/addressbook_read.cc
|
96
|
+
- example/protobuf/addressbook/addressbook_write.cc
|
97
|
+
- example/protobuf/addressbook/project.rb
|
98
|
+
- example/protobuf/protobuf.files
|
99
|
+
- example/protobuf/protobuf_project.rb
|
100
|
+
- example/simpleUnitTest/Rakefile.rb
|
101
|
+
- example/simpleUnitTest/atest.cpp
|
102
|
+
- example/simpleUnitTest/atest.h
|
103
|
+
- example/simpleUnitTest/project.rb
|
104
|
+
- example/simpleUnitTest/test.cpp
|
105
|
+
- example/strange_dirs/Rakefile.rb
|
106
|
+
- example/strange_dirs/lazyLib/project.rb
|
107
|
+
- example/strange_dirs/main/main.cpp
|
108
|
+
- example/strange_dirs/main/project.rb
|
109
|
+
- example/strange_dirs/src/test.cpp
|
110
|
+
- example/test.rb
|
111
|
+
- example/three_tests/Rakefile.rb
|
112
|
+
- example/three_tests/allsuites/project.rb
|
113
|
+
- example/three_tests/main/main.cpp
|
114
|
+
- example/three_tests/main/project.rb
|
115
|
+
- example/three_tests/suite1/project.rb
|
116
|
+
- example/three_tests/suite1/suite1.cpp
|
117
|
+
- example/three_tests/suite1/suite1.h
|
118
|
+
- example/three_tests/suite2/project.rb
|
119
|
+
- example/three_tests/suite2/suite2.cpp
|
120
|
+
- example/three_tests/suite2/suite2.h
|
121
|
+
- lib/cxxproject/buildingblocks/binary_library.rb
|
77
122
|
- lib/cxxproject/buildingblocks/building_block.rb
|
78
|
-
- lib/cxxproject/buildingblocks/
|
123
|
+
- lib/cxxproject/buildingblocks/command_line.rb
|
79
124
|
- lib/cxxproject/buildingblocks/custom_building_block.rb
|
80
|
-
- lib/cxxproject/buildingblocks/
|
125
|
+
- lib/cxxproject/buildingblocks/executable.rb
|
126
|
+
- lib/cxxproject/buildingblocks/has_dependencies_mixin.rb
|
81
127
|
- lib/cxxproject/buildingblocks/has_includes_mixin.rb
|
128
|
+
- lib/cxxproject/buildingblocks/has_libraries_mixin.rb
|
82
129
|
- lib/cxxproject/buildingblocks/has_sources_mixin.rb
|
83
|
-
- lib/cxxproject/buildingblocks/
|
84
|
-
- lib/cxxproject/buildingblocks/executable.rb
|
130
|
+
- lib/cxxproject/buildingblocks/makefile.rb
|
85
131
|
- lib/cxxproject/buildingblocks/module.rb
|
86
132
|
- lib/cxxproject/buildingblocks/single_source.rb
|
87
|
-
- lib/cxxproject/buildingblocks/has_dependencies_mixin.rb
|
88
133
|
- lib/cxxproject/buildingblocks/source_library.rb
|
89
|
-
- lib/cxxproject/
|
134
|
+
- lib/cxxproject/context.rb
|
90
135
|
- lib/cxxproject/cxxproject.rb
|
91
|
-
-
|
92
|
-
-
|
93
|
-
-
|
136
|
+
- lib/cxxproject/errorparser/error_parser.rb
|
137
|
+
- lib/cxxproject/ext/file.rb
|
138
|
+
- lib/cxxproject/ext/filelist.rb
|
139
|
+
- lib/cxxproject/ext/hash.rb
|
140
|
+
- lib/cxxproject/ext/progressbar.rb
|
141
|
+
- lib/cxxproject/ext/rake.rb
|
142
|
+
- lib/cxxproject/ext/rake_dirty.rb
|
143
|
+
- lib/cxxproject/ext/rake_listener.rb
|
144
|
+
- lib/cxxproject/ext/stdout.rb
|
145
|
+
- lib/cxxproject/ext/string.rb
|
146
|
+
- lib/cxxproject/ide_interface.rb
|
147
|
+
- lib/cxxproject/plugin_context.rb
|
148
|
+
- lib/cxxproject/toolchain/colorizing_formatter.rb
|
149
|
+
- lib/cxxproject/toolchain/provider.rb
|
150
|
+
- lib/cxxproject/toolchain/toolchain.rb
|
151
|
+
- lib/cxxproject/utils/cleanup.rb
|
152
|
+
- lib/cxxproject/utils/exit_helper.rb
|
153
|
+
- lib/cxxproject/utils/graphstream.rb
|
154
|
+
- lib/cxxproject/utils/optional.rb
|
155
|
+
- lib/cxxproject/utils/printer.rb
|
156
|
+
- lib/cxxproject/utils/process.rb
|
157
|
+
- lib/cxxproject/utils/progress.rb
|
158
|
+
- lib/cxxproject/utils/progress_helper.rb
|
159
|
+
- lib/cxxproject/utils/rbcurse.rb
|
160
|
+
- lib/cxxproject/utils/rbcurse_executable_ext.rb
|
161
|
+
- lib/cxxproject/utils/rbcurse_progress.rb
|
162
|
+
- lib/cxxproject/utils/rbcurse_tasktable.rb
|
163
|
+
- lib/cxxproject/utils/ubigraph.rb
|
164
|
+
- lib/cxxproject/utils/utils.rb
|
165
|
+
- lib/cxxproject/version.rb
|
166
|
+
- plugins/tmp/.rvmrc
|
167
|
+
- plugins/tmp/BuildDir/objects/testme/test.o
|
168
|
+
- plugins/tmp/BuildDir/objects/testme/test.o.d
|
169
|
+
- plugins/tmp/BuildDir/testme.exe
|
170
|
+
- plugins/tmp/Rakefile.rb
|
171
|
+
- plugins/tmp/project.rb
|
172
|
+
- plugins/tmp/reinstall/Rakefile.rb
|
173
|
+
- plugins/tmp/test.cpp
|
174
|
+
- rake_helper/perftools.rb
|
175
|
+
- rake_helper/spec.rb
|
176
|
+
- roodi.yml
|
177
|
+
- spec/building_block_spec.rb
|
178
|
+
- spec/cxxproject_2_rake_spec.rb
|
179
|
+
- spec/file_ext_spec.rb
|
94
180
|
- spec/ide_interface_spec.rb
|
95
|
-
- spec/spec_helper.rb
|
96
181
|
- spec/object_dependency_spec.rb
|
97
|
-
- spec/building_block_spec.rb
|
98
|
-
- spec/provider_spec.rb
|
99
182
|
- spec/plugin_context_spec.rb
|
100
|
-
- spec/
|
183
|
+
- spec/project_path_spec.rb
|
184
|
+
- spec/provider_spec.rb
|
185
|
+
- spec/rake_listener_ext_spec.rb
|
186
|
+
- spec/spec_helper.rb
|
187
|
+
- spec/string_spec.rb
|
188
|
+
- spec/testdata/basic/exe12/help.cpp
|
189
|
+
- spec/testdata/basic/exe12/help.h
|
190
|
+
- spec/testdata/basic/exe12/main.cpp
|
101
191
|
- spec/testdata/basic/exe12/project.rb
|
192
|
+
- spec/testdata/basic/lib1/lib1.cpp
|
193
|
+
- spec/testdata/basic/lib1/lib1.h
|
102
194
|
- spec/testdata/basic/lib1/project.rb
|
195
|
+
- spec/testdata/basic/lib2/lib2.cpp
|
196
|
+
- spec/testdata/basic/lib2/lib2.h
|
103
197
|
- spec/testdata/basic/lib2/project.rb
|
104
|
-
- spec/testdata/
|
105
|
-
- spec/testdata/
|
198
|
+
- spec/testdata/multiple_levels/libs/lib1/lib1.cpp
|
199
|
+
- spec/testdata/multiple_levels/libs/lib1/lib1.h
|
106
200
|
- spec/testdata/multiple_levels/libs/lib1/project.rb
|
201
|
+
- spec/testdata/multiple_levels/libs/lib2/lib2.cpp
|
202
|
+
- spec/testdata/multiple_levels/libs/lib2/lib2.h
|
107
203
|
- spec/testdata/multiple_levels/libs/lib2/project.rb
|
204
|
+
- spec/testdata/multiple_levels/mainproject/basic/help.cpp
|
205
|
+
- spec/testdata/multiple_levels/mainproject/basic/help.h
|
206
|
+
- spec/testdata/multiple_levels/mainproject/basic/main.cpp
|
108
207
|
- spec/testdata/multiple_levels/mainproject/basic/project.rb
|
109
|
-
- spec/
|
208
|
+
- spec/testdata/onlyOneHeader/.gitignore
|
209
|
+
- spec/testdata/onlyOneHeader/Rakefile.rb
|
210
|
+
- spec/testdata/onlyOneHeader/help.cpp
|
211
|
+
- spec/testdata/onlyOneHeader/help.h
|
212
|
+
- spec/testdata/onlyOneHeader/main.cpp
|
213
|
+
- spec/testdata/onlyOneHeader/project.rb
|
214
|
+
- spec/testdata/onlyOneHeader/testin.c
|
110
215
|
- spec/toolchain_spec.rb
|
111
|
-
- spec/rake_listener_ext_spec.rb
|
112
216
|
homepage: https://github.com/marcmo/cxxproject
|
113
217
|
licenses: []
|
114
|
-
|
115
218
|
post_install_message:
|
116
219
|
rdoc_options: []
|
117
|
-
|
118
|
-
require_paths:
|
220
|
+
require_paths:
|
119
221
|
- lib
|
120
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
222
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
121
223
|
none: false
|
122
|
-
requirements:
|
123
|
-
- -
|
124
|
-
- !ruby/object:Gem::Version
|
125
|
-
|
126
|
-
segments:
|
224
|
+
requirements:
|
225
|
+
- - ! '>='
|
226
|
+
- !ruby/object:Gem::Version
|
227
|
+
version: '0'
|
228
|
+
segments:
|
127
229
|
- 0
|
128
|
-
|
129
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
230
|
+
hash: 3633209029536328259
|
231
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
130
232
|
none: false
|
131
|
-
requirements:
|
132
|
-
- -
|
133
|
-
- !ruby/object:Gem::Version
|
134
|
-
version:
|
233
|
+
requirements:
|
234
|
+
- - ! '>='
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: '0'
|
135
237
|
requirements: []
|
136
|
-
|
137
238
|
rubyforge_project:
|
138
239
|
rubygems_version: 1.8.24
|
139
240
|
signing_key:
|
140
241
|
specification_version: 3
|
141
242
|
summary: Cpp Support for Rake.
|
142
243
|
test_files: []
|
143
|
-
|