cxx 0.1.16 → 0.1.17

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- M2JhZDYyM2Y0YzA0MTNkOGVlOWJjMjc1ZDcwMTdjYThjMjFmYTMyYw==
5
- data.tar.gz: !binary |-
6
- MDQwZjdlZWQ0ZmJiZWEwMzA1YThkMGEzNzUwOWMwMjVlYzkzMWRkYg==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- OTIxNDZiY2RmNGU1MTFkZmI5MDhlYmRkZTJmODI2YjkxMzViODlhNTRlZjNl
10
- MWExZTM5NDJlZTMwYmNjYjUxNDkxODYyNDlhMTg3Njg3N2MzOGZhOGIzZjdi
11
- MjZhYTIxZDAwZjFmNzljMWMyZDk1NTRkODE5YjQxZmRjYWIxZjI=
12
- data.tar.gz: !binary |-
13
- Mzk2MWViZDNlMDgxMDUxNGFhZWQzMGYxYWJkMDZlZjFiZjE1YTA1NzNlM2Vj
14
- MjdiNDkwYWQ5ZGQ0NjIyYzIyMTllM2RkNTE0MDUwODE1ZmQyMWNlZDdhOTBi
15
- OWM2MDViZTU2OWVjOTc4NTQ5MDM1YjQ2YTAxZjEyM2I5NGZjMWI=
2
+ SHA1:
3
+ metadata.gz: 9f9333f784b8e7ab4a1909a79d67d5f2d0ec65ac
4
+ data.tar.gz: 16246007d4cf5bbd2c59ff0b6b15c46bc7c6384a
5
+ SHA512:
6
+ metadata.gz: a5766c10e02a0ca732f2dc21c659be4aa76763b0568f07ce4852b0053946eb3158638070e8862b7b659ed7f8c4b2653db79644dfc35ebfdf8d2379b03a06eb14
7
+ data.tar.gz: 9bb44012ef91a1938b181a31e09330a6aa0a06cb8fd000c68082c2113c94e8bc7f08c25228f7e0b04bae94299b5dcd58f01858048ae11ece21e9bb720aff7a62
@@ -66,7 +66,7 @@ module Cxx
66
66
  all_blocks << bblock
67
67
  bblock
68
68
  end
69
-
69
+
70
70
  # specify an executable
71
71
  # hash supports:
72
72
  # * :sources
@@ -74,9 +74,13 @@ module Cxx
74
74
  # * :dependencies
75
75
  # * :output_dir
76
76
  # * :tags
77
+ # * :major
78
+ # * :minor
79
+ # * :compatibility
77
80
  def shared_lib(name, hash)
78
81
  raise "not a hash" unless hash.is_a?(Hash)
79
- check_hash(hash, [:sources, :includes, :dependencies, :output_dir, :tags])
82
+ check_hash(hash, [:sources, :includes, :dependencies, :output_dir, :tags, :major, :minor, :compatibility])
83
+ raise "add the :major version to shared library #{name}" unless not hash.has_key?(:minor) or hash.has_key?(:major)
80
84
  bblock = Cxxproject::SharedLibrary.new(name)
81
85
  attach_sources(hash,bblock)
82
86
  attach_includes(hash,bblock)
@@ -85,6 +89,15 @@ module Cxx
85
89
  bblock.set_dependencies(hash[:dependencies])
86
90
  hash[:dependencies].each { |d| bblock.add_lib_element(Cxxproject::HasLibraries::DEPENDENCY, d) }
87
91
  end
92
+ if hash.has_key?(:minor)
93
+ bblock.minor = hash[:minor]
94
+ end
95
+ if hash.has_key?(:major)
96
+ bblock.major = hash[:major]
97
+ end
98
+ if hash.has_key?(:compatibility)
99
+ bblock.compatibility = hash[:compatibility]
100
+ end
88
101
  bblock.set_output_dir(hash[:output_dir]) if hash.has_key?(:output_dir)
89
102
  all_blocks << bblock
90
103
  bblock
@@ -160,6 +173,5 @@ module Cxx
160
173
  end
161
174
  all_blocks << bblock
162
175
  end
163
-
164
- end
176
+ end
165
177
  end
@@ -1,4 +1,4 @@
1
1
  module Cxx
2
- VERSION = '0.1.16'
2
+ VERSION = '0.1.17'
3
3
  end
4
4
 
@@ -0,0 +1,4 @@
1
+ module Cxx
2
+ VERSION = '0.1.15'
3
+ end
4
+
@@ -45,7 +45,7 @@ def choose_building_block
45
45
  say 'What building-block do you whant to create?'
46
46
  menu.choice(:exe) { building_block = 'exe' }
47
47
  menu.choice(:lib) do
48
- building_block = 'source_lib'
48
+ building_block = 'static_lib'
49
49
  whole_archive = confirm('Is this a test-library', false)
50
50
  end
51
51
  menu.prompt = 'Select a building-block: '
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cxx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.16
4
+ version: 0.1.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - christian koestlin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-27 00:00:00.000000000 Z
11
+ date: 2016-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cxxproject
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: highline
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ! '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ! '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  description: ruby-based dsl for cxxproject
@@ -46,12 +46,13 @@ extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
48
  - bin/cxx
49
+ - lib/cxx.rb
49
50
  - lib/cxx/eval_context.rb
50
51
  - lib/cxx/version.rb
52
+ - lib/cxx/version.rb~
51
53
  - lib/cxx/wizard/Rakefile.rb.template
52
54
  - lib/cxx/wizard/project.rb.template
53
55
  - lib/cxx/wizard/project_wizard.rb
54
- - lib/cxx.rb
55
56
  homepage:
56
57
  licenses: []
57
58
  metadata: {}
@@ -61,17 +62,17 @@ require_paths:
61
62
  - lib
62
63
  required_ruby_version: !ruby/object:Gem::Requirement
63
64
  requirements:
64
- - - ! '>='
65
+ - - ">="
65
66
  - !ruby/object:Gem::Version
66
67
  version: '0'
67
68
  required_rubygems_version: !ruby/object:Gem::Requirement
68
69
  requirements:
69
- - - ! '>='
70
+ - - ">="
70
71
  - !ruby/object:Gem::Version
71
72
  version: '0'
72
73
  requirements: []
73
74
  rubyforge_project:
74
- rubygems_version: 2.0.6
75
+ rubygems_version: 2.5.1
75
76
  signing_key:
76
77
  specification_version: 4
77
78
  summary: defines the method cxx_configuration