1 Star 0 Fork 0

alexzshl/EmmyLuaDebugger

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
CMakeLists.txt 2.42 KB
一键复制 编辑 原始数据 按行查看 历史
CppCXY 提交于 2023-09-15 15:42 +08:00 . 更新libuv到1.46.0调试器支持ipv6
cmake_minimum_required(VERSION 3.11)
project (emmy)
set(CMAKE_CXX_STANDARD 11)
set(EMMY_LUA_VERSION "54" CACHE STRING "Lua version: jit/51/52/53/54")
set(EMMY_CORE_VERSION "DEV" CACHE STRING "Emmy core version: DEV/version number")
option(EMMY_USE_LUA_SOURCE "Build with lua source" OFF)
if(${EMMY_LUA_VERSION} STREQUAL "54")
set(EMMY_LUA_DIR "lua-5.4.6")
add_definitions(-DEMMY_LUA_54)
elseif(${EMMY_LUA_VERSION} STREQUAL "53")
set(EMMY_LUA_DIR "lua-5.3.5")
add_definitions(-DEMMY_LUA_53)
elseif(${EMMY_LUA_VERSION} STREQUAL "52")
set(EMMY_LUA_DIR "lua-5.2.4")
add_definitions(-DEMMY_LUA_52)
elseif(${EMMY_LUA_VERSION} STREQUAL "51")
set(EMMY_LUA_DIR "lua-5.1.5")
add_definitions(-DEMMY_LUA_51)
elseif(${EMMY_LUA_VERSION} STREQUAL "jit")
set(EMMY_LUA_DIR "luajit")
add_definitions(-DEMMY_LUA_JIT)
# if LUAJIT support lua_setfuncs use this macro define
#add_definitions(-DEMMY_LUA_JIT_SUPPORT_LUA_SETFUNCS)
endif()
add_definitions(-DEMMY_CORE_VERSION="${EMMY_CORE_VERSION}")
if(EMMY_USE_LUA_SOURCE)
add_definitions(-DEMMY_USE_LUA_SOURCE)
include_directories(
${CMAKE_SOURCE_DIR}/third-party/${EMMY_LUA_DIR}/src
)
if(${EMMY_LUA_VERSION} STREQUAL "jit")
#ignore
else()
add_subdirectory(third-party/${EMMY_LUA_DIR})
endif()
endif()
add_subdirectory(third-party/libuv-1.46.0)
add_subdirectory(emmy_debugger)
add_subdirectory(emmy_core)
if(WIN32)
macro(source_group_by_dir proj_dir source_files)
if(MSVC OR APPLE)
get_filename_component(sgbd_cur_dir ${proj_dir} ABSOLUTE)
foreach(sgbd_file ${${source_files}})
get_filename_component(sgbd_abs_file ${sgbd_file} ABSOLUTE)
file(RELATIVE_PATH sgbd_fpath ${sgbd_cur_dir} ${sgbd_abs_file})
string(REGEX REPLACE "\(.*\)/.*" \\1 sgbd_group_name ${sgbd_fpath})
string(COMPARE EQUAL ${sgbd_fpath} ${sgbd_group_name} sgbd_nogroup)
string(REPLACE "/" "\\" sgbd_group_name ${sgbd_group_name})
if(sgbd_nogroup)
set(sgbd_group_name "\\")
endif(sgbd_nogroup)
source_group(${sgbd_group_name} FILES ${sgbd_file})
endforeach(sgbd_file)
endif(MSVC OR APPLE)
endmacro(source_group_by_dir)
add_subdirectory(shared)
add_subdirectory(emmy_tool)
add_subdirectory(third-party/EasyHook)
add_subdirectory(emmy_hook)
endif(WIN32)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/alexzshl/EmmyLuaDebugger.git
git@gitee.com:alexzshl/EmmyLuaDebugger.git
alexzshl
EmmyLuaDebugger
EmmyLuaDebugger
master

搜索帮助