Skip to content

Commit 0809b8a

Browse files
viewizardAlexander Soldatov/Platform Lab /SRR/Staff Engineer/Samsung Electronics
authored andcommitted
Fix build for new files locations.
1 parent fdecb69 commit 0809b8a

32 files changed

Lines changed: 114 additions & 114 deletions

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ if (NOT "${DOTNET_DIR}" STREQUAL "")
4444
endif()
4545

4646
add_subdirectory(third_party/linenoise-ng)
47-
add_subdirectory(src/debug/netcoredbg)
47+
add_subdirectory(src)
4848

4949
include(getgitrevisiondescription.cmake)
5050

@@ -88,5 +88,5 @@ get_git_subject_date_revision_dir(BUILD_CORECLR_GIT_SUBJECT BUILD_CORECLR_GIT_DA
8888
execute_process(COMMAND date OUTPUT_VARIABLE BUILD_NETCOREDBG_DATE
8989
ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE)
9090

91-
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/src/debug/netcoredbg/buildinfo.cpp.in"
92-
"${CMAKE_CURRENT_BINARY_DIR}/src/debug/netcoredbg/buildinfo.cpp" @ONLY)
91+
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/src/buildinfo.cpp.in"
92+
"${CMAKE_CURRENT_BINARY_DIR}/src/buildinfo.cpp" @ONLY)

packaging/netcoredbg.spec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,14 @@ cmake ../netcoredbg \
9999

100100
make %{?jobs:-j%jobs} %{?verbose:VERBOSE=1}
101101

102-
%dotnet_build -s ../netcoredbg/packaging/pkgs ../netcoredbg/src/debug/netcoredbg
102+
%dotnet_build -s ../netcoredbg/packaging/pkgs ../netcoredbg/src/managed
103103

104104
%install
105105
cd build
106106
%make_install
107107
mkdir -p %{buildroot}%{sdk_install_prefix}
108108
mv %{buildroot}%{install_prefix}/netcoredbg %{buildroot}%{sdk_install_prefix}
109-
install -p -m 644 ../netcoredbg/src/debug/netcoredbg/bin/*/*/SymbolReader.dll %{buildroot}%{sdk_install_prefix}
109+
install -p -m 644 ../netcoredbg/src/managed/bin/*/*/ManagedPart.dll %{buildroot}%{sdk_install_prefix}
110110

111111
export CSVER=$(ls /nuget/microsoft.codeanalysis.common.*.nupkg | sort -n | tail -1 | cut -d "." -f4-6)
112112
export SYSCODEPAGES=$(ls /nuget/system.text.encoding.codepages.4.*.nupkg | sort -n | tail -1)

src/CMakeLists.txt

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -73,31 +73,31 @@ add_custom_command(
7373
)
7474

7575
set(netcoredbg_SRC
76-
main.cpp
77-
manageddebugger.cpp
78-
symbolreader.cpp
79-
platform.cpp
80-
protocol.cpp
81-
breakpoints.cpp
82-
modules.cpp
83-
variables.cpp
84-
typeprinter.cpp
85-
valuewalk.cpp
86-
valueprint.cpp
87-
miprotocol.cpp
88-
vscodeprotocol.cpp
89-
frames.cpp
90-
jmc.cpp
91-
cputil.cpp
92-
expr.cpp
93-
valuewrite.cpp
94-
logger.cpp
76+
debugger/breakpoints.cpp
77+
debugger/expr.cpp
78+
debugger/frames.cpp
79+
debugger/manageddebugger.cpp
80+
debugger/valueprint.cpp
81+
debugger/valuewalk.cpp
82+
debugger/valuewrite.cpp
83+
debugger/variables.cpp
84+
managed/interop.cpp
85+
metadata/jmc.cpp
86+
metadata/modules.cpp
87+
metadata/typeprinter.cpp
88+
protocols/cliprotocol.cpp
89+
protocols/iprotocol.cpp
90+
protocols/miprotocol.cpp
91+
protocols/protocol.cpp
92+
protocols/tokenizer.cpp
93+
protocols/vscodeprotocol.cpp
94+
utils/utf.cpp
95+
utils/logger.cpp
9596
buildinfo.cpp
96-
cliprotocol.cpp
97-
iprotocol.cpp
98-
tokenizer.cpp
9997
errormessage.cpp
100-
)
98+
main.cpp
99+
platform.cpp
100+
)
101101

102102
set(CMAKE_INCLUDE_CURRENT_DIR ON)
103103

@@ -128,24 +128,24 @@ if (DBGSHIM_LOCATION)
128128
install(FILES ${DBGSHIM_LOCATION} DESTINATION ${CMAKE_INSTALL_PREFIX})
129129
endif()
130130

131-
# Build managed part of the debugger (SymbolReader.dll)
131+
# Build managed part of the debugger (ManagedPart.dll)
132132

