gccxml_gem 0.9-x86-cygwin → 0.9.1-x86-cygwin
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/gccxml.rb +9 -2
- metadata +2 -2
data/Rakefile
CHANGED
data/gccxml.rb
CHANGED
@@ -7,6 +7,7 @@ class GCCXML
|
|
7
7
|
def initialize()
|
8
8
|
@exe = find_exe.strip.chomp
|
9
9
|
@includes = []
|
10
|
+
@flags = []
|
10
11
|
end
|
11
12
|
|
12
13
|
# Add an include path for parsing
|
@@ -14,12 +15,18 @@ class GCCXML
|
|
14
15
|
@includes << path
|
15
16
|
end
|
16
17
|
|
18
|
+
# Add extra CXXFLAGS to the command line
|
19
|
+
def add_cxxflags(flags)
|
20
|
+
@flags << flags
|
21
|
+
end
|
22
|
+
|
17
23
|
# Run gccxml on the header file(s), sending the output to the passed in
|
18
24
|
# file.
|
19
25
|
def parse(header_file, to_file)
|
20
26
|
includes = @includes.flatten.uniq.map {|i| "-I#{i.chomp}"}.join(" ").chomp
|
21
|
-
|
22
|
-
|
27
|
+
flags = @flags.flatten.join(" ").chomp
|
28
|
+
cmd = "#{@exe} #{includes} #{flags} #{header_file} -fxml=#{to_file}"
|
29
|
+
raise "Error executing gccxml command line: #{cmd}" unless system(cmd)
|
23
30
|
end
|
24
31
|
|
25
32
|
private
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gccxml_gem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.9.1
|
5
5
|
platform: x86-cygwin
|
6
6
|
authors:
|
7
7
|
- Jason Roelofs
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-05-
|
12
|
+
date: 2008-05-11 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|