mtbuild 0.0.8 → 0.0.9

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cba59381b91089bdd3e1ce4fcf93b70e7599c8f9
4
- data.tar.gz: 7f084e0b1d50e2fa1e895128edabf5cfc35a3305
3
+ metadata.gz: 3ce4ca21ffea4af4267971c9c01d59adfd0e7714
4
+ data.tar.gz: 5d5f4ca2dca2af2fdfe2826be295bab65889782a
5
5
  SHA512:
6
- metadata.gz: 2a655658ed9b12d20c6a7367267e4c7c0ae391109aa064be9d31534e7774eddfdde9472e9faf464aa02011b248b49325e0713dee7833b20654c679c9eb1e6b56
7
- data.tar.gz: 1196a725a913057fa61146273d865330ea0c01041dbf55994f5df5dc69e5ea7ef51bc02585d91def6169e0d0b6788d2e34f27c70a9d899be1afb11b0a6adb1a8
6
+ metadata.gz: 1d2da1d95635f92f69e733d8cd370191d592b88305ed608a7bbc4e74bb531a8872dc474b142f46d579a1034971e565b9379bf072cd3a0da964ba708527f4ddb9
7
+ data.tar.gz: ab6032db4a20132d3656d1a57c3c334a4038cb9fef1862447ea300145ee91c0aef315bfa3a38f9f9ad45d95a0aee6134ba5b3e7e563672bb0376497126903ddd
data/CHANGES.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release Notes #
2
2
 
3
+ ## MTBuild 0.0.9 ##
4
+
5
+ ### Changes ###
6
+
7
+ * MTBuild now requires Rake 10.4.2
8
+ * Fixed bug that prevented library include path specification for gcc-based
9
+ toolchains.
10
+
3
11
  ## MTBuild 0.0.8 ##
4
12
 
5
13
  ### Changes ###
data/LICENSE.md CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2014, MindTribe Product Engineering, Inc.
1
+ Copyright (c) 2014, Mindtribe Product Engineering, Inc.
2
2
  All rights reserved.
3
3
 
4
4
  Redistribution and use in source and binary forms, with or without
