Browse Source

core: switch the Win32/x64 binaries to the Windows subsystem so that they

do not open a console at startup.
legacy
Sam Hocevar sam 12 years ago
parent
commit
b5563ad21d
15 changed files with 21 additions and 28 deletions
  1. +7
    -2
      build/vs2010/Lol.Core.Rules.props
  2. +1
    -1
      test/BtPhysTest.cpp
  3. +1
    -1
      test/benchsuite.cpp
  4. +1
    -5
      test/debug/quad.cpp
  5. +1
    -1
      test/math/pi.cpp
  6. +1
    -1
      test/math/poly.cpp
  7. +1
    -1
      test/math/remez.cpp
  8. +1
    -1
      test/sandbox/sample.cpp
  9. +1
    -1
      test/testsuite.cpp
  10. +1
    -5
      test/xolotl/xolotl.cpp
  11. +1
    -2
      tutorial/01_triangle.cpp
  12. +1
    -2
      tutorial/02_cube.cpp
  13. +1
    -1
      tutorial/05_easymesh.cpp
  14. +1
    -2
      tutorial/08_fbo.cpp
  15. +1
    -2
      tutorial/11_fractal.cpp

+ 7
- 2
build/vs2010/Lol.Core.Rules.props View File

@@ -22,7 +22,8 @@
<ClCompile Condition="'$(Configuration)'=='Debug'">
<GenerateDebugInformation>true</GenerateDebugInformation>
<Optimization>Disabled</Optimization>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<RuntimeLibrary Condition="'$(Platform)'=='Win32' Or '$(Platform)'=='x64'">MultiThreadedDebugDLL</RuntimeLibrary>
<RuntimeLibrary Condition="'$(Platform)'=='Xbox 360'">MultiThreadedDebug</RuntimeLibrary>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<ClCompile Condition="'$(Configuration)'=='Release'">
@@ -32,7 +33,8 @@
<!-- For PlayStation tools -->
<OptimizationLevel>Level2</OptimizationLevel>

<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<RuntimeLibrary Condition="'$(Platform)'=='Win32' Or '$(Platform)'=='x64'">MultiThreadedDLL</RuntimeLibrary>
<RuntimeLibrary Condition="'$(Platform)'=='Xbox 360'">MultiThreaded</RuntimeLibrary>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
@@ -56,6 +58,9 @@
<AdditionalDependencies Condition="'$(Platform)'=='PS3'">$(Ps3Deps);%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies Condition="'$(Platform)'=='PS3'">$(GlDeps);%(AdditionalDependencies)</AdditionalDependencies>
</Link>
<Link Condition="'$(Platform)'=='Win32' Or '$(Platform)'=='x64'">
<SubSystem>Windows</SubSystem>
</Link>
<Link Condition="'$(Configuration)'=='Debug'">
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>


+ 1
- 1
test/BtPhysTest.cpp View File

@@ -28,7 +28,7 @@
# include <cmath>
#endif

#if USE_SDL && defined __APPLE__
#if USE_SDL
# include <SDL_main.h>
#endif



+ 1
- 1
test/benchsuite.cpp View File

@@ -14,7 +14,7 @@

#include <cstdio>

#if USE_SDL && defined __APPLE__
#if USE_SDL
# include <SDL_main.h>
#endif



+ 1
- 5
test/debug/quad.cpp View File

@@ -19,14 +19,10 @@
using namespace std;
using namespace lol;

#if USE_SDL && defined __APPLE__
#if USE_SDL
# include <SDL_main.h>
#endif

#if defined _WIN32
# undef main /* FIXME: still needed? */
#endif

int main(int argc, char **argv)
{
Application app("Quad", ivec2(640, 480), 60.0f);


+ 1
- 1
test/math/pi.cpp View File

@@ -14,7 +14,7 @@

#include <cstdio>

#if USE_SDL && defined __APPLE__
#if USE_SDL
# include <SDL_main.h>
#endif



+ 1
- 1
test/math/poly.cpp View File

@@ -14,7 +14,7 @@

#include <cstdio>

#if USE_SDL && defined __APPLE__
#if USE_SDL
# include <SDL_main.h>
#endif



+ 1
- 1
test/math/remez.cpp View File

@@ -12,7 +12,7 @@
# include "config.h"
#endif

#if USE_SDL && defined __APPLE__
#if USE_SDL
# include <SDL_main.h>
#endif



+ 1
- 1
test/sandbox/sample.cpp View File

@@ -12,7 +12,7 @@
# include "config.h"
#endif

#if USE_SDL && defined __APPLE__
#if USE_SDL
# include <SDL_main.h>
#endif



+ 1
- 1
test/testsuite.cpp View File

@@ -15,7 +15,7 @@
#include <cstdio>
#include <cstdlib>

#if USE_SDL && defined __APPLE__
#if USE_SDL
# include <SDL_main.h>
#endif



+ 1
- 5
test/xolotl/xolotl.cpp View File

@@ -19,14 +19,10 @@

using namespace lol;

#if USE_SDL && defined __APPLE__
#if USE_SDL
# include <SDL_main.h>
#endif

#if defined _WIN32
# undef main /* FIXME: still needed? */
#endif

#include "xolotl.h"

class Xolotl : public WorldEntity


+ 1
- 2
tutorial/01_triangle.cpp View File

@@ -18,12 +18,11 @@
using namespace std;
using namespace lol;

#if USE_SDL && defined __APPLE__
#if USE_SDL
# include <SDL_main.h>
#endif

#if defined _WIN32
# undef main /* FIXME: still needed? */
# include <direct.h>
#endif



+ 1
- 2
tutorial/02_cube.cpp View File

@@ -18,12 +18,11 @@
using namespace std;
using namespace lol;

#if USE_SDL && defined __APPLE__
#if USE_SDL
# include <SDL_main.h>
#endif

#if defined _WIN32
# undef main /* FIXME: still needed? */
# include <direct.h>
#endif



+ 1
- 1
tutorial/05_easymesh.cpp View File

@@ -17,7 +17,7 @@
using namespace std;
using namespace lol;

#if USE_SDL && defined __APPLE__
#if USE_SDL
# include <SDL_main.h>
#endif



+ 1
- 2
tutorial/08_fbo.cpp View File

@@ -18,12 +18,11 @@
using namespace std;
using namespace lol;

#if USE_SDL && defined __APPLE__
#if USE_SDL
# include <SDL_main.h>
#endif

#if defined _WIN32
# undef main /* FIXME: still needed? */
# include <direct.h>
#endif



+ 1
- 2
tutorial/11_fractal.cpp View File

@@ -26,12 +26,11 @@ using namespace lol;
# include <d3d9.h>
#endif

#if USE_SDL && defined __APPLE__
#if USE_SDL
# include <SDL_main.h>
#endif

#if defined _WIN32
# undef main /* FIXME: still needed? */
# include <direct.h>
#endif



Loading…
Cancel
Save