Rebranding continued: rename target

This commit is contained in:
Evgenii Zheltonozhskii 2018-06-04 03:50:43 +03:00 committed by Alex
parent 35c917a704
commit 1015e088e3
1 changed files with 20 additions and 20 deletions

View File

@ -184,14 +184,14 @@ configure_file(SourceFiles/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h)
include_directories(${CMAKE_CURRENT_BINARY_DIR}) include_directories(${CMAKE_CURRENT_BINARY_DIR})
##================================================ ##================================================
## Telegram app ## Kepka app
##================================================ ##================================================
#add_subdirectory(SourceFiles/boxes) #add_subdirectory(SourceFiles/boxes)
# ^ Unused: cotire PCH needs more rigid structure with targets defined from the same # ^ Unused: cotire PCH needs more rigid structure with targets defined from the same
# cmakelists file. To do: get rid of the PCH requirement for more flexible build structure. # cmakelists file. To do: get rid of the PCH requirement for more flexible build structure.
add_executable(Telegram WIN32 MACOSX_BUNDLE add_executable(Kepka WIN32 MACOSX_BUNDLE
${CMAKE_CURRENT_BINARY_DIR}/styles/palette.cpp ${CMAKE_CURRENT_BINARY_DIR}/styles/palette.cpp
${CMAKE_CURRENT_BINARY_DIR}/numbers.cpp ${CMAKE_CURRENT_BINARY_DIR}/numbers.cpp
${CMAKE_CURRENT_BINARY_DIR}/lang_auto.cpp ${CMAKE_CURRENT_BINARY_DIR}/lang_auto.cpp
@ -485,7 +485,7 @@ add_executable(Telegram WIN32 MACOSX_BUNDLE
) )
if (APPLE) if (APPLE)
target_sources(Telegram PRIVATE target_sources(Kepka PRIVATE
SourceFiles/platform/mac/file_utilities_mac.mm SourceFiles/platform/mac/file_utilities_mac.mm
SourceFiles/platform/mac/mac_utilities.mm SourceFiles/platform/mac/mac_utilities.mm
SourceFiles/platform/mac/main_window_mac.mm SourceFiles/platform/mac/main_window_mac.mm
@ -498,7 +498,7 @@ if (APPLE)
endif() endif()
if (WIN32) if (WIN32)
target_sources(Telegram PRIVATE target_sources(Kepka PRIVATE
SourceFiles/platform/win/audio_win.cpp SourceFiles/platform/win/audio_win.cpp
SourceFiles/platform/win/file_utilities_win.cpp SourceFiles/platform/win/file_utilities_win.cpp
SourceFiles/platform/win/main_window_win.cpp SourceFiles/platform/win/main_window_win.cpp
@ -515,13 +515,13 @@ if (WIN32)
endif() endif()
if (WINRT) if (WINRT)
target_sources(Telegram PRIVATE target_sources(Kepka PRIVATE
SourceFiles/platform/winrt/main_window_winrt.cpp SourceFiles/platform/winrt/main_window_winrt.cpp
) )
endif() endif()
if (LINUX) if (LINUX)
target_sources(Telegram PRIVATE target_sources(Kepka PRIVATE
SourceFiles/platform/linux/file_utilities_linux.cpp SourceFiles/platform/linux/file_utilities_linux.cpp
SourceFiles/platform/linux/linux_desktop_environment.cpp SourceFiles/platform/linux/linux_desktop_environment.cpp
SourceFiles/platform/linux/linux_gdk_helper.cpp SourceFiles/platform/linux/linux_gdk_helper.cpp
@ -542,20 +542,20 @@ list(APPEND tg_RESOURCES
qt5_add_resources(tg_RESOURCES_RCC ${tg_RESOURCES}) qt5_add_resources(tg_RESOURCES_RCC ${tg_RESOURCES})
target_sources(Telegram PRIVATE target_sources(Kepka PRIVATE
${tg_RESOURCES} ${tg_RESOURCES}
${tg_RESOURCES_RCC} ${tg_RESOURCES_RCC}
) )
if (APPLE) if (APPLE)
target_sources(Telegram PRIVATE target_sources(Kepka PRIVATE
ThirdParty/SPMediaKeyTap/SPMediaKeyTap.m ThirdParty/SPMediaKeyTap/SPMediaKeyTap.m
ThirdParty/SPMediaKeyTap/SPInvocationGrabbing/NSObject+SPInvocationGrabbing.m ThirdParty/SPMediaKeyTap/SPInvocationGrabbing/NSObject+SPInvocationGrabbing.m
) )
include_directories(ThirdParty/SPMediaKeyTap) include_directories(ThirdParty/SPMediaKeyTap)
endif() endif()
target_sources(Telegram PRIVATE target_sources(Kepka PRIVATE
ThirdParty/minizip/ioapi.c ThirdParty/minizip/ioapi.c
ThirdParty/minizip/zip.c ThirdParty/minizip/zip.c
ThirdParty/minizip/unzip.c ThirdParty/minizip/unzip.c
@ -620,7 +620,7 @@ if (APPLE)
PROPERTIES PROPERTIES
MACOSX_PACKAGE_LOCATION Resources) MACOSX_PACKAGE_LOCATION Resources)
target_sources(Telegram PRIVATE target_sources(Kepka PRIVATE
${CMAKE_CURRENT_BINARY_DIR}/${MACOSX_BUNDLE_ICON_FILE} ${CMAKE_CURRENT_BINARY_DIR}/${MACOSX_BUNDLE_ICON_FILE}
) )
@ -629,7 +629,7 @@ if (APPLE)
set_source_files_properties(${LOCALIZABLE_STRINGS} set_source_files_properties(${LOCALIZABLE_STRINGS}
PROPERTIES PROPERTIES
MACOSX_PACKAGE_LOCATION ${LOCALIZABLE_STRINGS}) MACOSX_PACKAGE_LOCATION ${LOCALIZABLE_STRINGS})
target_sources(Telegram PRIVATE target_sources(Kepka PRIVATE
${LOCALIZABLE_STRINGS} ${LOCALIZABLE_STRINGS}
) )
endforeach(langpack) endforeach(langpack)
@ -637,12 +637,12 @@ endif()
# Disable a single annoying warning about c++17 # Disable a single annoying warning about c++17
if(NOT WIN32) if(NOT WIN32)
set_flag_if_supported(Telegram WNCE -Wno-c++1z-extensions) set_flag_if_supported(Kepka WNCE -Wno-c++1z-extensions)
endif() endif()
target_compile_definitions(Telegram PRIVATE ${FFMPEG_DEFINITIONS}) target_compile_definitions(Kepka PRIVATE ${FFMPEG_DEFINITIONS})
target_link_libraries(Telegram target_link_libraries(Kepka
Qt5::Core Qt5::Core
Qt5::Widgets Qt5::Widgets
Qt5::Network Qt5::Network
@ -659,9 +659,9 @@ target_link_libraries(Telegram
) # crashpad::crashpad_client) ) # crashpad::crashpad_client)
if (APPLE) if (APPLE)
add_dependencies(Telegram iconset_output) add_dependencies(Kepka iconset_output)
set_target_properties(Telegram set_target_properties(Kepka
PROPERTIES PROPERTIES
MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/Telegram.plist MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/Telegram.plist
) )
@ -689,23 +689,23 @@ if (APPLE)
set(FW_LIB FW_LIB-NOTFOUND) set(FW_LIB FW_LIB-NOTFOUND)
find_library(FW_LIB ${framework}) find_library(FW_LIB ${framework})
message(STATUS "Found framework ${FW_LIB}") message(STATUS "Found framework ${FW_LIB}")
target_link_libraries(Telegram ${FW_LIB}) target_link_libraries(Kepka ${FW_LIB})
endforeach(framework) endforeach(framework)
set(FW_LIB FW_LIB-NOTFOUND) set(FW_LIB FW_LIB-NOTFOUND)
endif() endif()
if(WIN32) if(WIN32)
target_link_libraries(Telegram target_link_libraries(Kepka
winmm imm32 ws2_32 kernel32 user32 gdi32 winspool comdlg32 advapi32 shell32 ole32 winmm imm32 ws2_32 kernel32 user32 gdi32 winspool comdlg32 advapi32 shell32 ole32
oleaut32 uuid odbc32 odbccp32 Shlwapi Iphlpapi Gdiplus Strmiids oleaut32 uuid odbc32 odbccp32 Shlwapi Iphlpapi Gdiplus Strmiids
) )
endif() endif()
if (LINUX) if (LINUX)
target_link_libraries(Telegram Qt5::DBus dl ${ALSA_LIBRARIES} ${PULSEAUDIO_LIBRARIES}) target_link_libraries(Kepka Qt5::DBus dl ${ALSA_LIBRARIES} ${PULSEAUDIO_LIBRARIES})
endif() endif()
target_link_libraries(Telegram Threads::Threads) target_link_libraries(Kepka Threads::Threads)
##================================================ ##================================================
## Tests ## Tests