When compiling XBMC I noticed from time to time that starting the debugger takes up to 10 seconds where it looks like visual studio does nothing. After making the logging more verbose I found out that visual studio tries to read some log files before it starts. They are named *.tlog and in my project are at least 800-900 files:
1
2
3
4
5
6
7
8
9
10
11
12
13
...
CL.980.write.1.tlog
CL.984.read.1.tlog
CL.984.write.1.tlog
cl.command.1.tlog
CL.read.1.tlog
CL.write.1.tlog
custombuild.command.1.tlog
custombuild.read.1.tlog
custombuild.write.1.tlog
link.2840-cvtres.read.1.tlog
link.2840-cvtres.write.1.tlog
...
Deleting them recreates some of them at the next compilation but it doesn’t take ages anymore to start the debugger afterwards.
I recently did my first steps with cmake and it wasn’t easy as there’re not much sources on how to use it with visual studio. After some try and error I got some things done which I wanted to document here.
Variables
1
2
CMAKE_SOURCE_DIR path toCMakeLists.txt
CMAKE_BINARY_DIR path tothe compiled target file
Build Debug or Release dll’s
cmake offers different ways for building release and debug configs with visual studio depending on the generator.
#SET(CPACK_PACKAGE_FILE_NAME "waveform.test") -> would give the package a different name than default
INCLUDE(CPack)
Adds a new target ‘package’ which could be called with ‘nmake package’ or ‘cmake –build . –target=PACKAGE.’
Inside the zip is the directory visualization.waveform with the contents
of the directory visualization.waveform plus the waveform.dll file.