From cf87cfe93d21ffa77615e58b3999e6aed3235f55 Mon Sep 17 00:00:00 2001 From: LittleGuo Date: Fri, 2 Oct 2026 21:02:40 +0800 Subject: [PATCH] refactor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改了目录和部分源文件名称 --- cmake/ThirdPartyDeps.cmake | 3 ++- cmakelists.txt | 2 +- cmakepresets.json | 4 ++-- src/{AutoAgent => cad_mcp_frame}/StdAfx.cpp | 0 src/{AutoAgent => cad_mcp_frame}/StdAfx.h | 0 src/{AutoAgent => cad_mcp_frame}/cad-mcp-frame.json | 0 .../AutoAgent.cpp => cad_mcp_frame/cad_mcp_frame.cpp} | 0 .../AutoAgent.def => cad_mcp_frame/cad_mcp_frame.def} | 0 .../AutoAgent.rc => cad_mcp_frame/cad_mcp_frame.rc} | 0 src/{AutoAgent => cad_mcp_frame}/cmakelists.txt | 6 +++--- src/{AutoAgent => cad_mcp_frame}/command.cpp | 0 src/{AutoAgent => cad_mcp_frame}/mcp_ConfigParser.cpp | 0 src/{AutoAgent => cad_mcp_frame}/mcp_ConfigParser.h | 0 src/{AutoAgent => cad_mcp_frame}/mcp_server.cpp | 0 src/{AutoAgent => cad_mcp_frame}/mcp_server.h | 0 src/{AutoAgent => cad_mcp_frame}/mcp_tool.cpp | 0 src/{AutoAgent => cad_mcp_frame}/mcp_tool.h | 0 src/{AutoAgent => cad_mcp_frame}/mcp_utils.cpp | 0 src/{AutoAgent => cad_mcp_frame}/mcp_utils.h | 0 src/{AutoAgent => cad_mcp_frame}/res/AutoAgent.rc2 | 0 src/{AutoAgent => cad_mcp_frame}/resource.h | 0 21 files changed, 8 insertions(+), 7 deletions(-) rename src/{AutoAgent => cad_mcp_frame}/StdAfx.cpp (100%) rename src/{AutoAgent => cad_mcp_frame}/StdAfx.h (100%) rename src/{AutoAgent => cad_mcp_frame}/cad-mcp-frame.json (100%) rename src/{AutoAgent/AutoAgent.cpp => cad_mcp_frame/cad_mcp_frame.cpp} (100%) rename src/{AutoAgent/AutoAgent.def => cad_mcp_frame/cad_mcp_frame.def} (100%) rename src/{AutoAgent/AutoAgent.rc => cad_mcp_frame/cad_mcp_frame.rc} (100%) rename src/{AutoAgent => cad_mcp_frame}/cmakelists.txt (91%) rename src/{AutoAgent => cad_mcp_frame}/command.cpp (100%) rename src/{AutoAgent => cad_mcp_frame}/mcp_ConfigParser.cpp (100%) rename src/{AutoAgent => cad_mcp_frame}/mcp_ConfigParser.h (100%) rename src/{AutoAgent => cad_mcp_frame}/mcp_server.cpp (100%) rename src/{AutoAgent => cad_mcp_frame}/mcp_server.h (100%) rename src/{AutoAgent => cad_mcp_frame}/mcp_tool.cpp (100%) rename src/{AutoAgent => cad_mcp_frame}/mcp_tool.h (100%) rename src/{AutoAgent => cad_mcp_frame}/mcp_utils.cpp (100%) rename src/{AutoAgent => cad_mcp_frame}/mcp_utils.h (100%) rename src/{AutoAgent => cad_mcp_frame}/res/AutoAgent.rc2 (100%) rename src/{AutoAgent => cad_mcp_frame}/resource.h (100%) diff --git a/cmake/ThirdPartyDeps.cmake b/cmake/ThirdPartyDeps.cmake index c815145..bb6ce70 100644 --- a/cmake/ThirdPartyDeps.cmake +++ b/cmake/ThirdPartyDeps.cmake @@ -33,7 +33,8 @@ add_library(ThirdParty::cURL ALIAS ThirdParty_cURL) # ========================================== # ObjectARX # ========================================== -set(CURRENT_ARX_SDK "${CAD_SDK_ROOT}/R${CAD_SDK_VERSION}.${CAD_SDK_SUBVERSION}") +set(CURRENT_ARX_SDK_RELATIVE "${CAD_SDK_ROOT}/R${CAD_SDK_VERSION}.${CAD_SDK_SUBVERSION}") +get_filename_component(CURRENT_ARX_SDK "${CURRENT_ARX_SDK_RELATIVE}" ABSOLUTE) add_library(ThirdParty_ARX INTERFACE) # 保存 头文件目录 列表 diff --git a/cmakelists.txt b/cmakelists.txt index 1a618fe..5e1179a 100644 --- a/cmakelists.txt +++ b/cmakelists.txt @@ -135,5 +135,5 @@ set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE "${GLOBAL_LIB_DIR}/Release-${GENERATE message(STATUS ">>> 正在构建业务树...") -add_subdirectory(./src/AutoAgent) +add_subdirectory(./src/cad_mcp_frame) diff --git a/cmakepresets.json b/cmakepresets.json index cb98595..f9dd4f4 100644 --- a/cmakepresets.json +++ b/cmakepresets.json @@ -30,7 +30,7 @@ "hidden": true, "inherits": "base", "cacheVariables": { - "CAD_SDK_ROOT": "${sourceDir}/../new-start/envi-code/Arx" + "CAD_SDK_ROOT": "${sourceDir}/../envi-code/Arx" } }, { @@ -38,7 +38,7 @@ "hidden": true, "inherits": "base", "cacheVariables": { - "CAD_SDK_ROOT": "${sourceDir}/../new-start/envi-code/Zrx" + "CAD_SDK_ROOT": "${sourceDir}/../envi-code/Zrx" } }, { diff --git a/src/AutoAgent/StdAfx.cpp b/src/cad_mcp_frame/StdAfx.cpp similarity index 100% rename from src/AutoAgent/StdAfx.cpp rename to src/cad_mcp_frame/StdAfx.cpp diff --git a/src/AutoAgent/StdAfx.h b/src/cad_mcp_frame/StdAfx.h similarity index 100% rename from src/AutoAgent/StdAfx.h rename to src/cad_mcp_frame/StdAfx.h diff --git a/src/AutoAgent/cad-mcp-frame.json b/src/cad_mcp_frame/cad-mcp-frame.json similarity index 100% rename from src/AutoAgent/cad-mcp-frame.json rename to src/cad_mcp_frame/cad-mcp-frame.json diff --git a/src/AutoAgent/AutoAgent.cpp b/src/cad_mcp_frame/cad_mcp_frame.cpp similarity index 100% rename from src/AutoAgent/AutoAgent.cpp rename to src/cad_mcp_frame/cad_mcp_frame.cpp diff --git a/src/AutoAgent/AutoAgent.def b/src/cad_mcp_frame/cad_mcp_frame.def similarity index 100% rename from src/AutoAgent/AutoAgent.def rename to src/cad_mcp_frame/cad_mcp_frame.def diff --git a/src/AutoAgent/AutoAgent.rc b/src/cad_mcp_frame/cad_mcp_frame.rc similarity index 100% rename from src/AutoAgent/AutoAgent.rc rename to src/cad_mcp_frame/cad_mcp_frame.rc diff --git a/src/AutoAgent/cmakelists.txt b/src/cad_mcp_frame/cmakelists.txt similarity index 91% rename from src/AutoAgent/cmakelists.txt rename to src/cad_mcp_frame/cmakelists.txt index 270e319..90c583c 100644 --- a/src/AutoAgent/cmakelists.txt +++ b/src/cad_mcp_frame/cmakelists.txt @@ -1,15 +1,15 @@ cmake_minimum_required(VERSION 3.16) -project(AutoAgent) +project(cad_mcp_frame) find_package(nlohmann_json CONFIG REQUIRED) find_package(ghc_filesystem CONFIG REQUIRED) set(SOURCES - "AutoAgent.cpp" + "cad_mcp_frame.cpp" "command.cpp" "stdafx.cpp" - "AutoAgent.rc" + "cad_mcp_frame.rc" "mcp_server.cpp" "mcp_tool.cpp" "mcp_ConfigParser.cpp" diff --git a/src/AutoAgent/command.cpp b/src/cad_mcp_frame/command.cpp similarity index 100% rename from src/AutoAgent/command.cpp rename to src/cad_mcp_frame/command.cpp diff --git a/src/AutoAgent/mcp_ConfigParser.cpp b/src/cad_mcp_frame/mcp_ConfigParser.cpp similarity index 100% rename from src/AutoAgent/mcp_ConfigParser.cpp rename to src/cad_mcp_frame/mcp_ConfigParser.cpp diff --git a/src/AutoAgent/mcp_ConfigParser.h b/src/cad_mcp_frame/mcp_ConfigParser.h similarity index 100% rename from src/AutoAgent/mcp_ConfigParser.h rename to src/cad_mcp_frame/mcp_ConfigParser.h diff --git a/src/AutoAgent/mcp_server.cpp b/src/cad_mcp_frame/mcp_server.cpp similarity index 100% rename from src/AutoAgent/mcp_server.cpp rename to src/cad_mcp_frame/mcp_server.cpp diff --git a/src/AutoAgent/mcp_server.h b/src/cad_mcp_frame/mcp_server.h similarity index 100% rename from src/AutoAgent/mcp_server.h rename to src/cad_mcp_frame/mcp_server.h diff --git a/src/AutoAgent/mcp_tool.cpp b/src/cad_mcp_frame/mcp_tool.cpp similarity index 100% rename from src/AutoAgent/mcp_tool.cpp rename to src/cad_mcp_frame/mcp_tool.cpp diff --git a/src/AutoAgent/mcp_tool.h b/src/cad_mcp_frame/mcp_tool.h similarity index 100% rename from src/AutoAgent/mcp_tool.h rename to src/cad_mcp_frame/mcp_tool.h diff --git a/src/AutoAgent/mcp_utils.cpp b/src/cad_mcp_frame/mcp_utils.cpp similarity index 100% rename from src/AutoAgent/mcp_utils.cpp rename to src/cad_mcp_frame/mcp_utils.cpp diff --git a/src/AutoAgent/mcp_utils.h b/src/cad_mcp_frame/mcp_utils.h similarity index 100% rename from src/AutoAgent/mcp_utils.h rename to src/cad_mcp_frame/mcp_utils.h diff --git a/src/AutoAgent/res/AutoAgent.rc2 b/src/cad_mcp_frame/res/AutoAgent.rc2 similarity index 100% rename from src/AutoAgent/res/AutoAgent.rc2 rename to src/cad_mcp_frame/res/AutoAgent.rc2 diff --git a/src/AutoAgent/resource.h b/src/cad_mcp_frame/resource.h similarity index 100% rename from src/AutoAgent/resource.h rename to src/cad_mcp_frame/resource.h