<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Maratis forum - Premake template for plugins]]></title>
	<link rel="self" href="http://forum.maratis3d.com/extern.php?action=feed&amp;tid=825&amp;type=atom"/>
	<updated>2013-10-12T05:36:33Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.maratis3d.com/viewtopic.php?id=825</id>
		<entry>
			<title type="html"><![CDATA[Re: Premake template for plugins]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=5468#p5468"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[com3D]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1488</uri>
			</author>
			<updated>2013-10-12T05:36:33Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=5468#p5468</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Premake template for plugins]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=5467#p5467"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[com3D]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1488</uri>
			</author>
			<updated>2013-10-12T05:33:25Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=5467#p5467</id>
		</entry>
</feed>
