Changeset - 84d1dc97559a
[Not reviewed]
0 2 0
HanzZ - 13 years ago 2012-09-04 17:32:23
hanzz.k@gmail.com
Comment out SpectrumService
2 files changed with 12 insertions and 11 deletions:
0 comments (0 inline, 0 general)
spectrum/src/CMakeLists.txt
Show inline comments
 
cmake_minimum_required(VERSION 2.6)
 
FILE(GLOB SRC *.cpp)
 
 
if (WIN32)
 
FILE(GLOB WIN_SRC win32/*.cpp)
 
include_directories(win32)
 
ADD_EXECUTABLE(spectrum2 ${SRC} ${WIN_SRC})
 
else()
 
# if (WIN32)
 
# FILE(GLOB WIN_SRC win32/*.cpp)
 
# include_directories(win32)
 
# ADD_EXECUTABLE(spectrum2 ${SRC} ${WIN_SRC})
 
# else()
 
ADD_EXECUTABLE(spectrum2 ${SRC})
 
endif()
 
# endif()
 
 
 
spectrum/src/main.cpp
Show inline comments
 
@@ -30,7 +30,7 @@
 
#else
 
#include <process.h>
 
#define getpid _getpid
 
#include "win32/SpectrumService.h"
 
// #include "win32/SpectrumService.h"
 
#endif
 
#include <sys/stat.h>
 

	
 
@@ -155,9 +155,9 @@ int main(int argc, char **argv)
 
		("version,v", "Shows Spectrum version")
 
		;
 
#ifdef WIN32
 
	desc.add_options()
 
		("install-service,i", "Install spectrum as Windows service")
 
		("uninstall-service,u", "Uninstall Windows service");
 
// 	desc.add_options()
 
// 		("install-service,i", "Install spectrum as Windows service")
 
// 		("uninstall-service,u", "Uninstall Windows service");
 
#endif
 
	try
 
	{
 
@@ -187,6 +187,7 @@ int main(int argc, char **argv)
 
			no_daemon = true;
 
		}
 
#ifdef WIN32
 
#if 0
 
		if (vm.count("install-service")) {
 
			SpectrumService ntservice;
 
			if (!ntservice.IsInstalled()) {
 
@@ -224,7 +225,7 @@ int main(int argc, char **argv)
 
				return 1;
 
			}
 
		}
 

	
 
#endif
 
#endif
 
	}
 
	catch (std::runtime_error& e)
0 comments (0 inline, 0 general)