gaudi 0.4.0 → 0.5.0

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: 48ae9eaa6fccfcbee99c7d39305ef0c02451fb3e
4
- data.tar.gz: 179cef8b9343c0850a0bf8b491ac2ab09f33e66a
3
+ metadata.gz: fa27af80aed2a097d1fb2979cf10aa7c18de850b
4
+ data.tar.gz: a36a0e2fc78ff9e0fb63e3cf56ef171e278b0d66
5
5
  SHA512:
6
- metadata.gz: c2ca61d87478cedb4b8427b3f65098d28663ac47de01b14376f993c07da4a9f4ace00eac16f7f88451acf55a53e3feafc7d1985f65c2f107b480171dc055ce77
7
- data.tar.gz: 6989012bb98c12d86861a9371dffb7223c76abb9277a6a716eb2e5f0e36ec8e4ef0621abd167510d5c537f8774e9e8f2c2ca4c093293a075824813e9343c17c4
6
+ metadata.gz: 1a445c84dc63345c9881c3aec7324188d254b6dc8f628bdcd5e534b9e3763a4ec5ac935fd75981b2aa3e29776d66a6b16f6ea8761a2801ff9def9e83efaf1853
7
+ data.tar.gz: 1db05c35efcd9393c773ca661b165beedfa4c184c4fcf6aec9d7d69dfe4225612db1b3e1f585ba9dc80a1ce9ecdd16a21f109c570ab5fcab464fb91089725c93
data/History.txt CHANGED
@@ -1,3 +1,10 @@
1
+ #0.5.0
2
+ * The scaffolding now only pulls gaudi core
3
+ * Directory structure now reduced to the directories absolutely necessary for gaudi core
4
+ * Templates and examples generated adjusted to the reduced gaudi-core functionality.
5
+ * C/C++ functionality in config files now completely commented out
6
+ * Doc main page for the API reference documentation added
7
+
1
8
  #0.3.1
2
9
  * Fixed bug that would delete my gaudi repo for being stupid
3
10
  #0.3.0
data/Manifest.txt CHANGED
@@ -1,9 +1,11 @@
1
1
  History.txt
2
2
  Manifest.txt
3
- README.txt
3
+ README.md
4
4
  bin/gaudi
5
5
  lib/gaudi.rb
6
6
  lib/gaudi/scaffolding.rb
7
+ lib/gaudi/templates/doc.md.template
7
8
  lib/gaudi/templates/main.cfg.template
8
9
  lib/gaudi/templates/platform.cfg.template
10
+ lib/gaudi/templates/rakefile.rb.template
9
11
  lib/gaudi/version.rb
File without changes
@@ -99,18 +99,19 @@ module Gaudi
99
99
  end
100
100
 
101
101
  def project version
102
- raise GemError, "#{project_root} already exists!" if File.exists?(project_root) && project_root != Dir.pwd
102
+ raise GemError, "#{project_root} already exists!" if File.exist?(project_root) && project_root != Dir.pwd
103
103
  check_for_git
104
104
  directory_structure
105
105
  rakefile
106
106
  main_config
107
107
  platform_config
108
108
  lib_config
109
- core("gaudi",REPO,version,"lib")
109
+ api_doc
110
+ core("gaudi",REPO,version,"lib/gaudi.rb lib/gaudi")
110
111
  end
111
112
 
112
113
  def update version
113
- raise GemError, "#{gaudi_home} is missing! Try creating a new Gaudi project first." unless File.exists?(gaudi_home)
114
+ raise GemError, "#{gaudi_home} is missing! Try creating a new Gaudi project first." unless File.exist?(gaudi_home)
114
115
  check_for_git
115
116
  puts "Removing old gaudi installation"
116
117
  FileUtils.rm_rf(File.join(gaudi_home,"lib/gaudi"))
@@ -118,7 +119,7 @@ module Gaudi
118
119
  end
119
120
 
120
121
  def library lib,source_url,version
121
- raise GemError, "#{gaudi_home} is missing! Try creating a new Gaudi project first." unless File.exists?(gaudi_home)
122
+ raise GemError, "#{gaudi_home} is missing! Try creating a new Gaudi project first." unless File.exist?(gaudi_home)
122
123
  #check_for_git
123
124
  puts "Removing old #{lib} installation"
124
125
  FileUtils.rm_rf(File.join(gaudi_home,"lib/#{lib}"))
@@ -132,7 +133,7 @@ module Gaudi
132
133
 
133
134
  def directory_structure
134
135
  puts "Creating Gaudi filesystem structure at #{project_root}"
135
- structure=["doc","lib","src/deployments","src/common","test","tools/build","tools/templates"]
136
+ structure=["doc","tools/build/config","tools/templates"]
136
137
  structure.each do |dir|
137
138
  FileUtils.mkdir_p File.join(project_root,dir),:verbose=>false
138
139
  end
@@ -141,14 +142,10 @@ module Gaudi
141
142
  def rakefile
142
143
  puts "Generating main Rakefile"
143
144
  rakefile=File.join(project_root,"Rakefile")
144
- if File.exists?(rakefile)
145
+ if File.exist?(rakefile)
145
146
  puts "Rakefile exists, skipping generation"
146
147
  else
147
- rakefile_content=<<-EOT
148
- require_relative 'tools/build/lib/gaudi'
149
- env_setup(File.dirname(__FILE__))
150
- require_relative 'tools/build/lib/gaudi/tasks'
151
- EOT
148
+ rakefile_content=File.read(File.join(File.dirname(__FILE__),'templates/rakefile.rb.template'))
152
149
  File.open(rakefile, 'wb') {|f| f.write(rakefile_content) }
153
150
  end
154
151
  end
@@ -156,7 +153,7 @@ require_relative 'tools/build/lib/gaudi/tasks'
156
153
  def main_config
