cxxproject 0.6.14 → 0.6.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. data/.gitignore +18 -0
  2. data/.rvmrc +1 -0
  3. data/Gemfile +4 -0
  4. data/Gemfile.lock +31 -0
  5. data/LICENSE +22 -0
  6. data/README.md +868 -0
  7. data/Rakefile.rb +25 -24
  8. data/cxx.gemspec +22 -0
  9. data/example/.gitignore +1 -0
  10. data/example/Rakefile.rb +35 -0
  11. data/example/big_project/.gitignore +2 -0
  12. data/example/big_project/Rakefile_generator.rb +80 -0
  13. data/example/big_project/fak.h +9 -0
  14. data/example/ckLayout/cxxproject/Rakefile.rb +4 -0
  15. data/example/ckLayout/io/Io.cpp +7 -0
  16. data/example/ckLayout/io/Io.h +6 -0
  17. data/example/ckLayout/io/project.rb +5 -0
  18. data/example/ckLayout/lang/Lang.cpp +7 -0
  19. data/example/ckLayout/lang/Lang.h +6 -0
  20. data/example/ckLayout/lang/project.rb +3 -0
  21. data/example/ckLayout/projects/test/main.cpp +8 -0
  22. data/example/ckLayout/projects/test/project.rb +6 -0
  23. data/example/custom/.gitignore +1 -0
  24. data/example/custom/Rakefile.rb +12 -0
  25. data/example/custom/foo.cpp +5 -0
  26. data/example/custom/project.rb +27 -0
  27. data/example/dependency_tests/Rakefile.rb +3 -0
  28. data/example/dependency_tests/help1.h +12 -0
  29. data/example/dependency_tests/help2.h +10 -0
  30. data/example/dependency_tests/main.cpp +6 -0
  31. data/example/dependency_tests/project.rb +3 -0
  32. data/example/generator/Rakefile.rb +12 -0
  33. data/example/generator/main/main.cpp +3 -0
  34. data/example/generator/main/project/project.rb +3 -0
  35. data/example/oneFileOnly/Rakefile.rb +3 -0
  36. data/example/oneFileOnly/config.h +2 -0
  37. data/example/oneFileOnly/main.cpp +8 -0
  38. data/example/oneFileOnly/project_compile.rb +3 -0
  39. data/example/protobuf/.gitignore +4 -0
  40. data/example/protobuf/Rakefile.rb +70 -0
  41. data/example/protobuf/addressbook/addressbook.proto +24 -0
  42. data/example/protobuf/addressbook/addressbook_read.cc +67 -0
  43. data/example/protobuf/addressbook/addressbook_write.cc +93 -0
  44. data/example/protobuf/addressbook/project.rb +16 -0
  45. data/example/protobuf/protobuf.files +37 -0
  46. data/example/protobuf/protobuf_project.rb +9 -0
  47. data/example/simpleUnitTest/Rakefile.rb +4 -0
  48. data/example/simpleUnitTest/atest.cpp +16 -0
  49. data/example/simpleUnitTest/atest.h +11 -0
  50. data/example/simpleUnitTest/project.rb +5 -0
  51. data/example/simpleUnitTest/test.cpp +13 -0
  52. data/example/strange_dirs/Rakefile.rb +4 -0
  53. data/example/strange_dirs/lazyLib/project.rb +5 -0
  54. data/example/strange_dirs/main/main.cpp +5 -0
  55. data/example/strange_dirs/main/project.rb +5 -0
  56. data/example/strange_dirs/src/test.cpp +4 -0
  57. data/example/test.rb +10 -0
  58. data/example/three_tests/Rakefile.rb +5 -0
  59. data/example/three_tests/allsuites/project.rb +4 -0
  60. data/example/three_tests/main/main.cpp +13 -0
  61. data/example/three_tests/main/project.rb +5 -0
  62. data/example/three_tests/suite1/project.rb +6 -0
  63. data/example/three_tests/suite1/suite1.cpp +3 -0
  64. data/example/three_tests/suite1/suite1.h +28 -0
  65. data/example/three_tests/suite2/project.rb +6 -0
  66. data/example/three_tests/suite2/suite2.cpp +3 -0
  67. data/example/three_tests/suite2/suite2.h +29 -0
  68. data/lib/cxxproject/version.rb +4 -1
  69. data/plugins/tmp/.rvmrc +1 -0
  70. data/plugins/tmp/BuildDir/objects/testme/test.o +0 -0
  71. data/plugins/tmp/BuildDir/objects/testme/test.o.d +1 -0
  72. data/plugins/tmp/BuildDir/testme.exe +0 -0
  73. data/plugins/tmp/Rakefile.rb +6 -0
  74. data/plugins/tmp/project.rb +6 -0
  75. data/plugins/tmp/reinstall/Rakefile.rb +15 -0
  76. data/plugins/tmp/test.cpp +7 -0
  77. data/rake_helper/perftools.rb +34 -0
  78. data/rake_helper/spec.rb +80 -0
  79. data/roodi.yml +8 -0
  80. data/spec/testdata/basic/exe12/help.cpp +5 -0
  81. data/spec/testdata/basic/exe12/help.h +6 -0
  82. data/spec/testdata/basic/exe12/main.cpp +10 -0
  83. data/spec/testdata/basic/lib1/lib1.cpp +7 -0
  84. data/spec/testdata/basic/lib1/lib1.h +8 -0
  85. data/spec/testdata/basic/lib2/lib2.cpp +17 -0
  86. data/spec/testdata/basic/lib2/lib2.h +6 -0
  87. data/spec/testdata/multiple_levels/libs/lib1/lib1.cpp +7 -0
  88. data/spec/testdata/multiple_levels/libs/lib1/lib1.h +8 -0
  89. data/spec/testdata/multiple_levels/libs/lib2/lib2.cpp +21 -0
  90. data/spec/testdata/multiple_levels/libs/lib2/lib2.h +6 -0
  91. data/spec/testdata/multiple_levels/mainproject/basic/help.cpp +5 -0
  92. data/spec/testdata/multiple_levels/mainproject/basic/help.h +6 -0
  93. data/spec/testdata/multiple_levels/mainproject/basic/main.cpp +10 -0
  94. data/spec/testdata/onlyOneHeader/.gitignore +1 -0
  95. data/spec/testdata/onlyOneHeader/help.cpp +5 -0
  96. data/spec/testdata/onlyOneHeader/help.h +7 -0
  97. data/spec/testdata/onlyOneHeader/main.cpp +8 -0
  98. data/spec/testdata/onlyOneHeader/testin.c +0 -0
  99. metadata +191 -91
