Tweak makefiles to add -delta suffix.
parent
9cb5f70be5
commit
36d8f91f1a
|
@ -5,11 +5,11 @@ if(${CMAKE_VERSION} STREQUAL "2.8.2")
|
||||||
endif(${CMAKE_VERSION} STREQUAL "2.8.2")
|
endif(${CMAKE_VERSION} STREQUAL "2.8.2")
|
||||||
|
|
||||||
# This can be read from ${PROJECT_NAME} after project() is called
|
# This can be read from ${PROJECT_NAME} after project() is called
|
||||||
project(minetest)
|
project(minetest-delta)
|
||||||
|
|
||||||
set(VERSION_MAJOR 0)
|
set(VERSION_MAJOR 0)
|
||||||
set(VERSION_MINOR 2)
|
set(VERSION_MINOR 2)
|
||||||
set(VERSION_PATCH 20110704_0)
|
set(VERSION_PATCH 20110720_0)
|
||||||
set(VERSION_STRING "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}")
|
set(VERSION_STRING "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}")
|
||||||
|
|
||||||
# Configuration options
|
# Configuration options
|
||||||
|
@ -48,15 +48,15 @@ if(WIN32)
|
||||||
set(EXAMPLE_CONF_DIR ".")
|
set(EXAMPLE_CONF_DIR ".")
|
||||||
elseif(APPLE)
|
elseif(APPLE)
|
||||||
# random placeholders
|
# random placeholders
|
||||||
set(DATADIR "share/minetest")
|
set(DATADIR "share/${PROJECT_NAME}")
|
||||||
set(BINDIR "bin")
|
set(BINDIR "bin")
|
||||||
set(DOCDIR "share/doc/minetest")
|
set(DOCDIR "share/doc/${PROJECT_NAME}")
|
||||||
set(EXAMPLE_CONF_DIR ".")
|
set(EXAMPLE_CONF_DIR ".")
|
||||||
elseif(UNIX) # Linux, BSD etc
|
elseif(UNIX) # Linux, BSD etc
|
||||||
set(DATADIR "share/minetest")
|
set(DATADIR "share/${PROJECT_NAME}")
|
||||||
set(BINDIR "bin")
|
set(BINDIR "bin")
|
||||||
set(DOCDIR "share/doc/minetest")
|
set(DOCDIR "share/doc/${PROJECT_NAME}")
|
||||||
set(EXAMPLE_CONF_DIR "share/doc/minetest")
|
set(EXAMPLE_CONF_DIR "share/doc/${PROJECT_NAME}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
install(FILES "doc/README.txt" DESTINATION "${DOCDIR}")
|
install(FILES "doc/README.txt" DESTINATION "${DOCDIR}")
|
||||||
|
@ -103,7 +103,7 @@ elseif(APPLE)
|
||||||
set(CPACK_BUNDLE_NAME ${PROJECT_NAME})
|
set(CPACK_BUNDLE_NAME ${PROJECT_NAME})
|
||||||
set(CPACK_BUNDLE_ICON "")
|
set(CPACK_BUNDLE_ICON "")
|
||||||
set(CPACK_BUNDLE_PLIST "")
|
set(CPACK_BUNDLE_PLIST "")
|
||||||
set(CPACK_BUNDLE_STARTUP_COMMAND "Contents/MacOS/minetest")
|
set(CPACK_BUNDLE_STARTUP_COMMAND "Contents/MacOS/${PROJECT_NAME}")
|
||||||
set(CPACK_GENERATOR "Bundle")
|
set(CPACK_GENERATOR "Bundle")
|
||||||
else()
|
else()
|
||||||
set(CPACK_PACKAGE_FILE_NAME "${PROJECT_NAME}-${VERSION_STRING}-linux")
|
set(CPACK_PACKAGE_FILE_NAME "${PROJECT_NAME}-${VERSION_STRING}-linux")
|
||||||
|
|
|
@ -1,17 +1,19 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
PACKAGEDIR=../minetest-packages
|
PROJECT_NAME=minetest-delta
|
||||||
PACKAGENAME=minetest-c55-binary-`date +%y%m%d%H%M%S`
|
PACKAGEDIR=../$PROJECT_NAME-packages
|
||||||
|
PACKAGENAME=$PROJECT_NAME-binary-`date +%y%m%d%H%M%S`
|
||||||
PACKAGEPATH=$PACKAGEDIR/$PACKAGENAME
|
PACKAGEPATH=$PACKAGEDIR/$PACKAGENAME
|
||||||
|
|
||||||
mkdir -p $PACKAGEPATH
|
mkdir -p $PACKAGEPATH
|
||||||
mkdir -p $PACKAGEPATH/bin
|
mkdir -p $PACKAGEPATH/bin
|
||||||
mkdir -p $PACKAGEPATH/data
|
mkdir -p $PACKAGEPATH/data
|
||||||
mkdir -p $PACKAGEPATH/doc
|
mkdir -p $PACKAGEPATH/doc
|
||||||
|
mkdir -p $PACKAGEPATH/locale/de/LC_MESSAGES/
|
||||||
|
|
||||||
cp minetest.conf.example $PACKAGEPATH/
|
cp minetest.conf.example $PACKAGEPATH/
|
||||||
|
|
||||||
cp bin/minetest.exe $PACKAGEPATH/bin/
|
cp bin/$PROJECT_NAME.exe $PACKAGEPATH/bin/
|
||||||
cp bin/Irrlicht.dll $PACKAGEPATH/bin/
|
cp bin/Irrlicht.dll $PACKAGEPATH/bin/
|
||||||
cp bin/zlibwapi.dll $PACKAGEPATH/bin/
|
cp bin/zlibwapi.dll $PACKAGEPATH/bin/
|
||||||
#cp bin/test $PACKAGEPATH/bin/
|
#cp bin/test $PACKAGEPATH/bin/
|
||||||
|
@ -57,6 +59,8 @@ cp -r data/sand.png $PACKAGEPATH/data/
|
||||||
|
|
||||||
cp -r doc/README.txt $PACKAGEPATH/doc/README.txt
|
cp -r doc/README.txt $PACKAGEPATH/doc/README.txt
|
||||||
|
|
||||||
|
cp -r locale/de/LC_MESSAGES/$PROJECT_NAME.mo $PACKAGEPATH/locale/de/LC_MESSAGES/
|
||||||
|
|
||||||
cd $PACKAGEDIR
|
cd $PACKAGEDIR
|
||||||
rm $PACKAGENAME.zip
|
rm $PACKAGENAME.zip
|
||||||
zip -r $PACKAGENAME.zip $PACKAGENAME
|
zip -r $PACKAGENAME.zip $PACKAGENAME
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
project(minetest)
|
project(minetest-delta)
|
||||||
cmake_minimum_required( VERSION 2.6 )
|
cmake_minimum_required( VERSION 2.6 )
|
||||||
|
|
||||||
if(RUN_IN_PLACE)
|
if(RUN_IN_PLACE)
|
||||||
|
@ -153,9 +153,9 @@ include_directories(
|
||||||
set(EXECUTABLE_OUTPUT_PATH ../bin)
|
set(EXECUTABLE_OUTPUT_PATH ../bin)
|
||||||
|
|
||||||
if(BUILD_CLIENT)
|
if(BUILD_CLIENT)
|
||||||
add_executable(minetest ${minetest_SRCS})
|
add_executable(${PROJECT_NAME} ${minetest_SRCS})
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
minetest
|
${PROJECT_NAME}
|
||||||
${ZLIB_LIBRARIES}
|
${ZLIB_LIBRARIES}
|
||||||
${IRRLICHT_LIBRARY}
|
${IRRLICHT_LIBRARY}
|
||||||
${OPENGL_LIBRARIES}
|
${OPENGL_LIBRARIES}
|
||||||
|
@ -172,9 +172,9 @@ if(BUILD_CLIENT)
|
||||||
endif(BUILD_CLIENT)
|
endif(BUILD_CLIENT)
|
||||||
|
|
||||||
if(BUILD_SERVER)
|
if(BUILD_SERVER)
|
||||||
add_executable(minetestserver ${minetestserver_SRCS})
|
add_executable(${PROJECT_NAME}server ${minetestserver_SRCS})
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
minetestserver
|
${PROJECT_NAME}server
|
||||||
${ZLIB_LIBRARIES}
|
${ZLIB_LIBRARIES}
|
||||||
${PLATFORM_LIBS}
|
${PLATFORM_LIBS}
|
||||||
${JTHREAD_LIBRARY}
|
${JTHREAD_LIBRARY}
|
||||||
|
@ -199,7 +199,7 @@ if(MSVC)
|
||||||
set(CMAKE_CXX_FLAGS_DEBUG "/MDd /Zi /Ob0 /Od /RTC1")
|
set(CMAKE_CXX_FLAGS_DEBUG "/MDd /Zi /Ob0 /Od /RTC1")
|
||||||
|
|
||||||
if(BUILD_SERVER)
|
if(BUILD_SERVER)
|
||||||
set_target_properties(minetestserver PROPERTIES
|
set_target_properties(${PROJECT_NAME}server PROPERTIES
|
||||||
COMPILE_DEFINITIONS "SERVER")
|
COMPILE_DEFINITIONS "SERVER")
|
||||||
endif(BUILD_SERVER)
|
endif(BUILD_SERVER)
|
||||||
|
|
||||||
|
@ -233,7 +233,7 @@ else()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(BUILD_SERVER)
|
if(BUILD_SERVER)
|
||||||
set_target_properties(minetestserver PROPERTIES
|
set_target_properties(${PROJECT_NAME}server PROPERTIES
|
||||||
COMPILE_DEFINITIONS "SERVER")
|
COMPILE_DEFINITIONS "SERVER")
|
||||||
endif(BUILD_SERVER)
|
endif(BUILD_SERVER)
|
||||||
|
|
||||||
|
@ -250,13 +250,13 @@ endif()
|
||||||
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/../minetest.conf.example" DESTINATION ${EXAMPLE_CONF_DIR})
|
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/../minetest.conf.example" DESTINATION ${EXAMPLE_CONF_DIR})
|
||||||
|
|
||||||
if(BUILD_CLIENT)
|
if(BUILD_CLIENT)
|
||||||
install(TARGETS minetest DESTINATION ${BINDIR})
|
install(TARGETS ${PROJECT_NAME} DESTINATION ${BINDIR})
|
||||||
|
|
||||||
file(GLOB images "${CMAKE_CURRENT_SOURCE_DIR}/../data/*.png")
|
file(GLOB images "${CMAKE_CURRENT_SOURCE_DIR}/../data/*.png")
|
||||||
|
|
||||||
install(FILES ${images} DESTINATION ${DATADIR})
|
install(FILES ${images} DESTINATION ${DATADIR})
|
||||||
|
|
||||||
install(FILES ${CMAKE_BINARY_DIR}/locale/de/LC_MESSAGES/minetest-c55.mo DESTINATION locale/de/LC_MESSAGES)
|
install(FILES ${CMAKE_BINARY_DIR}/locale/de/LC_MESSAGES/minetest-delta.mo DESTINATION locale/de/LC_MESSAGES)
|
||||||
|
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
if(DEFINED IRRLICHT_DLL)
|
if(DEFINED IRRLICHT_DLL)
|
||||||
|
@ -273,7 +273,7 @@ if(BUILD_CLIENT)
|
||||||
endif(BUILD_CLIENT)
|
endif(BUILD_CLIENT)
|
||||||
|
|
||||||
if(BUILD_SERVER)
|
if(BUILD_SERVER)
|
||||||
install(TARGETS minetestserver DESTINATION ${BINDIR})
|
install(TARGETS ${PROJECT_NAME}server DESTINATION ${BINDIR})
|
||||||
endif(BUILD_SERVER)
|
endif(BUILD_SERVER)
|
||||||
|
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
|
@ -287,15 +287,15 @@ endif()
|
||||||
add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/locale/de/LC_MESSAGES COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/locale/de/LC_MESSAGES COMMENT "mo-update [de]: Creating locale directory.")
|
add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/locale/de/LC_MESSAGES COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/locale/de/LC_MESSAGES COMMENT "mo-update [de]: Creating locale directory.")
|
||||||
|
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
OUTPUT ${CMAKE_BINARY_DIR}/locale/de/LC_MESSAGES/minetest-c55.mo
|
OUTPUT ${CMAKE_BINARY_DIR}/locale/de/LC_MESSAGES/minetest-delta.mo
|
||||||
COMMAND ${GETTEXT_MSGFMT} -o ${CMAKE_BINARY_DIR}/locale/de/LC_MESSAGES/minetest-c55.mo ${CMAKE_SOURCE_DIR}/po/de/minetest-c55.po
|
COMMAND ${GETTEXT_MSGFMT} -o ${CMAKE_BINARY_DIR}/locale/de/LC_MESSAGES/minetest-delta.mo ${CMAKE_SOURCE_DIR}/po/de/minetest-c55.po
|
||||||
DEPENDS
|
DEPENDS
|
||||||
${CMAKE_BINARY_DIR}/locale/de/LC_MESSAGES
|
${CMAKE_BINARY_DIR}/locale/de/LC_MESSAGES
|
||||||
${CMAKE_SOURCE_DIR}/po/de/minetest-c55.po
|
${CMAKE_SOURCE_DIR}/po/de/minetest-c55.po
|
||||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/po/de
|
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/po/de
|
||||||
COMMENT "mo-update [de]: Creating mo file."
|
COMMENT "mo-update [de]: Creating mo file."
|
||||||
)
|
)
|
||||||
add_custom_target(translation_de ALL COMMENT "mo update [de]" DEPENDS ${CMAKE_BINARY_DIR}/locale/de/LC_MESSAGES/minetest-c55.mo)
|
add_custom_target(translation_de ALL COMMENT "mo update [de]" DEPENDS ${CMAKE_BINARY_DIR}/locale/de/LC_MESSAGES/minetest-delta.mo)
|
||||||
|
|
||||||
# Subdirectories
|
# Subdirectories
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue