flak 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +5 -0
- data/Gemfile +4 -0
- data/Rakefile +1 -0
- data/bin/flak +5 -0
- data/flak.gemspec +31 -0
- data/lib/core_ext/string.rb +5 -0
- data/lib/flak/cpp.rb +137 -0
- data/lib/flak/delight.rb +121 -0
- data/lib/flak/doc.rb +259 -0
- data/lib/flak/gl.rb +10 -0
- data/lib/flak/mac.rb +23 -0
- data/lib/flak/max.rb +29 -0
- data/lib/flak/maya.rb +142 -0
- data/lib/flak/maya_app.rb +45 -0
- data/lib/flak/maya_plugin.rb +47 -0
- data/lib/flak/nuke.rb +29 -0
- data/lib/flak/target.rb +120 -0
- data/lib/flak/thor/cli.rb +7 -0
- data/lib/flak/thor/generate.rb +295 -0
- data/lib/flak/thor/junk/junk.rb +65 -0
- data/lib/flak/thor/templates/INSTALL.tt +115 -0
- data/lib/flak/thor/templates/Rakefile.tt +10 -0
- data/lib/flak/thor/templates/cpp.tt +153 -0
- data/lib/flak/thor/templates/delight.tt +14 -0
- data/lib/flak/thor/templates/env.tt +26 -0
- data/lib/flak/thor/templates/gl.tt +27 -0
- data/lib/flak/thor/templates/mac.tt +0 -0
- data/lib/flak/thor/templates/max.tt +1 -0
- data/lib/flak/thor/templates/maya.tt +16 -0
- data/lib/flak/thor/templates/maya_app.tt +80 -0
- data/lib/flak/thor/templates/maya_plugin.tt +59 -0
- data/lib/flak/thor/templates/nuke.tt +2 -0
- data/lib/flak/thor/templates/product.mel.tt +34 -0
- data/lib/flak/thor/templates/product.sh.tt +35 -0
- data/lib/flak/version.rb +3 -0
- data/lib/flak.rb +357 -0
- metadata +122 -0
@@ -0,0 +1,65 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
|
4
|
+
# desc "generate" , "generate stuff"
|
5
|
+
# def generate(*args)
|
6
|
+
#
|
7
|
+
# invoke Generate #{|a| }
|
8
|
+
#
|
9
|
+
# # invoke Generate::Config #{|a| }
|
10
|
+
#
|
11
|
+
# end
|
12
|
+
|
13
|
+
# register(Generate, 'generate', 'generate <name>', 'Generate a new something.')
|
14
|
+
|
15
|
+
|
16
|
+
# register(Counter, 'counter', 'counter [num]', 'Count up from the input.', method_option :pad, :type => :numeric, :aliases => "-p", :desc => "Apply padding to the number part of filenames.")
|
17
|
+
|
18
|
+
|
19
|
+
# desc 'counter [num]', 'Count up from the input.'
|
20
|
+
# define_method('counter') do |n|
|
21
|
+
# invoke Counter {|n| }
|
22
|
+
# end
|
23
|
+
|
24
|
+
|
25
|
+
# desc 'generate [name]', 'Count up from the input.'
|
26
|
+
# define_method('generate') do |n|
|
27
|
+
# invoke Counter {|n| }
|
28
|
+
# end
|
29
|
+
#
|
30
|
+
# register(Generate::Config, 'generate_config', 'generate_config <name>', 'Generate a new config with the given name.')
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
# desc "list"
|
35
|
+
# def list(*args)
|
36
|
+
# Flak::Generate[:tasks].each do |t|
|
37
|
+
# puts tdesc
|
38
|
+
# end
|
39
|
+
# end
|
40
|
+
# map "g" => :generate
|
41
|
+
# desc "generate [PROJECT_NAME]", "create a new project skeleton" # proj_name/build, proj_name/templates, Rakefile
|
42
|
+
# method_option :verbose,:type => :numeric, :default => 0, :aliases => "-v", :desc => "0 => don't display summaries that have no errors, 1 => show all summaries, 2 => list filenames that have errors"
|
43
|
+
# method_option :max_files,:type => :numeric, :default => 0, :aliases => "-x", :desc => "if verbose option is 2, limit the numbber of filenames displayed in any list. 0 means no limit"
|
44
|
+
# def generate(*args)
|
45
|
+
#
|
46
|
+
#
|
47
|
+
# end
|
48
|
+
#
|
49
|
+
#
|
50
|
+
#
|
51
|
+
# map "n" => :new
|
52
|
+
# desc "new [PROJECT_NAME]", "create a new project skeleton" # proj_name/build, proj_name/templates, Rakefile
|
53
|
+
# method_option :verbose,:type => :numeric, :default => 0, :aliases => "-v", :desc => "0 => don't display summaries that have no errors, 1 => show all summaries, 2 => list filenames that have errors"
|
54
|
+
# method_option :max_files,:type => :numeric, :default => 0, :aliases => "-x", :desc => "if verbose option is 2, limit the numbber of filenames displayed in any list. 0 means no limit"
|
55
|
+
#
|
56
|
+
# def new(*args)
|
57
|
+
# # args = args.reject{ |f| f =="." || f == ".." || !File.exists?(f) }
|
58
|
+
# # r = Sequin::Listing.new(args)
|
59
|
+
# # result = r.format( options)
|
60
|
+
# # puts result[:err].nil? ? result[:out] : result[:err]
|
61
|
+
# # help :list unless result[:err].nil?
|
62
|
+
# # result # return result for cucumber test
|
63
|
+
# end
|
64
|
+
#
|
65
|
+
#
|
@@ -0,0 +1,115 @@
|
|
1
|
+
#!/bin/tcsh
|
2
|
+
|
3
|
+
#TODO - rewrite in ruby
|
4
|
+
|
5
|
+
# INSTALL for mac and linux - the purpose of this script is to:
|
6
|
+
# 1. write the modules file and put it in the maya app dir modules directory
|
7
|
+
# 2. write lines at the bottom of bashrc to source the product.sh file
|
8
|
+
|
9
|
+
# the product was built for a specific maya version
|
10
|
+
set maya_ver = "<%= self.settings[:maya_version] %>"
|
11
|
+
|
12
|
+
# therefore product_version is derived from the maya version
|
13
|
+
set product_version = "<%= self.settings[:product_revision] %>"
|
14
|
+
set product = "<%= @settings[:product_name] %>"
|
15
|
+
set product_up = "<%= @settings[:product_name].upcase %>"
|
16
|
+
|
17
|
+
set rootdir = `dirname $0`
|
18
|
+
set rootdir = `cd $rootdir && pwd` # ensure absolute path
|
19
|
+
set base = `basename $0`
|
20
|
+
|
21
|
+
# set full_path_to_this_script = `echo $0 | sed "s@^./@$PWD/@"`
|
22
|
+
set full_path_to_this_script = ${rootdir}/${base}
|
23
|
+
echo "full path to script : ${full_path_to_this_script}"
|
24
|
+
|
25
|
+
set tools = $full_path_to_this_script:h:h:h:h
|
26
|
+
|
27
|
+
set product_inst_dir = ${tools}/${product}
|
28
|
+
echo "**************************************************************"
|
29
|
+
echo ""
|
30
|
+
|
31
|
+
echo "working from : ${tools}"
|
32
|
+
pushd ${tools}
|
33
|
+
|
34
|
+
echo "${product} install directory is: ${product_inst_dir}"
|
35
|
+
|
36
|
+
set install_platform = ""
|
37
|
+
set maya_ver_dir =""
|
38
|
+
set modules_dir = ""
|
39
|
+
set maya_app_dir =""
|
40
|
+
|
41
|
+
if (! $?MAYA_APP_DIR) then
|
42
|
+
setenv MAYA_APP_DIR "${HOME}/maya"
|
43
|
+
endif
|
44
|
+
|
45
|
+
set maya_app_dir = ${MAYA_APP_DIR}
|
46
|
+
|
47
|
+
set os=`uname -s`
|
48
|
+
echo "os is: ${os}"
|
49
|
+
|
50
|
+
|
51
|
+
if ($os == "Linux") then
|
52
|
+
set arch=`uname -m`
|
53
|
+
if (maya_app_dir == "") then
|
54
|
+
set maya_app_dir = "${HOME}/maya"
|
55
|
+
endif
|
56
|
+
if ($arch == "x86_64") then
|
57
|
+
set install_platform = "linux_64"
|
58
|
+
set maya_ver_dir = "${maya_ver}-x64"
|
59
|
+
else
|
60
|
+
set install_platform = "linux_32"
|
61
|
+
set maya_ver_dir = "${maya_ver}"
|
62
|
+
endif
|
63
|
+
endif
|
64
|
+
|
65
|
+
if ($os == "Darwin") then
|
66
|
+
if (maya_app_dir == "") then
|
67
|
+
set maya_app_dir = "${HOME}/Library/Preferences/Autodesk/maya"
|
68
|
+
endif
|
69
|
+
set install_platform = "darwin"
|
70
|
+
set maya_ver_dir = "${maya_ver}-x64"
|
71
|
+
endif
|
72
|
+
|
73
|
+
if ($os == "CYGWIN_NT-6.1-WOW64") then
|
74
|
+
if (maya_app_dir == "") then
|
75
|
+
set maya_app_dir = "${HOME}/maya"
|
76
|
+
endif
|
77
|
+
set install_platform = "cygwin"
|
78
|
+
set maya_ver_dir = "${maya_ver}-x64"
|
79
|
+
endif
|
80
|
+
|
81
|
+
set modules_dir = "${maya_app_dir}/${maya_ver_dir}/modules"
|
82
|
+
mkdir -p $modules_dir
|
83
|
+
|
84
|
+
set the_product_dir = ${product_inst_dir}/${product_version}-${install_platform}
|
85
|
+
set the_maya_module = ${the_product_dir}"/maya"
|
86
|
+
echo "+ ${product} ${product_version} ${the_maya_module}" > ${modules_dir}/${product}
|
87
|
+
|
88
|
+
echo "writing + ${product} ${product_version} ${the_maya_module} to ${modules_dir}/${product}"
|
89
|
+
|
90
|
+
if (-f ${HOME}/.bashrc) then
|
91
|
+
cp ${HOME}/.bashrc ${HOME}/.bashrc.${product}.bck
|
92
|
+
cat ${HOME}/.bashrc.${product}.bck | grep -v "#.*added by ${product}" > ${HOME}/.bashrc
|
93
|
+
|
94
|
+
echo "appending ${product} source commands to ${HOME}/.bashrc"
|
95
|
+
|
96
|
+
echo "# The following lines have been added by ${product}" >> ${HOME}/.bashrc
|
97
|
+
echo 'export '${product_up}'="'${the_product_dir}'" # added by '${product} >> ${HOME}/.bashrc
|
98
|
+
echo '[[ -e "${'${product_up}'}/bin/'${product}'.sh" ]] && . "${'${product_up}'}/bin/'${product}'.sh" # added by '${product} >> ${HOME}/.bashrc
|
99
|
+
|
100
|
+
echo ""
|
101
|
+
echo "*********NOW RUN THESE COMMANDS OR OPEN A NEW SHELL***********"
|
102
|
+
echo ""
|
103
|
+
echo "export ${product_up}=${the_product_dir}"
|
104
|
+
echo '. ${'${product_up}'}/bin/'${product}'.sh'
|
105
|
+
echo ""
|
106
|
+
echo "**************************************************************"
|
107
|
+
echo ""
|
108
|
+
echo "To start the ${product} menu automatically when maya starts: add the command: ${product}; in your userSetup.mel file"
|
109
|
+
echo ""
|
110
|
+
|
111
|
+
endif
|
112
|
+
|
113
|
+
popd
|
114
|
+
|
115
|
+
|
@@ -0,0 +1,153 @@
|
|
1
|
+
target_release_prefix: 'bin'
|
2
|
+
|
3
|
+
os_linux_64:
|
4
|
+
compiler: '/opt/gcc412/bin/gcc412'
|
5
|
+
linker: '/opt/gcc412/bin/g++412'
|
6
|
+
archiver: '/usr/bin/ar rv'
|
7
|
+
dso_options:
|
8
|
+
- '-shared'
|
9
|
+
include_paths:
|
10
|
+
- '/usr/X11R6/include'
|
11
|
+
- '/usr/include'
|
12
|
+
libs:
|
13
|
+
- 'Foundation'
|
14
|
+
lib_paths:
|
15
|
+
- '/usr/lib64'
|
16
|
+
- '/usr/X11R6/lib'
|
17
|
+
libpath_flag: '-L'
|
18
|
+
framework_flag: '-l'
|
19
|
+
lib_flag: '-l'
|
20
|
+
include_flag: '-I'
|
21
|
+
object_flag: '-o '
|
22
|
+
outputfile_flag: '-o '
|
23
|
+
object_extension: 'o'
|
24
|
+
lib_ext: ''
|
25
|
+
compiler_options:
|
26
|
+
- '-DBits64_'
|
27
|
+
- '-m64'
|
28
|
+
- '-DUNIX'
|
29
|
+
- '-DLINUX'
|
30
|
+
- '-DFUNCPROTO'
|
31
|
+
- '-D_GNU_SOURCE'
|
32
|
+
- '-DLINUX_64'
|
33
|
+
- '-D_BOOL'
|
34
|
+
- '-fPIC'
|
35
|
+
- '-DREQUIRE_IOSTREAM'
|
36
|
+
- '-DRedHat8_'
|
37
|
+
- '-fno-strict-aliasing'
|
38
|
+
- '-funsigned-char'
|
39
|
+
- '-fno-gnu-keywords'
|
40
|
+
- '-ftemplate-depth-25'
|
41
|
+
- '-pthread'
|
42
|
+
- '-c'
|
43
|
+
configuration_debug:
|
44
|
+
compiler_options:
|
45
|
+
- '-g3'
|
46
|
+
- '-O0'
|
47
|
+
configuration_release:
|
48
|
+
compiler_options:
|
49
|
+
- '-O3'
|
50
|
+
|
51
|
+
os_darwin:
|
52
|
+
compiler: '/usr/bin/gcc'
|
53
|
+
linker: '/usr/bin/g++'
|
54
|
+
archiver: '/usr/bin/libtool -static -arch_only i386'
|
55
|
+
dso_options:
|
56
|
+
- '-bundle'
|
57
|
+
include_paths:
|
58
|
+
- '/usr/include'
|
59
|
+
lib_paths:
|
60
|
+
- '/usr/lib'
|
61
|
+
framework_flag: '-framework'
|
62
|
+
linker_options:
|
63
|
+
- '-arch x86_64'
|
64
|
+
object_flag: '-o '
|
65
|
+
outputfile_flag: '-o '
|
66
|
+
libs:
|
67
|
+
- 'Foundation'
|
68
|
+
lib_flag: '-l'
|
69
|
+
libpath_flag: '-L'
|
70
|
+
include_flag: '-I'
|
71
|
+
lib_ext: ''
|
72
|
+
object_extension: 'o'
|
73
|
+
compiler_options:
|
74
|
+
- '-arch x86_64'
|
75
|
+
- '-x c++'
|
76
|
+
- '-DCC_GNU_'
|
77
|
+
- '-DOSMac_'
|
78
|
+
- '-DOSMacOSX_'
|
79
|
+
- '-DOSMac_MachO_'
|
80
|
+
- '-DOSX'
|
81
|
+
- '-DAW_NEW_IOSTREAMS'
|
82
|
+
- '-D_BOOL'
|
83
|
+
- '-DREQUIRE_IOSTREAM'
|
84
|
+
- '-D_LANGUAGE_C_PLUS_PLUS'
|
85
|
+
- '-Wno-trigraphs'
|
86
|
+
- '-c'
|
87
|
+
configuration_debug:
|
88
|
+
compiler_options:
|
89
|
+
- '-g3'
|
90
|
+
- '-O0'
|
91
|
+
configuration_release:
|
92
|
+
compiler_options:
|
93
|
+
- '-O3'
|
94
|
+
|
95
|
+
os_win_64:
|
96
|
+
compiler: 'C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/amd64/cl.exe'
|
97
|
+
linker: 'C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/amd64/link.exe'
|
98
|
+
archiver: 'C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/amd64/lib.exe'
|
99
|
+
include_paths:
|
100
|
+
- 'C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/include'
|
101
|
+
- 'C:/Program Files (x86)/Microsoft SDKs/Windows/v7.0A/Include'
|
102
|
+
lib_paths:
|
103
|
+
- 'C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/lib/amd64'
|
104
|
+
- 'C:/Program Files (x86)/Microsoft SDKs/Windows/v7.0A/Lib/x64'
|
105
|
+
dso_options:
|
106
|
+
- '/DLL'
|
107
|
+
libs:
|
108
|
+
- 'Foundation'
|
109
|
+
lib_ext: '.lib'
|
110
|
+
lib_flag: ''
|
111
|
+
libpath_flag: '/LIBPATH:'
|
112
|
+
framework_flag: ''
|
113
|
+
include_flag: '/I'
|
114
|
+
object_flag: '/Fo'
|
115
|
+
outputfile_flag: '/OUT:'
|
116
|
+
object_extension: 'obj'
|
117
|
+
linker_options:
|
118
|
+
- '/OPT:NOREF'
|
119
|
+
- '/INCREMENTAL:NO'
|
120
|
+
- '/MACHINE:X64'
|
121
|
+
- '/DYNAMICBASE'
|
122
|
+
- '/NXCOMPAT'
|
123
|
+
compiler_options:
|
124
|
+
- '/c'
|
125
|
+
- '/nologo'
|
126
|
+
- '/Ob1'
|
127
|
+
- '/Gy'
|
128
|
+
- '/MT'
|
129
|
+
- '/GR'
|
130
|
+
- '/EHs'
|
131
|
+
- '/TP'
|
132
|
+
- '/EHsc'
|
133
|
+
- '/DNDEBUG'
|
134
|
+
- '/DNT_PLUGIN'
|
135
|
+
- '/FD'
|
136
|
+
- '/D_CRT_SECURE_NO_WARNINGS'
|
137
|
+
- '/fp:precise'
|
138
|
+
- '/Gd'
|
139
|
+
- '/DWIN_NT'
|
140
|
+
- '/DWIN32'
|
141
|
+
- '/D_WIN32'
|
142
|
+
- '/D_WINDOWS'
|
143
|
+
- '/D_WINDLL'
|
144
|
+
- '/DBits64_'
|
145
|
+
- '/D_WIN64'
|
146
|
+
- '/D_LANGUAGE_C_PLUS_PLUS'
|
147
|
+
- '/W3'
|
148
|
+
configuration_debug:
|
149
|
+
compiler_options:
|
150
|
+
- '/Z7'
|
151
|
+
configuration_release:
|
152
|
+
compiler_options:
|
153
|
+
- '/O2'
|
@@ -0,0 +1,14 @@
|
|
1
|
+
delight_version: '10.0.12'
|
2
|
+
|
3
|
+
target_release_prefix: 'delight/procedural'
|
4
|
+
|
5
|
+
shader_release_prefix: 'delight/shader'
|
6
|
+
|
7
|
+
os_linux_64:
|
8
|
+
delight_location: '/software/3delight'
|
9
|
+
|
10
|
+
os_darwin:
|
11
|
+
delight_location: '/Applications/Graphics/3Delight'
|
12
|
+
|
13
|
+
os_win_64:
|
14
|
+
delight_location: 'C:/Program Files/3Delight'
|
@@ -0,0 +1,26 @@
|
|
1
|
+
configuration: "debug"
|
2
|
+
|
3
|
+
product_name: "<%= name %>"
|
4
|
+
|
5
|
+
product_revision: "<%= name %>-0.0.1"
|
6
|
+
|
7
|
+
target_release_prefix: "bin"
|
8
|
+
|
9
|
+
author_name: "<%= ENV['USER'] %>"
|
10
|
+
|
11
|
+
author_email: "<%= ENV['USER'] %>@example.com"
|
12
|
+
|
13
|
+
os_darwin:
|
14
|
+
target_release_path: "/Users/<%= ENV['USER'] %>/tools"
|
15
|
+
os_linux_64:
|
16
|
+
configuration_debug:
|
17
|
+
target_release_path: "/home/<%= ENV['USER'] %>/tools"
|
18
|
+
configuration_release:
|
19
|
+
target_release_path: "/big/server/tools"
|
20
|
+
os_win_64:
|
21
|
+
configuration_debug:
|
22
|
+
target_release_path: "/cygdrive/c/cygwin/home/<%= ENV['USER'] %>/tools"
|
23
|
+
configuration_release:
|
24
|
+
target_release_path: "/cygdrive/big/server/Tools"
|
25
|
+
|
26
|
+
|
@@ -0,0 +1,27 @@
|
|
1
|
+
os_linux_64:
|
2
|
+
include_paths:
|
3
|
+
- "/usr/local/Mesa-7.6/include"
|
4
|
+
- '/usr/local/include/GL'
|
5
|
+
lib_paths:
|
6
|
+
- "/usr/local/Mesa-7.6/lib64"
|
7
|
+
frameworks:
|
8
|
+
- 'GL'
|
9
|
+
- 'glut'
|
10
|
+
compiler_options:
|
11
|
+
- "-DFREEGLUT"
|
12
|
+
|
13
|
+
os_darwin:
|
14
|
+
frameworks:
|
15
|
+
- 'OpenGL'
|
16
|
+
- 'GLUT'
|
17
|
+
|
18
|
+
os_win_64:
|
19
|
+
libs:
|
20
|
+
- 'opengl32'
|
21
|
+
- 'glu32'
|
22
|
+
- 'glut64'
|
23
|
+
lib_paths:
|
24
|
+
- 'C:/cygwin/home/<%= ENV['USER'] %>/glut-3.7.6-bin'
|
25
|
+
include_paths:
|
26
|
+
- 'C:/cygwin/home/<%= ENV['USER'] %>/glut-3.7.6-bin'
|
27
|
+
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
max_version: '2012'
|
@@ -0,0 +1,16 @@
|
|
1
|
+
maya_version: 2012
|
2
|
+
|
3
|
+
dg_convert_cmd: 'convert -resize 32x32'
|
4
|
+
|
5
|
+
outliner_convert_cmd: 'convert -resize 20x20'
|
6
|
+
|
7
|
+
maya_convert_cmd: 'convert'
|
8
|
+
|
9
|
+
os_linux_64:
|
10
|
+
autodesk_location: '/usr/autodesk'
|
11
|
+
|
12
|
+
os_darwin:
|
13
|
+
autodesk_location: '/Applications/Autodesk'
|
14
|
+
|
15
|
+
os_win_64:
|
16
|
+
autodesk_location: 'C:/Program Files/Autodesk'
|
@@ -0,0 +1,80 @@
|
|
1
|
+
target_release_prefix: 'bin'
|
2
|
+
|
3
|
+
os_linux_64:
|
4
|
+
libs:
|
5
|
+
- 'OpenMayalib'
|
6
|
+
- 'dl'
|
7
|
+
maya_relative_lib_path: 'lib'
|
8
|
+
maya_relative_inc_path: 'include'
|
9
|
+
linker_options:
|
10
|
+
- '-m64'
|
11
|
+
- '-pthread'
|
12
|
+
compiler_options:
|
13
|
+
- '-g'
|
14
|
+
- '-fno-gnu-keywords'
|
15
|
+
- '-ftemplate-depth-25'
|
16
|
+
- '-Wno-multichar'
|
17
|
+
- '-Wno-comment'
|
18
|
+
- '-Wno-reorder'
|
19
|
+
- '-Wno-sign-compare'
|
20
|
+
- '-Wall'
|
21
|
+
libs:
|
22
|
+
- 'OpenMaya'
|
23
|
+
- 'AnimSlice'
|
24
|
+
- 'DeformSlice'
|
25
|
+
- 'Modifiers'
|
26
|
+
- 'DynSlice'
|
27
|
+
- 'KinSlice'
|
28
|
+
- 'ModelSlice'
|
29
|
+
- 'NurbsSlice'
|
30
|
+
- 'PolySlice '
|
31
|
+
- 'ProjectSlice'
|
32
|
+
- 'Image'
|
33
|
+
- 'Shared'
|
34
|
+
- 'Translators'
|
35
|
+
- 'DataModel'
|
36
|
+
- 'RenderModel'
|
37
|
+
- 'NurbsEngine'
|
38
|
+
- 'DependEngine'
|
39
|
+
- 'CommandEngine'
|
40
|
+
- 'Foundation'
|
41
|
+
- 'IMFbase'
|
42
|
+
- 'm'
|
43
|
+
os_darwin:
|
44
|
+
maya_relative_lib_path: 'Maya.app/Contents/MacOS'
|
45
|
+
maya_relative_inc_path: 'devkit/include'
|
46
|
+
compiler_options:
|
47
|
+
- '-fno-gnu-keywords'
|
48
|
+
- '-fpascal-strings'
|
49
|
+
libs:
|
50
|
+
- 'OpenMaya'
|
51
|
+
- 'AnimSlice'
|
52
|
+
- 'DeformSlice'
|
53
|
+
- 'Modifiers'
|
54
|
+
- 'DynSlice'
|
55
|
+
- 'KinSlice'
|
56
|
+
- 'ModelSlice'
|
57
|
+
- 'NurbsSlice'
|
58
|
+
- 'PolySlice '
|
59
|
+
- 'ProjectSlice'
|
60
|
+
- 'Image'
|
61
|
+
- 'Shared'
|
62
|
+
- 'Translators'
|
63
|
+
- 'DataModel'
|
64
|
+
- 'RenderModel'
|
65
|
+
- 'NurbsEngine'
|
66
|
+
- 'DependEngine'
|
67
|
+
- 'CommandEngine'
|
68
|
+
- 'Foundation'
|
69
|
+
- 'IMFbase'
|
70
|
+
- 'm'
|
71
|
+
os_win_64:
|
72
|
+
libs:
|
73
|
+
- 'Foundation'
|
74
|
+
- 'OpenMaya'
|
75
|
+
maya_relative_inc_path: 'include'
|
76
|
+
maya_relative_lib_path: 'lib'
|
77
|
+
compiler_options:
|
78
|
+
- '/DNT_APP'
|
79
|
+
- '/D_CONSOLE'
|
80
|
+
- '/D_BOOL'
|
@@ -0,0 +1,59 @@
|
|
1
|
+
target_release_prefix: 'maya/plug-ins'
|
2
|
+
|
3
|
+
libs:
|
4
|
+
- 'OpenMaya'
|
5
|
+
|
6
|
+
os_linux_64:
|
7
|
+
libs:
|
8
|
+
- 'OpenMayalib'
|
9
|
+
- 'dl'
|
10
|
+
maya_relative_lib_path: 'lib'
|
11
|
+
maya_relative_inc_path: 'include'
|
12
|
+
linker_options:
|
13
|
+
- '-m64'
|
14
|
+
- '-pthread'
|
15
|
+
compiler_options:
|
16
|
+
- '-Wno-deprecated'
|
17
|
+
- '-Wno-multichar'
|
18
|
+
- '-Wno-comment'
|
19
|
+
- '-Wno-reorder'
|
20
|
+
- '-Wno-sign-compare'
|
21
|
+
- '-Wall'
|
22
|
+
target_extension: 'so'
|
23
|
+
|
24
|
+
os_darwin:
|
25
|
+
maya_relative_lib_path: 'Maya.app/Contents/MacOS'
|
26
|
+
maya_relative_inc_path: 'devkit/include'
|
27
|
+
compiler_options:
|
28
|
+
- '-gdwarf-2'
|
29
|
+
- '-mfix-and-continue'
|
30
|
+
- '-fmessage-length=0'
|
31
|
+
- '-fno-gnu-keywords'
|
32
|
+
- '-fpascal-strings'
|
33
|
+
- '-pthread'
|
34
|
+
- '-pipe'
|
35
|
+
- '-DCC_GNU_'
|
36
|
+
- '-DOSMac_'
|
37
|
+
- '-DOSMacOSX_'
|
38
|
+
- '-DREQUIRE_IOSTREAM'
|
39
|
+
- '-DOSMac_MachO_'
|
40
|
+
- '-O0'
|
41
|
+
- '-D_LANGUAGE_C_PLUS_PLUS'
|
42
|
+
target_extension: 'bundle'
|
43
|
+
includes:
|
44
|
+
- 'maya/OpenMayaMac.h'
|
45
|
+
|
46
|
+
os_win_64:
|
47
|
+
libs:
|
48
|
+
- 'Foundation'
|
49
|
+
- 'OpenMaya'
|
50
|
+
maya_relative_inc_path: 'include'
|
51
|
+
maya_relative_lib_path: 'lib'
|
52
|
+
compiler_options:
|
53
|
+
- '/D_BOOL'
|
54
|
+
- '/DREQUIRE_IOSTREAM'
|
55
|
+
- '/DAW_NEW_IOSTREAMS'
|
56
|
+
target_extension: 'mll'
|
57
|
+
dso_options:
|
58
|
+
- '/export:initializePlugin'
|
59
|
+
- '/export:uninitializePlugin'
|
@@ -0,0 +1,34 @@
|
|
1
|
+
global proc <%= @settings[:product_name] %>() {
|
2
|
+
|
3
|
+
|
4
|
+
// To build the <%= @settings[:product_name] %> menu automatically when Maya starts, add the line
|
5
|
+
// <%= @settings[:product_name] %>;
|
6
|
+
// to your userSetup.mel (without the // of course)
|
7
|
+
|
8
|
+
// This script relies on the jlib mel library for the module creation functions
|
9
|
+
source "jlib_module";
|
10
|
+
|
11
|
+
// global proc module.initialize(
|
12
|
+
// string $initializer,
|
13
|
+
// string $parentUI,
|
14
|
+
// string $firstPlugins[],
|
15
|
+
// string $melSourceExcludes[],
|
16
|
+
// string $docLocation,
|
17
|
+
// int $devMode
|
18
|
+
// )
|
19
|
+
|
20
|
+
// initializer:string The name of the tool/. e.g. solar
|
21
|
+
// parentUI:string The name of the parent menu.
|
22
|
+
// Use a string such as "RmwTools" to place it in a menu called "RmwTools"
|
23
|
+
// Use an empty string "" to ignore menu creation
|
24
|
+
// Use the global variable $gMainWindow to place the menu in the main menubar
|
25
|
+
// firstPlugins:string[] If any plugins should be loaded before others, put them in this array
|
26
|
+
// melSourceExcludes:string[] If any mel scripts should not be sourced, put them in this array
|
27
|
+
// docLocation:string Documentation index URL, can be a relative or absolute path, or a web URL
|
28
|
+
// If a relative path is used, it will be relative to
|
29
|
+
// devMode:int Adds a menu that allows you to reload plugins
|
30
|
+
|
31
|
+
// global string $gMainWindow;
|
32
|
+
|
33
|
+
module.initialize("<%= @settings[:product_name] %>", "<%= File.basename(File.dirname(@settings[:root])).camelize %>",{},{},"<%= self.settings[:product_revision] %>-doc/index.html", 0);
|
34
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
<% upname = name.upcase -%>
|
2
|
+
# append <%= upname %> bin paths to PATH
|
3
|
+
PATH=$PATH:${<%= upname %>}/bin
|
4
|
+
|
5
|
+
<% if project_options[:delight] -%>
|
6
|
+
# append <%= upname %> delight paths to bin
|
7
|
+
PATH=$PATH:${<%= upname %>}/delight/procedural
|
8
|
+
|
9
|
+
# append <%= upname %> delight resource paths
|
10
|
+
if [[ -n $DELIGHT ]] ;then
|
11
|
+
|
12
|
+
if [[ -n $DL_SHADERS_PATH ]] ;
|
13
|
+
then export DL_SHADERS_PATH=.:${<%= upname %>}/delight/shader:${DL_SHADERS_PATH} ;
|
14
|
+
else export DL_SHADERS_PATH=.:${<%= upname %>}/delight/shader ;
|
15
|
+
fi
|
16
|
+
|
17
|
+
if [[ -n $DL_PROCEDURALS_PATH ]] ;
|
18
|
+
then export DL_PROCEDURALS_PATH=.:${<%= upname %>}/delight/procedural:${DL_PROCEDURALS_PATH} ;
|
19
|
+
else export DL_PROCEDURALS_PATH=.:${<%= upname %>}/delight/procedural ;
|
20
|
+
fi
|
21
|
+
|
22
|
+
fi
|
23
|
+
<% end -%>
|
24
|
+
|
25
|
+
<% if project_options[:nuke] -%>
|
26
|
+
# append <%= upname %> nuke resource paths
|
27
|
+
if [[ -n $NUKE_LOCATION ]] ;then
|
28
|
+
|
29
|
+
if [[ -n $NUKE_PATH ]] ;
|
30
|
+
then export NUKE_PATH=.:${<%= upname %>}/nuke/scripts:${NUKE_PATH} ;
|
31
|
+
else export NUKE_PATH=.:${<%= upname %>}/nuke/scripts ;
|
32
|
+
fi
|
33
|
+
|
34
|
+
fi
|
35
|
+
<% end -%>
|
data/lib/flak/version.rb
ADDED