Commit 6beb0bfd by Corentin Wallez

Add loadable_module versions of libEGL and libGLESv2.

In order to implement the --use-gl=angle Chrome flag on Linux, we need to have the ANGLE .so directly in the build directory however GYP places shared_libraries under lib/ on Linux. On the contrary loadable_modules cannot be linked against so we need to keep the shared_library targets. This commit adds _ANGLE versions of the libEGL and libGLESv2 targets as loadable module that depend on their respective shared library. BUG=522967 Change-Id: I08f2ce0ee0430eff5bee852f09cd7d30b94d6266 Reviewed-on: https://chromium-review.googlesource.com/316421Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Tested-by: 's avatarCorentin Wallez <cwallez@chromium.org> Tryjob-Request: Corentin Wallez <cwallez@chromium.org> Reviewed-by: 's avatarKenneth Russell <kbr@chromium.org>
parent cb34ea5e
......@@ -338,6 +338,12 @@ shared_library("libGLESv2") {
]
}
shared_library("libGLESv2_ANGLE") {
deps = [
":libGLESv2"
]
}
shared_library("libEGL") {
sources = rebase_path(gles_gypi.libegl_sources, ".", "src")
......@@ -365,6 +371,12 @@ shared_library("libEGL") {
]
}
shared_library("libEGL_ANGLE") {
deps = [
":libEGL"
]
}
util_gypi = exec_script(
"//build/gypi_to_gn.py",
[ rebase_path("util/util.gyp") ],
......
......@@ -5,6 +5,10 @@
{
# Everything below this is duplicated in the GN build. If you change
# anything also change angle/BUILD.gn
'variables':
{
'angle_standalone%': 0,
},
'targets':
[
{
......@@ -37,4 +41,21 @@
],
},
],
'conditions':
[
['angle_standalone==0',
{
'targets':
[
{
'target_name': 'libEGL_ANGLE',
'type': 'loadable_module',
'dependencies':
[
'libEGL',
],
},
],
}],
],
}
......@@ -5,6 +5,8 @@
{
'variables':
{
'angle_standalone%': 0,
# These file lists are shared with the GN build.
'libangle_common_sources':
[
......@@ -818,4 +820,21 @@
],
},
],
'conditions':
[
['angle_standalone==0',
{
'targets':
[
{
'target_name': 'libGLESv2_ANGLE',
'type': 'loadable_module',
'dependencies':
[
'libGLESv2',
],
},
],
}],
],
}
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