From 210ca0abcf14447dcc89d337241c9bf6b825d828 Mon Sep 17 00:00:00 2001 From: xingyanan Date: Wed, 23 Feb 2022 19:57:53 +0800 Subject: [PATCH] =?UTF-8?q?wms=E4=B8=8E=E4=BA=A7=E5=93=81=E8=A7=A3?= =?UTF-8?q?=E8=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: xingyanan Change-Id: Ica061aeaa0920c37f945b37465252ca2be108e98 Signed-off-by: xingyanan --- wmserver/BUILD.gn | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/wmserver/BUILD.gn b/wmserver/BUILD.gn index 86758ba4..a4c060c2 100644 --- a/wmserver/BUILD.gn +++ b/wmserver/BUILD.gn @@ -12,6 +12,7 @@ # limitations under the License. import("//build/ohos.gni") +import("//foundation/graphic/standard/graphic_config.gni") ## Build libwms.so config("libwms_config") { @@ -28,14 +29,10 @@ config("libwms_config") { "//foundation/windowmanager/dm/include", "//foundation/windowmanager/dmserver/include", ] + defines = [] - if ("${product_name}" == "rk3566" || "${product_name}" == "rk3568" || - "${product_name}" == "Hi3516DV300" || "${product_name}" == "ohos-arm64" || - "${product_name}" == "watchos") { - defines = [ "ACE_DISABLE_GL" ] - } else { - defines = [ "ACE_ENABLE_GL" ] - } + # Get gpu defines + defines += gpu_defines } ohos_prebuilt_etc("window_divider_image") {