Class: MTBuild::FrameworkProject
- Defined in:
- lib/mtbuild/framework_project.rb
Overview
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
Instance Attribute Summary
Attributes inherited from Project
#clean_list, #output_folder, #parent_workspace, #project_folder, #project_name
Instance Method Summary collapse
-
#add_api_headers(api_headers) ⇒ Object
Specifies API header locations.
-
#initialize(project_name, project_folder, &configuration_block) ⇒ FrameworkProject
constructor
A new instance of FrameworkProject.
Methods inherited from Project
#add_configuration, #add_files_to_clean, #effective_output_folder, #set_default_configuration, #set_output_folder, #task_for_configuration, #tasks_for_all_configurations
Methods included from Rake::DSL
#application_task, #framework_task, #static_library_task, #test_application_task
Constructor Details
#initialize(project_name, project_folder, &configuration_block) ⇒ FrameworkProject
Returns a new instance of FrameworkProject.
11 12 13 14 |
# File 'lib/mtbuild/framework_project.rb', line 11 def initialize(project_name, project_folder, &configuration_block) @api_headers = [] super end |
Instance Method Details
#add_api_headers(api_headers) ⇒ Object
Specifies API header locations
17 18 19 |
# File 'lib/mtbuild/framework_project.rb', line 17 def add_api_headers(api_headers) @api_headers += Utils.(api_headers, @project_folder) end |