OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 | 8 |
9 config("sdk") { | 9 config("sdk") { |
10 if (sysroot != "") { | 10 if (sysroot != "") { |
11 cflags = [ "--sysroot=" + sysroot ] | 11 cflags = [ "--sysroot=" + sysroot ] |
12 ldflags = [ "--sysroot=" + sysroot ] | 12 ldflags = [ "--sysroot=" + sysroot ] |
13 | 13 |
14 # Need to get some linker flags out of the sysroot. | 14 # Need to get some linker flags out of the sysroot. |
15 ldflags += [ exec_script("../linux/sysroot_ld_path.py", | 15 ldflags += [ exec_script("../linux/sysroot_ld_path.py", |
16 [ | 16 [ |
17 rebase_path("//build/linux/sysroot_ld_path.sh", | 17 rebase_path("//build/linux/sysroot_ld_path.sh", |
18 root_build_dir), | 18 root_build_dir), |
19 sysroot, | 19 sysroot, |
20 ], | 20 ], |
21 "value") ] | 21 "value") ] |
22 } | 22 } |
23 | 23 |
24 defines = [ "FNL_MUSL" ] | 24 defines = [ "FNL_MUSL" ] |
25 | 25 |
26 if (use_ozone) { | 26 if (use_ozone) { |
27 defines += [ "MESA_EGL_NO_X11_HEADERS" ] | 27 defines += [ "MESA_EGL_NO_X11_HEADERS" ] |
28 } | 28 } |
29 } | 29 } |
30 | |
31 config("freetype2") { | |
32 include_dirs = [ "$sysroot/usr/include/freetype2" ] | |
33 libs = [ "freetype" ] | |
34 } | |
OLD | NEW |