Module: Flak::Template::MayaPlugin::Settings
- Extended by:
- Flak::Template::MergeEngine
- Defined in:
- lib/flak/rake/templates/maya_plugin.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
9 10 11 |
# File 'lib/flak/rake/templates/maya_plugin.rb', line 9 def self.extended target infuse target end |
.settings_modifications(settings) ⇒ Object
sksjdf
15 16 17 18 19 20 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 |
# File 'lib/flak/rake/templates/maya_plugin.rb', line 15 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]) 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
62 63 64 |
# File 'lib/flak/rake/templates/maya_plugin.rb', line 62 def release_filename File.join( @settings[:revision_directory], 'maya', 'plug-ins', build_filename.pathmap('%f')) end |