18bf80f4bSopenharmony_ci# Copyright (C) 2023 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_ci
148bf80f4bSopenharmony_ciimport("//build/test.gni")
158bf80f4bSopenharmony_ci
168bf80f4bSopenharmony_ciimport("//build/ohos.gni")
178bf80f4bSopenharmony_ciimport("//foundation/arkui/ace_engine/ace_config.gni")
188bf80f4bSopenharmony_ciimport("//foundation/graphic/graphic_2d/graphic_config.gni")
198bf80f4bSopenharmony_ciimport("//foundation/graphic/graphic_3d/lume/lume_config.gni")
208bf80f4bSopenharmony_ci
218bf80f4bSopenharmony_cimodule_output_path = "graphic_3d/3d_widget_adapter_test"
228bf80f4bSopenharmony_ci
238bf80f4bSopenharmony_ciohos_unittest("3d_widget_adpater_test") {
248bf80f4bSopenharmony_ci  module_out_path = module_output_path
258bf80f4bSopenharmony_ci
268bf80f4bSopenharmony_ci  sources = [ "3d_widget_adapter_test.cpp" ]
278bf80f4bSopenharmony_ci
288bf80f4bSopenharmony_ci  include_dirs = [
298bf80f4bSopenharmony_ci    "${ace_root}",
308bf80f4bSopenharmony_ci    "${ace_root}/frameworks",
318bf80f4bSopenharmony_ci  ]
328bf80f4bSopenharmony_ci
338bf80f4bSopenharmony_ci  deps = [
348bf80f4bSopenharmony_ci    "//foundation/graphic/graphic_3d/3d_widget_adapter:widget_adapter_source",
358bf80f4bSopenharmony_ci  ]
368bf80f4bSopenharmony_ci
378bf80f4bSopenharmony_ci  external_deps = [
388bf80f4bSopenharmony_ci    "ace_engine:libace",
398bf80f4bSopenharmony_ci    "graphic_2d:EGL",
408bf80f4bSopenharmony_ci    "graphic_2d:GLESv3",
418bf80f4bSopenharmony_ci    "hilog:libhilog",
428bf80f4bSopenharmony_ci  ]
438bf80f4bSopenharmony_ci
448bf80f4bSopenharmony_ci  defines = [ "USE_ACE_SKIA" ]
458bf80f4bSopenharmony_ci
468bf80f4bSopenharmony_ci  part_name = "graphic_3d"
478bf80f4bSopenharmony_ci  subsystem_name = "graphic"
488bf80f4bSopenharmony_ci}
498bf80f4bSopenharmony_ci
508bf80f4bSopenharmony_cigroup("unittest") {
518bf80f4bSopenharmony_ci  testonly = true
528bf80f4bSopenharmony_ci
538bf80f4bSopenharmony_ci  deps = [ ":3d_widget_adpater_test" ]
548bf80f4bSopenharmony_ci}
55