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 +6 -5
- data/lib/mxx_ru/cpp/detect_toolset.rb +2 -0
- data/lib/mxx_ru/cpp/toolsets/vc12.rb +58 -0
- data/lib/mxx_ru/version.rb +1 -1
- data/tests/unix/lib_order/a.cpp +3 -4
- metadata +3 -2
data/Rakefile
CHANGED
|
@@ -2,7 +2,7 @@ $:.unshift( '.' )
|
|
|
2
2
|
|
|
3
3
|
require 'rubygems'
|
|
4
4
|
|
|
5
|
-
require '
|
|
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 =
|
|
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/ =~
|
|
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/ =~
|
|
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/ =~
|
|
56
|
+
/^darwin/ =~ RbConfig::CONFIG[ 'host_os' ]
|
|
56
57
|
|
|
57
58
|
t.test_files = test_files
|
|
58
59
|
t.verbose = true
|
|
@@ -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
|
+
|
data/lib/mxx_ru/version.rb
CHANGED
data/tests/unix/lib_order/a.cpp
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
#include <
|
|
2
|
-
|
|
3
|
-
void
|
|
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.
|
|
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-
|
|
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
|