data/.gitignore ADDED
@@ -0,0 +1,18 @@
1
+ pkg
2
+ temp
3
+ .project
4
+ .buildpath
5
+ tags
6
+ id_cache
7
+ out
8
+ .idea
9
+ *.iml
10
+ *_output_dir
11
+ testdata
12
+ *~
13
+ coverage
14
+ html
15
+ *.gem
16
+ build
17
+ example/basic/basic/local_build
18
+
data/.rvmrc ADDED
@@ -0,0 +1 @@
1
+ rvm use 1.9.3@cxxproject --create
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source :rubygems
2
+ gem 'rspec'
3
+ gem 'grit'
4
+ gem 'roodi'
data/Gemfile.lock ADDED
@@ -0,0 +1,31 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ diff-lcs (1.1.3)
5
+ grit (2.5.0)
6
+ diff-lcs (~> 1.1)
7
+ mime-types (~> 1.15)
8
+ posix-spawn (~> 0.3.6)
9
+ mime-types (1.19)
10
+ posix-spawn (0.3.6)
11
+ roodi (2.1.0)
12
+ ruby_parser
13
+ rspec (2.11.0)
14
+ rspec-core (~> 2.11.0)
15
+ rspec-expectations (~> 2.11.0)
16
+ rspec-mocks (~> 2.11.0)
17
+ rspec-core (2.11.0)
18
+ rspec-expectations (2.11.1)
19
+ diff-lcs (~> 1.1.3)
20
+ rspec-mocks (2.11.1)
21
+ ruby_parser (2.3.1)
22
+ sexp_processor (~> 3.0)
23
+ sexp_processor (3.2.0)
24
+
25
+ PLATFORMS
26
+ ruby
27
+
28
+ DEPENDENCIES
29
+ grit
30
+ roodi
31
+ rspec
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2010, All rights reserved.
2
+
3
+ Redistribution and use in source and binary forms, with or without
4
+ modification, are permitted provided that the following conditions are met:
5
+ * Redistributions of source code must retain the above copyright
6
+ notice, this list of conditions and the following disclaimer.
7
+ * Redistributions in binary form must reproduce the above copyright
8
+ notice, this list of conditions and the following disclaimer in the
9
+ documentation and/or other materials provided with the distribution.
10
+
11
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
12
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
13
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
14
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
15
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
16
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
17
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
18
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
19
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
20
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
21
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
22
+