skia2/third_party/angle2/BUILD.gn

149 lines
3.7 KiB
Plaintext
Raw Normal View History

# Copyright 2016 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
declare_args() {
}
angle_root = "../externals/angle2"
import("$angle_root/src/compiler.gni")
import("$angle_root/src/libGLESv2.gni")
import("../third_party.gni")
third_party("angle2") {
public_include_dirs = [ "$angle_root/include" ]
deps = [
":libEGL",
":libGLESv2",
]
}
config("common") {
defines = [
"ANGLE_ENABLE_ESSL",
"ANGLE_ENABLE_GLSL",
"ANGLE_ENABLE_HLSL",
"ANGLE_ENABLE_OPENGL",
"EGL_EGLEXT_PROTOTYPES",
"GL_GLEXT_PROTOTYPES",
]
include_dirs = [
"$root_gen_dir/angle2",
"$angle_root/include",
"$angle_root/src",
"$angle_root/src/common/third_party/base",
"$angle_root/src/third_party/khronos",
]
cflags_cc = []
assert(is_linux || is_win) # TODO: is_mac?
if (is_linux) {
defines += [
"ANGLE_USE_X11",
"GL_APICALL=__attribute__((visibility(\"default\")))",
"GL_API=__attribute__((visibility(\"default\")))",
"EGLAPI=__attribute__((visibility(\"default\")))",
]
cflags_cc += [ "-std=c++14" ]
} else if (is_win) {
defines += [
"ANGLE_ENABLE_D3D11",
"ANGLE_ENABLE_D3D9",
"GL_APICALL=",
"GL_API=",
"EGLAPI=",
]
# Allow noexcept, even though we build without exceptions
cflags_cc += [ "/wd4577" ]
if (is_clang) {
cflags_cc += [
# utilities.cpp includes an 'unsigned long' <= UINT_MAX check
"-Wno-tautological-constant-compare",
# With distributed Windows builds, files may lose their case during copy, causing
# case-sensitivity mismatch on remote machines.
"-Wno-nonportable-include-path",
]
}
}
}
copy("commit_id") {
sources = [
"$angle_root/src/commit.h",
]
outputs = [
"$root_gen_dir/angle2/id/commit.h",
]
}
shared_library("libGLESv2") {
configs += [ ":common" ]
configs -= [ "//gn:warnings" ]
defines = [
"LIBANGLE_IMPLEMENTATION",
"LIBGLESV2_IMPLEMENTATION",
]
deps = [
":commit_id",
]
libs = []
Roll third_party/externals/angle2 1ebe6014389e..1dbbc7b3e232 (5 commits) Add FrameCapture.cpp to third_party/angle2/BUILD.gn to mirror "Capture/Replay: Fix capture-enabled libs build." https://chromium.googlesource.com/angle/angle.git/+log/1ebe6014389e..1dbbc7b3e232 git log 1ebe6014389e..1dbbc7b3e232 --date=short --no-merges --format='%ad %ae %s' 2019-07-31 ynovikov@chromium.org Skip couple TextureBorderClampIntegerTestES3 tests. 2019-07-31 jmadill@chromium.org Capture/Replay: Fix capture-enabled libs build. 2019-07-31 lujc@google.com Vulkan: Optimize memory allocation offset rounding 2019-07-31 angle-autoroll@skia-public.iam.gserviceaccount.com Roll ./third_party/glslang/src f04f1f93a70f..eea340047eca (1 commits) 2019-07-31 xinghua.cao@intel.com Correct barriers of glMemoryBarrier in test cases Created with: gclient setdep -r third_party/externals/angle2@1dbbc7b3e232 The AutoRoll server is located here: https://autoroll.skia.org/r/angle-skia-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/master/autoroll/README.md If the roll is causing failures, please contact the current sheriff, who should be CC'd on the roll, and stop the roller if necessary. CQ_INCLUDE_TRYBOTS=skia.primary:Build-Debian9-Clang-x86_64-Release-ANGLE;skia.primary:Test-Win10-Clang-AlphaR2-GPU-RadeonR9M470X-x86_64-Debug-All-ANGLE;skia.primary:Test-Win10-Clang-Golo-GPU-QuadroP400-x86_64-Debug-All-ANGLE;skia.primary:Test-Win10-Clang-NUC5i7RYH-GPU-IntelIris6100-x86_64-Debug-All-ANGLE;skia.primary:Test-Win10-Clang-NUC6i5SYK-GPU-IntelIris540-x86_64-Debug-All-ANGLE;skia.primary:Test-Win10-Clang-NUC8i5BEK-GPU-IntelIris655-x86_64-Debug-All-ANGLE;skia.primary:Test-Win10-Clang-NUCD34010WYKH-GPU-IntelHD4400-x86_64-Debug-All-ANGLE Bug: None TBR=benjaminwagner@google.com Change-Id: I3fb7d3a2df08c89d2b63babe002756d05567b14c Reviewed-on: https://skia-review.googlesource.com/c/skia/+/231396 Commit-Queue: Ben Wagner aka dogben <benjaminwagner@google.com> Reviewed-by: Ben Wagner aka dogben <benjaminwagner@google.com> Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2019-08-01 04:01:19 +00:00
sources =
rebase_path(
angle_preprocessor_sources + angle_translator_sources +
angle_translator_essl_sources + angle_translator_glsl_sources +
angle_translator_hlsl_sources + libangle_sources +
Roll third_party/externals/angle2 2328d65ab30d..5549ef0451f9 (8 commits) *** Manual roll including a build fix *** https://chromium.googlesource.com/angle/angle.git/+log/2328d65ab30d..5549ef0451f9 git log 2328d65ab30d..5549ef0451f9 --date=short --no-merges --format='%ad %ae %s' 2019-10-04 m.maiya@samsung.com Vulkan: Fix content synchronization for textures bound to images 2019-10-03 timvp@google.com Trigger a flush() when the command graph contains too many objects 2019-10-03 jmadill@chromium.org Re-land "GN: Componentize vulkan back-end build." 2019-10-03 geofflang@chromium.org GL: Refactor BlitGL program types into tuples of enums. 2019-10-03 timvp@google.com Only enable shader array size restrictions for HLSL 2019-10-03 jonahr@google.com Keep state up to date after bindBufferBase/Range 2019-10-03 shrekshao@google.com Fix redundant draw in DrawBaseVertexBaseInstanceTest 2019-10-03 m.maiya@samsung.com Vulkan: Disable OES_vertex_type_10_10_10_2 on GLES 2.0 Created with: gclient setdep -r third_party/externals/angle2@5549ef0451f9 If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/angle-skia-autoroll Please CC rmistry@google.com on the revert to ensure that a human is aware of the problem. To report a problem with the AutoRoller itself, please file a bug: https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/master/autoroll/README.md CQ_INCLUDE_TRYBOTS=skia.primary:Build-Debian9-Clang-x86_64-Release-ANGLE;skia.primary:Test-Win10-Clang-AlphaR2-GPU-RadeonR9M470X-x86_64-Debug-All-ANGLE;skia.primary:Test-Win10-Clang-Golo-GPU-QuadroP400-x86_64-Debug-All-ANGLE;skia.primary:Test-Win10-Clang-NUC5i7RYH-GPU-IntelIris6100-x86_64-Debug-All-ANGLE;skia.primary:Test-Win10-Clang-NUC6i5SYK-GPU-IntelIris540-x86_64-Debug-All-ANGLE;skia.primary:Test-Win10-Clang-NUC8i5BEK-GPU-IntelIris655-x86_64-Debug-All-ANGLE;skia.primary:Test-Win10-Clang-NUCD34010WYKH-GPU-IntelHD4400-x86_64-Debug-All-ANGLE Bug: None TBR=rmistry@google.com Change-Id: Id9513b82fb29cb0500ed0708f0a6fe70dd3dee30 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/246596 Reviewed-by: Brian Osman <brianosman@google.com> Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Brian Osman <brianosman@google.com> Auto-Submit: Brian Osman <brianosman@google.com>
2019-10-04 20:41:59 +00:00
libangle_headers + libangle_common_sources +
libangle_image_util_sources + libglesv2_sources +
libangle_gl_sources + angle_system_utils_sources + xxhash_sources,
".",
Roll third_party/externals/angle2 6c4ff5ddab07..8be7a4c7f738 (12 commits) *** Manual roll with build fix for new FrameCapture setup *** https://chromium.googlesource.com/angle/angle.git/+log/6c4ff5ddab07..8be7a4c7f738 git log 6c4ff5ddab07..8be7a4c7f738 --date=short --no-merges --format='%ad %ae %s' 2019-09-21 jmadill@chromium.org Re-land "Vulkan: SwiftShader integration." 2019-09-21 jmadill@chromium.org Capture/Replay: Encapsulate cpp replay. 2019-09-21 jmadill@chromium.org Reland "Refactor built-in symbol table." 2019-09-21 zmo@chromium.org Revert "Refactor built-in symbol table." 2019-09-21 jmadill@chromium.org Capture/Replay: Move stub implementation to new file. 2019-09-20 ianelliott@google.com Vulkan: Enable most dEQP-GLES31.functional.state_query* tests to run 2019-09-20 geofflang@chromium.org GL: Treat unknown AHardwareBuffer formats as RGBA8. 2019-09-20 jmadill@chromium.org Refactor built-in symbol table. 2019-09-20 aukinros@microsoft.com Add support for generating UWP (Windows Store) projects again 2019-09-20 jmadill@chromium.org Vulkan: Track resource usage via counter. 2019-09-20 jmadill@chromium.org Vulkan: Pass CommandGraph when updating serials. 2019-09-20 angle-autoroll@skia-public.iam.gserviceaccount.com Roll ./third_party/glslang/src caca1d1cc46e..f7a48b153f2a (1 commits) Created with: gclient setdep -r third_party/externals/angle2@8be7a4c7f738 If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/angle-skia-autoroll Please CC bungeman@google.com on the revert to ensure that a human is aware of the problem. To report a problem with the AutoRoller itself, please file a bug: https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/master/autoroll/README.md CQ_INCLUDE_TRYBOTS=skia.primary:Build-Debian9-Clang-x86_64-Release-ANGLE;skia.primary:Test-Win10-Clang-AlphaR2-GPU-RadeonR9M470X-x86_64-Debug-All-ANGLE;skia.primary:Test-Win10-Clang-Golo-GPU-QuadroP400-x86_64-Debug-All-ANGLE;skia.primary:Test-Win10-Clang-NUC5i7RYH-GPU-IntelIris6100-x86_64-Debug-All-ANGLE;skia.primary:Test-Win10-Clang-NUC6i5SYK-GPU-IntelIris540-x86_64-Debug-All-ANGLE;skia.primary:Test-Win10-Clang-NUC8i5BEK-GPU-IntelIris655-x86_64-Debug-All-ANGLE;skia.primary:Test-Win10-Clang-NUCD34010WYKH-GPU-IntelHD4400-x86_64-Debug-All-ANGLE Bug: None TBR=bungeman@google.com Change-Id: I8560c827bdf3694dc373dcf6c06220bdaafd6924 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/243197 Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: Brian Osman <brianosman@google.com>
2019-09-23 13:29:10 +00:00
angle_root) + [ "$angle_root/src/libANGLE/FrameCapture_mock.cpp" ]
Roll third_party/externals/angle2/ 5d2ccc534..a00ef3144 (10 commits) Manual roll including GN fixes https://chromium.googlesource.com/angle/angle.git/+log/5d2ccc534d26..a00ef3144f70 $ git log 5d2ccc534..a00ef3144 --date=short --no-merges --format='%ad %ae %s' 2018-05-14 geofflang Add more dEQP EGL expectations for Linux and Android. 2018-05-14 geofflang Add more dEQP EGL expectations for Linux and Android. 2018-05-14 cwallez DisplayGLX: Close the X display if we own it. 2018-05-14 geofflang Add more dEQP EGL expectations for Linux and Android. 2018-05-14 geofflang DEQP: Print not supported messages from tests. 2018-05-14 geofflang Add dEQP EGL test expectations for Linux and Android. 2018-05-10 jmadill Vulkan: Implement masked color clear with depth. 2018-05-14 jmadill Fix libGLESv2 wrong .def file. 2018-05-14 jmadill Fix warnings from size_t conversions. 2018-04-23 lfy GLES1: Renderer (minimal) CQ_INCLUDE_TRYBOTS=skia.primary:Build-Debian9-Clang-x86_64-Release-ANGLE;skia.primary:Perf-Win10-Clang-AlphaR2-GPU-RadeonR9M470X-x86_64-Debug-All-ANGLE;skia.primary:Perf-Win10-Clang-NUC5i7RYH-GPU-IntelIris6100-x86_64-Debug-All-ANGLE;skia.primary:Perf-Win10-Clang-NUC6i5SYK-GPU-IntelIris540-x86_64-Debug-All-ANGLE;skia.primary:Perf-Win10-Clang-NUCD34010WYKH-GPU-IntelHD4400-x86_64-Debug-All-ANGLE;skia.primary:Perf-Win10-Clang-ShuttleC-GPU-GTX960-x86_64-Debug-All-ANGLE;skia.primary:Test-Win10-Clang-AlphaR2-GPU-RadeonR9M470X-x86_64-Debug-All-ANGLE;skia.primary:Test-Win10-Clang-NUC6i5SYK-GPU-IntelIris540-x86_64-Debug-All-ANGLE;skia.primary:Test-Win10-Clang-NUCD34010WYKH-GPU-IntelHD4400-x86_64-Debug-All-ANGLE;skia.primary:Test-Win10-Clang-ShuttleC-GPU-GTX960-x86_64-Debug-All-ANGLE TBR=herb@google.com Change-Id: I0ed2b9c8824b7833a4a0234204cb849805717daa Reviewed-on: https://skia-review.googlesource.com/128322 Reviewed-by: Brian Osman <brianosman@google.com> Reviewed-by: Mike Klein <mtklein@chromium.org> Commit-Queue: Brian Osman <brianosman@google.com> Commit-Queue: Mike Klein <mtklein@chromium.org>
2018-05-15 14:43:08 +00:00
if (is_win) {
sources += [ "$angle_root/src/libGLESv2/libGLESv2_autogen.def" ]
}
if (is_linux) {
libs += [
"X11",
"Xi",
"Xext",
]
sources += rebase_path(libangle_gl_glx_sources, ".", angle_root) +
[ "$angle_root/src/third_party/libXNVCtrl/NVCtrl.c" ]
} else if (is_win) {
defines += [
# TODO: ANGLE_PRELOADED_D3DCOMPILER_MODULE_NAMES
]
sources +=
rebase_path(libangle_gl_wgl_sources + libangle_d3d_shared_sources +
libangle_d3d9_sources + libangle_d3d11_sources +
libangle_d3d11_win32_sources,
".",
angle_root)
libs += [
"d3d9.lib",
Roll third_party/externals/angle2 8e7d9d6c2326..5d9c4ee328bc (9 commits) *** Manual roll including build fix: Add DXGI.lib to ANGLE link *** https://chromium.googlesource.com/angle/angle.git/+log/8e7d9d6c2326..5d9c4ee328bc git log 8e7d9d6c2326..5d9c4ee328bc --date=short --no-merges --format='%ad %ae %s' 2019-10-10 nazabris@microsoft.com Add D3D11on12 device option 2019-10-10 jmadill@chromium.org Fix a warning with VS2019. 2019-10-09 jmadill@chromium.org Roll Chromium DEPS (October 2019). 2019-10-09 jmadill@chromium.org Vulkan: Get rid of "TextureVkViews". 2019-10-09 geofflang@chromium.org Partially Revert "Convert DXT1 RGB data to DXT3 RGBA when uploading to the GPU." 2019-10-09 cnorthrop@google.com Vulkan: Fix off by one when flushing staged texture updates 2019-10-09 geofflang@chromium.org Make sure all extension strings start with GL_ 2019-10-09 jmadill@chromium.org Add ANGLE Platform Metal extension. 2019-10-09 geofflang@chromium.org GL: Skip buffer validation for transform feedback buffers. Created with: gclient setdep -r third_party/externals/angle2@5d9c4ee328bc If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/angle-skia-autoroll Please CC kjlubick@google.com on the revert to ensure that a human is aware of the problem. To report a problem with the AutoRoller itself, please file a bug: https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/master/autoroll/README.md CQ_INCLUDE_TRYBOTS=skia.primary:Build-Debian9-Clang-x86_64-Release-ANGLE;skia.primary:Test-Win10-Clang-AlphaR2-GPU-RadeonR9M470X-x86_64-Debug-All-ANGLE;skia.primary:Test-Win10-Clang-Golo-GPU-QuadroP400-x86_64-Debug-All-ANGLE;skia.primary:Test-Win10-Clang-NUC5i7RYH-GPU-IntelIris6100-x86_64-Debug-All-ANGLE;skia.primary:Test-Win10-Clang-NUC6i5SYK-GPU-IntelIris540-x86_64-Debug-All-ANGLE;skia.primary:Test-Win10-Clang-NUC8i5BEK-GPU-IntelIris655-x86_64-Debug-All-ANGLE;skia.primary:Test-Win10-Clang-NUCD34010WYKH-GPU-IntelHD4400-x86_64-Debug-All-ANGLE Bug: None Change-Id: Id3ee424e6215443643d8b9690b28b7fcddea0968 TBR=kjlubick@google.com Reviewed-on: https://skia-review.googlesource.com/c/skia/+/247638 Reviewed-by: Brian Osman <brianosman@google.com> Reviewed-by: Kevin Lubick <kjlubick@google.com> Commit-Queue: Brian Osman <brianosman@google.com> Auto-Submit: Brian Osman <brianosman@google.com>
2019-10-10 12:43:25 +00:00
"dxgi.lib",
"dxguid.lib",
"gdi32.lib",
"user32.lib",
]
deps += [
# TODO: copy_compiler_dll?
]
}
}
shared_library("libEGL") {
configs += [ ":common" ]
configs -= [ "//gn:warnings" ]
defines = [ "LIBEGL_IMPLEMENTATION" ]
deps = [
":libGLESv2",
]
sources = rebase_path(libegl_sources, ".", angle_root)
Roll third_party/externals/angle2/ 5d2ccc534..a00ef3144 (10 commits) Manual roll including GN fixes https://chromium.googlesource.com/angle/angle.git/+log/5d2ccc534d26..a00ef3144f70 $ git log 5d2ccc534..a00ef3144 --date=short --no-merges --format='%ad %ae %s' 2018-05-14 geofflang Add more dEQP EGL expectations for Linux and Android. 2018-05-14 geofflang Add more dEQP EGL expectations for Linux and Android. 2018-05-14 cwallez DisplayGLX: Close the X display if we own it. 2018-05-14 geofflang Add more dEQP EGL expectations for Linux and Android. 2018-05-14 geofflang DEQP: Print not supported messages from tests. 2018-05-14 geofflang Add dEQP EGL test expectations for Linux and Android. 2018-05-10 jmadill Vulkan: Implement masked color clear with depth. 2018-05-14 jmadill Fix libGLESv2 wrong .def file. 2018-05-14 jmadill Fix warnings from size_t conversions. 2018-04-23 lfy GLES1: Renderer (minimal) CQ_INCLUDE_TRYBOTS=skia.primary:Build-Debian9-Clang-x86_64-Release-ANGLE;skia.primary:Perf-Win10-Clang-AlphaR2-GPU-RadeonR9M470X-x86_64-Debug-All-ANGLE;skia.primary:Perf-Win10-Clang-NUC5i7RYH-GPU-IntelIris6100-x86_64-Debug-All-ANGLE;skia.primary:Perf-Win10-Clang-NUC6i5SYK-GPU-IntelIris540-x86_64-Debug-All-ANGLE;skia.primary:Perf-Win10-Clang-NUCD34010WYKH-GPU-IntelHD4400-x86_64-Debug-All-ANGLE;skia.primary:Perf-Win10-Clang-ShuttleC-GPU-GTX960-x86_64-Debug-All-ANGLE;skia.primary:Test-Win10-Clang-AlphaR2-GPU-RadeonR9M470X-x86_64-Debug-All-ANGLE;skia.primary:Test-Win10-Clang-NUC6i5SYK-GPU-IntelIris540-x86_64-Debug-All-ANGLE;skia.primary:Test-Win10-Clang-NUCD34010WYKH-GPU-IntelHD4400-x86_64-Debug-All-ANGLE;skia.primary:Test-Win10-Clang-ShuttleC-GPU-GTX960-x86_64-Debug-All-ANGLE TBR=herb@google.com Change-Id: I0ed2b9c8824b7833a4a0234204cb849805717daa Reviewed-on: https://skia-review.googlesource.com/128322 Reviewed-by: Brian Osman <brianosman@google.com> Reviewed-by: Mike Klein <mtklein@chromium.org> Commit-Queue: Brian Osman <brianosman@google.com> Commit-Queue: Mike Klein <mtklein@chromium.org>
2018-05-15 14:43:08 +00:00
if (is_win) {
sources += [ "$angle_root/src/libEGL/libEGL.def" ]
}
}