Mxx_ru 1.6.14 → 1.6.14.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f0913459ee2d57d180f4ad35d293b37cc6c109c7
4
- data.tar.gz: 154543abe2eb0a948f69cd83bb89e1394e6cad28
3
+ metadata.gz: 763632cc5e28b6caf3d88023c1c3701d37efc893
4
+ data.tar.gz: 18f2845ce05663db6f7f7706392b619581edcec0
5
5
  SHA512:
6
- metadata.gz: a4909f10582c0d97afed0247cee6f5ee6b655016adbad5c8fb30878de04b908f2abdc214bfffadda9c05e9d8bbd499f2a7235a52af403efeecd1009431f71d1d
7
- data.tar.gz: 34b15a18148b1ecf962fd88056ccc4ce862805ebdd466d4e678d3bba3fa22a244fe2c50997af2e07879dfd8f1316baf73e79014a29b840714461b13dbe1e50da
6
+ metadata.gz: 184fba6be0dbc662ad56d66d3439f66789e88e3c9b2a52d2132a3a1ef427143e031bff37d400b4af88b754436c3754ac1a07d32aef8a3961f9f5c68e3dec73e0
7
+ data.tar.gz: eb613ae261f7209764cef0f0c41268832ef14a744038c6a6b0ae432b5504e9262a198477e9e3ea1b9582ced5a0c425ac81cdf0326bff78966b5e7e2fb6b40bee
@@ -62,11 +62,11 @@ module MxxRu
62
62
 
63
63
  # In dry-run mode we always return that target is absent.
64
64
  if !MxxRu::Util::Mode.instance.is_dry_run
65
- if FileTest.exists?( name )
65
+ if FileTest.exist?( name )
66
66
  # It's necessary to detect time of target and it's dependencies.
67
67
  target_mtime = File.mtime( name )
68
68
  if nil != depends.find { |d|
69
- if !FileTest.exists?( d )
69
+ if !FileTest.exist?( d )
70
70
  raise MxxRu::MissingDependFileEx.new( d, name )
71
71
  end
72
72
  depend_mtime = File.mtime( d )
@@ -144,7 +144,7 @@ module MxxRu
144
144
  # exists, then we will load root project file and start build process
145
145
  # after that.
146
146
  if BUILD_ROOT != target.prj_alias
147
- if FileTest.exists?( BUILD_ROOT )
147
+ if FileTest.exist?( BUILD_ROOT )
148
148
  require BUILD_ROOT
149
149
  end
150
150
  end
@@ -48,9 +48,7 @@ end
48
48
  # Since v.1.4.0
49
49
  class LibCollectionTarget < CompositeTarget
50
50
  def initialize( a_alias, &block )
51
- super( a_alias )
52
-
53
- instance_eval( &block ) if block
51
+ super( a_alias, &block )
54
52
  end
55
53
 
56
54
  def target_type
@@ -1,7 +1,7 @@
1
1
  #--
2
2
  # Copyright (c) 1996-2004, Yauheni Akhotnikau
3
3
  # Copyright (c) 2004-2006, JSC Intervale
4
- # Copyright (c) 2006-2016, The Mxx_ru Project
4
+ # Copyright (c) 2006-2017, The Mxx_ru Project
5
5
  # All rights reserved.
6
6
  #
7
7
  # Redistribution and use in source and binary forms, with or without modification,
@@ -65,7 +65,10 @@ module MxxRu
65
65
  target.cpp_compiler_option( "-fno-rtti" )
66
66
  end
67
67
 
68
- target.compiler_option( "-fPIC" )
68
+ # -fPIC switch is not supported on clang+msvc since clang-4.0.0
69
+ if 'mswin' != tag( 'host_os' )
70
+ target.compiler_option( "-fPIC" )
71
+ end
69
72
 
70
73
  target.mxx_all_defines.each { |d|
71
74
  target.compiler_option( "-D" + d )
data/lib/mxx_ru/util.rb CHANGED
@@ -217,7 +217,7 @@ module MxxRu
217
217
 
218
218
  # Deleting file name without exception.
219
219
  def Util.delete_file( a_name )
220
- if FileTest.exists?( a_name )
220
+ if FileTest.exist?( a_name )
221
221
  File.delete( a_name )
222
222
  end
223
223
  end
@@ -337,7 +337,7 @@ module MxxRu
337
337
  end
338
338
 
339
339
  chain.each { |d|
340
- if !FileTest.exists?( d )
340
+ if !FileTest.exist?( d )
341
341
  Dir.mkdir( d )
342
342
  end
343
343
  }
@@ -352,7 +352,7 @@ module MxxRu
352
352
  # isn't.
353
353
  def Util.ensure_path_exists( a_path_name )
354
354
  if !MxxRu::Util::Mode.instance.is_dry_run
355
- if !FileTest.exists?( a_path_name )
355
+ if !FileTest.exist?( a_path_name )
356
356
  MxxRu::Util.create_dir( a_path_name )
357
357
  end
358
358
  end
@@ -34,4 +34,4 @@
34
34
  #
35
35
  # puts 'Mxx_ru version is: ' + MXX_RU_VERSION
36
36
  #
37
- MXX_RU_VERSION = '1.6.14'
37
+ MXX_RU_VERSION = '1.6.14.2'
@@ -27,7 +27,7 @@ module TestWithCompilation
27
27
  def init_compilation_params( path_name )
28
28
  @path_name = path_name
29
29
  @lib_path = '../' * (path_name.count( '/' ) + 1) + 'lib'
30
- @need_change_cwd = File.exists?( path_name )
30
+ @need_change_cwd = File.exist?( path_name )
31
31
  end
32
32
 
33
33
  def build( *project_files )
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Mxx_ru
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.14
4
+ version: 1.6.14.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Mxx_ru Project
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-10 00:00:00.000000000 Z
11
+ date: 2017-08-03 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Mxx_ru is a cross-platform build tool primarily focused to C/C++ projects
14
14
  email: eao197@yahoo.com
@@ -395,7 +395,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
395
395
  version: '0'
396
396
  requirements: []
397
397
  rubyforge_project:
398
- rubygems_version: 2.6.8
398
+ rubygems_version: 2.6.11
399
399
  signing_key:
400
400
  specification_version: 4
401
401
  summary: Mxx_ru (Make++ on Ruby) is a cross-platform build tool