mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-24 09:48:46 +00:00
Changed: #842 Prefix all Ryzom binaries by ryzom_
This commit is contained in:
parent
ac2e5ee0e8
commit
2529616f20
4 changed files with 42 additions and 39 deletions
|
@ -44,22 +44,22 @@ if(APPLE)
|
||||||
SET(MACOSX_BUNDLE_BUNDLE_VERSION "1.0")
|
SET(MACOSX_BUNDLE_BUNDLE_VERSION "1.0")
|
||||||
SET(MACOSX_BUNDLE_COPYRIGHT "Winchgate and The Ryzom Core Community")
|
SET(MACOSX_BUNDLE_COPYRIGHT "Winchgate and The Ryzom Core Community")
|
||||||
|
|
||||||
ADD_EXECUTABLE(client MACOSX_BUNDLE ${SRC})
|
ADD_EXECUTABLE(ryzom_client MACOSX_BUNDLE ${SRC})
|
||||||
|
|
||||||
# TODO: in release mode, cmake could copy all the dylibs into the .app
|
# TODO: in release mode, cmake could copy all the dylibs into the .app
|
||||||
# bundle for redistribution... should some part of cpack handle that?
|
# bundle for redistribution... should some part of cpack handle that?
|
||||||
# ADD_CUSTOM_COMMAND(TARGET client POST_BUILD
|
# ADD_CUSTOM_COMMAND(TARGET ryzom_client POST_BUILD
|
||||||
# # make frameworks directory in app bundle
|
# # make frameworks directory in app bundle
|
||||||
# COMMAND ${CMAKE_COMMAND} -E make_directory
|
# COMMAND ${CMAKE_COMMAND} -E make_directory
|
||||||
# ${CMAKE_CURRENT_BINARY_DIR}/client.app/Contents/Frameworks
|
# ${CMAKE_CURRENT_BINARY_DIR}/ryzom_client.app/Contents/Frameworks
|
||||||
# # copy framework into app bundle
|
# # copy framework into app bundle
|
||||||
# COMMAND ${CMAKE_COMMAND} -E copy ${SOME_LIBRARY}
|
# COMMAND ${CMAKE_COMMAND} -E copy ${SOME_LIBRARY}
|
||||||
# ${CMAKE_CURRENT_BINARY_DIR}/client.app/Contents/Frameworks
|
# ${CMAKE_CURRENT_BINARY_DIR}/ryzom_client.app/Contents/Frameworks
|
||||||
# # ...
|
# # ...
|
||||||
# # install_name_tool the lib pathes
|
# # install_name_tool the lib pathes
|
||||||
|
|
||||||
ELSE(APPLE)
|
ELSE(APPLE)
|
||||||
ADD_EXECUTABLE(client ${SRC})
|
ADD_EXECUTABLE(ryzom_client ${SRC})
|
||||||
ENDIF(APPLE)
|
ENDIF(APPLE)
|
||||||
|
|
||||||
INCLUDE_DIRECTORIES(
|
INCLUDE_DIRECTORIES(
|
||||||
|
@ -70,10 +70,10 @@ INCLUDE_DIRECTORIES(
|
||||||
${CURL_INCLUDE_DIRS}
|
${CURL_INCLUDE_DIRS}
|
||||||
${CMAKE_CURRENT_SOURCE_DIR})
|
${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
|
|
||||||
TARGET_LINK_LIBRARIES(client ${PLATFORM_LINKFLAGS}
|
TARGET_LINK_LIBRARIES(ryzom_client ${PLATFORM_LINKFLAGS}
|
||||||
${LIBXML2_LIBRARIES}
|
${LIBXML2_LIBRARIES}
|
||||||
${NELMISC_LIBRARY}
|
${NELMISC_LIBRARY}
|
||||||
game_share
|
ryzom_gameshare
|
||||||
${NELNET_LIBRARY}
|
${NELNET_LIBRARY}
|
||||||
${NELLIGO_LIBRARY}
|
${NELLIGO_LIBRARY}
|
||||||
${NELGEORGES_LIBRARY}
|
${NELGEORGES_LIBRARY}
|
||||||
|
@ -82,18 +82,17 @@ TARGET_LINK_LIBRARIES(client ${PLATFORM_LINKFLAGS}
|
||||||
${CURL_LIBRARIES}
|
${CURL_LIBRARIES}
|
||||||
${NELSOUND_LIBRARY}
|
${NELSOUND_LIBRARY}
|
||||||
${NELSNDDRV_LIBRARY}
|
${NELSNDDRV_LIBRARY}
|
||||||
client_sheets
|
ryzom_clientsheets
|
||||||
${NELPACS_LIBRARY}
|
${NELPACS_LIBRARY}
|
||||||
${LIBWWW_LIBRARY}
|
${LIBWWW_LIBRARY}
|
||||||
${Boost_LIBRARIES}
|
ryzom_sevenzip
|
||||||
seven_zip
|
|
||||||
luabind # TODO: find luabind and expat cleanly using a find script
|
luabind # TODO: find luabind and expat cleanly using a find script
|
||||||
expat)
|
expat)
|
||||||
|
|
||||||
IF(NOT WITH_COCOA)
|
IF(NOT WITH_COCOA)
|
||||||
TARGET_LINK_LIBRARIES(client ${X11_LIBRARIES})
|
TARGET_LINK_LIBRARIES(ryzom_client ${X11_LIBRARIES})
|
||||||
ENDIF(NOT WITH_COCOA)
|
ENDIF(NOT WITH_COCOA)
|
||||||
|
|
||||||
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
|
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
|
||||||
|
|
||||||
INSTALL(TARGETS client RUNTIME DESTINATION bin COMPONENT client BUNDLE DESTINATION /Applications)
|
INSTALL(TARGETS ryzom_client RUNTIME DESTINATION bin COMPONENT client BUNDLE DESTINATION /Applications)
|
||||||
|
|
|
@ -5,26 +5,23 @@ SOURCE_GROUP(headers FILES ${PRIV_H} ${PUB_H})
|
||||||
|
|
||||||
|
|
||||||
IF(NOT WIN32)
|
IF(NOT WIN32)
|
||||||
ADD_LIBRARY(client_sheets SHARED ${SRC})
|
ADD_LIBRARY(ryzom_clientsheets SHARED ${SRC})
|
||||||
ELSE(NOT WIN32)
|
ELSE(NOT WIN32)
|
||||||
ADD_LIBRARY(client_sheets STATIC ${SRC})
|
ADD_LIBRARY(ryzom_clientsheets STATIC ${SRC})
|
||||||
ENDIF(NOT WIN32)
|
ENDIF(NOT WIN32)
|
||||||
|
|
||||||
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${NEL_INCLUDE_DIR})
|
INCLUDE_DIRECTORIES(${NEL_INCLUDE_DIR})
|
||||||
TARGET_LINK_LIBRARIES(client_sheets game_share ${NELMISC_LIBRARY})
|
TARGET_LINK_LIBRARIES(ryzom_clientsheets ryzom_gameshare ${NELMISC_LIBRARY})
|
||||||
SET_TARGET_PROPERTIES(client_sheets PROPERTIES VERSION ${NL_VERSION})
|
SET_TARGET_PROPERTIES(ryzom_clientsheets PROPERTIES VERSION ${NL_VERSION})
|
||||||
|
|
||||||
IF(WIN32)
|
IF(WIN32)
|
||||||
SET_TARGET_PROPERTIES(client_sheets PROPERTIES COMPILE_FLAGS "/Yustdpch.h")
|
SET_TARGET_PROPERTIES(ryzom_clientsheets PROPERTIES COMPILE_FLAGS "/Yustdpch.h")
|
||||||
SET_SOURCE_FILES_PROPERTIES(stdpch.cpp PROPERTIES COMPILE_FLAGS "/Ycstdpch.h")
|
SET_SOURCE_FILES_PROPERTIES(stdpch.cpp PROPERTIES COMPILE_FLAGS "/Ycstdpch.h")
|
||||||
SET_TARGET_PROPERTIES(client_sheets
|
SET_TARGET_PROPERTIES(ryzom_clientsheets
|
||||||
PROJECT_LABEL "Library: Client Sheets"
|
PROJECT_LABEL "Library: Client Sheets"
|
||||||
DEBUG_POSTFIX "_d"
|
DEBUG_POSTFIX "_d"
|
||||||
RELEASE_POSTFIX "_r"
|
RELEASE_POSTFIX "_r"
|
||||||
LINK_FLAGS_DEBUG "/NODEFAULTLIB:libc;libcmt;libcmtd;msvcrt"
|
LINK_FLAGS_DEBUG "/NODEFAULTLIB:msvcrt"
|
||||||
LINK_FLAGS_RELEASE "/NODEFAULTLIB:libc;libcmt;libcmtd;msvcrtd")
|
|
||||||
ENDIF(WIN32)
|
ENDIF(WIN32)
|
||||||
|
|
||||||
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
|
INSTALL(TARGETS ryzom_clientsheets LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries)
|
||||||
|
|
||||||
INSTALL(TARGETS client_sheets LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries)
|
|
||||||
|
|
|
@ -6,21 +6,28 @@ LIST(REMOVE_ITEM LIB_SRC ${CMAKE_CURRENT_SOURCE_DIR}/7zMain.cpp)
|
||||||
|
|
||||||
ADD_EXECUTABLE(7zDec ${SRC})
|
ADD_EXECUTABLE(7zDec ${SRC})
|
||||||
|
|
||||||
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${NEL_INCLUDE_DIR})
|
INCLUDE_DIRECTORIES(${NEL_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
TARGET_LINK_LIBRARIES(7zDec ${PLATFORM_LINKFLAGS} ${LIBXML2_LIBRARIES} ${NELMISC_LIBRARY})
|
TARGET_LINK_LIBRARIES(7zDec ${PLATFORM_LINKFLAGS} ${NELMISC_LIBRARY})
|
||||||
|
|
||||||
ADD_LIBRARY(seven_zip STATIC ${LIB_SRC})
|
IF(NOT WIN32)
|
||||||
TARGET_LINK_LIBRARIES(seven_zip ${PLATFORM_LINKFLAGS})
|
ADD_LIBRARY(ryzom_sevenzip SHARED ${LIB_SRC})
|
||||||
|
ELSE(NOT WIN32)
|
||||||
|
ADD_LIBRARY(ryzom_sevenzip STATIC ${LIB_SRC})
|
||||||
|
ENDIF(NOT WIN32)
|
||||||
|
|
||||||
|
TARGET_LINK_LIBRARIES(ryzom_sevenzip ${PLATFORM_LINKFLAGS})
|
||||||
|
SET_TARGET_PROPERTIES(ryzom_sevenzip PROPERTIES VERSION ${NL_VERSION})
|
||||||
|
|
||||||
IF(WIN32)
|
IF(WIN32)
|
||||||
SET_TARGET_PROPERTIES(seven_zip
|
SET_TARGET_PROPERTIES(seven_zip
|
||||||
PROJECT_LABEL "Library: Seven Zip"
|
PROJECT_LABEL "Library: Seven Zip"
|
||||||
DEBUG_POSTFIX "_d"
|
DEBUG_POSTFIX "_d"
|
||||||
RELEASE_POSTFIX "_r"
|
RELEASE_POSTFIX "_r"
|
||||||
LINK_FLAGS_DEBUG "/NODEFAULTLIB:libc;libcmt;libcmtd;msvcrt"
|
LINK_FLAGS_DEBUG "/NODEFAULTLIB:msvcrt"
|
||||||
LINK_FLAGS_RELEASE "/NODEFAULTLIB:libc;libcmt;libcmtd;msvcrtd")
|
|
||||||
ENDIF(WIN32)
|
ENDIF(WIN32)
|
||||||
|
|
||||||
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS} -D_SZ_ONE_DIRECTORY)
|
ADD_DEFINITIONS(-D_SZ_ONE_DIRECTORY)
|
||||||
|
|
||||||
|
INSTALL(TARGETS ryzom_sevenzip LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries)
|
||||||
|
|
||||||
INSTALL(TARGETS 7zDec RUNTIME DESTINATION bin COMPONENT client)
|
INSTALL(TARGETS 7zDec RUNTIME DESTINATION bin COMPONENT client)
|
||||||
|
|
|
@ -8,16 +8,16 @@ LIST(REMOVE_ITEM SRC ${CMAKE_CURRENT_SOURCE_DIR}/enum_template.cpp)
|
||||||
LIST(REMOVE_ITEM PRIV_H ${CMAKE_CURRENT_SOURCE_DIR}/enum_template.h)
|
LIST(REMOVE_ITEM PRIV_H ${CMAKE_CURRENT_SOURCE_DIR}/enum_template.h)
|
||||||
|
|
||||||
IF(WIN32)
|
IF(WIN32)
|
||||||
ADD_LIBRARY(game_share STATIC ${SRC})
|
ADD_LIBRARY(ryzom_gameshare STATIC ${SRC})
|
||||||
ELSE(WIN32)
|
ELSE(WIN32)
|
||||||
ADD_LIBRARY(game_share SHARED ${SRC})
|
ADD_LIBRARY(ryzom_gameshare SHARED ${SRC})
|
||||||
ENDIF(WIN32)
|
ENDIF(WIN32)
|
||||||
|
|
||||||
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${NEL_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
|
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${NEL_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
TARGET_LINK_LIBRARIES(game_share
|
TARGET_LINK_LIBRARIES(ryzom_gameshare
|
||||||
${NELMISC_LIBRARY} ${NELNET_LIBRARY} ${NELLIGO_LIBRARY} ${NELGEORGES_LIBRARY}
|
${NELMISC_LIBRARY} ${NELNET_LIBRARY} ${NELLIGO_LIBRARY} ${NELGEORGES_LIBRARY}
|
||||||
${LIBXML2_LIBRARIES} ${ZLIB_LIBRARIES})
|
${LIBXML2_LIBRARIES} ${ZLIB_LIBRARIES})
|
||||||
SET_TARGET_PROPERTIES(game_share PROPERTIES VERSION ${NL_VERSION})
|
SET_TARGET_PROPERTIES(ryzom_gameshare PROPERTIES VERSION ${NL_VERSION})
|
||||||
|
|
||||||
IF(WIN32)
|
IF(WIN32)
|
||||||
# SET_TARGET_PROPERTIES(${GAME_SHARE_LIB} PROPERTIES COMPILE_FLAGS "/Yustdgeorges.h")
|
# SET_TARGET_PROPERTIES(${GAME_SHARE_LIB} PROPERTIES COMPILE_FLAGS "/Yustdgeorges.h")
|
||||||
|
@ -26,10 +26,10 @@ IF(WIN32)
|
||||||
PROJECT_LABEL "Library: Game Share"
|
PROJECT_LABEL "Library: Game Share"
|
||||||
DEBUG_POSTFIX "_d"
|
DEBUG_POSTFIX "_d"
|
||||||
RELEASE_POSTFIX "_r"
|
RELEASE_POSTFIX "_r"
|
||||||
LINK_FLAGS_DEBUG "/NODEFAULTLIB:libc;libcmt;libcmtd;msvcrt"
|
LINK_FLAGS_DEBUG "/NODEFAULTLIB:msvcrt")
|
||||||
LINK_FLAGS_RELEASE "/NODEFAULTLIB:libc;libcmt;libcmtd;msvcrtd")
|
|
||||||
ENDIF(WIN32)
|
ENDIF(WIN32)
|
||||||
|
|
||||||
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
|
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
|
||||||
|
|
||||||
INSTALL(TARGETS game_share LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries)
|
INSTALL(TARGETS ryzom_gameshare LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue