132a6e48fSopenharmony_ci# Copyright (c) 2024 Huawei Device Co., Ltd.
232a6e48fSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
332a6e48fSopenharmony_ci# you may not use this file except in compliance with the License.
432a6e48fSopenharmony_ci# You may obtain a copy of the License at
532a6e48fSopenharmony_ci#
632a6e48fSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
732a6e48fSopenharmony_ci#
832a6e48fSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
932a6e48fSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
1032a6e48fSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1132a6e48fSopenharmony_ci# See the License for the specific language governing permissions and
1232a6e48fSopenharmony_ci# limitations under the License.
1332a6e48fSopenharmony_ci
1432a6e48fSopenharmony_ciimport("//build/ohos.gni")
1532a6e48fSopenharmony_ci
1632a6e48fSopenharmony_ci## Build frame_report.a {{{
1732a6e48fSopenharmony_ciconfig("frame_report_config") {
1832a6e48fSopenharmony_ci  visibility = [ ":*" ]
1932a6e48fSopenharmony_ci
2032a6e48fSopenharmony_ci  cflags = [
2132a6e48fSopenharmony_ci    "-Wall",
2232a6e48fSopenharmony_ci    "-Werror",
2332a6e48fSopenharmony_ci    "-g3",
2432a6e48fSopenharmony_ci  ]
2532a6e48fSopenharmony_ci}
2632a6e48fSopenharmony_ci
2732a6e48fSopenharmony_ciconfig("frame_report_public_config") {
2832a6e48fSopenharmony_ci  include_dirs = [ "export" ]
2932a6e48fSopenharmony_ci}
3032a6e48fSopenharmony_ci
3132a6e48fSopenharmony_ciohos_static_library("frame_report") {
3232a6e48fSopenharmony_ci  sources = [ "src/frame_report.cpp" ]
3332a6e48fSopenharmony_ci  configs = [ ":frame_report_config" ]
3432a6e48fSopenharmony_ci
3532a6e48fSopenharmony_ci  public_configs = [ ":frame_report_public_config" ]
3632a6e48fSopenharmony_ci
3732a6e48fSopenharmony_ci  external_deps = [
3832a6e48fSopenharmony_ci    "bounds_checking_function:libsec_shared",
3932a6e48fSopenharmony_ci    "hilog:libhilog",
4032a6e48fSopenharmony_ci    "init:libbeget_proxy",
4132a6e48fSopenharmony_ci    "init:libbegetutil",
4232a6e48fSopenharmony_ci  ]
4332a6e48fSopenharmony_ci
4432a6e48fSopenharmony_ci  defines = []
4532a6e48fSopenharmony_ci
4632a6e48fSopenharmony_ci  if (defined(global_parts_info) &&
4732a6e48fSopenharmony_ci      defined(global_parts_info.hdf_drivers_interface_hwsched)) {
4832a6e48fSopenharmony_ci    defines += [ "AI_SCHED_ENABLE" ]
4932a6e48fSopenharmony_ci  }
5032a6e48fSopenharmony_ci
5132a6e48fSopenharmony_ci  subsystem_name = "graphic"
5232a6e48fSopenharmony_ci  part_name = "graphic_surface"
5332a6e48fSopenharmony_ci}
5432a6e48fSopenharmony_ci## Build frame_report.a }}}
55