102f4aeb0Sopenharmony_ci# Copyright (c) 2021-2023 Huawei Device Co., Ltd.
202f4aeb0Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
302f4aeb0Sopenharmony_ci# you may not use this file except in compliance with the License.
402f4aeb0Sopenharmony_ci# You may obtain a copy of the License at
502f4aeb0Sopenharmony_ci#
602f4aeb0Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
702f4aeb0Sopenharmony_ci#
802f4aeb0Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
902f4aeb0Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
1002f4aeb0Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1102f4aeb0Sopenharmony_ci# See the License for the specific language governing permissions and
1202f4aeb0Sopenharmony_ci# limitations under the License.
1302f4aeb0Sopenharmony_ci
1402f4aeb0Sopenharmony_ciimport("//build/ohos.gni")
1502f4aeb0Sopenharmony_ci
1602f4aeb0Sopenharmony_ciconfig("libEGL_public_config") {
1702f4aeb0Sopenharmony_ci  include_dirs = [ "api" ]
1802f4aeb0Sopenharmony_ci  defines = [ "ENABLE_EGL" ]
1902f4aeb0Sopenharmony_ci  if (current_os == "ohos") {
2002f4aeb0Sopenharmony_ci    defines += [ "OHOS_PLATFORM" ]
2102f4aeb0Sopenharmony_ci  }
2202f4aeb0Sopenharmony_ci}
2302f4aeb0Sopenharmony_ci
2402f4aeb0Sopenharmony_ciohos_static_library("libEGL") {
2502f4aeb0Sopenharmony_ci  public_configs = [ ":libEGL_public_config" ]
2602f4aeb0Sopenharmony_ci}
27