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_2d/graphic_config.gni")
158bf80f4bSopenharmony_ciimport("//foundation/graphic/graphic_3d/lume/lume_config.gni")
168bf80f4bSopenharmony_ci
178bf80f4bSopenharmony_ciconfig("lume_3d_plugin_config") {
188bf80f4bSopenharmony_ci  defines = [ "CORE_PLUGIN=1" ]
198bf80f4bSopenharmony_ci}
208bf80f4bSopenharmony_ci
218bf80f4bSopenharmony_ciohos_source_set("lume_3d_plugin_src") {
228bf80f4bSopenharmony_ci  sources = [
238bf80f4bSopenharmony_ci    "../src/plugin/dynamic_plugin.cpp",
248bf80f4bSopenharmony_ci    "../src/plugin/dynamic_registry.cpp",
258bf80f4bSopenharmony_ci    "../src/util/json.cpp",
268bf80f4bSopenharmony_ci  ]
278bf80f4bSopenharmony_ci
288bf80f4bSopenharmony_ci  configs = [
298bf80f4bSopenharmony_ci    ":lume_3d_plugin_config",
308bf80f4bSopenharmony_ci    "${LUME_CORE3D_PATH}:lume_3d_api",
318bf80f4bSopenharmony_ci    "${LUME_CORE_PATH}:lume_default",
328bf80f4bSopenharmony_ci    "${LUME_CORE_PATH}:lume_base_api",
338bf80f4bSopenharmony_ci    "${LUME_CORE_PATH}:lume_engine_api",
348bf80f4bSopenharmony_ci    "${LUME_RENDER_PATH}:lume_render_api",
358bf80f4bSopenharmony_ci  ]
368bf80f4bSopenharmony_ci
378bf80f4bSopenharmony_ci  external_deps = [ "c_utils:utils" ]
388bf80f4bSopenharmony_ci  part_name = "graphic_3d"
398bf80f4bSopenharmony_ci  subsystem_name = "graphic"
408bf80f4bSopenharmony_ci}
418bf80f4bSopenharmony_ci
428bf80f4bSopenharmony_ciohos_shared_library(LIB_CORE3D) {
438bf80f4bSopenharmony_ci  public_deps = [
448bf80f4bSopenharmony_ci    ":lume_3d_plugin_src",
458bf80f4bSopenharmony_ci    "${LUME_CORE3D_PATH}:libAGP3D",
468bf80f4bSopenharmony_ci    "${LUME_CORE_PATH}:lume_component_help_src",
478bf80f4bSopenharmony_ci  ]
488bf80f4bSopenharmony_ci
498bf80f4bSopenharmony_ci  part_name = "graphic_3d"
508bf80f4bSopenharmony_ci  subsystem_name = "graphic"
518bf80f4bSopenharmony_ci}
52