Class: MTBuild::StaticLibraryProject
- Defined in:
- lib/mtbuild/staticlibrary_project.rb
Overview
This class is used to build static libraries. A static library has compilation and archival phases that produce a binary library package.
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.
-
#build_framework_package(configuration_names) ⇒ Object
Provides a framework package target that builds a framework package with the specified configurations.
-
#initialize(project_name, project_folder, &configuration_block) ⇒ StaticLibraryProject
constructor
A new instance of StaticLibraryProject.
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) ⇒ StaticLibraryProject
Returns a new instance of StaticLibraryProject.
10 11 12 13 14 15 16 17 |
# File 'lib/mtbuild/staticlibrary_project.rb', line 10 def initialize(project_name, project_folder, &configuration_block) @framework_configurations = [] @api_headers = [] super if @framework_configurations.count > 0 configure_framework_tasks end end |
Instance Method Details
#add_api_headers(api_headers) ⇒ Object
Specifies API header locations
25 26 27 |
# File 'lib/mtbuild/staticlibrary_project.rb', line 25 def add_api_headers(api_headers) @api_headers += Utils.(api_headers, @project_folder) end |
#build_framework_package(configuration_names) ⇒ Object
Provides a framework package target that builds a framework package with the specified configurations
20 21 22 |
# File 'lib/mtbuild/staticlibrary_project.rb', line 20 def build_framework_package(configuration_names) @framework_configurations += Utils.ensure_array(configuration_names) end |