Mxx_ru 1.6.1 → 1.6.2

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/Rakefile CHANGED
@@ -2,7 +2,7 @@ $:.unshift( '.' )
2
2
 
3
3
  require 'rubygems'
4
4
 
5
- require 'rake/gempackagetask'
5
+ require 'rubygems/package_task'
6
6
  require 'rake/testtask'
7
7
 
8
8
  require 'lib/mxx_ru/version'
@@ -24,7 +24,7 @@ spec = Gem::Specification.new do |s|
24
24
  s.extra_rdoc_files = [ "README", "Rakefile", "COPYING", "NEWS" ] + FileList[ "docs/**/*" ].to_a
25
25
  end
26
26
 
27
- gem = Rake::GemPackageTask.new( spec ) do |pkg|
27
+ gem = Gem::PackageTask.new( spec ) do |pkg|
28
28
  pkg.need_zip = true
29
29
  pkg.need_tar = true
30
30
  end
@@ -44,15 +44,16 @@ test = Rake::TestTask.new do |t|
44
44
 
45
45
  # MSWin specific files must be excluded if not Windows platform.
46
46
  test_files = test_files.delete_if { |n| /mswin/ =~ n } unless
47
- /^mswin/ =~ Config::CONFIG[ 'host_os' ]
47
+ /^mswin/ =~ RbConfig::CONFIG[ 'host_os' ]
48
48
 
49
49
  # Unix specific files must be excluded on Windows platform.
50
50
  test_files = test_files.delete_if { |n| /unix/ =~ n } if
51
- /^mswin/ =~ Config::CONFIG[ 'host_os' ]
51
+ (/^mswin/ =~ RbConfig::CONFIG[ 'host_os' ] ||
52
+ /^mingw/ =~ RbConfig::CONFIG[ 'host_os' ])
52
53
 
53
54
  # Darwin specific files must be excluded if not MacOS platform.
54
55
  test_files = test_files.delete_if { |n| /darwin/ =~ n } unless
55
- /^darwin/ =~ Config::CONFIG[ 'host_os' ]
56
+ /^darwin/ =~ RbConfig::CONFIG[ 'host_os' ]
56
57
 
57
58
  t.test_files = test_files
58
59
  t.verbose = true
@@ -150,6 +150,8 @@ module MxxRu
150
150
  else
151
151
  if ENV[ 'COMP_ENV' ] and ENV[ 'VC_ARCH' ]
152
152
  'icc_win'
153
+ elsif ENV[ 'VS120COMNTOOLS' ]
154
+ 'vc12'
153
155
  elsif ENV[ 'VS110COMNTOOLS' ]
154
156
  'vc11'
155
157
  elsif ENV[ 'VS100COMNTOOLS' ]
@@ -0,0 +1,58 @@
1
+ #--
2
+ # Copyright (c) 1996-2004, Yauheni Akhotnikau
3
+ # Copyright (c) 2004-2006, JSC Intervale
4
+ # Copyright (c) 2006-2013, The Mxx_ru Project
5
+ # All rights reserved.
6
+ #
7
+ # Redistribution and use in source and binary forms, with or without modification,
8
+ # are permitted provided that the following conditions are met:
9
+ #
10
+ # 1. Redistributions of source code must retain the above copyright notice,
11
+ # this list of conditions and the following disclaimer.
12
+ # 2. Redistributions in binary form must reproduce the above copyright notice,
13
+ # this list of conditions and the following disclaimer in the documentation
14
+ # and/or other materials provided with the distribution.
15
+ # 3. The name of the author may not be used to endorse or promote products derived
16
+ # from this software without specific prior written permission.
17
+ #
18
+ # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
19
+ # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
20
+ # AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE
21
+ # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22
+ # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23
+ # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24
+ # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
25
+ # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
26
+ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
+ #++
28
+
29
+ require 'ostruct'
30
+ require 'set'
31
+
32
+ require 'mxx_ru/cpp/target'
33
+ require 'mxx_ru/cpp/toolsets/vc8_family'
34
+
35
+ module MxxRu
36
+ module Cpp
37
+ module Toolsets
38
+
39
+ # Toolset implementation for Visual C++ 12.0 (Visual Studio 2013)
40
+ #
41
+ # Setups following tags:
42
+ # [_ver_hi_] high version number. Value: 12.
43
+ # [_ver_lo_] low version number. Value: 0.
44
+ class Vc12 < MxxRu::Cpp::Toolsets::Vc8Family
45
+ def initialize( a_name = "vc" )
46
+ super( a_name )
47
+
48
+ setup_tag( "ver_hi", "12" )
49
+ setup_tag( "ver_lo", "0" )
50
+ end
51
+ end # class Vc11
52
+
53
+ end # module Toolsets
54
+ end # module Cpp
55
+ end # module MxxRu
56
+
57
+ MxxRu::Cpp::setup_toolset( MxxRu::Cpp::Toolsets::Vc12.new )
58
+
@@ -34,4 +34,4 @@
34
34
  #
35
35
  # puts 'Mxx_ru version is: ' + MXX_RU_VERSION
36
36
  #
37
- MXX_RU_VERSION = '1.6.1'
37
+ MXX_RU_VERSION = '1.6.2'
@@ -1,4 +1,3 @@
1
- #include <iostream>
2
-
3
- void a() { std::cout << "a()" << std::endl; }
4
-
1
+ #include <cstdio>
2
+
3
+ void A() { std::printf( "A\n" ); }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Mxx_ru
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.1
4
+ version: 1.6.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-27 00:00:00.000000000 Z
12
+ date: 2013-12-24 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description:
15
15
  email: eao197@yahoo.com
@@ -271,6 +271,7 @@ files:
271
271
  - lib/mxx_ru/cpp/toolsets/icc_win.rb
272
272
  - lib/mxx_ru/cpp/toolsets/vc10.rb
273
273
  - lib/mxx_ru/cpp/toolsets/vc11.rb
274
+ - lib/mxx_ru/cpp/toolsets/vc12.rb
274
275
  - lib/mxx_ru/cpp/toolsets/vc7.rb
275
276
  - lib/mxx_ru/cpp/toolsets/vc8.rb
276
277
  - lib/mxx_ru/cpp/toolsets/vc8_family.rb