ritsu 0.5.0 → 0.5.1
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/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.1
|
@@ -4,7 +4,7 @@ require File.expand_path(File.dirname(__FILE__) + '/../../../src_files/target_cm
|
|
4
4
|
|
5
5
|
module Ritsu
|
6
6
|
module SrcFiles
|
7
|
-
class TargetCmakeLists
|
7
|
+
class TargetCmakeLists
|
8
8
|
class CudaCompileTemplate < Ritsu::Template
|
9
9
|
attr_reader :target
|
10
10
|
|
@@ -31,11 +31,6 @@ module Ritsu
|
|
31
31
|
block.add_line("${CMAKE_SOURCE_DIR}/#{cu_file.src_path}")
|
32
32
|
end
|
33
33
|
block.outdent
|
34
|
-
#if target.static_library?
|
35
|
-
# block.add_line("STATIC")
|
36
|
-
#elsif target.shared_library?
|
37
|
-
# block.add_line("SHARED")
|
38
|
-
#end
|
39
34
|
block.add_line ")"
|
40
35
|
block.add_new_line
|
41
36
|
block.add_line "SET(#{target.name.upcase}_SRC_FILES ${#{target.name.upcase}_SRC_FILES} ${#{cuda_generate_files_var_name}})"
|
@@ -72,7 +72,7 @@ module Ritsu
|
|
72
72
|
|
73
73
|
create_dir(File.dirname(filename), :echo_exists=>false)
|
74
74
|
if File.exists?(filename)
|
75
|
-
if force
|
75
|
+
if self.force
|
76
76
|
do_overwrite.call
|
77
77
|
else
|
78
78
|
answer = io.ask_yes_no_all("overwrite #{filename}?")
|
@@ -82,7 +82,7 @@ module Ritsu
|
|
82
82
|
when :no
|
83
83
|
io.log('exist', filename)
|
84
84
|
when :all
|
85
|
-
force = true
|
85
|
+
self.force = true
|
86
86
|
do_overwrite.call
|
87
87
|
end
|
88
88
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ritsu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
9
|
+
- 1
|
10
|
+
version: 0.5.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- dragonmeteor
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-08-26 00:00:00 +07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|