Patch #3561 2014-03-10 22:42

kudosdude

Added a SDL2 project wizard.
Download
3561-Added_a_SDL2_p.patch (28.2 KB)
Category
Plugin::FeatureAdd
Status
Open
Close date
 
Assigned to
 
Index: src/CodeBlocks-unix.cbp
===================================================================
--- src/CodeBlocks-unix.cbp    (revision 9677)
+++ src/CodeBlocks-unix.cbp    (working copy)
@@ -2145,6 +2145,9 @@
         <Unit filename="plugins/scriptedwizard/resources/qt4/wizard.script">
             <Option target="Scripted wizard" />
         </Unit>
+        <Unit filename="plugins/scriptedwizard/resources/sdl2/wizard.script">
+            <Option target="Scripted wizard" />
+        </Unit>
         <Unit filename="plugins/scriptedwizard/resources/sdl/wizard.script">
             <Option target="Scripted wizard" />
         </Unit>
Index: src/CodeBlocks.cbp
===================================================================
--- src/CodeBlocks.cbp    (revision 9677)
+++ src/CodeBlocks.cbp    (working copy)
@@ -2388,6 +2388,9 @@
         <Unit filename="plugins/scriptedwizard/resources/qt4/wizard.script">
             <Option target="Scripted wizard" />
         </Unit>
+        <Unit filename="plugins/scriptedwizard/resources/sdl2/wizard.script">
+            <Option target="Scripted wizard" />
+        </Unit>
         <Unit filename="plugins/scriptedwizard/resources/sdl/wizard.script">
             <Option target="Scripted wizard" />
         </Unit>
Index: src/CodeBlocks_wx30-unix.cbp
===================================================================
--- src/CodeBlocks_wx30-unix.cbp    (revision 9677)
+++ src/CodeBlocks_wx30-unix.cbp    (working copy)
@@ -2189,6 +2189,9 @@
         <Unit filename="plugins/scriptedwizard/resources/qt4/wizard.script">
             <Option target="Scripted wizard" />
         </Unit>
+        <Unit filename="plugins/scriptedwizard/resources/sdl2/wizard.script">
+            <Option target="Scripted wizard" />
+        </Unit>
         <Unit filename="plugins/scriptedwizard/resources/sdl/wizard.script">
             <Option target="Scripted wizard" />
         </Unit>
Index: src/CodeBlocks_wx30.cbp
===================================================================
--- src/CodeBlocks_wx30.cbp    (revision 9677)
+++ src/CodeBlocks_wx30.cbp    (working copy)
@@ -2383,6 +2383,9 @@
         <Unit filename="plugins/scriptedwizard/resources/qt4/wizard.script">
             <Option target="Scripted wizard" />
         </Unit>
+        <Unit filename="plugins/scriptedwizard/resources/sdl2/wizard.script">
+            <Option target="Scripted wizard" />
+        </Unit>
         <Unit filename="plugins/scriptedwizard/resources/sdl/wizard.script">
             <Option target="Scripted wizard" />
         </Unit>
Index: src/CodeBlocks_wx30_64.cbp
===================================================================
--- src/CodeBlocks_wx30_64.cbp    (revision 9677)
+++ src/CodeBlocks_wx30_64.cbp    (working copy)
@@ -2386,6 +2386,9 @@
         <Unit filename="plugins/scriptedwizard/resources/qt4/wizard.script">
             <Option target="Scripted wizard" />
         </Unit>
+        <Unit filename="plugins/scriptedwizard/resources/sdl2/wizard.script">
+            <Option target="Scripted wizard" />
+        </Unit>
         <Unit filename="plugins/scriptedwizard/resources/sdl/wizard.script">
             <Option target="Scripted wizard" />
         </Unit>
Index: src/plugins/scriptedwizard/resources/config.script
===================================================================
--- src/plugins/scriptedwizard/resources/config.script    (revision 9677)
+++ src/plugins/scriptedwizard/resources/config.script    (working copy)
@@ -42,6 +42,7 @@
     RegisterWizard(wizProject,     _T("plugins"),      _T("Code::Blocks plugin"),   _T("Code::Blocks"));
     RegisterWizard(wizProject,     _T("qt4"),          _T("QT4 project"),           _T("GUI"));
     RegisterWizard(wizProject,     _T("sdl"),          _T("SDL project"),           _T("2D/3D Graphics"));
+    RegisterWizard(wizProject,     _T("sdl2"),         _T("SDL2 project"),          _T("2D/3D Graphics"));
     RegisterWizard(wizProject,     _T("sfml"),         _T("SFML project"),          _T("2D/3D Graphics"));
     if (PLATFORM == PLATFORM_MSW)
         RegisterWizard(wizProject, _T("smartwin"),     _T("SmartWin project"),      _T("GUI"));
Index: src/plugins/scriptedwizard/resources/sdl2/Makefile.am
===================================================================
--- src/plugins/scriptedwizard/resources/sdl2/Makefile.am    (revision 0)
+++ src/plugins/scriptedwizard/resources/sdl2/Makefile.am    (working copy)
@@ -0,0 +1,7 @@
+SUBDIRS = files
+
+pkgdatadir = $(datadir)/@PACKAGE@/templates/wizard/sdl2
+
+dist_pkgdata_DATA = logo.png \
+                    wizard.png \
+                    wizard.script
\ No newline at end of file
Index: src/plugins/scriptedwizard/resources/sdl2/files/Makefile.am
===================================================================
--- src/plugins/scriptedwizard/resources/sdl2/files/Makefile.am    (revision 0)
+++ src/plugins/scriptedwizard/resources/sdl2/files/Makefile.am    (working copy)
@@ -0,0
download for full patch...
kudosdude 2014-03-10 22:47

Hi,

I don't know if these project wizards are used much, but SDL2 has been out for a while so I thought i'd add it to codeblocks. :) I have copied much from the SDL wizard.

I couldn't get the images into the patch but have uploaded them here:

https://www.dropbox.com/sh/tyr8p40lz4jefyv/3mBDZPvyVk

Please let me know if anything is wrong/missing :). I have not tested it on Mac or Linux..