rake-c 0.0.3 → 0.0.4
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.
- checksums.yaml +4 -4
- data/lib/rake/c.rb +3 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc0cc57eb2535bd830262841908807b5f3f9ef063e04ed05bd40ab3d4155c4b6
|
4
|
+
data.tar.gz: 844ad50c9cc2e503913b22dff5c37d8d6fea3c7e4bca704b41866b885d207236
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f048f78d88f563c4443cee8a9d5d49c9fcdbcf1d59afcd640f970e9151a973fcbb9463a32bc3f125b0bdfcc3afcf484db8a657b5f37ffccecfff46576f075d82
|
7
|
+
data.tar.gz: cb144f0852f065961724acd11839e53139543e172f76ffe6c222c090d8007875dc394b51efd91ac790970ee0430a19359f912b5289806feda693a255963d79d5
|
data/lib/rake/c.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'rake'
|
2
|
+
require 'fileutils'
|
2
3
|
|
3
4
|
class C
|
4
5
|
@@cflags = '-Wall'
|
@@ -67,7 +68,7 @@ class C
|
|
67
68
|
objects.push theobject
|
68
69
|
Rake::FileTask.define_task theobject => [thesource] do
|
69
70
|
puts "[CC] #{theobject}"
|
70
|
-
|
71
|
+
FileUtils.mkdir_p "#{@@builddir}/objects/#{name}"
|
71
72
|
xxx = run "#{@@compiler} #{cflags}#{@@libs} -M \"#{thesource}\""
|
72
73
|
xx = []
|
73
74
|
File.open(thedeps, 'w') do |f|
|
@@ -106,7 +107,7 @@ class C
|
|
106
107
|
objects.push theobject
|
107
108
|
Rake::FileTask.define_task theobject => [thesource] do
|
108
109
|
puts "[CC] #{theobject}"
|
109
|
-
|
110
|
+
FileUtils.mkdir_p "#{@@builddir}/objects"
|
110
111
|
xxx = run "#{@@compiler} #{cflags}#{@@libs} -M \"#{thesource}\""
|
111
112
|
xx = []
|
112
113
|
File.open(thedeps, 'w') do |f|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rake-c
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lukas Joeressen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: This Gem can build small C programs.
|
14
14
|
email: lukas@joeressen.net
|
@@ -19,7 +19,7 @@ files:
|
|
19
19
|
- lib/rake/c.rb
|
20
20
|
homepage: https://github.com/kext/rake-c
|
21
21
|
licenses:
|
22
|
-
- CC0
|
22
|
+
- CC0-1.0
|
23
23
|
metadata: {}
|
24
24
|
post_install_message:
|
25
25
|
rdoc_options: []
|