1# Copyright 2018 The Chromium Authors 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5import("//build/config/linux/pkg_config.gni") 6import("//build/config/ui.gni") 7 8# These packages should _only_ be expected when building for a target. 9assert(current_toolchain == default_toolchain) 10 11if (use_atk) { 12 pkg_config("atspi2") { 13 packages = [ "atspi-2" ] 14 atspi_version = exec_script(pkg_config_script, 15 common_pkg_config_args + pkg_config_args + [ 16 "atspi-2", 17 "--version-as-components", 18 ], 19 "value") 20 atspi_major_version = atspi_version[0] 21 atspi_minor_version = atspi_version[1] 22 atspi_micro_version = atspi_version[2] 23 defines = [ 24 "ATSPI_MAJOR_VERSION=$atspi_major_version", 25 "ATSPI_MINOR_VERSION=$atspi_minor_version", 26 "ATSPI_MICRO_VERSION=$atspi_micro_version", 27 ] 28 } 29} 30