From 15df743b51edfb609e883f9b2d0ae42fce3e8b17 Mon Sep 17 00:00:00 2001 From: "erwin.coumans" Date: Sat, 20 Sep 2008 00:22:18 +0000 Subject: [PATCH] add ReleaseDll and DebugDll configuration for Jam msvcgen build system, to support plugin development (such as Extras/MayaPlugin) --- mk/msvcgen/control.tlib | 29 +++++++++++++++++++++++++++++ mk/msvcgen/projectx7.tlib | 26 ++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) diff --git a/mk/msvcgen/control.tlib b/mk/msvcgen/control.tlib index 21e7b9ff6..ff85d5305 100644 --- a/mk/msvcgen/control.tlib +++ b/mk/msvcgen/control.tlib @@ -121,6 +121,21 @@ builds = [ libdirskey => 'libdir', 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', name => 'ReleaseDoublePrecision', @@ -149,6 +164,20 @@ builds = [ libdirskey => 'libdirdebug', 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', name => 'DebugDoublePrecision', diff --git a/mk/msvcgen/projectx7.tlib b/mk/msvcgen/projectx7.tlib index 3c596f1e4..c02f67aad 100644 --- a/mk/msvcgen/projectx7.tlib +++ b/mk/msvcgen/projectx7.tlib @@ -74,6 +74,14 @@ DebugInformationFormat="3" BufferSecurityCheck="FALSE" [% END %] +[% MACRO compiler_release_dll BLOCK -%] + Optimization="2" + StringPooling="TRUE" + EnableFunctionLevelLinking="TRUE" + RuntimeLibrary="2" + DebugInformationFormat="3" + BufferSecurityCheck="FALSE" +[% END %] [% MACRO compiler_debug BLOCK -%] Optimization="0" MinimalRebuild="TRUE" @@ -81,6 +89,13 @@ RuntimeTypeInfo="FALSE" RuntimeLibrary="1" [% END %] +[% MACRO compiler_debug_dll BLOCK -%] + Optimization="0" + MinimalRebuild="TRUE" + DebugInformationFormat="4" + RuntimeTypeInfo="FALSE" + RuntimeLibrary="3" +[% END %] [% MACRO compiler_debug_dbl BLOCK -%] Optimization="0" MinimalRebuild="TRUE" @@ -114,6 +129,17 @@ SubSystem="[% subsys %]" [% 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 -%] OutputFile="[% path([my.doc.buildroot.0, glue(['ReleaseDbl',my.doc.target.0])]) %]" SubSystem="[% subsys %]"