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 +4 -4
 - data/CHANGES.md +8 -0
 - data/LICENSE.md +1 -1
 - data/README.md +7 -7
 - data/bin/mtbuild +0 -5
 - data/lib/mtbuild.rb +19 -15
 - data/lib/mtbuild/application.rb +9 -4
 - data/lib/mtbuild/toolchains/gcc.rb +1 -1
 - data/lib/mtbuild/version.rb +5 -2
 - metadata +11 -11
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 3ce4ca21ffea4af4267971c9c01d59adfd0e7714
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 5d5f4ca2dca2af2fdfe2826be295bab65889782a
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 1d2da1d95635f92f69e733d8cd370191d592b88305ed608a7bbc4e74bb531a8872dc474b142f46d579a1034971e565b9379bf072cd3a0da964ba708527f4ddb9
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: ab6032db4a20132d3656d1a57c3c334a4038cb9fef1862447ea300145ee91c0aef315bfa3a38f9f9ad45d95a0aee6134ba5b3e7e563672bb0376497126903ddd
         
     | 
    
        data/CHANGES.md
    CHANGED
    
    
    
        data/LICENSE.md
    CHANGED
    
    
    
        data/README.md
    CHANGED
    
    | 
         @@ -2,9 +2,9 @@ 
     | 
|
| 
       2 
2 
     | 
    
         | 
| 
       3 
3 
     | 
    
         
             
            [](http://badge.fury.io/rb/mtbuild)
         
     | 
| 
       4 
4 
     | 
    
         | 
| 
       5 
     | 
    
         
            -
            MTBuild is  
     | 
| 
      
 5 
     | 
    
         
            +
            MTBuild is Mindtribe's Rake-based build system for building C/C++ projects.
         
     | 
| 
       6 
6 
     | 
    
         | 
| 
       7 
     | 
    
         
            -
            MTBuild lives here: https://github.com/ 
     | 
| 
      
 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/ 
     | 
| 
      
 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/ 
     | 
| 
      
 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  
     | 
| 
      
 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  
     | 
| 
      
 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 
     | 
    
         
            -
             
     | 
| 
      
 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 
     | 
    
         | 
    
        data/bin/mtbuild
    CHANGED
    
    | 
         @@ -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
         
     | 
    
        data/lib/mtbuild.rb
    CHANGED
    
    | 
         @@ -1,16 +1,20 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
             
     | 
| 
      
 1 
     | 
    
         
            +
            module MTBuild
         
     | 
| 
      
 2 
     | 
    
         
            +
              # The current MTBuild version.
         
     | 
| 
      
 3 
     | 
    
         
            +
              VERSION = '0.0.9'
         
     | 
| 
      
 4 
     | 
    
         
            +
            end
         
     | 
| 
       2 
5 
     | 
    
         | 
| 
       3 
     | 
    
         
            -
            require  
     | 
| 
       4 
     | 
    
         
            -
            require  
     | 
| 
       5 
     | 
    
         
            -
            require  
     | 
| 
       6 
     | 
    
         
            -
            require  
     | 
| 
       7 
     | 
    
         
            -
            require  
     | 
| 
       8 
     | 
    
         
            -
            require  
     | 
| 
       9 
     | 
    
         
            -
            require  
     | 
| 
       10 
     | 
    
         
            -
            require  
     | 
| 
       11 
     | 
    
         
            -
            require  
     | 
| 
       12 
     | 
    
         
            -
            require  
     | 
| 
       13 
     | 
    
         
            -
            require  
     | 
| 
       14 
     | 
    
         
            -
            require  
     | 
| 
       15 
     | 
    
         
            -
            require  
     | 
| 
       16 
     | 
    
         
            -
            require  
     | 
| 
      
 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'
         
     | 
    
        data/lib/mtbuild/application.rb
    CHANGED
    
    | 
         @@ -32,16 +32,17 @@ module MTBuild 
     | 
|
| 
       32 
32 
     | 
    
         
             
                  @rakefiles = DEFAULT_RAKEFILES.dup
         
     | 
| 
       33 
33 
     | 
    
         
             
                end
         
     | 
| 
       34 
34 
     | 
    
         | 
| 
       35 
     | 
    
         
            -
                # This  
     | 
| 
       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 
     | 
    
         
            -
                   
     | 
| 
      
 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 #{ 
     | 
| 
      
 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}#{ 
     | 
| 
      
 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)
         
     | 
    
        data/lib/mtbuild/version.rb
    CHANGED
    
    
    
        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. 
     | 
| 
      
 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- 
     | 
| 
      
 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 
     | 
| 
      
 19 
     | 
    
         
            +
                    version: '10.0'
         
     | 
| 
       20 
20 
     | 
    
         
             
                - - ">="
         
     | 
| 
       21 
21 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       22 
     | 
    
         
            -
                    version:  
     | 
| 
      
 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 
     | 
| 
      
 29 
     | 
    
         
            +
                    version: '10.0'
         
     | 
| 
       30 
30 
     | 
    
         
             
                - - ">="
         
     | 
| 
       31 
31 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       32 
     | 
    
         
            -
                    version:  
     | 
| 
      
 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 
     | 
| 
      
 39 
     | 
    
         
            +
                    version: '10.0'
         
     | 
| 
       40 
40 
     | 
    
         
             
                - - ">="
         
     | 
| 
       41 
41 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       42 
     | 
    
         
            -
                    version:  
     | 
| 
      
 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 
     | 
| 
      
 49 
     | 
    
         
            +
                    version: '10.0'
         
     | 
| 
       50 
50 
     | 
    
         
             
                - - ">="
         
     | 
| 
       51 
51 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       52 
     | 
    
         
            -
                    version:  
     | 
| 
      
 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/ 
     | 
| 
      
 136 
     | 
    
         
            +
            homepage: https://github.com/Mindtribe/MTBuild
         
     | 
| 
       137 
137 
     | 
    
         
             
            licenses:
         
     | 
| 
       138 
138 
     | 
    
         
             
            - BSD-3-Clause
         
     | 
| 
       139 
139 
     | 
    
         
             
            metadata: {}
         
     |