add ReleaseDll and DebugDll configuration for Jam msvcgen build system, to support plugin development (such as Extras/MayaPlugin)
This commit is contained in:
@@ -121,6 +121,21 @@ builds = [
|
|||||||
libdirskey => 'libdir',
|
libdirskey => 'libdir',
|
||||||
priority => 100
|
priority => 100
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
tag => 'release_dll',
|
||||||
|
name => 'ReleaseDll',
|
||||||
|
defines => ['NDEBUG'],
|
||||||
|
snpreprocessor => 'SN_TARGET_PS3;NDEBUG;__GCC__',
|
||||||
|
snadditional => '-O2 -Wall -fno-exceptions',
|
||||||
|
defineskey => 'define',
|
||||||
|
cflagskey => 'cflags',
|
||||||
|
incdirskey => 'include',
|
||||||
|
lflagskey => 'lflags',
|
||||||
|
libskey => 'library',
|
||||||
|
libdirskey => 'libdir',
|
||||||
|
priority => 100
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
tag => 'release_dbl',
|
tag => 'release_dbl',
|
||||||
name => 'ReleaseDoublePrecision',
|
name => 'ReleaseDoublePrecision',
|
||||||
@@ -149,6 +164,20 @@ builds = [
|
|||||||
libdirskey => 'libdirdebug',
|
libdirskey => 'libdirdebug',
|
||||||
priority => 200
|
priority => 200
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
tag => 'debug_dll',
|
||||||
|
name => 'DebugDll',
|
||||||
|
defines => ['_DEBUG'],
|
||||||
|
snpreprocessor => 'SN_TARGET_PS3;_DEBUG;__GCC__',
|
||||||
|
snadditional => '-g -O0 -Wall -fno-exceptions',
|
||||||
|
defineskey => 'definedebug',
|
||||||
|
cflagskey => 'cflagsdebug',
|
||||||
|
incdirskey => 'includedebug',
|
||||||
|
lflagskey => 'lflagsdebug',
|
||||||
|
libskey => 'librarydebug',
|
||||||
|
libdirskey => 'libdirdebug',
|
||||||
|
priority => 200
|
||||||
|
},
|
||||||
{
|
{
|
||||||
tag => 'debug_dbl',
|
tag => 'debug_dbl',
|
||||||
name => 'DebugDoublePrecision',
|
name => 'DebugDoublePrecision',
|
||||||
|
|||||||
@@ -74,6 +74,14 @@
|
|||||||
DebugInformationFormat="3"
|
DebugInformationFormat="3"
|
||||||
BufferSecurityCheck="FALSE"
|
BufferSecurityCheck="FALSE"
|
||||||
[% END %]
|
[% END %]
|
||||||
|
[% MACRO compiler_release_dll BLOCK -%]
|
||||||
|
Optimization="2"
|
||||||
|
StringPooling="TRUE"
|
||||||
|
EnableFunctionLevelLinking="TRUE"
|
||||||
|
RuntimeLibrary="2"
|
||||||
|
DebugInformationFormat="3"
|
||||||
|
BufferSecurityCheck="FALSE"
|
||||||
|
[% END %]
|
||||||
[% MACRO compiler_debug BLOCK -%]
|
[% MACRO compiler_debug BLOCK -%]
|
||||||
Optimization="0"
|
Optimization="0"
|
||||||
MinimalRebuild="TRUE"
|
MinimalRebuild="TRUE"
|
||||||
@@ -81,6 +89,13 @@
|
|||||||
RuntimeTypeInfo="FALSE"
|
RuntimeTypeInfo="FALSE"
|
||||||
RuntimeLibrary="1"
|
RuntimeLibrary="1"
|
||||||
[% END %]
|
[% END %]
|
||||||
|
[% MACRO compiler_debug_dll BLOCK -%]
|
||||||
|
Optimization="0"
|
||||||
|
MinimalRebuild="TRUE"
|
||||||
|
DebugInformationFormat="4"
|
||||||
|
RuntimeTypeInfo="FALSE"
|
||||||
|
RuntimeLibrary="3"
|
||||||
|
[% END %]
|
||||||
[% MACRO compiler_debug_dbl BLOCK -%]
|
[% MACRO compiler_debug_dbl BLOCK -%]
|
||||||
Optimization="0"
|
Optimization="0"
|
||||||
MinimalRebuild="TRUE"
|
MinimalRebuild="TRUE"
|
||||||
@@ -114,6 +129,17 @@
|
|||||||
SubSystem="[% subsys %]"
|
SubSystem="[% subsys %]"
|
||||||
[% END %]
|
[% END %]
|
||||||
|
|
||||||
|
[% MACRO linker_app_release_dll(subsys) BLOCK -%]
|
||||||
|
OutputFile="[% path([my.doc.buildroot.0, glue(['ReleaseDll',my.doc.target.0])]) %]"
|
||||||
|
SubSystem="[% subsys %]"
|
||||||
|
[% END %]
|
||||||
|
[% MACRO linker_app_debug_dll(subsys) BLOCK -%]
|
||||||
|
OutputFile="[% path([my.doc.buildroot.0, glue(['DebugDll',my.doc.target.0])]) %]"
|
||||||
|
SubSystem="[% subsys %]"
|
||||||
|
[% END %]
|
||||||
|
[% MACRO linker_appcon_release_dll GET linker_app_release_dll(1) %]
|
||||||
|
[% MACRO linker_appcon_debug_dll GET linker_app_debug_dll(1) %]
|
||||||
|
|
||||||
[% MACRO linker_app_release_dbl(subsys) BLOCK -%]
|
[% MACRO linker_app_release_dbl(subsys) BLOCK -%]
|
||||||
OutputFile="[% path([my.doc.buildroot.0, glue(['ReleaseDbl',my.doc.target.0])]) %]"
|
OutputFile="[% path([my.doc.buildroot.0, glue(['ReleaseDbl',my.doc.target.0])]) %]"
|
||||||
SubSystem="[% subsys %]"
|
SubSystem="[% subsys %]"
|
||||||
|
|||||||
Reference in New Issue
Block a user