class MTBuild::FrameworkProject

This class is used to load frameworks. A framework provides precompiled objects/libraries and API headers. Listing a framework as a dependency in an application will automatically include the framework's API headers and link with its objects/libraries

Public Class Methods

new(project_name, project_folder, &configuration_block) click to toggle source
Calls superclass method
# File lib/mtbuild/framework_project.rb, line 11
def initialize(project_name, project_folder, &configuration_block)
  @api_headers = []
  super
end

Public Instance Methods

add_api_headers(api_headers) click to toggle source

Specifies API header locations

# File lib/mtbuild/framework_project.rb, line 17
def add_api_headers(api_headers)
  @api_headers += Utils.expand_folder_list(api_headers, @project_folder)
end

Private Instance Methods

create_configuration(configuration_name, configuration) click to toggle source

Create a framework configuration

# File lib/mtbuild/framework_project.rb, line 24
def create_configuration(configuration_name, configuration)
  FrameworkConfiguration.new(self, effective_output_folder, configuration_name, configuration, @api_headers)
end