18bf80f4bSopenharmony_ci# Copyright (c) 2024 Huawei Device Co., Ltd.
28bf80f4bSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
38bf80f4bSopenharmony_ci# you may not use this file except in compliance with the License.
48bf80f4bSopenharmony_ci# You may obtain a copy of the License at
58bf80f4bSopenharmony_ci#
68bf80f4bSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
78bf80f4bSopenharmony_ci#
88bf80f4bSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
98bf80f4bSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
108bf80f4bSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
118bf80f4bSopenharmony_ci# See the License for the specific language governing permissions and
128bf80f4bSopenharmony_ci# limitations under the License.
138bf80f4bSopenharmony_ciimport("//build/ohos.gni")
148bf80f4bSopenharmony_ciimport("//foundation/graphic/graphic_3d/lume/lume_config.gni")
158bf80f4bSopenharmony_ci
168bf80f4bSopenharmony_ciconfig("lume_engine_ecshelper_config") {
178bf80f4bSopenharmony_ci  defines = [ "CORE_PUBLIC=" ]
188bf80f4bSopenharmony_ci  include_dirs = [
198bf80f4bSopenharmony_ci    "${LUME_CORE_PATH}/api",
208bf80f4bSopenharmony_ci    "${LUME_BASE_PATH}/api",
218bf80f4bSopenharmony_ci    "${LUME_CORE_PATH}/ecshelper",
228bf80f4bSopenharmony_ci  ]
238bf80f4bSopenharmony_ci}
248bf80f4bSopenharmony_ci
258bf80f4bSopenharmony_ciohos_source_set("lume_engine_ecshelper") {
268bf80f4bSopenharmony_ci  sources = [
278bf80f4bSopenharmony_ci    "ComponentTools/base_manager.h",
288bf80f4bSopenharmony_ci    "ComponentTools/base_manager.inl",
298bf80f4bSopenharmony_ci    "ComponentTools/component_query.cpp",
308bf80f4bSopenharmony_ci    "ComponentTools/component_query.h",
318bf80f4bSopenharmony_ci    "PropertyTools/core_metadata.inl",
328bf80f4bSopenharmony_ci    "PropertyTools/property_api_impl.h",
338bf80f4bSopenharmony_ci    "PropertyTools/property_api_impl.inl",
348bf80f4bSopenharmony_ci    "PropertyTools/property_data.cpp",
358bf80f4bSopenharmony_ci    "PropertyTools/property_data.h",
368bf80f4bSopenharmony_ci    "PropertyTools/property_macros.h",
378bf80f4bSopenharmony_ci    "PropertyTools/property_value.h",
388bf80f4bSopenharmony_ci  ]
398bf80f4bSopenharmony_ci
408bf80f4bSopenharmony_ci  configs = [
418bf80f4bSopenharmony_ci    "${LUME_CORE_PATH}:lume_default",
428bf80f4bSopenharmony_ci    "${LUME_CORE_PATH}:lume_base_api",
438bf80f4bSopenharmony_ci    ":lume_engine_ecshelper_config",
448bf80f4bSopenharmony_ci  ]
458bf80f4bSopenharmony_ci  part_name = "graphic_3d"
468bf80f4bSopenharmony_ci  subsystem_name = "graphic"
478bf80f4bSopenharmony_ci}
488bf80f4bSopenharmony_ci
498bf80f4bSopenharmony_ciohos_static_library("libAGPEcshelper") {
508bf80f4bSopenharmony_ci  deps = [ ":lume_engine_ecshelper" ]
518bf80f4bSopenharmony_ci
528bf80f4bSopenharmony_ci  part_name = "graphic_3d"
538bf80f4bSopenharmony_ci  subsystem_name = "graphic"
548bf80f4bSopenharmony_ci}
55