133133
if (BUILD_MANAGED)
134-
set(SYMBOLREADER_PROJECT ${CMAKE_CURRENT_SOURCE_DIR}/SymbolReader.csproj)
135-
set(SYMBOLREADER_DLL_NAME SymbolReader.dll)
136-
set(DOTNET_BUILD_RESULT ${CMAKE_CURRENT_BINARY_DIR}/${SYMBOLREADER_DLL_NAME})
134+
set(MANAGEDPART_PROJECT ${CMAKE_CURRENT_SOURCE_DIR}/managed/ManagedPart.csproj)
135+
set(MANAGEDPART_DLL_NAME ManagedPart.dll)
136+
set(DOTNET_BUILD_RESULT ${CMAKE_CURRENT_BINARY_DIR}/${MANAGEDPART_DLL_NAME})
137137

138138
find_program(DOTNETCLI dotnet PATHS "${DOTNET_DIR}" ENV PATH NO_DEFAULT_PATH)
139139

140140
add_custom_command(OUTPUT ${DOTNET_BUILD_RESULT}
141-
COMMAND ${DOTNETCLI} publish ${SYMBOLREADER_PROJECT} -o ${CMAKE_CURRENT_BINARY_DIR} /p:BaseIntermediateOutputPath=${CMAKE_CURRENT_BINARY_DIR}/obj/
141+
COMMAND ${DOTNETCLI} publish ${MANAGEDPART_PROJECT} -o ${CMAKE_CURRENT_BINARY_DIR} /p:BaseIntermediateOutputPath=${CMAKE_CURRENT_BINARY_DIR}/obj/
142142
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
143-
DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/SymbolReader.cs" "${SYMBOLREADER_PROJECT}"
144-
COMMENT "Compiling ${SYMBOLREADER_DLL_NAME}"
143+
DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/managed/SymbolReader.cs" "${MANAGEDPART_PROJECT}"
144+
COMMENT "Compiling ${MANAGEDPART_DLL_NAME}"
145145
VERBATIM
146146
)
147147

148-
add_custom_target(symbolreader_dll ALL DEPENDS ${DOTNET_BUILD_RESULT})
148+
add_custom_target(managedpart_dll ALL DEPENDS ${DOTNET_BUILD_RESULT})
149149

150150
# Copy dlls
151151
set(ROSLYN_DLLS

src/debugger/breakpoints.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
// Distributed under the MIT License.
33
// See the LICENSE file in the project root for more information.
44

5-
#include "manageddebugger.h"
5+
#include "debugger/manageddebugger.h"
66

77
#include <mutex>
88
#include <unordered_set>
99
#include <fstream>
1010
#include <algorithm>
11-
#include "typeprinter.h"
12-
#include "logger.h"
13-
#include "cputil.h"
14-
#include "symbolreader.h"
11+
#include "metadata/typeprinter.h"
12+
#include "utils/logger.h"
13+
#include "utils/utf.h"
14+
#include "managed/interop.h"
1515

1616
using std::string;
1717

src/debugger/debugger.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include <windows.h>
1616
#endif
1717

18-
#include "protocol.h"
18+
#include "protocols/protocol.h"
1919

2020
class Debugger
2121
{

src/debugger/expr.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
// Distributed under the MIT License.
33
// See the LICENSE file in the project root for more information.
44

5-
#include "manageddebugger.h"
5+
#include "debugger/manageddebugger.h"
66

77
#include <vector>
88
#include <list>
99

10-
#include "cputil.h"
11-
#include "typeprinter.h"
10+
#include "utils/utf.h"
11+
#include "metadata/typeprinter.h"
1212
#include "valueprint.h"
1313

1414

src/debugger/frames.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
// Distributed under the MIT License.
33
// See the LICENSE file in the project root for more information.
44

5-
#include "frames.h"
5+
#include "debugger/frames.h"
66

77
#include <sstream>
88
#include <algorithm>
99

10-
#include "typeprinter.h"
10+
#include "metadata/typeprinter.h"
1111
#include "platform.h"
12-
#include "manageddebugger.h"
13-
#include "logger.h"
12+
#include "debugger/manageddebugger.h"
13+
#include "utils/logger.h"
1414

1515

1616
HRESULT GetThreadsState(ICorDebugController *controller, std::vector<Thread> &threads)

src/debugger/frames.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#pragma GCC diagnostic pop
1212

1313
#include <vector>
14-
#include "protocol.h"
14+
#include "protocols/protocol.h"
1515

1616
struct Thread;
1717

src/debugger/manageddebugger.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313
#include <sys/types.h>
1414
#include <sys/stat.h>
1515

16-
#include "manageddebugger.h"
16+
#include "debugger/manageddebugger.h"
1717

1818
#include "valueprint.h"
19-
#include "symbolreader.h"
20-
#include "cputil.h"
19+
#include "managed/interop.h"
20+
#include "utils/utf.h"
2121
#include "platform.h"
22-
#include "typeprinter.h"
23-
#include "frames.h"
24-
#include "logger.h"
22+
#include "metadata/typeprinter.h"
23+
#include "debugger/frames.h"
24+
#include "utils/logger.h"
2525

2626
using std::string;
2727
using std::vector;

src/debugger/manageddebugger.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
// See the LICENSE file in the project root for more information.
44
#pragma once
55

6-
#include "modules.h"
7-
#include "debugger.h"
8-
#include "protocol.h"
6+
#include "metadata/modules.h"
7+
#include "debugger/debugger.h"
8+
#include "protocols/protocol.h"
99

1010
#include <unordered_map>
1111
#include <unordered_set>

0 commit comments

Comments
 (0)