data/README.md CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/mtbuild.svg)](http://badge.fury.io/rb/mtbuild)
4
4
 
5
- MTBuild is MindTribe's Rake-based build system for building C/C++ projects.
5
+ MTBuild is Mindtribe's Rake-based build system for building C/C++ projects.
6
6
 
7
- MTBuild lives here: https://github.com/MindTribe/MTBuild
7
+ MTBuild lives here: https://github.com/Mindtribe/MTBuild
8
8
 
9
9
  ## Quick Start ##
10
10
 
@@ -22,7 +22,7 @@ To build with MTBuild, switch to a folder containing an mtbuildfile and run:
22
22
  mtbuild
23
23
  ```
24
24
 
25
- To install from source, clone the [MTBuild repository](https://github.com/MindTribe/MTBuild) and run the following:
25
+ To install from source, clone the [MTBuild repository](https://github.com/Mindtribe/MTBuild) and run the following:
26
26
 
27
27
  ```Shell
28
28
  rake install
@@ -72,7 +72,7 @@ The ARM toolchain should use the specified linker script when linking (```linker
72
72
 
73
73
  When invoked with no parameters, MTBuild will build the Debug configuration of MyApp by default (```app.add_default_tasks('MyApp:Debug')```)
74
74
 
75
- You can find more project examples here: [MTBuild examples](https://github.com/MindTribe/MTBuild/tree/master/examples)
75
+ You can find more project examples here: [MTBuild examples](https://github.com/Mindtribe/MTBuild/tree/master/examples)
76
76
 
77
77
  ## Documentation ##
78
78
 
@@ -308,7 +308,7 @@ MTBuild Toolchains generate the individual compile, archival, and link tasks tha
308
308
 
309
309
  MTBuild Versioners update version information inside a source or header file. Versioner tasks are typically invoked on their own with a separate invocation of MTBuild. Versioners are an optional convenience intended for Continuous Integration servers. They're not strictly related to the build process; however, because it's common for CI servers to stamp version information into a file when building, it is convenient to be able to describe the files that need updating along with the rest of the project inside the mtbuildfile.
310
310
 
311
- For example, the following project is configure to use the MindTribe Standard Version versioner:
311
+ For example, the following project is configure to use the Mindtribe Standard Version versioner:
312
312
 
313
313
  ```Ruby
314
314
  application_project :MyApp, File.dirname(__FILE__) do |app|
@@ -573,7 +573,7 @@ def versioner(versioner_name, versioner_configuration={})
573
573
  ```versioner_configuration``` expects a hash that contains settings for the versioner.
574
574
 
575
575
  ### MTBuild::VersionerMTStdVersion ###
576
- Define a MindTribe Standard Version versioner by passing ```:mt_std_version``` as the ```versioner_name``` when invoking the ```versioner()``` method.
576
+ Define a Mindtribe Standard Version versioner by passing ```:mt_std_version``` as the ```versioner_name``` when invoking the ```versioner()``` method.
577
577
 
578
578
  ##### VersionerMTStdVersion settings #####
579
579
  The VersionerMTStdVersion versioner requires the following settings:
@@ -582,7 +582,7 @@ The VersionerMTStdVersion versioner requires the following settings:
582
582
 
583
583
  ##### VersionerMTStdVersion invocation #####
584
584
 
585
- MindTribe Standard Version parameters should be specified when invoking MTBuild to run a VersionerMTStdVersion versioner task. These parameters, in order, are:
585
+ Mindtribe Standard Version parameters should be specified when invoking MTBuild to run a VersionerMTStdVersion versioner task. These parameters, in order, are:
586
586
 
587
587
  * ```major``` - The build's major version number
588
588
 
@@ -1,10 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- lib_path_expanded = File.expand_path(File.join(File.dirname(__FILE__),'..','lib'))
4
- if File.directory?(lib_path_expanded)
5
- $:.unshift(lib_path_expanded) unless $:.include?(lib_path_expanded)
6
- end
7
-
8
3
  require 'mtbuild'
9
4
 
10
5
  Rake.application.run
@@ -1,16 +1,20 @@
1
- require 'rake'
1
+ module MTBuild
2
+ # The current MTBuild version.
3
+ VERSION = '0.0.9'
4
+ end
2
5
 
3
- require "mtbuild/application"
4
- require "mtbuild/application_project"
5
- require "mtbuild/application_task"
6
- require "mtbuild/dsl"
7
- require "mtbuild/framework_project"
8
- require "mtbuild/framework_task"
9
- require "mtbuild/mtbuild"
10
- require "mtbuild/mtfile_task"
11
- require "mtbuild/staticlibrary_project"
12
- require "mtbuild/staticlibrary_task"
13
- require "mtbuild/test_application_project"
14
- require "mtbuild/test_application_task"
15
- require "mtbuild/version"
16
- require "mtbuild/workspace"
6
+ require 'rake'
7
+ require 'mtbuild/application'
8
+ require 'mtbuild/application_project'
9
+ require 'mtbuild/application_task'
10
+ require 'mtbuild/dsl'
11
+ require 'mtbuild/framework_project'
12
+ require 'mtbuild/framework_task'
13
+ require 'mtbuild/mtbuild'
14
+ require 'mtbuild/mtfile_task'
15
+ require 'mtbuild/staticlibrary_project'
16
+ require 'mtbuild/staticlibrary_task'
17
+ require 'mtbuild/test_application_project'
18
+ require 'mtbuild/test_application_task'
19
+ require 'mtbuild/version'
20
+ require 'mtbuild/workspace'
@@ -32,16 +32,17 @@ module MTBuild
32
32
  @rakefiles = DEFAULT_RAKEFILES.dup
33
33
  end
34
34
 
35
- # This hijacks the "--version" flag and displays the MTBuild version along
36
- # with the Rake version. All other options/flags are returned unmodified.
35
+ # This modifies Rake's command line options to do MTBuild-specific things
37
36
  def standard_rake_options
38
- return super.map do |opt|
37
+ # This hijacks the "--version" flag and displays the MTBuild version along
38
+ # with the Rake version.
39
+ options = super.map do |opt|
39
40
  if opt.first == '--version'
40
41
  ['--version', '-V',
41
42
  "Display the program version.",
42
43
  lambda { |value|
43
44
  puts "mtbuild, version #{MTBuild::VERSION}"
44
- puts "rake, version #{RAKEVERSION}"
45
+ puts "rake, version #{Rake::VERSION}"
45
46
  exit
46
47
  }
47
48
  ]
@@ -49,6 +50,10 @@ module MTBuild
49
50
  opt
50
51
  end
51
52
  end
53
+ # This adds MTBuild-specific options (For future development)
54
+ # options |= [
55
+ # ]
56
+ # sort_options(options)
52
57
  end
53
58
 
54
59
  end
@@ -138,7 +138,7 @@ module MTBuild
138
138
  cflags_s = @cflags.empty? ? '' : " #{@cflags}"
139
139
  ldflags_s = @ldflags.empty? ? '' : " #{@ldflags}"
140
140
  linker_script_s = @linker_script.empty? ? '' : " -Wl,-T\"#{File.join(@project_folder,@linker_script)}\""
141
- return "\"#{compiler}\"#{cppflags_s}#{cflags_s}#{ldflags_s}#{linker_script_s}#{prerequisites_s}#{include_paths_s} #{map_flag(map_name)} -o \"#{output_name}\""
141
+ return "\"#{compiler}\"#{cppflags_s}#{cflags_s}#{ldflags_s}#{include_paths_s}#{library_paths_s}#{linker_script_s}#{prerequisites_s} #{map_flag(map_name)} -o \"#{output_name}\""
142
142
  end
143
143
 
144
144
  def map_flag(map_file)
@@ -1,4 +1,7 @@
1
1
  module MTBuild
2
- # The current MTBuild version.
3
- VERSION = "0.0.8"
2
+ module Version
3
+ MAJOR, MINOR, BUILD, *OTHER = MTBuild::VERSION.split '.'
4
+
5
+ NUMBERS = [MAJOR, MINOR, BUILD, *OTHER]
6
+ end
4
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mtbuild
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jerry Ryle
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-26 00:00:00.000000000 Z
11
+ date: 2015-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -16,40 +16,40 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.9'
19
+ version: '10.0'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 0.9.6
22
+ version: 10.4.2
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - "~>"
28
28
  - !ruby/object:Gem::Version
29
- version: '0.9'
29
+ version: '10.0'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 0.9.6
32
+ version: 10.4.2
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: rake
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '0.9'
39
+ version: '10.0'
40
40
  - - ">="
41
41
  - !ruby/object:Gem::Version
42
- version: 0.9.6
42
+ version: 10.4.2
43
43
  type: :development
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - "~>"
48
48
  - !ruby/object:Gem::Version
49
- version: '0.9'
49
+ version: '10.0'
50
50
  - - ">="
51
51
  - !ruby/object:Gem::Version
52
- version: 0.9.6
52
+ version: 10.4.2
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: rdoc
55
55
  requirement: !ruby/object:Gem::Requirement
@@ -133,7 +133,7 @@ files:
133
133
  - CHANGES.md
134
134
  - LICENSE.md
135
135
  - README.md
136
- homepage: https://github.com/MindTribe/MTBuild
136
+ homepage: https://github.com/Mindtribe/MTBuild
137
137
  licenses:
138
138
  - BSD-3-Clause
139
139
  metadata: {}