Debian Codegraph @

src/core/.prev_configure.cmake

raw
1 # Copyright (C) 2022 The Qt Company Ltd.
2 # SPDX-License-Identifier: BSD-3-Clause
3
4
5
6 #### Inputs
7
8 # input qt3d-assimp
9 set(INPUT_qt3d_assimp "undefined" CACHE STRING "")
10 set_property(CACHE INPUT_qt3d_assimp PROPERTY STRINGS undefined qt system no)
11
12
13
14 #### Libraries
15
16 qt_find_package(WrapQt3DAssimp 5 PROVIDED_TARGETS WrapQt3DAssimp::WrapQt3DAssimp MODULE_NAME 3dcore QMAKE_LIB qt3d-assimp)
17
18 qt_config_compile_test("assimp"
19 LABEL ""
20 PROJECT_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../config.tests/assimp"
21 )
22
23
24 #### Tests
25
26
27
28 #### Features
29
30 qt_feature("qt3d-assimp" PUBLIC PRIVATE
31 LABEL "Assimp"
32 )
33 qt_feature_definition("qt3d-assimp" "QT_NO_QT3D_ASSIMP" NEGATE VALUE "1")
34 qt_feature("qt3d-system-assimp" PRIVATE
35 LABEL "System Assimp"
36 CONDITION QT_FEATURE_qt3d_assimp AND TEST_assimp
37 ENABLE INPUT_assimp STREQUAL 'system'
38 DISABLE INPUT_assimp STREQUAL 'qt'
39 )
40 qt_feature("qt3d-render" PUBLIC
41 SECTION "Aspects"
42 LABEL "Render aspect"
43 PURPOSE "Use the 3D Render Aspect library"
44 )
45 qt_feature("qt3d-input" PUBLIC
46 SECTION "Aspects"
47 LABEL "Input aspect"
48 PURPOSE "Use the 3D Input Aspect library"
49 )
50 qt_feature("qt3d-logic" PUBLIC
51 SECTION "Aspects"
52 LABEL "Logic aspect"
53 PURPOSE "Use the 3D Logic Aspect library"
54 )
55 qt_feature("qt3d-extras" PUBLIC
56 SECTION "Aspects"
57 LABEL "Extras aspect"
58 PURPOSE "Use the 3D Extra library"
59 CONDITION QT_FEATURE_qt3d_render AND QT_FEATURE_qt3d_input AND QT_FEATURE_qt3d_logic
60 )
61 qt_feature("qt3d-animation" PUBLIC
62 SECTION "Aspects"
63 LABEL "Animation aspect"
64 PURPOSE "Use the 3D Animation Aspect library"
65 CONDITION QT_FEATURE_qt3d_render
66 )
67 qt_feature("qt3d-simd-sse2" PRIVATE
68 LABEL "Use SSE2 instructions"
69 PURPOSE "Use SSE2 SIMD instructions to accelerate matrix operations"
70 AUTODETECT QT_FEATURE_sse2
71 ENABLE INPUT_qt3d_simd STREQUAL 'sse2' OR INPUT_qt3d_simd STREQUAL 'avx2'
72 DISABLE INPUT_qt3d_simd STREQUAL 'no' OR ( TEST_architecture_arch STREQUAL i386 )
73 )
74 qt_feature("qt3d-simd-avx2" PRIVATE
75 LABEL "Use AVX2 instructions"
76 PURPOSE "Use AVX2 SIMD instructions to accelerate matrix operations"
77 AUTODETECT TEST_arch_${TEST_architecture_arch}_subarch_avx2
78 ENABLE INPUT_qt3d_simd STREQUAL 'avx2'
79 DISABLE INPUT_qt3d_simd STREQUAL 'sse2' OR INPUT_qt3d_simd STREQUAL 'no' OR ( TEST_architecture_arch STREQUAL i386 )
80 )
81 qt_configure_add_summary_section(NAME "Qt 3D")
82 qt_configure_add_summary_entry(ARGS "qt3d-assimp")
83 qt_configure_add_summary_entry(ARGS "qt3d-system-assimp")
84 qt_configure_add_summary_entry(ARGS "qt3d-simd-sse2")
85 qt_configure_add_summary_entry(ARGS "qt3d-simd-avx2")
86 qt_configure_add_summary_section(NAME "Aspects")
87 qt_configure_add_summary_entry(ARGS "qt3d-render")
88 qt_configure_add_summary_entry(ARGS "qt3d-input")
89 qt_configure_add_summary_entry(ARGS "qt3d-logic")
90 qt_configure_add_summary_entry(ARGS "qt3d-animation")
91 qt_configure_add_summary_entry(ARGS "qt3d-extras")
92 qt_configure_end_summary_section() # end of "Aspects" section
93 qt_configure_end_summary_section() # end of "Qt 3D" section