| OLD | NEW |
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
| 6 import("//build/config/sysroot.gni") | 6 import("//build/config/sysroot.gni") |
| 7 import("//build/config/ui.gni") | 7 import("//build/config/ui.gni") |
| 8 import("//tools/generate_library_loader/generate_library_loader.gni") | 8 import("//tools/generate_library_loader/generate_library_loader.gni") |
| 9 | 9 |
| 10 config("sdk") { | 10 config("sdk") { |
| 11 if (sysroot != "") { | 11 if (sysroot != "") { |
| 12 cflags = [ "--sysroot=" + sysroot ] | 12 cflags = [ "--sysroot=" + sysroot ] |
| 13 ldflags = [ "--sysroot=" + sysroot ] | 13 ldflags = [ "--sysroot=" + sysroot ] |
| 14 | 14 |
| 15 # Need to get some linker flags out of the sysroot. | 15 # Need to get some linker flags out of the sysroot. |
| 16 ldflags += [ exec_script("sysroot_ld_path.py", | 16 ldflags += [ exec_script("sysroot_ld_path.py", |
| 17 [ | 17 [ |
| 18 rebase_path("//build/linux/sysroot_ld_path.sh", | 18 rebase_path("//build/linux/sysroot_ld_path.sh", |
| 19 root_build_dir), | 19 root_build_dir), |
| 20 sysroot, | 20 sysroot, |
| 21 ], | 21 ], |
| 22 "value") ] | 22 "value") ] |
| 23 } | 23 } |
| 24 | |
| 25 # Set here because OS_CHROMEOS cannot be autodetected in build_config.h like | |
| 26 # OS_LINUX and the like. | |
| 27 if (is_chromeos) { | |
| 28 defines = [ "OS_CHROMEOS" ] | |
| 29 } | |
| 30 } | 24 } |
| 31 | 25 |
| 32 config("x11") { | 26 config("x11") { |
| 33 libs = [ | 27 libs = [ |
| 34 "X11", | 28 "X11", |
| 35 "Xi", | 29 "Xi", |
| 36 ] | 30 ] |
| 37 } | 31 } |
| 38 | 32 |
| 39 config("xcomposite") { | 33 config("xcomposite") { |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 | 115 |
| 122 functions = libudev_functions | 116 functions = libudev_functions |
| 123 } | 117 } |
| 124 | 118 |
| 125 group("udev") { | 119 group("udev") { |
| 126 deps = [ | 120 deps = [ |
| 127 ":udev0_loader", | 121 ":udev0_loader", |
| 128 ":udev1_loader", | 122 ":udev1_loader", |
| 129 ] | 123 ] |
| 130 } | 124 } |
| OLD | NEW |