Commit 7bf0c867 by Jamie Madill

Fix GN build for libEGL.

Our build in GN differed slightly from our gyp build, causing the linker to complain about inconsistent linkage. Also remove some stray definitions of EGLAPI from our headers. Change-Id: I5d3a09ccb0cec528ead33944ce0996cceed32d86 Reviewed-on: https://chromium-review.googlesource.com/210821Tested-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org>
parent 58c55c13
......@@ -199,6 +199,12 @@ if (is_win) {
shared_library("libEGL") {
sources = rebase_path(egl_gypi.angle_libegl_sources, ".", "src")
defines = [
"GL_APICALL=",
"GL_GLEXT_PROTOTYPES=",
"EGLAPI=",
]
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [
":internal_config",
......@@ -206,7 +212,7 @@ if (is_win) {
]
if (is_debug) {
defines = [ "ANGLE_ENABLE_PERF" ]
defines += [ "ANGLE_ENABLE_PERF" ]
}
include_dirs = [ "src/libGLESv2" ]
......
......@@ -11,7 +11,6 @@
#ifndef INCLUDE_CONFIG_H_
#define INCLUDE_CONFIG_H_
#define EGLAPI
#include <EGL/egl.h>
#include <set>
......
......@@ -11,7 +11,6 @@
#ifndef LIBEGL_SURFACE_H_
#define LIBEGL_SURFACE_H_
#define EGLAPI
#include <EGL/egl.h>
#include "common/angleutils.h"
......@@ -105,7 +104,7 @@ private:
EGLint mSwapInterval;
EGLint mPostSubBufferSupported;
EGLint mFixedSize;
bool mSwapIntervalDirty;
gl::Texture2D *mTexture;
};
......
......@@ -9,7 +9,6 @@
#ifndef LIBEGL_MAIN_H_
#define LIBEGL_MAIN_H_
#define EGLAPI
#include <EGL/egl.h>
#include <EGL/eglext.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment