debugger: CMake-ify
This commit is contained in:
@@ -0,0 +1,90 @@
|
||||
project(debugger)
|
||||
|
||||
add_library(${PROJECT_NAME} MODULE
|
||||
"debuggerapp.cpp"
|
||||
"debuggerapp.hpp"
|
||||
"debugtree.cpp"
|
||||
"debugtree.hpp"
|
||||
"mainframe.cpp"
|
||||
"mainframe.hpp"
|
||||
"prefs.cpp"
|
||||
"prefs.hpp"
|
||||
"sourcefile.cpp"
|
||||
"sourcefile.hpp"
|
||||
"stdafx.cpp"
|
||||
"stdafx.hpp"
|
||||
"stdutil.cpp"
|
||||
"tabber.cpp"
|
||||
"tabber.hpp"
|
||||
"debugger.hpp"
|
||||
"debugger.rc"
|
||||
"resource.hpp"
|
||||
"resource.rc"
|
||||
)
|
||||
|
||||
target_link_libraries(${PROJECT_NAME}
|
||||
PRIVATE
|
||||
linker
|
||||
compiler
|
||||
runtime_lib
|
||||
)
|
||||
|
||||
target_compile_definitions(${PROJECT_NAME}
|
||||
PRIVATE
|
||||
_AFXDLL
|
||||
)
|
||||
|
||||
target_include_directories(${PROJECT_NAME}
|
||||
PUBLIC
|
||||
${PROJECT_SOURCE_DIR}
|
||||
)
|
||||
|
||||
if (WIN32)
|
||||
target_compile_definitions(${PROJECT_NAME}
|
||||
PRIVATE
|
||||
_CRT_SECURE_NO_WARNINGS
|
||||
# windows.h
|
||||
WIN32_LEAN_AND_MEAN
|
||||
NOGPICAPMASKS
|
||||
NOVIRTUALKEYCODES
|
||||
#NOWINMESSAGES
|
||||
NOWINSTYLES
|
||||
NOSYSMETRICS
|
||||
NOMENUS
|
||||
NOICONS
|
||||
NOKEYSTATES
|
||||
NOSYSCOMMANDS
|
||||
NORASTEROPS
|
||||
NOSHOWWINDOW
|
||||
NOATOM
|
||||
NOCLIPBOARD
|
||||
NOCOLOR
|
||||
NOCTLMGR
|
||||
NODRAWTEXT
|
||||
#NOGDI
|
||||
NOKERNEL
|
||||
#NOUSER
|
||||
#NONLS
|
||||
NOMB
|
||||
NOMEMMGR
|
||||
NOMETAFILE
|
||||
NOMINMAX
|
||||
#NOMSG
|
||||
NOOPENFILE
|
||||
NOSCROLL
|
||||
NOSERVICE
|
||||
NOSOUND
|
||||
#NOTEXTMETRIC
|
||||
NOWH
|
||||
NOWINOFFSETS
|
||||
NOCOMM
|
||||
NOKANJI
|
||||
#NOHELP
|
||||
NOPROFILER
|
||||
NODEFERWINDOWPOS
|
||||
NOMCX
|
||||
NOIME
|
||||
NOMDI
|
||||
NOINOUT
|
||||
)
|
||||
endif()
|
||||
@@ -1,13 +1,13 @@
|
||||
//Microsoft Developer Studio generated resource script.
|
||||
//
|
||||
#include "resource.h"
|
||||
#include "resource.hpp"
|
||||
|
||||
#define APSTUDIO_READONLY_SYMBOLS
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 2 resource.
|
||||
//
|
||||
#include "afxres.h"
|
||||
#include "afxres.hpp"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#undef APSTUDIO_READONLY_SYMBOLS
|
||||
@@ -34,7 +34,7 @@ END
|
||||
|
||||
2 TEXTINCLUDE DISCARDABLE
|
||||
BEGIN
|
||||
"#include ""afxres.h""\r\n"
|
||||
"#include ""afxres.hpp""\r\n"
|
||||
"\0"
|
||||
END
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "debugger.h"
|
||||
#include "debuggerapp.h"
|
||||
#include "resource.h"
|
||||
#include "prefs.h"
|
||||
#include "stdafx.hpp"
|
||||
#include "debugger.hpp"
|
||||
#include "debuggerapp.hpp"
|
||||
#include "resource.hpp"
|
||||
#include "prefs.hpp"
|
||||
|
||||
DebuggerApp debuggerApp;
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#ifndef DEBUGGERAPP_H
|
||||
#define DEBUGGERAPP_H
|
||||
|
||||
#include "mainframe.h"
|
||||
#include "mainframe.hpp"
|
||||
|
||||
class DebuggerApp : public CWinApp{
|
||||
MainFrame *main_frame;
|
||||
@@ -1,9 +1,9 @@
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "debugtree.h"
|
||||
#include "prefs.h"
|
||||
#include "stdafx.hpp"
|
||||
#include "debugtree.hpp"
|
||||
#include "prefs.hpp"
|
||||
|
||||
#include "../RuntimeLib/basic.h"
|
||||
//#include "basic.hpp"
|
||||
|
||||
IMPLEMENT_DYNAMIC( DebugTree,CTreeCtrl )
|
||||
BEGIN_MESSAGE_MAP( DebugTree,CTreeCtrl )
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
#ifndef DEBUGTREE_H
|
||||
#define DEBUGTREE_H
|
||||
|
||||
#include "../LinkerLib/linker.h"
|
||||
#include "../Compiler/environ.h"
|
||||
#include "linker.hpp"
|
||||
#include "environ.hpp"
|
||||
|
||||
class DebugTree : public CTreeCtrl{
|
||||
int st_nest;
|
||||
@@ -1,9 +1,9 @@
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "mainframe.h"
|
||||
#include "resource.h"
|
||||
#include "debuggerapp.h"
|
||||
#include "prefs.h"
|
||||
#include "stdafx.hpp"
|
||||
#include "mainframe.hpp"
|
||||
#include "resource.hpp"
|
||||
#include "debuggerapp.hpp"
|
||||
#include "prefs.hpp"
|
||||
|
||||
#define WM_IDLEUPDATECMDUI 0x0363 // wParam == bDisableIfNoHandler
|
||||
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
#ifndef MAINFRAME_H
|
||||
#define MAINFRAME_H
|
||||
|
||||
#include "tabber.h"
|
||||
#include "debugger.h"
|
||||
#include "sourcefile.h"
|
||||
#include "debugtree.h"
|
||||
#include "tabber.hpp"
|
||||
#include "debugger.hpp"
|
||||
#include "sourcefile.hpp"
|
||||
#include "debugtree.hpp"
|
||||
|
||||
class MainFrame : public CFrameWnd,public Debugger{
|
||||
|
||||
+3
-3
@@ -1,7 +1,7 @@
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "prefs.h"
|
||||
#include "debuggerapp.h"
|
||||
#include "stdafx.hpp"
|
||||
#include "prefs.hpp"
|
||||
#include "debuggerapp.hpp"
|
||||
#include <fstream>
|
||||
|
||||
#define SWAPRB(x) ( (((x)>>16)&0xff) | ((x)&0xff00) | (((x)&0xff)<<16) )
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
//Microsoft Developer Studio generated resource script.
|
||||
//
|
||||
#include "resource.h"
|
||||
#include "resource.hpp"
|
||||
|
||||
#define APSTUDIO_READONLY_SYMBOLS
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 2 resource.
|
||||
//
|
||||
#include "afxres.h"
|
||||
#include "afxres.hpp"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#undef APSTUDIO_READONLY_SYMBOLS
|
||||
@@ -34,7 +34,7 @@ END
|
||||
|
||||
2 TEXTINCLUDE DISCARDABLE
|
||||
BEGIN
|
||||
"#include ""afxres.h""\r\n"
|
||||
"#include ""afxres.hpp""\r\n"
|
||||
"\0"
|
||||
END
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "sourcefile.h"
|
||||
#include "prefs.h"
|
||||
#include "stdafx.hpp"
|
||||
#include "sourcefile.hpp"
|
||||
#include "prefs.hpp"
|
||||
|
||||
IMPLEMENT_DYNAMIC( SourceFile,CRichEditCtrl )
|
||||
BEGIN_MESSAGE_MAP( SourceFile,CRichEditCtrl )
|
||||
|
||||
+1
-1
@@ -1,2 +1,2 @@
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "stdafx.hpp"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "stdafx.hpp"
|
||||
|
||||
int atoi( const string &s ){
|
||||
return atoi( s.c_str() );
|
||||
|
||||
+3
-2
@@ -1,6 +1,7 @@
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "tabber.h"
|
||||
#include "stdafx.hpp"
|
||||
#include "tabber.hpp"
|
||||
#include <WinUser.h>
|
||||
|
||||
IMPLEMENT_DYNAMIC( Tabber,CTabCtrl )
|
||||
BEGIN_MESSAGE_MAP( Tabber,CTabCtrl )
|
||||
|
||||
Reference in New Issue
Block a user