157
154
  puts "Generating initial configuration file"
158
155
  config_file=File.join(project_root,"tools/build/#{MAIN_CONFIG}")
159
- if File.exists?(config_file)
156
+ if File.exist?(config_file)
160
157
  puts "#{MAIN_CONFIG} exists, skipping generation"
161
158
  else
162
159
  configuration_content=File.read(File.join(File.dirname(__FILE__),'templates/main.cfg.template'))
@@ -167,7 +164,7 @@ require_relative 'tools/build/lib/gaudi/tasks'
167
164
  def platform_config
168
165
  puts "Generating example platform configuration file"
169
166
  config_file=File.join(project_root,"tools/build/#{PLATFORM_CONFIG}")
170
- if File.exists?(config_file)
167
+ if File.exist?(config_file)
171
168
  puts "#{PLATFORM_CONFIG} exists, skipping generation"
172
169
  else
173
170
  configuration_content=File.read(File.join(File.dirname(__FILE__),'templates/platform.cfg.template'))
@@ -178,7 +175,7 @@ require_relative 'tools/build/lib/gaudi/tasks'
178
175
  def lib_config
179
176
  puts "Generating example library configuration file"
180
177
  config_file=File.join(project_root,"tools/build/libs.yaml")
181
- if File.exists?(config_file)
178
+ if File.exist?(config_file)
182
179
  puts "libs.yaml exists, skipping generation"
183
180
  else
184
181
  configuration_content="---\n"
@@ -186,6 +183,17 @@ require_relative 'tools/build/lib/gaudi/tasks'
186
183
  end
187
184
  end
188
185
 
186
+ def api_doc
187
+ puts "Generating build system API doc"
188
+ config_file=File.join(project_root,"doc/BUILDSYSTEM.md")
189
+ if File.exist?(config_file)
190
+ puts "BUILDSYSTEM.md exists, skipping generation"
191
+ else
192
+ configuration_content=File.read(File.join(File.dirname(__FILE__),'templates/doc.md.template'))
193
+ File.open(config_file, 'wb') {|f| f.write(configuration_content) }
194
+ end
195
+ end
196
+
189
197
  def core(lib,url,version,lib_items)
190
198
  Dir.mktmpdir do |tmp|
191
199
  if pull_from_repo(url,tmp)
@@ -199,7 +207,7 @@ require_relative 'tools/build/lib/gaudi/tasks'
199
207
 
200
208
  def pull_from_repo repository,tmp
201
209
  tmp_dir=File.join(tmp,'gaudi')
202
- FileUtils.rm_rf(tmp_dir) if File.exists?(tmp_dir)
210
+ FileUtils.rm_rf(tmp_dir) if File.exist?(tmp_dir)
203
211
  system "git clone #{repository} \"#{tmp_dir}\""
204
212
  end
205
213
 
@@ -0,0 +1,15 @@
1
+ # Build System Reference
2
+
3
+ This is the gaudi API documentation for all helpers and tasks.
4
+
5
+ ## Important sections
6
+
7
+ Gaudi::Configuration::EnvironmentOptions lists all available environment options
8
+
9
+ ## Generate
10
+
11
+ ```
12
+ rake doc:gaudi
13
+ ```
14
+
15
+ to generate the documentation under *out/doc/gaudi*.
@@ -4,8 +4,12 @@
4
4
  base=../../
5
5
  #the build output directory
6
6
  out=../../out
7
+
8
+ ## gaudi-c extended options
9
+ ##uncomment the options below if you're going to use the gaudi-c module for C/C++ builds
10
+ #gaudi_modules=gaudi-c
7
11
  #Comma separated list of directory to search for source files
8
- sources=../../src/
12
+ #sources=../../src/
9
13
  #enumerate the platforms i.e. platforms=gcc,ms,arm
10
14
  #platforms= foo
11
15
  #add a platform=platform.cfg for each platform pointing to the platform configuration
@@ -0,0 +1,3 @@
1
+ require_relative 'tools/build/lib/gaudi'
2
+ env_setup(File.dirname(__FILE__))
3
+ require_relative 'tools/build/lib/gaudi/tasks'
data/lib/gaudi/version.rb CHANGED
@@ -5,7 +5,7 @@ module Gaudi
5
5
  #Major version
6
6
  MAJOR=0
7
7
  #Minor version
8
- MINOR=4
8
+ MINOR=5
9
9
  #Tiny version
10
10
  TINY=0
11
11
  #All-in-one
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gaudi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vassilis Rizopoulos
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-08 00:00:00.000000000 Z
11
+ date: 2017-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitar
@@ -65,16 +65,18 @@ extensions: []
65
65
  extra_rdoc_files:
66
66
  - History.txt
67
67
  - Manifest.txt
68
- - README.txt
68
+ - README.md
69
69
  files:
70
70
  - History.txt
71
71
  - Manifest.txt
72
- - README.txt
72
+ - README.md
73
73
  - bin/gaudi
74
74
  - lib/gaudi.rb
75
75
  - lib/gaudi/scaffolding.rb
76
+ - lib/gaudi/templates/doc.md.template
76
77
  - lib/gaudi/templates/main.cfg.template
77
78
  - lib/gaudi/templates/platform.cfg.template
79
+ - lib/gaudi/templates/rakefile.rb.template
78
80
  - lib/gaudi/version.rb
79
81
  homepage: http://github.com/damphyr/gaudi
80
82
  licenses:
@@ -83,7 +85,7 @@ metadata: {}
83
85
  post_install_message:
84
86
  rdoc_options:
85
87
  - "--main"
86
- - README.txt
88
+ - README.md
87
89
  require_paths:
88
90
  - lib
89
91
  required_ruby_version: !ruby/object:Gem::Requirement