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") {