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'"> <ClCompile Condition="'$(Configuration)'=='Debug'">
<GenerateDebugInformation>true</GenerateDebugInformation> <GenerateDebugInformation>true</GenerateDebugInformation>
<Optimization>Disabled</Optimization> <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> <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile> </ClCompile>
<ClCompile Condition="'$(Configuration)'=='Release'"> <ClCompile Condition="'$(Configuration)'=='Release'">
@@ -32,7 +33,8 @@
<!-- For PlayStation tools --> <!-- For PlayStation tools -->
<OptimizationLevel>Level2</OptimizationLevel> <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> <FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions> <IntrinsicFunctions>true</IntrinsicFunctions>
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed> <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
@@ -56,6 +58,9 @@
<AdditionalDependencies Condition="'$(Platform)'=='PS3'">$(Ps3Deps);%(AdditionalDependencies)</AdditionalDependencies> <AdditionalDependencies Condition="'$(Platform)'=='PS3'">$(Ps3Deps);%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies Condition="'$(Platform)'=='PS3'">$(GlDeps);%(AdditionalDependencies)</AdditionalDependencies> <AdditionalDependencies Condition="'$(Platform)'=='PS3'">$(GlDeps);%(AdditionalDependencies)</AdditionalDependencies>
</Link> </Link>
<Link Condition="'$(Platform)'=='Win32' Or '$(Platform)'=='x64'">
<SubSystem>Windows</SubSystem>
</Link>
<Link Condition="'$(Configuration)'=='Debug'"> <Link Condition="'$(Configuration)'=='Debug'">
<GenerateDebugInformation>true</GenerateDebugInformation> <GenerateDebugInformation>true</GenerateDebugInformation>
</Link> </Link>


+ 1
- 1
test/BtPhysTest.cpp View File

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


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




+ 1
- 1
test/benchsuite.cpp View File

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


#include <cstdio> #include <cstdio>


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




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

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


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


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

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


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

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


#include <cstdio> #include <cstdio>


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




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

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


#include <cstdio> #include <cstdio>


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




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

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


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




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

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


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




+ 1
- 1
test/testsuite.cpp View File

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


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




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

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


using namespace lol; using namespace lol;


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


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

#include "xolotl.h" #include "xolotl.h"


class Xolotl : public WorldEntity class Xolotl : public WorldEntity


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

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


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


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




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

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


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


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




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

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


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




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

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


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


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




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

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


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


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




Loading…
Cancel
Save