forked from qt-creator/qt-creator
Extensions: Make dependency id lowercase
Change-Id: Icda5b426e7a3e15519e793789c117eabcd753316 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -399,6 +399,7 @@ function(add_qtc_plugin target_name)
|
|||||||
else()
|
else()
|
||||||
get_property(_v TARGET "${i}" PROPERTY _arg_VERSION)
|
get_property(_v TARGET "${i}" PROPERTY _arg_VERSION)
|
||||||
endif()
|
endif()
|
||||||
|
string(TOLOWER ${i} i)
|
||||||
string(APPEND _arg_DEPENDENCY_STRING
|
string(APPEND _arg_DEPENDENCY_STRING
|
||||||
" { \"Id\" : \"${i}\", \"Version\" : \"${_v}\" }"
|
" { \"Id\" : \"${i}\", \"Version\" : \"${_v}\" }"
|
||||||
)
|
)
|
||||||
@@ -410,6 +411,7 @@ function(add_qtc_plugin target_name)
|
|||||||
else()
|
else()
|
||||||
get_property(_v TARGET "${i}" PROPERTY _arg_VERSION)
|
get_property(_v TARGET "${i}" PROPERTY _arg_VERSION)
|
||||||
endif()
|
endif()
|
||||||
|
string(TOLOWER ${i} i)
|
||||||
string(APPEND _arg_DEPENDENCY_STRING
|
string(APPEND _arg_DEPENDENCY_STRING
|
||||||
" { \"Id\" : \"${i}\", \"Version\" : \"${_v}\", \"Type\" : \"optional\" }"
|
" { \"Id\" : \"${i}\", \"Version\" : \"${_v}\", \"Type\" : \"optional\" }"
|
||||||
)
|
)
|
||||||
@@ -418,6 +420,7 @@ function(add_qtc_plugin target_name)
|
|||||||
if (i MATCHES "^QtCreator::")
|
if (i MATCHES "^QtCreator::")
|
||||||
string(REPLACE "QtCreator::" "" i ${i})
|
string(REPLACE "QtCreator::" "" i ${i})
|
||||||
endif()
|
endif()
|
||||||
|
string(TOLOWER ${i} i)
|
||||||
set(_v ${IDE_VERSION})
|
set(_v ${IDE_VERSION})
|
||||||
string(APPEND _arg_DEPENDENCY_STRING
|
string(APPEND _arg_DEPENDENCY_STRING
|
||||||
" { \"Id\" : \"${i}\", \"Version\" : \"${_v}\", \"Type\" : \"test\" }"
|
" { \"Id\" : \"${i}\", \"Version\" : \"${_v}\", \"Type\" : \"test\" }"
|
||||||
@@ -433,6 +436,7 @@ function(add_qtc_plugin target_name)
|
|||||||
list(GET _arg_PLUGIN_MANUAL_DEPENDS ${i} dep_id)
|
list(GET _arg_PLUGIN_MANUAL_DEPENDS ${i} dep_id)
|
||||||
list(GET _arg_PLUGIN_MANUAL_DEPENDS ${dep_version_i} dep_version)
|
list(GET _arg_PLUGIN_MANUAL_DEPENDS ${dep_version_i} dep_version)
|
||||||
list(GET _arg_PLUGIN_MANUAL_DEPENDS ${dep_type_i} dep_type)
|
list(GET _arg_PLUGIN_MANUAL_DEPENDS ${dep_type_i} dep_type)
|
||||||
|
string(TOLOWER ${dep_id} dep_id)
|
||||||
string(APPEND _arg_DEPENDENCY_STRING
|
string(APPEND _arg_DEPENDENCY_STRING
|
||||||
" { \"Id\" : \"${dep_id}\", \"Version\" : \"${dep_version}\", \"Type\" : \"${dep_type}\" }"
|
" { \"Id\" : \"${dep_id}\", \"Version\" : \"${dep_version}\", \"Type\" : \"${dep_type}\" }"
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user