ubuntu-sdk-bugs team mailing list archive
-
ubuntu-sdk-bugs team
-
Mailing list archive
-
Message #01363
[Bug 1350690] [NEW] All of the plugins have the same name by using the template
Public bug reported:
All of the plugins have the same name by using the template. Previously,
it had a customized name using the project. I have found that all of the
plugins from different project have the same name as "Myapp". The plugin
project could be reused by some other projects. A customized name is
useful to differentiate from others.
set(
Myappbackend_SRCS
modules/Myapp/backend.cpp
modules/Myapp/mytype.cpp
modules/Myapp/readenv.cpp
)
add_library(Myappbackend MODULE
${Myappbackend_SRCS}
)
set_target_properties(Myappbackend PROPERTIES
LIBRARY_OUTPUT_DIRECTORY Myapp)
qt5_use_modules(Myappbackend Gui Qml Quick)
# Copy qmldir file to build dir for running in QtCreator
add_custom_target(Myappbackend-qmldir ALL
COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/modules/Myapp/qmldir ${CMAKE_CURRENT_BINARY_DIR}/Myapp
DEPENDS ${QMLFILES}
)
# Install plugin file
install(TARGETS Myappbackend DESTINATION ${QT_IMPORTS_DIR}/Myapp/)
install(FILES modules/Myapp/qmldir DESTINATION ${QT_IMPORTS_DIR}/Myapp/)
** Affects: qtcreator-plugin-ubuntu (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to qtcreator-plugin-ubuntu in
Ubuntu.
https://bugs.launchpad.net/bugs/1350690
Title:
All of the plugins have the same name by using the template
Status in “qtcreator-plugin-ubuntu” package in Ubuntu:
New
Bug description:
All of the plugins have the same name by using the template.
Previously, it had a customized name using the project. I have found
that all of the plugins from different project have the same name as
"Myapp". The plugin project could be reused by some other projects. A
customized name is useful to differentiate from others.
set(
Myappbackend_SRCS
modules/Myapp/backend.cpp
modules/Myapp/mytype.cpp
modules/Myapp/readenv.cpp
)
add_library(Myappbackend MODULE
${Myappbackend_SRCS}
)
set_target_properties(Myappbackend PROPERTIES
LIBRARY_OUTPUT_DIRECTORY Myapp)
qt5_use_modules(Myappbackend Gui Qml Quick)
# Copy qmldir file to build dir for running in QtCreator
add_custom_target(Myappbackend-qmldir ALL
COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/modules/Myapp/qmldir ${CMAKE_CURRENT_BINARY_DIR}/Myapp
DEPENDS ${QMLFILES}
)
# Install plugin file
install(TARGETS Myappbackend DESTINATION ${QT_IMPORTS_DIR}/Myapp/)
install(FILES modules/Myapp/qmldir DESTINATION ${QT_IMPORTS_DIR}/Myapp/)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qtcreator-plugin-ubuntu/+bug/1350690/+subscriptions
Follow ups
References