1*89a0ef05SAndroid Build Coastguard Worker# 2*89a0ef05SAndroid Build Coastguard Worker# Copyright (C) 2024 The Android Open Source Project 3*89a0ef05SAndroid Build Coastguard Worker# 4*89a0ef05SAndroid Build Coastguard Worker# Licensed under the Apache License, Version 2.0 (the "License"); you may not 5*89a0ef05SAndroid Build Coastguard Worker# use this file except in compliance with the License. You may obtain a copy of 6*89a0ef05SAndroid Build Coastguard Worker# the License at 7*89a0ef05SAndroid Build Coastguard Worker# 8*89a0ef05SAndroid Build Coastguard Worker# http://www.apache.org/licenses/LICENSE-2.0 9*89a0ef05SAndroid Build Coastguard Worker# 10*89a0ef05SAndroid Build Coastguard Worker# Unless required by applicable law or agreed to in writing, software 11*89a0ef05SAndroid Build Coastguard Worker# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12*89a0ef05SAndroid Build Coastguard Worker# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13*89a0ef05SAndroid Build Coastguard Worker# License for the specific language governing permissions and limitations under 14*89a0ef05SAndroid Build Coastguard Worker# the License. 15*89a0ef05SAndroid Build Coastguard Worker# 16*89a0ef05SAndroid Build Coastguard Worker 17*89a0ef05SAndroid Build Coastguard Worker# 18*89a0ef05SAndroid Build Coastguard Worker# Finds the EGL library. This module defines: 19*89a0ef05SAndroid Build Coastguard Worker# 20*89a0ef05SAndroid Build Coastguard Worker# EGL_FOUND - True if EGL library is found, False otherwise 21*89a0ef05SAndroid Build Coastguard Worker# EGL_LIBRARIES - EGL library 22*89a0ef05SAndroid Build Coastguard Worker# EGL_INCLUDE_DIRS - Include dir 23*89a0ef05SAndroid Build Coastguard Worker# 24*89a0ef05SAndroid Build Coastguard Worker 25*89a0ef05SAndroid Build Coastguard Workerfind_path(EGL_INCLUDE_DIRS EGL/egl.h) 26*89a0ef05SAndroid Build Coastguard Worker 27*89a0ef05SAndroid Build Coastguard Workerfind_library(EGL_LIBRARIES NAMES EGL libEGL) 28*89a0ef05SAndroid Build Coastguard Worker 29*89a0ef05SAndroid Build Coastguard Workerinclude(FindPackageHandleStandardArgs) 30*89a0ef05SAndroid Build Coastguard Workerfind_package_handle_standard_args(EGL DEFAULT_MSG EGL_INCLUDE_DIRS EGL_LIBRARIES) 31*89a0ef05SAndroid Build Coastguard Worker 32*89a0ef05SAndroid Build Coastguard Workermark_as_advanced(EGL_INCLUDE_DIRS EGL_LIBRARIES) 33