diff --git a/cmake/Modules/AXBuildSet.cmake b/cmake/Modules/AXBuildSet.cmake index 9a342e16db..5e9b23f672 100644 --- a/cmake/Modules/AXBuildSet.cmake +++ b/cmake/Modules/AXBuildSet.cmake @@ -20,10 +20,6 @@ if(CMAKE_TOOLCHAIN_FILE) message(STATUS "Using toolchain file:" ${CMAKE_TOOLCHAIN_FILE}) endif() -find_program(PYTHON_COMMAND NAMES python3 python2 python) -find_program(_AX_COMMAND NAME axmol - PATHS ${_AX_ROOT}/tools/console/bin $ENV{AX_CONSOLE_ROOT}) - # the default behavior of build module option(AX_ENABLE_EXT_LUA "Build lua libraries" ON) @@ -67,25 +63,4 @@ message(STATUS "CMAKE_MODULE_PATH:" ${CMAKE_MODULE_PATH}) # delete binary dir if you hope a full clean re-build message(STATUS "PROJECT_BINARY_DIR:" ${PROJECT_BINARY_DIR}) message(STATUS "ENGINE_BINARY_PATH:" ${ENGINE_BINARY_PATH}) -message(STATUS "PYTHON_PATH:" ${PYTHON_COMMAND}) -message(STATUS "_AX_COMMAND_PATH:" ${_AX_COMMAND}) message(STATUS "ARCH_ALIAS:" ${ARCH_ALIAS}) - -if(_AX_COMMAND) - get_filename_component(ax_console_dir ${_AX_COMMAND} DIRECTORY) - set(_AX_LUAJIT_ROOT ${ax_console_dir}/../plugins/plugin_luacompile/bin) - message(STATUS "_AX_LUAJIT_ROOT:" ${_AX_LUAJIT_ROOT}) - if("${CMAKE_HOST_SYSTEM_NAME}" STREQUAL "Windows") - find_program(LUAJIT32_COMMAND NAMES luajit-win32 PATHS ${_AX_LUAJIT_ROOT}/32bit NO_SYSTEM_ENVIRONMENT_PATH) - find_program(LUAJIT64_COMMAND NAMES luajit-win32 PATHS ${_AX_LUAJIT_ROOT}/64bit NO_SYSTEM_ENVIRONMENT_PATH) - elseif("${CMAKE_HOST_SYSTEM_NAME}" STREQUAL "Linux") - find_program(LUAJIT32_COMMAND NAMES luajit-linux PATHS ${_AX_LUAJIT_ROOT}/32bit NO_SYSTEM_ENVIRONMENT_PATH) - find_program(LUAJIT64_COMMAND NAMES luajit-linux PATHS ${_AX_LUAJIT_ROOT}/64bit NO_SYSTEM_ENVIRONMENT_PATH) - endif() -endif() - - -if(WINDOWS OR LINUX) - message(STATUS "LUAJIT32_COMMAND:" ${LUAJIT32_COMMAND}) - message(STATUS "LUAJIT64_COMMAND:" ${LUAJIT64_COMMAND}) -endif()