1# Copyright 2016 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/chromeos/ui_mode.gni") 6import("//build/config/features.gni") 7import("//build/config/linux/pkg_config.gni") 8import("//build/config/ui.gni") 9 10# CrOS doesn't install GTK or any gnome packages. 11assert(!is_chromeos) 12 13# These packages should _only_ be expected when building for a target. 14assert(current_toolchain == default_toolchain) 15 16if (use_atk) { 17 assert(use_glib, "use_atk=true requires that use_glib=true") 18} 19 20pkg_config("atk") { 21 packages = [ 22 "atk", 23 "atk-bridge-2.0", 24 ] 25 atk_lib_dir = exec_script(pkg_config_script, 26 common_pkg_config_args + pkg_config_args + [ 27 "--libdir", 28 "atk", 29 ], 30 "string") 31 defines = [ 32 "ATK_LIB_DIR=\"$atk_lib_dir\"", 33 "USE_ATK_BRIDGE", 34 ] 35} 36