diff --git a/BUILD.gn b/BUILD.gn index 90808a840df5adf404ab7065954e9353522070b2..9bcda8673b844a031b7503c2854a3acaef17dfc9 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") {