2022-07-05 11:26:52 +00:00
|
|
|
# Copyright (C) 2022 The Qt Company Ltd.
|
2022-08-19 13:21:34 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
2022-07-05 11:26:52 +00:00
|
|
|
|
2019-04-16 14:32:08 +00:00
|
|
|
# Generated from qmake.pro.
|
|
|
|
|
|
|
|
#####################################################################
|
2020-05-28 15:39:45 +00:00
|
|
|
## qmake Tool:
|
2019-04-16 14:32:08 +00:00
|
|
|
#####################################################################
|
2019-02-27 12:52:57 +00:00
|
|
|
|
2021-03-09 15:15:26 +00:00
|
|
|
# The common object library, that should be available regardless of the presence of qmake.
|
2021-08-02 10:16:38 +00:00
|
|
|
qt_add_library(QtLibraryInfo OBJECT
|
2021-03-09 15:15:26 +00:00
|
|
|
library/proitems.cpp library/proitems.h
|
|
|
|
library/qmake_global.h
|
|
|
|
property.cpp property.h
|
2021-03-09 15:32:02 +00:00
|
|
|
propertyprinter.cpp propertyprinter.h
|
2021-03-09 15:15:26 +00:00
|
|
|
qmakelibraryinfo.cpp qmakelibraryinfo.h
|
|
|
|
)
|
2022-08-15 16:29:41 +00:00
|
|
|
|
2023-06-08 02:55:33 +00:00
|
|
|
# Make sure we use same parameters when building QtLibraryInfo and other Qt libraries,
|
|
|
|
# otherwise some compilers may have compilation errors, such as clang-cl.
|
|
|
|
target_link_libraries(QtLibraryInfo PUBLIC PlatformCommonInternal)
|
|
|
|
|
|
|
|
target_link_libraries(QtLibraryInfo PUBLIC Qt::CorePrivate)
|
|
|
|
|
2022-08-15 16:29:41 +00:00
|
|
|
qt_internal_add_sync_header_dependencies(QtLibraryInfo Core)
|
|
|
|
|
2021-03-09 15:15:26 +00:00
|
|
|
target_include_directories(QtLibraryInfo PUBLIC
|
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}"
|
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/library"
|
|
|
|
)
|
2021-06-22 14:00:03 +00:00
|
|
|
|
|
|
|
# Chop off the "/mkspecs" part of INSTALL_MKSPECSDIR
|
|
|
|
get_filename_component(hostdatadir "${INSTALL_MKSPECSDIR}" DIRECTORY)
|
|
|
|
if("${hostdatadir}" STREQUAL "")
|
|
|
|
set(hostdatadir ".")
|
|
|
|
endif()
|
|
|
|
|
2023-06-07 07:41:52 +00:00
|
|
|
qt_internal_library_deprecation_level(deprecation_define)
|
|
|
|
|
2021-03-09 15:15:26 +00:00
|
|
|
target_compile_definitions(QtLibraryInfo PUBLIC
|
|
|
|
PROEVALUATOR_FULL
|
|
|
|
QT_BUILD_QMAKE
|
|
|
|
QT_USE_QSTRINGBUILDER
|
|
|
|
QT_HOST_MKSPEC="${QT_QMAKE_HOST_MKSPEC}"
|
|
|
|
QT_TARGET_MKSPEC="${QT_QMAKE_TARGET_MKSPEC}"
|
2021-06-22 14:00:03 +00:00
|
|
|
QT_HOST_DATADIR="${hostdatadir}"
|
2023-06-07 07:41:52 +00:00
|
|
|
${deprecation_define}
|
2021-03-09 15:15:26 +00:00
|
|
|
)
|
|
|
|
|
2023-04-30 03:47:35 +00:00
|
|
|
qt_internal_set_exceptions_flags(QtLibraryInfo OFF)
|
|
|
|
|
2021-02-01 18:35:41 +00:00
|
|
|
if(NOT QT_FEATURE_qmake)
|
2021-01-28 15:06:26 +00:00
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
|
2020-04-27 13:04:57 +00:00
|
|
|
qt_get_tool_target_name(target_name qmake)
|
2020-09-22 08:16:58 +00:00
|
|
|
qt_internal_add_tool(${target_name}
|
2023-05-05 15:34:05 +00:00
|
|
|
TRY_RUN
|
2023-04-12 15:38:29 +00:00
|
|
|
TOOLS_TARGET Core
|
2021-02-11 13:01:58 +00:00
|
|
|
USER_FACING
|
2023-04-06 15:38:00 +00:00
|
|
|
NO_UNITY_BUILD
|
2021-02-26 10:04:00 +00:00
|
|
|
INSTALL_VERSIONED_LINK
|
2019-02-12 13:44:56 +00:00
|
|
|
SOURCES
|
2019-04-16 14:32:08 +00:00
|
|
|
cachekeys.h
|
|
|
|
generators/mac/pbuilder_pbx.cpp generators/mac/pbuilder_pbx.h
|
|
|
|
generators/makefile.cpp generators/makefile.h
|
|
|
|
generators/makefiledeps.cpp generators/makefiledeps.h
|
|
|
|
generators/metamakefile.cpp generators/metamakefile.h
|
|
|
|
generators/projectgenerator.cpp generators/projectgenerator.h
|
|
|
|
generators/unix/unixmake.cpp generators/unix/unixmake.h
|
2019-02-12 13:44:56 +00:00
|
|
|
generators/unix/unixmake2.cpp
|
2019-04-16 14:32:08 +00:00
|
|
|
generators/win32/mingw_make.cpp generators/win32/mingw_make.h
|
|
|
|
generators/win32/msbuild_objectmodel.cpp generators/win32/msbuild_objectmodel.h
|
|
|
|
generators/win32/msvc_nmake.cpp generators/win32/msvc_nmake.h
|
|
|
|
generators/win32/msvc_objectmodel.cpp generators/win32/msvc_objectmodel.h
|
|
|
|
generators/win32/msvc_vcproj.cpp generators/win32/msvc_vcproj.h
|
|
|
|
generators/win32/msvc_vcxproj.cpp generators/win32/msvc_vcxproj.h
|
|
|
|
generators/win32/winmakefile.cpp generators/win32/winmakefile.h
|
|
|
|
generators/xmloutput.cpp generators/xmloutput.h
|
|
|
|
library/ioutils.cpp library/ioutils.h
|
|
|
|
library/qmakebuiltins.cpp
|
|
|
|
library/qmakeevaluator.cpp library/qmakeevaluator.h library/qmakeevaluator_p.h
|
|
|
|
library/qmakeglobals.cpp library/qmakeglobals.h
|
|
|
|
library/qmakeparser.cpp library/qmakeparser.h
|
|
|
|
library/qmakevfs.cpp library/qmakevfs.h
|
2019-02-12 13:44:56 +00:00
|
|
|
main.cpp
|
2019-04-16 14:32:08 +00:00
|
|
|
meta.cpp meta.h
|
|
|
|
option.cpp option.h
|
|
|
|
project.cpp project.h
|
2019-02-12 13:44:56 +00:00
|
|
|
DEFINES
|
2020-05-28 13:23:23 +00:00
|
|
|
HAVE_CONFIG_H
|
2019-02-12 13:44:56 +00:00
|
|
|
INCLUDE_DIRECTORIES
|
|
|
|
generators
|
2019-05-28 14:41:49 +00:00
|
|
|
generators/mac
|
2019-02-12 13:44:56 +00:00
|
|
|
generators/unix
|
|
|
|
generators/win32
|
2019-05-28 14:41:49 +00:00
|
|
|
library
|
2019-07-05 08:47:26 +00:00
|
|
|
PRECOMPILED_HEADER
|
|
|
|
"qmake_pch.h"
|
2021-01-28 15:06:26 +00:00
|
|
|
LIBRARIES
|
2021-03-09 15:15:26 +00:00
|
|
|
QtLibraryInfo
|
|
|
|
)
|
2021-09-14 19:02:14 +00:00
|
|
|
qt_internal_return_unless_building_tools()
|
2021-03-09 15:15:26 +00:00
|
|
|
|
|
|
|
# Add QMAKE_VERSION_STR only if qmake is part of the build.
|
|
|
|
target_compile_definitions(QtLibraryInfo PUBLIC
|
|
|
|
QMAKE_VERSION_STR="3.1"
|
2019-04-16 14:32:08 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
#### Keys ignored in scope 1:.:.:qmake.pro:<TRUE>:
|
|
|
|
# _OPTION = "host_build"
|
|
|
|
|
|
|
|
## Scopes:
|
|
|
|
#####################################################################
|
2019-02-12 13:44:56 +00:00
|
|
|
|
2020-09-22 08:16:58 +00:00
|
|
|
qt_internal_extend_target(${target_name} CONDITION MACOS
|
2019-04-16 14:32:08 +00:00
|
|
|
COMPILE_OPTIONS
|
|
|
|
"-fconstant-cfstrings"
|
2019-02-12 13:44:56 +00:00
|
|
|
)
|
2019-04-16 14:32:08 +00:00
|
|
|
|
2021-01-28 15:06:26 +00:00
|
|
|
qt_internal_extend_target(${target_name} CONDITION WIN32
|
2019-03-11 11:34:52 +00:00
|
|
|
SOURCES
|
2019-04-16 14:32:08 +00:00
|
|
|
library/registry.cpp
|
2019-03-11 11:34:52 +00:00
|
|
|
DEFINES
|
2021-01-28 15:06:26 +00:00
|
|
|
_SCL_SECURE_NO_WARNINGS
|
2019-04-16 14:32:08 +00:00
|
|
|
)
|
|
|
|
|
2020-09-22 08:16:58 +00:00
|
|
|
qt_internal_extend_target(${target_name} CONDITION CLANG AND WIN32
|
2019-04-16 14:32:08 +00:00
|
|
|
COMPILE_OPTIONS
|
|
|
|
"-fms-compatibility-version=19.00.23506"
|
|
|
|
"-Wno-microsoft-enum-value"
|
|
|
|
)
|
|
|
|
|
2020-04-27 13:04:57 +00:00
|
|
|
set_target_properties(${target_name} PROPERTIES
|
2019-02-12 13:44:56 +00:00
|
|
|
AUTOMOC OFF
|
|
|
|
AUTORCC OFF
|
|
|
|
AUTOUIC OFF
|
|
|
|
)
|
2019-04-29 14:53:27 +00:00
|
|
|
|
2023-04-12 15:38:29 +00:00
|
|
|
qt_internal_apply_gc_binaries(${target_name} PRIVATE)
|
|
|
|
qt_skip_warnings_are_errors(${target_name})
|
2020-10-26 10:42:20 +00:00
|
|
|
|
|
|
|
qt_internal_add_docs(${target_name}
|
|
|
|
doc/qmake.qdocconf
|
|
|
|
)
|