aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qmlcachegen/CMakeLists.txt
blob: a509166dee542eaf34236bec4f3d86884b8b2ce7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Generated from qmlcachegen.pro.

#####################################################################
## qmlcachegen Tool:
#####################################################################

qt_get_tool_target_name(target_name qmlcachegen)
qt_add_tool(${target_name}
    TARGET_DESCRIPTION "QML Cache Generator"
    TOOLS_TARGET Qml # special case
    SOURCES
        generateloader.cpp
        qmlcachegen.cpp
        resourcefilter.cpp
    DEFINES
        QT_NO_CAST_FROM_ASCII
        QT_NO_CAST_TO_ASCII
    PUBLIC_LIBRARIES
        Qt::QmlCompilerPrivate
        Qt::QmlDevToolsPrivate
)

#### Keys ignored in scope 1:.:.:qmlcachegen.pro:<TRUE>:
# CMAKE_BIN_DIR = "$$cmakeRelativePath($$[QT_HOST_BINS], $$[QT_INSTALL_PREFIX])"
# QMAKE_SUBSTITUTES = "cmake_config_file"
# QMAKE_TARGET_DESCRIPTION = "QML" "Cache" "Generator"
# _OPTION = "host_build"
# build_integration.files = "qmlcache.prf" "qtquickcompiler.prf"
# build_integration.path = "$$[QT_HOST_DATA]/mkspecs/features"
# cmake_build_integration.files = "$$cmake_config_file.output"
# cmake_build_integration.path = "$$[QT_INSTALL_LIBS]/cmake/Qt6QuickCompiler"
# cmake_config_file.input = "$$PWD/Qt6QuickCompilerConfig.cmake.in"
# cmake_config_file.output = "$$MODULE_BASE_OUTDIR/lib/cmake/Qt6QuickCompiler/Qt6QuickCompilerConfig.cmake"

## Scopes:
#####################################################################

#### Keys ignored in scope 2:.:.:qmlcachegen.pro:prefix_build:
# INSTALLS = "cmake_build_integration" "build_integration"

#### Keys ignored in scope 3:.:.:qmlcachegen.pro:else:
# COPIES = "cmake_build_integration" "build_integration"

#### Keys ignored in scope 4:.:.:qmlcachegen.pro:CMAKE_BIN_DIR___contains___^\\.\\./._x_:
# CMAKE_BIN_DIR = "$$[QT_HOST_BINS]/"
# CMAKE_BIN_DIR_IS_ABSOLUTE = "True"

#### Keys ignored in scope 5:.:.:qmlcachegen.pro:QMAKE_HOST.os___equals___Windows:
# CMAKE_BIN_SUFFIX = ".exe"

# special case begin
# Install public prf files.
set(qmlcachegen_mkspecs
    "${CMAKE_CURRENT_SOURCE_DIR}/qmlcache.prf"
    "${CMAKE_CURRENT_SOURCE_DIR}/qtquickcompiler.prf"
    )
set(mkspecs_install_dir "${INSTALL_MKSPECSDIR}")
qt_path_join(mkspecs_install_dir "${QT_INSTALL_DIR}" "${mkspecs_install_dir}" "features")
qt_copy_or_install(FILES "${qmlcachegen_mkspecs}"
                   DESTINATION ${mkspecs_install_dir})
# special case end