Merge pull request #56 from mrwonko/SuppressConsole

Suppress console window on Windows Release builds
This commit is contained in:
Timothee "TTimo" Besset 2012-05-19 12:12:50 -07:00
commit 21375fcd2c
2 changed files with 21 additions and 1 deletions

View file

@ -51,6 +51,26 @@ bool g_bBuildList = false;
int g_argc;
char** g_argv;
// =============================================================================
// Windows WinMain() wrapper for main()
// used in Release Builds to suppress the Console
#if defined(_WIN32)
#include <winbase.h>
int main(int argc, char* argv[]);
int CALLBACK WinMain(
__in HINSTANCE hInstance,
__in HINSTANCE hPrevInstance,
__in LPSTR lpCmdLine,
__in int nCmdShow
){
return main(__argc, __argv);
}
#endif
// =============================================================================
// Splash screen

View file

@ -135,7 +135,7 @@
AdditionalDependencies="Ws2_32.lib glib-2.0.lib gobject-2.0.lib intl.lib gtk-win32-2.0.lib gdk-win32-2.0.lib pango-1.0.lib pangoft2-1.0.lib gdkglext-win32-1.0.lib gtkglext-win32-1.0.lib libxml2.lib mathlib.lib synapse.lib l_net.lib cmdlib.lib"
AdditionalLibraryDirectories="&quot;$(SolutionDir)\..\gtk-2.16.6\lib&quot;;&quot;$(SolutionDir)\..\libxml2-2.7.3\lib&quot;;&quot;$(SolutionDir)\..\gtkglext-1.2.0\lib&quot;;&quot;$(SolutionDir)\build\$(ConfigurationName)\libs&quot;"
GenerateDebugInformation="true"
SubSystem="1"
SubSystem="2"
OptimizeReferences="2"
EnableCOMDATFolding="2"
TargetMachine="1"