From b6f520ecd019b6f049e4d011076f312a9038185e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E8=94=9A?= Date: Fri, 17 Feb 2023 03:58:55 +0000 Subject: [PATCH] fixed 8d793ed from https://gitee.com/aslklw/third_party_egl/pulls/12 fix cross platform MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 李蔚 --- 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