aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmltyperegistrar/CMakeLists.txt
blob: 9145a298c92cb9b20b39fb8ac0f1e2e85dfa6f8c (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
# Generated from qmltyperegistrar.pro.

#####################################################################
## qmltyperegistrar Tool:
#####################################################################

qt_get_tool_target_name(target_name qmltyperegistrar)
qt_internal_add_tool(${target_name}
    TARGET_DESCRIPTION "QML Types Registrar"
    TOOLS_TARGET Qml # special case
    SOURCES
        ../qmlcompiler/qqmljsstreamwriter.cpp ../qmlcompiler/qqmljsstreamwriter_p.h
        metatypesjsonprocessor.cpp metatypesjsonprocessor.h
        qmltyperegistrar.cpp
        qmltypesclassdescription.cpp qmltypesclassdescription.h
        qmltypescreator.cpp qmltypescreator.h
    DEFINES
        QT_NO_CAST_FROM_ASCII
        QT_NO_CAST_TO_ASCII
    INCLUDE_DIRECTORIES
        ../qmlcompiler
    PUBLIC_LIBRARIES
        Qt::CorePrivate
)

#### Keys ignored in scope 1:.:.:qmltyperegistrar.pro:<TRUE>:
# QMAKE_TARGET_DESCRIPTION = "QML" "Types" "Registrar"
# _OPTION = "host_build"
# build_integration.files = "qmltypes.prf"
# build_integration.path = "$$[QT_HOST_DATA]/mkspecs/features"

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

#### Keys ignored in scope 2:.:.:qmltyperegistrar.pro:prefix_build:
# COPIES = "qmltypes_to_builddir"
# INSTALLS = "build_integration"
# qmltypes_to_builddir.files = "qmltypes.prf"
# qmltypes_to_builddir.path = "$$MODULE_BASE_OUTDIR/mkspecs/features"

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

# special case begin
# Install public prf files.
set(qmltyperegistrar_mkspecs "${CMAKE_CURRENT_SOURCE_DIR}/qmltypes.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 "${qmltyperegistrar_mkspecs}"
                   DESTINATION ${mkspecs_install_dir})
# special case end