1*3f982cf4SFabien Sanglard# Copyright 2018 The Chromium Authors. All rights reserved. 2*3f982cf4SFabien Sanglard# Use of this source code is governed by a BSD-style license that can be 3*3f982cf4SFabien Sanglard# found in the LICENSE file. 4*3f982cf4SFabien Sanglard 5*3f982cf4SFabien Sanglard# This config must be set manually in build targets, but can be used both 6*3f982cf4SFabien Sanglard# in standalone and embedded builds. Setting default_include_dirs doesn't work 7*3f982cf4SFabien Sanglard# in embedded builds, because GN does not allow for multiple BUILDCONFIG.gn 8*3f982cf4SFabien Sanglard# files to be included, or for multiple sets of default configs to be toggled 9*3f982cf4SFabien Sanglard# on a single target type (e.g. source_set, static_library) 10*3f982cf4SFabien Sanglardconfig("openscreen_include_dirs") { 11*3f982cf4SFabien Sanglard openscreen_root = rebase_path("../", "//") 12*3f982cf4SFabien Sanglard 13*3f982cf4SFabien Sanglard defines = [ "OPENSCREEN_TEST_DATA_DIR=\"${openscreen_root}test/data/\"" ] 14*3f982cf4SFabien Sanglard 15*3f982cf4SFabien Sanglard include_dirs = [ 16*3f982cf4SFabien Sanglard "//$openscreen_root", 17*3f982cf4SFabien Sanglard "$root_gen_dir/$openscreen_root", 18*3f982cf4SFabien Sanglard ] 19*3f982cf4SFabien Sanglard} 20