Edit

kc3-lang/angle/gni

Branch :

  • Show log

    Commit

  • Author : Jamie Madill
    Date : 2017-10-21 22:19:40
    Hash : 6d94f064
    Message : Add more complete NULL driver for the GL back-end. This implements a NULL driver in OpenGL by stubbing out most of the GL functions in FunctionsGL except a few static "Gets" that are needed for initialization with Chromium and the tests. It is intended to be used for performance testing ONLY and will not have correct behaviour. It also adds a define to enable conditionally excluding the null entry points for implementations that wish to save on a bit of binary size. Also fixes some of the typedefs in functionsgl_typesdefs.h that were turned up after implementing the direct assignment from NULL stub entry point, generated from gl.xml, to the function pointer with type defined from functionsgl_typedefs.h. BUG=angleproject:2188 Change-Id: Ifa1e4739cb471ab6b52a4bf24c16d9eb4b334ac5 Reviewed-on: https://chromium-review.googlesource.com/727530 Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by: Geoff Lang <geofflang@chromium.org>

  • angle.gni
  • # Copyright 2015 The Chromium Authors. All rights reserved.
    # Use of this source code is governed by a BSD-style license that can be
    # found in the LICENSE file.
    
    import("//build_overrides/build.gni")
    import("//build/config/ui.gni")  # import the use_x11 variable
    
    if (build_with_chromium) {
      angle_root = "//third_party/angle"
    
      import("//ui/ozone/ozone.gni")
    } else {
      angle_root = "//"
    
      declare_args() {
        ozone_platform_gbm = false
      }
    }
    
    angle_enable_d3d9 = false
    angle_enable_d3d11 = false
    angle_enable_gl = false
    angle_enable_gl_null = false
    angle_enable_vulkan = false
    angle_enable_null = true
    
    if (is_win) {
      angle_enable_d3d9 = true
      angle_enable_d3d11 = true
      angle_enable_gl = true
      angle_enable_gl_null = true
      angle_enable_vulkan = true
    
      import("//build/config/win/visual_studio_version.gni")
    } else if (is_linux && use_x11 && !is_chromeos) {
      angle_enable_gl = true
      angle_enable_gl_null = true
      angle_enable_vulkan = true
    } else if (is_mac || ozone_platform_gbm) {
      angle_enable_gl = true
      angle_enable_gl_null = true
    } else if (is_android) {
      angle_enable_gl = true
      angle_enable_gl_null = true
    }
    
    angle_enable_essl = true
    angle_enable_glsl = true
    angle_enable_hlsl = false
    
    if (angle_enable_d3d9 || angle_enable_d3d11) {
      angle_enable_hlsl = true
    }