From a602a0e0cdfb076050acf44b1718814078a3a0ce Mon Sep 17 00:00:00 2001 From: abbuu Date: Fri, 17 Feb 2023 03:57:49 +0000 Subject: [PATCH] fix cross platform Signed-off-by: abbuu --- BUILD.gn | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index 90808a8..9bcda86 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2021 Huawei Device Co., Ltd. +# Copyright (c) 2021-2023 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 @@ -13,10 +13,10 @@ config("libEGL_public_config") { include_dirs = [ "api" ] - defines = [ - "ENABLE_EGL", - "OHOS_PLATFORM", - ] + defines = [ "ENABLE_EGL" ] + if (current_os == "ohos") { + defines += [ "OHOS_PLATFORM" ] + } } group("libEGL") { -- Gitee