# Copyright (C) 2023 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause

project(QtLocation)

set(QtLocation_OPTIONAL_SRC )
set(QtLocation_DROPPED_ENTRIES )

set(QtLocation_SRC
${QtLocation_GEN_DIR}/qgeocodereply_wrapper.cpp
${QtLocation_GEN_DIR}/qgeomaneuver_wrapper.cpp
${QtLocation_GEN_DIR}/qgeoroute_wrapper.cpp
${QtLocation_GEN_DIR}/qgeoroutereply_wrapper.cpp
${QtLocation_GEN_DIR}/qgeoroutesegment_wrapper.cpp
${QtLocation_GEN_DIR}/qgeoserviceprovider_wrapper.cpp
${QtLocation_GEN_DIR}/qlocation_wrapper.cpp
${QtLocation_GEN_DIR}/qplace_wrapper.cpp
${QtLocation_GEN_DIR}/qplacecontentreply_wrapper.cpp
${QtLocation_GEN_DIR}/qplacedetailsreply_wrapper.cpp
${QtLocation_GEN_DIR}/qplaceicon_wrapper.cpp
${QtLocation_GEN_DIR}/qplaceidreply_wrapper.cpp
${QtLocation_GEN_DIR}/qplacemanager_wrapper.cpp
${QtLocation_GEN_DIR}/qplaceuser_wrapper.cpp
${QtLocation_GEN_DIR}/qgeocodingmanager_wrapper.cpp
${QtLocation_GEN_DIR}/qgeocodingmanagerengine_wrapper.cpp
${QtLocation_GEN_DIR}/qgeorouterequest_wrapper.cpp
${QtLocation_GEN_DIR}/qgeoroutingmanager_wrapper.cpp
${QtLocation_GEN_DIR}/qgeoroutingmanagerengine_wrapper.cpp
${QtLocation_GEN_DIR}/qgeoserviceproviderfactory_wrapper.cpp
${QtLocation_GEN_DIR}/qplaceattribute_wrapper.cpp
${QtLocation_GEN_DIR}/qplacecategory_wrapper.cpp
${QtLocation_GEN_DIR}/qplacecontactdetail_wrapper.cpp
${QtLocation_GEN_DIR}/qplacecontent_wrapper.cpp
${QtLocation_GEN_DIR}/qplacecontentrequest_wrapper.cpp
${QtLocation_GEN_DIR}/qplacemanagerengine_wrapper.cpp
${QtLocation_GEN_DIR}/qplacematchreply_wrapper.cpp
${QtLocation_GEN_DIR}/qplacematchrequest_wrapper.cpp
${QtLocation_GEN_DIR}/qplaceproposedsearchresult_wrapper.cpp
${QtLocation_GEN_DIR}/qplaceratings_wrapper.cpp
${QtLocation_GEN_DIR}/qplacereply_wrapper.cpp
${QtLocation_GEN_DIR}/qplaceresult_wrapper.cpp
${QtLocation_GEN_DIR}/qplacesearchreply_wrapper.cpp
${QtLocation_GEN_DIR}/qplacesearchrequest_wrapper.cpp
${QtLocation_GEN_DIR}/qplacesearchresult_wrapper.cpp
${QtLocation_GEN_DIR}/qplacesearchsuggestionreply_wrapper.cpp
${QtLocation_GEN_DIR}/qplacesupplier_wrapper.cpp
# module is always needed
${QtLocation_GEN_DIR}/qtlocation_module_wrapper.cpp
)


set(QtLocation_include_dirs ${QtLocation_SOURCE_DIR}
                            ${QtLocation_BINARY_DIR}
                            ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS}
                            ${Qt${QT_MAJOR_VERSION}Location_INCLUDE_DIRS}
                            ${libpyside_SOURCE_DIR}
                            ${QtCore_GEN_DIR}
                            ${QtPositioning_GEN_DIR})

set(QtLocation_libraries pyside6
                         ${Qt${QT_MAJOR_VERSION}Location_LIBRARIES})

set(QtLocation_deps QtCore QtPositioning)

create_pyside_module(NAME QtLocation
                     INCLUDE_DIRS QtLocation_include_dirs
                     LIBRARIES QtLocation_libraries
                     DEPS QtLocation_deps
                     TYPESYSTEM_PATH QtLocation_SOURCE_DIR
                     SOURCES QtLocation_SRC
                     DROPPED_ENTRIES QtLocation_DROPPED_ENTRIES)
