<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Maratis forum - Premake template for plugins]]></title>
		<link>http://forum.maratis3d.com/viewtopic.php?id=825</link>
		<description><![CDATA[The most recent posts in Premake template for plugins.]]></description>
		<lastBuildDate>Sat, 12 Oct 2013 05:36:33 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Premake template for plugins]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=5468#p5468</link>
			<description><![CDATA[<p>LINUX<br />- build using make &amp; GCC 4.6.3 <img src="http://forum.maratis3d.com/img/smilies/tongue.png" width="15" height="15" alt="tongue" /><br />- build using Code::Blocks 12.11 &amp; GCC 4.6.3 <img src="http://forum.maratis3d.com/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p><p>- tested on Ubuntu Precise <img src="http://forum.maratis3d.com/img/smilies/tongue.png" width="15" height="15" alt="tongue" /><br />- tested on Slackware 14 <img src="http://forum.maratis3d.com/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p><br /><p>WINDOWS<br />- build using vs2010 <img src="http://forum.maratis3d.com/img/smilies/tongue.png" width="15" height="15" alt="tongue" /><br />- build using minGW <img src="http://forum.maratis3d.com/img/smilies/tongue.png" width="15" height="15" alt="tongue" /> (requires building Maratis with minGW)</p><p>- vs2010 build tested using Wine <img src="http://forum.maratis3d.com/img/smilies/tongue.png" width="15" height="15" alt="tongue" /><br />- minGW build test using Wine <img src="http://forum.maratis3d.com/img/smilies/tongue.png" width="15" height="15" alt="tongue" /> (requires a minGW build of Maratis)</p><br /><p>IMPORTANT<br />- plugin &amp; Maratis must be built using the same compiler/linker.<br />- for linux users, don&#039;t forget to rename your generated plugin as &#039;Game.so&#039; (instead of &#039;libGame.so&#039;).<br />- for Windows users, please note that when using absolute path you can&#039;t build in debug mode (obviously a bug in Premake4 that strips the path).</p><p>TODO: cygwin tests soon as assimp for cygwin gets fixed</p>]]></description>
			<author><![CDATA[dummy@example.com (com3D)]]></author>
			<pubDate>Sat, 12 Oct 2013 05:36:33 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=5468#p5468</guid>
		</item>
		<item>
			<title><![CDATA[Premake template for plugins]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=5467#p5467</link>
			<description><![CDATA[<div class="codebox"><pre><code>-----------------------------------------------------------------------------------------------------------------------------
-- Maratis plugin premake template
-----------------------------------------------------------------------------------------------------------------------------

    -- Setup the path to MSDK
    msdk = &quot;MSDK/&quot;

    -- Setup the name of your plugin&#039;s folder
    sources_folder = &quot;PluginSources&quot;

-- Setup the solution
solution &quot;Game&quot;

    configurations { &quot;Debug&quot;, &quot;Release&quot; }
    platforms { &quot;x32&quot;, &quot;x64&quot; }

    if os.is(&quot;windows&quot;) then defines { &quot;_WIN32&quot;, &quot;WIN32&quot; }
    elseif os.is(&quot;macosx&quot;) then defines { &quot;__APPLE__&quot;, &quot;MACOSX&quot; }
    elseif os.is(&quot;linux&quot;) then defines { &quot;LINUX&quot;, &quot;linux&quot; } end

    configuration &quot;Debug&quot;
        defines { &quot;DEBUG&quot; }
        flags { &quot;Symbols&quot; }

    configuration &quot;Release&quot;
        defines { &quot;NDEBUG&quot; }
        flags { &quot;OptimizeSpeed&quot; }

    -- Includes directories
    includedirs { msdk .. &quot;MCore/Includes&quot;, msdk .. &quot;MEngine/Includes&quot; }

    -- External libraries
    if os.is(&quot;windows&quot;) then libdirs { sources_folder } end -- set path to MCore &amp; MEngine (dll for minGW, lib for visual studio)

    -- Build plugin from sources ~ NB: do not rename it here, but strip &quot;lib&quot; from &quot;libGame.so&quot;
    project &quot;Game&quot;
        kind &quot;SharedLib&quot;
        language &quot;C++&quot;
        files { sources_folder .. &quot;/**&quot; }
        if os.is(&quot;windows&quot;) then links { &quot;MEngine&quot;, &quot;MCore&quot; } end</code></pre></div><p>NB: you must edit this script to match the location of Maratis SDK libs and of your plugin sources.<br />This script must be saved as &#039;premake4.lua&#039; in your project folder.</p>]]></description>
			<author><![CDATA[dummy@example.com (com3D)]]></author>
			<pubDate>Sat, 12 Oct 2013 05:33:25 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=5467#p5467</guid>
		</item>
	</channel>
</rss>
