Skip to content

Commit 1e220e3

Browse files
committed
Rename resources target
1 parent d3f90e2 commit 1e220e3

File tree

7 files changed

+20
-20
lines changed

7 files changed

+20
-20
lines changed

src/gui/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ set_target_properties(opencloud PROPERTIES
176176
AUTORCC ON
177177
)
178178
apply_common_target_settings(opencloud)
179-
target_link_libraries(opencloud PUBLIC OpenCloudGui owncloudResources KDAB::kdsingleapplication )
179+
target_link_libraries(opencloud PUBLIC OpenCloudGui OpenCloudResources KDAB::kdsingleapplication )
180180

181181
MESSAGE(STATUS "OWNCLOUD_SIDEBAR_ICONS: ${APPLICATION_ICON_NAME}: ${OWNCLOUD_SIDEBAR_ICONS}")
182182

src/gui/folderwizard/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ add_library(folderwizard STATIC
1212
spacespage.ui
1313
)
1414

15-
target_link_libraries(folderwizard PUBLIC Qt::Widgets libsync owncloudResources)
15+
target_link_libraries(folderwizard PUBLIC Qt::Widgets libsync OpenCloudResources)
1616
set_target_properties(folderwizard PROPERTIES AUTOUIC ON AUTORCC ON)
1717
apply_common_target_settings(folderwizard)

src/gui/newwizard/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ add_library(newwizard STATIC
5656

5757
setupwizardcontext.cpp
5858
)
59-
target_link_libraries(newwizard PUBLIC Qt::Widgets libsync owncloudResources)
59+
target_link_libraries(newwizard PUBLIC Qt::Widgets libsync OpenCloudResources)
6060
set_target_properties(newwizard PROPERTIES AUTOUIC ON AUTORCC ON)
6161
target_include_directories(newwizard PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}")
6262
apply_common_target_settings(newwizard)

src/libsync/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ set_target_properties(libsync PROPERTIES EXPORT_NAME SyncCore)
8383
target_link_libraries(libsync
8484
PUBLIC
8585
csync
86-
owncloudResources
86+
OpenCloudResources
8787
Qt::Core
8888
Qt::Network
8989
Qt::Widgets

src/resources/CMakeLists.txt

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
add_library(owncloudResources SHARED
1+
add_library(OpenCloudResources SHARED
22
client.qrc
33
core_theme.qrc
44
loadresources.cpp
@@ -8,45 +8,45 @@ add_library(owncloudResources SHARED
88
template.cpp
99
)
1010

11-
generate_theme(owncloudResources OWNCLOUD_SIDEBAR_ICONS)
11+
generate_theme(OpenCloudResources OWNCLOUD_SIDEBAR_ICONS)
1212

1313
# make them available to the whole project
1414
set(OWNCLOUD_SIDEBAR_ICONS ${OWNCLOUD_SIDEBAR_ICONS} CACHE INTERNAL "Sidebar icons" FORCE)
1515

16-
target_link_libraries(owncloudResources PUBLIC Qt::Core Qt::Gui Qt::Quick)
17-
apply_common_target_settings(owncloudResources)
18-
target_include_directories(owncloudResources PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/..> $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/..>)
19-
target_compile_definitions(owncloudResources PRIVATE APPLICATION_SHORTNAME="${APPLICATION_SHORTNAME}")
16+
target_link_libraries(OpenCloudResources PUBLIC Qt::Core Qt::Gui Qt::Quick)
17+
apply_common_target_settings(OpenCloudResources)
18+
target_include_directories(OpenCloudResources PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/..> $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/..>)
19+
target_compile_definitions(OpenCloudResources PRIVATE APPLICATION_SHORTNAME="${APPLICATION_SHORTNAME}")
2020

21-
set_target_properties(owncloudResources PROPERTIES
21+
set_target_properties(OpenCloudResources PROPERTIES
2222
OUTPUT_NAME "OpenCloudResources"
2323
AUTOUIC ON
2424
AUTORCC ON
2525
VERSION ${MIRALL_VERSION}
2626
SOVERSION ${MIRALL_SOVERSION}
2727
)
2828

29-
generate_export_header(owncloudResources
29+
generate_export_header(OpenCloudResources
3030
EXPORT_MACRO_NAME OWNCLOUDRESOURCES_EXPORT
3131
EXPORT_FILE_NAME owncloudresources.h
3232
STATIC_DEFINE OWNCLOUD_BUILT_AS_STATIC
3333
)
3434

3535
# Handle Translations, pick all client_* files from trans directory.
3636
file(GLOB client_translations ${CMAKE_SOURCE_DIR}/translations/client_*.ts)
37-
qt_add_lrelease(owncloudResources TS_FILES ${client_translations} QM_FILES_OUTPUT_VARIABLE client_compiled_translations)
37+
qt_add_lrelease(OpenCloudResources TS_FILES ${client_translations} QM_FILES_OUTPUT_VARIABLE client_compiled_translations)
3838
add_resources_to_target(
39-
TARGET owncloudResources
39+
TARGET OpenCloudResources
4040
PREFIX translations
4141
FILES "${client_compiled_translations}"
4242
)
4343

44-
ecm_add_qml_module(owncloudResources
44+
ecm_add_qml_module(OpenCloudResources
4545
URI eu.OpenCloud.resources
4646
VERSION 1.0
4747
NAMESPACE OCC
4848
)
4949

50-
ecm_finalize_qml_module(owncloudResources DESTINATION ${KDE_INSTALL_QMLDIR})
50+
ecm_finalize_qml_module(OpenCloudResources DESTINATION ${KDE_INSTALL_QMLDIR})
5151

52-
install(TARGETS owncloudResources EXPORT ${APPLICATION_SHORTNAME}Config ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
52+
install(TARGETS OpenCloudResources EXPORT ${APPLICATION_SHORTNAME}Config ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})

src/resources/loadresources.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ using namespace OCC;
66

77
void static load_rc()
88
{
9-
Q_INIT_RESOURCE(owncloudResources_translations);
9+
Q_INIT_RESOURCE(OpenCloudResources_translations);
1010
Q_INIT_RESOURCE(client);
1111
Q_INIT_RESOURCE(core_theme);
1212
#ifdef BRANDING_AVAILABLE
@@ -16,7 +16,7 @@ void static load_rc()
1616

1717
void static unload_rc()
1818
{
19-
Q_CLEANUP_RESOURCE(owncloudResources_translations);
19+
Q_CLEANUP_RESOURCE(OpenCloudResources_translations);
2020
Q_CLEANUP_RESOURCE(client);
2121
Q_CLEANUP_RESOURCE(core_theme);
2222
#ifdef BRANDING_AVAILABLE

test/testutils/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ target_compile_definitions(syncenginetestutils PRIVATE TEST_HELPER_EXE="$<TARGET
88
# testutilsloader.cpp uses Q_COREAPP_STARTUP_FUNCTION which can't used reliably in a static lib
99
# therefore we compile it in the tests
1010
add_library(testutilsloader OBJECT testutilsloader.cpp)
11-
target_link_libraries(testutilsloader PUBLIC OpenCloudGui owncloudResources)
11+
target_link_libraries(testutilsloader PUBLIC OpenCloudGui OpenCloudResources)

0 commit comments

Comments
 (0)