mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2025-07-07 01:35:25 +08:00
qt 6.5.1 original
This commit is contained in:
27
tests/auto/cmake/test_plugin_shared_static_flavor.cmake
Normal file
27
tests/auto/cmake/test_plugin_shared_static_flavor.cmake
Normal file
@ -0,0 +1,27 @@
|
||||
# Copyright (C) 2022 The Qt Company Ltd.
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
_qt_internal_test_expect_pass(test_plugin_shared_static_flavor
|
||||
TESTNAME test_plugin_flavor_static
|
||||
BUILD_OPTIONS
|
||||
"-DPLUGIN_OPTIONS=STATIC"
|
||||
"-DEXPECTED_PLUGIN_TARGET_TYPE=STATIC_LIBRARY")
|
||||
|
||||
_qt_internal_test_expect_pass(test_plugin_shared_static_flavor
|
||||
TESTNAME test_plugin_flavor_shared
|
||||
BUILD_OPTIONS
|
||||
"-DPLUGIN_OPTIONS=SHARED"
|
||||
"-DEXPECTED_PLUGIN_TARGET_TYPE=MODULE_LIBRARY")
|
||||
|
||||
if(QT6_IS_SHARED_LIBS_BUILD)
|
||||
set(expected_plugin_target_type "MODULE_LIBRARY")
|
||||
else()
|
||||
set(expected_plugin_target_type "STATIC_LIBRARY")
|
||||
endif()
|
||||
|
||||
# Check default computed value when no explicit option is set.
|
||||
_qt_internal_test_expect_pass(test_plugin_shared_static_flavor
|
||||
TESTNAME test_plugin_flavor_derived_from_qt_type
|
||||
BUILD_OPTIONS
|
||||
"-DPLUGIN_OPTIONS="
|
||||
"-DEXPECTED_PLUGIN_TARGET_TYPE=${expected_plugin_target_type}")
|
Reference in New Issue
Block a user