summaryrefslogtreecommitdiff
path: root/chromium/third_party/libovr/BUILD.gn
blob: ad3e214d4974abd2298f2cae4f64d5183704ec26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Copyright 2017 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.

config("libovr-config") {
  if (is_clang) {
    cflags = [ "-Wno-unused-function" ]
  }
}

static_library("libovr") {
  include_dirs = [ "src/Include" ]
  sources = [
    "src/Include/Extras/OVR_CAPI_Util.h",
    "src/Include/Extras/OVR_Math.h",
    "src/Include/Extras/OVR_StereoProjection.h",
    "src/Include/OVR_CAPI.h",
    "src/Include/OVR_CAPI_D3D.h",
    "src/Include/OVR_CAPI_GL.h",
    "src/Include/OVR_CAPI_Keys.h",
    "src/Include/OVR_CAPI_Vk.h",
    "src/Include/OVR_ErrorCode.h",
    "src/Include/OVR_Version.h",
    "src/OVR_CAPIShim.c",
    "src/OVR_CAPI_Prototypes.h",
    "src/OVR_CAPI_Util.cpp",
    "src/OVR_StereoProjection.cpp",
  ]

  configs += [ ":libovr-config" ]
}