mirror of https://github.com/mgba-emu/mgba.git
Debugger: Move CLIDebugerEditLine implementation into debugger/
This commit is contained in:
parent
ce4024a29e
commit
b7284542bc
|
@ -539,14 +539,12 @@ if(USE_EDITLINE)
|
||||||
set(DEBUGGER_LIB ${LIBEDIT_LIBRARIES})
|
set(DEBUGGER_LIB ${LIBEDIT_LIBRARIES})
|
||||||
endif()
|
endif()
|
||||||
set(CPACK_DEBIAN_PACKAGE_DEPENDS "${CPACK_DEBIAN_PACKAGE_DEPENDS},libedit2")
|
set(CPACK_DEBIAN_PACKAGE_DEPENDS "${CPACK_DEBIAN_PACKAGE_DEPENDS},libedit2")
|
||||||
list(APPEND FEATURE_SRC "${CMAKE_CURRENT_SOURCE_DIR}/src/feature/editline/cli-el-backend.c")
|
|
||||||
else()
|
else()
|
||||||
set(DEBUGGER_LIB "")
|
set(DEBUGGER_LIB "")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(USE_GDB_STUB)
|
if(USE_GDB_STUB)
|
||||||
list(APPEND FEATURES GDB_STUB)
|
list(APPEND FEATURES GDB_STUB)
|
||||||
list(APPEND FEATURE_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/debugger/gdb-stub.c)
|
|
||||||
endif()
|
endif()
|
||||||
source_group("Debugger" FILES ${DEBUGGER_SRC})
|
source_group("Debugger" FILES ${DEBUGGER_SRC})
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,14 @@ if(ENABLE_SCRIPTING)
|
||||||
list(APPEND SOURCE_FILES cli-debugger-scripting.c)
|
list(APPEND SOURCE_FILES cli-debugger-scripting.c)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(USE_EDITLINE)
|
||||||
|
list(APPEND SOURCE_FILES cli-el-backend.c)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(USE_GDB_STUB)
|
||||||
|
list(APPEND SOURCE_FILES gdb-stub.c)
|
||||||
|
endif()
|
||||||
|
|
||||||
set(TEST_FILES
|
set(TEST_FILES
|
||||||
test/lexer.c
|
test/lexer.c
|
||||||
test/parser.c)
|
test/parser.c)
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
#include "cli-el-backend.h"
|
#include <mgba/internal/debugger/cli-el-backend.h>
|
||||||
|
|
||||||
#include <mgba/core/config.h>
|
#include <mgba/core/config.h>
|
||||||
#include <mgba/core/version.h>
|
#include <mgba/core/version.h>
|
|
@ -11,7 +11,7 @@
|
||||||
#include <mgba/internal/debugger/gdb-stub.h>
|
#include <mgba/internal/debugger/gdb-stub.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef USE_EDITLINE
|
#ifdef USE_EDITLINE
|
||||||
#include "feature/editline/cli-el-backend.h"
|
#include <mgba/internal/debugger/cli-el-backend.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef ENABLE_SCRIPTING
|
#ifdef ENABLE_SCRIPTING
|
||||||
#include <mgba/core/scripting.h>
|
#include <mgba/core/scripting.h>
|
||||||
|
|
Loading…
Reference in New Issue