mirror of
https://gitee.com/openharmony/graphic_graphic_2d
synced 2024-12-21 14:20:46 +00:00
6bfc004c36
Description:solve watchos product bug Sig:OTHERS Feature or Bgfix:Bgfix Binary Source: No Signed-off-by: linyiyu <linyiyu1219@126.com>
34 lines
1.2 KiB
Plaintext
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 = []
|
|
}
|