graphic_graphic_2d/graphic_config.gni
linyiyu 6bfc004c36 IssueNo:#I4S1FV
Description:solve watchos product bug
Sig:OTHERS
Feature or Bgfix:Bgfix
Binary Source: No

Signed-off-by: linyiyu <linyiyu1219@126.com>
2022-01-25 14:37:18 +08:00

34 lines
1.2 KiB
Plaintext

# Copyright (c) 2021 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import("//build/config/clang/clang.gni")
import("//build/ohos.gni")
import("//build/ohos_var.gni")
if ("${product_name}" == "rk3566" || "${product_name}" == "rk3568" ||
"${product_name}" == "watchos" || "${product_name}" == "Hi3516DV300" ||
"${product_name}" == "ohos-arm64" ||
"${product_name}" == "qemu-arm-linux-min") {
gpu_defines = [ "ACE_DISABLE_GL" ]
ace_enable_gpu = false # temporary gpu
} else {
gpu_defines = [ "ACE_ENABLE_GL" ]
ace_enable_gpu = true
}
if (ace_enable_gpu) {
libgl = [ "//device/hisilicon/hardware/gpu:gpu_libs" ]
} else {
libgl = []
}