mirror of
https://github.com/minetest-mods/irc.git
synced 2024-12-29 02:00:17 +01:00
Removed LITE_VERSION option
This commit is contained in:
parent
8349018333
commit
b147586bc3
@ -5,14 +5,10 @@ cmake_minimum_required(VERSION 2.8)
|
|||||||
|
|
||||||
project(MINETEST_IRC C)
|
project(MINETEST_IRC C)
|
||||||
|
|
||||||
set(MINETEST_IRC_VERSION 0.1.2)
|
set(MINETEST_IRC_VERSION 0.1.0)
|
||||||
|
|
||||||
option(LITE_VERSION "Do not build & package luasocket as part of the mod" OFF)
|
|
||||||
|
|
||||||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
|
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
|
||||||
|
|
||||||
if(NOT LITE_VERSION)
|
|
||||||
|
|
||||||
set(LUA_SRCS
|
set(LUA_SRCS
|
||||||
src/lua/lapi.c
|
src/lua/lapi.c
|
||||||
src/lua/lcode.c
|
src/lua/lcode.c
|
||||||
@ -101,22 +97,14 @@ if(NOT LITE_VERSION)
|
|||||||
COMPILE_FLAGS "-Wall -Werror")
|
COMPILE_FLAGS "-Wall -Werror")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
set(dir ${CMAKE_CURRENT_BINARY_DIR}/irc/)
|
||||||
|
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
set(lib "${CMAKE_CURRENT_BINARY_DIR}/luasocket.dll")
|
set(lib "${CMAKE_CURRENT_BINARY_DIR}/luasocket.dll")
|
||||||
else()
|
else()
|
||||||
set(lib "${CMAKE_CURRENT_BINARY_DIR}/libluasocket.so")
|
set(lib "${CMAKE_CURRENT_BINARY_DIR}/libluasocket.so")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(inst_lib COMMAND ${CMAKE_COMMAND} -E copy ${lib} ${dir})
|
|
||||||
|
|
||||||
else(NOT LITE_VERSION)
|
|
||||||
|
|
||||||
set(inst_lib)
|
|
||||||
|
|
||||||
endif(NOT LITE_VERSION)
|
|
||||||
|
|
||||||
set(dir ${CMAKE_CURRENT_BINARY_DIR}/irc/)
|
|
||||||
|
|
||||||
add_custom_target(pack_mod
|
add_custom_target(pack_mod
|
||||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
|
||||||
@ -137,7 +125,7 @@ add_custom_target(pack_mod
|
|||||||
COMMAND ${CMAKE_COMMAND} -E copy src/luasocket/tp.lua ${dir}
|
COMMAND ${CMAKE_COMMAND} -E copy src/luasocket/tp.lua ${dir}
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy src/luasocket/url.lua ${dir}
|
COMMAND ${CMAKE_COMMAND} -E copy src/luasocket/url.lua ${dir}
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy doc/LICENSE-luasocket.txt ${dir}
|
COMMAND ${CMAKE_COMMAND} -E copy doc/LICENSE-luasocket.txt ${dir}
|
||||||
${inst_lib}
|
COMMAND ${CMAKE_COMMAND} -E copy ${lib} ${dir}
|
||||||
|
|
||||||
# IRC mod
|
# IRC mod
|
||||||
COMMAND ${CMAKE_COMMAND} -E make_directory ${dir}
|
COMMAND ${CMAKE_COMMAND} -E make_directory ${dir}
|
||||||
|
Loading…
Reference in New Issue
Block a user