Chromium Code Reviews| 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/crypto.gni") | |
| 5 import("//build/config/linux/pkg_config.gni") | 6 import("//build/config/linux/pkg_config.gni") |
| 6 import("//build/config/sysroot.gni") | 7 import("//build/config/sysroot.gni") |
| 7 | 8 |
| 8 config("sdk") { | 9 config("sdk") { |
| 9 if (sysroot != "") { | 10 if (sysroot != "") { |
| 10 cflags = [ "--sysroot=" + sysroot ] | 11 cflags = [ "--sysroot=" + sysroot ] |
| 11 ldflags = [ "--sysroot=" + sysroot ] | 12 ldflags = [ "--sysroot=" + sysroot ] |
| 12 | 13 |
| 13 # Need to get some linker flags out of the sysroot. | 14 # Need to get some linker flags out of the sysroot. |
| 14 ldflags += [ exec_script("sysroot_ld_path.py", | 15 ldflags += [ exec_script("sysroot_ld_path.py", |
| (...skipping 30 matching lines...) Expand all Loading... | |
| 45 } | 46 } |
| 46 | 47 |
| 47 pkg_config("udev") { | 48 pkg_config("udev") { |
| 48 packages = [ "libudev" ] | 49 packages = [ "libudev" ] |
| 49 } | 50 } |
| 50 | 51 |
| 51 pkg_config("dbus") { | 52 pkg_config("dbus") { |
| 52 packages = [ "dbus-1" ] | 53 packages = [ "dbus-1" ] |
| 53 } | 54 } |
| 54 | 55 |
| 56 config("no_openssl_config") { | |
| 57 # TODO(kjellander): Find out how to convert GYP include_dirs+ (i.e. insert | |
| 58 # first in the include path?). | |
| 59 include_dirs = [ "//net/third_party/nss/ssl" ] | |
| 60 | |
| 61 configs = [ "//third_party/nss:system_nss_no_ssl_config" ] | |
| 62 } | |
| 63 | |
| 64 config("ssl") { | |
| 65 if (use_openssl) { | |
| 66 deps = [ "//third_party/openssl" ] | |
| 67 } else { | |
| 68 deps = [ "//net/third_party/nss/ssl:libssl" ] | |
|
brettw
2014/06/11 16:58:35
The rule is that stuff in src/build can't depend o
kjellander_chromium
2014/06/11 19:22:04
OK, I'll duplicate this in WebRTC for now. I don't
| |
| 69 | |
| 70 direct_dependent_configs = [ | |
| 71 ":ssl_include_config", | |
| 72 ] | |
| 73 | |
| 74 if (is_clang) { | |
| 75 cflags += [ | |
| 76 # There is a broken header guard in /usr/include/nss/secmod.h: | |
| 77 # https://bugzilla.mozilla.org/show_bug.cgi?id=884072 | |
| 78 "-Wno-header-guard", | |
| 79 ] | |
| 80 } | |
| 81 } | |
| 82 } | |
| 83 | |
| 55 config("x11") { | 84 config("x11") { |
| 56 # Don't bother running pkg-config for these X related libraries since it just | 85 # Don't bother running pkg-config for these X related libraries since it just |
| 57 # returns the same libs, and forking pkg-config is slow. | 86 # returns the same libs, and forking pkg-config is slow. |
| 58 libs = [ | 87 libs = [ |
| 59 "X11", | 88 "X11", |
| 60 "Xcomposite", | 89 "Xcomposite", |
| 61 "Xcursor", | 90 "Xcursor", |
| 62 "Xdamage", | 91 "Xdamage", |
| 63 "Xext", | 92 "Xext", |
| 64 "Xfixes", | 93 "Xfixes", |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 180 | 209 |
| 181 functions = [ | 210 functions = [ |
| 182 "pci_alloc", | 211 "pci_alloc", |
| 183 "pci_init", | 212 "pci_init", |
| 184 "pci_cleanup", | 213 "pci_cleanup", |
| 185 "pci_scan_bus", | 214 "pci_scan_bus", |
| 186 "pci_fill_info", | 215 "pci_fill_info", |
| 187 "pci_lookup_name", | 216 "pci_lookup_name", |
| 188 ] | 217 ] |
| 189 } | 218 } |
| OLD | NEW |