summaryrefslogtreecommitdiffstats
path: root/third_party/libwebrtc/build/config/linux/atspi2/BUILD.gn
blob: 988a9956813617456ee1945de8e857d43543e411 (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
# Copyright 2018 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/config/linux/pkg_config.gni")
import("//build/config/ui.gni")

# These packages should _only_ be expected when building for a target.
assert(current_toolchain == default_toolchain)

if (use_atk) {
  pkg_config("atspi2") {
    packages = [ "atspi-2" ]
    atspi_version = exec_script(pkg_config_script,
                                pkg_config_args + [
                                      "atspi-2",
                                      "--version-as-components",
                                    ],
                                "value")
    atspi_major_version = atspi_version[0]
    atspi_minor_version = atspi_version[1]
    atspi_micro_version = atspi_version[2]
    defines = [
      "ATSPI_MAJOR_VERSION=$atspi_major_version",
      "ATSPI_MINOR_VERSION=$atspi_minor_version",
      "ATSPI_MICRO_VERSION=$atspi_micro_version",
    ]
  }
}