Module: Flak::Template::MayaApp::Settings
- Extended by:
- Flak::Template::MergeEngine
- Defined in:
- lib/flak/rake/templates/maya_app.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#release_filename ⇒ Object
these methods will become instance methods of the target and as such will have access to the @settings instance variable.
Methods included from Flak::Template::MergeEngine
flatten_yaml, flatten_yaml_file, infuse, settings_modifications
Class Method Details
.extended(target) ⇒ Object
15 16 17 |
# File 'lib/flak/rake/templates/maya_app.rb', line 15 def self.extended target infuse target end |
.settings_modifications(settings) ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/flak/rake/templates/maya_app.rb', line 21 def self.settings_modifications settings mods = Hash.new bind = binding() Flak::Errors.assert("settings[:maya_relative_lib_path]", "String", bind,__FILE__) Flak::Errors.assert("settings[:maya_location]", "String", bind,__FILE__) Flak::Errors.assert("settings[:product_revision]", "String", bind,__FILE__) Flak::Errors.assert("settings[:author_name]", "String", bind,__FILE__) # lib_path = File.join( settings[:maya_location], settings[:maya_relative_lib_path], {:key => 'lib_path'}) lib_path = File.join(settings[:maya_location], settings[:maya_relative_lib_path]) mods[:lib_paths] = [ lib_path ] case settings[:os] when /linux64/ mods[:linker_options] = [ "-Wl,-rpath,#{lib_path}" ] mods[:include_paths] = [ File.join( settings[:maya_location], "include" ) ] when /darwin64/ mods[:linker_options] = [ "-Wl,-executable_path,#{lib_path}" ] mods[:include_paths] = [ File.join(settings[:maya_location],"devkit", "include" ) ] when /win64/ mods[:linker_options] = [] mods[:include_paths] = [ File.join(settings[:maya_location], "include" ) ] end mods[:compiler_options] = [ "-D\"PLUGIN_VERSION=\\\"#{settings[:product_revision]}\\\"\"", "-D\"PLUGIN_VENDOR=\\\"#{settings[:author_name].gsub(' ','')}\\\"\"", "-D\"MAYA_VERSION=\\\"#{settings[:maya_version]}\\\"\"" ] mods end |
Instance Method Details
#release_filename ⇒ Object
these methods will become instance methods of the target and as such will have access to the @settings instance variable
65 66 67 |
# File 'lib/flak/rake/templates/maya_app.rb', line 65 def release_filename File.join( @settings[:revision_directory], 'bin', build_filename.pathmap('%f')) end |