| 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/linux/pkg_config.gni") | 5 import("//build/config/linux/pkg_config.gni") |
| 6 import("//build/config/sysroot.gni") | 6 import("//build/config/sysroot.gni") |
| 7 | 7 |
| 8 config("sdk") { | 8 config("sdk") { |
| 9 if (sysroot != "") { | 9 if (sysroot != "") { |
| 10 cflags = [ "--sysroot=" + sysroot ] | 10 cflags = [ "--sysroot=" + sysroot ] |
| 11 ldflags = [ "--sysroot=" + sysroot ] | 11 ldflags = [ "--sysroot=" + sysroot ] |
| 12 | 12 |
| 13 # Need to get some linker flags out of the sysroot. | 13 # Need to get some linker flags out of the sysroot. |
| 14 ldflags += [ exec_script("sysroot_ld_path.py", | 14 ldflags += [ exec_script("sysroot_ld_path.py", |
| 15 [ rebase_path("//build/linux/sysroot_ld_path.sh", root_build_dir), | 15 [ rebase_path("//build/linux/sysroot_ld_path.sh", root_build_dir), |
| 16 sysroot ], | 16 sysroot ], |
| 17 "value") ] | 17 "value") ] |
| 18 } | 18 } |
| 19 } | 19 } |
| 20 | 20 |
| 21 # Sets up the dynamic library search path to include our "lib" directory. | |
| 22 config("executable_ldconfig") { | |
| 23 ldflags = [ | |
| 24 # Want to pass "\$". Need to escape both '\' and '$'. GN will re-escape as | |
| 25 # required for ninja. | |
| 26 "-Wl,-rpath=\\\$ORIGIN/lib/", | |
| 27 | |
| 28 "-Wl,-rpath-link=lib/", | |
| 29 ] | |
| 30 } | |
| 31 | |
| 32 pkg_config("dridrm") { | 21 pkg_config("dridrm") { |
| 33 packages = [ "libdrm" ] | 22 packages = [ "libdrm" ] |
| 34 } | 23 } |
| 35 | 24 |
| 36 config("fontconfig") { | 25 config("fontconfig") { |
| 37 libs = [ "fontconfig" ] | 26 libs = [ "fontconfig" ] |
| 38 } | 27 } |
| 39 | 28 |
| 40 pkg_config("freetype2") { | 29 pkg_config("freetype2") { |
| 41 packages = [ "freetype2" ] | 30 packages = [ "freetype2" ] |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 "g_settings_get_strv", | 107 "g_settings_get_strv", |
| 119 "g_settings_list_schemas", | 108 "g_settings_list_schemas", |
| 120 ] | 109 ] |
| 121 } | 110 } |
| 122 | 111 |
| 123 source_set("gio") { | 112 source_set("gio") { |
| 124 direct_dependent_configs = [ ":gio_config" ] | 113 direct_dependent_configs = [ ":gio_config" ] |
| 125 sources = [ gio_output_h, gio_output_cc ] | 114 sources = [ gio_output_h, gio_output_cc ] |
| 126 deps = [ ":make_gio_headers" ] | 115 deps = [ ":make_gio_headers" ] |
| 127 } | 116 } |
| OLD | NEW |