Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2381)

Unified Diff: build/linux/BUILD.gn

Issue 1945893002: Split generated libraries out of //build/linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « .gn ('k') | build/linux/libbrlapi/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/linux/BUILD.gn
diff --git a/build/linux/BUILD.gn b/build/linux/BUILD.gn
index a44c117e85f37ec42285ba3b64d321c873d67975..c81172e427fbf77f68ca33f400b0d359e8942646 100644
--- a/build/linux/BUILD.gn
+++ b/build/linux/BUILD.gn
@@ -4,29 +4,12 @@
import("//build/config/features.gni")
import("//build/config/linux/pkg_config.gni")
-import("//tools/generate_library_loader/generate_library_loader.gni")
-
-gypi_values = exec_script("//build/gypi_to_gn.py",
- [ rebase_path("system.gyp") ],
- "scope",
- [ "system.gyp" ])
# If brlapi isn't needed, don't require it to be installed.
if (use_brlapi) {
- config("brlapi_config") {
- defines = [ "USE_BRLAPI" ]
- }
-
- # TODO(GYP) linux_link_brlapi support. Is this needed?
- generate_library_loader("libbrlapi") {
- name = "LibBrlapiLoader"
- output_h = "libbrlapi.h"
- output_cc = "libbrlapi_loader.cc"
- header = "<brlapi.h>"
- config = ":brlapi_config"
-
- functions = gypi_values.libbrlapi_functions
- }
+ deps = [
+ "//build/linux/libbrlapi",
+ ]
}
if (use_gio) {
pkg_config("gio_config") {
@@ -53,57 +36,13 @@ if (use_gio) {
#ignore_libs = true # Loader generated below.
}
- # This generates a target named "gio".
- generate_library_loader("gio") {
- name = "LibGioLoader"
- output_h = "libgio.h"
- output_cc = "libgio_loader.cc"
- header = "<gio/gio.h>"
- config = "//build/linux:gio_config"
-
- functions = gypi_values.libgio_functions
- }
-}
-
-# This generates a target named "libpci".
-generate_library_loader("libpci") {
- name = "LibPciLoader"
- output_h = "libpci.h"
- output_cc = "libpci_loader.cc"
- header = "<pci/pci.h>"
-
- functions = gypi_values.libpci_functions
+ deps = [
+ "//build/linux/libgio",
+ ]
}
# Looking for libspeechd? Use //third_party/speech-dispatcher
-# This generates a target named "udev0_loader".
-generate_library_loader("udev0_loader") {
- name = "LibUdev0Loader"
- output_h = "libudev0.h"
- output_cc = "libudev0_loader.cc"
- header = "\"third_party/libudev/libudev0.h\""
-
- functions = gypi_values.libudev_functions
-}
-
-# This generates a target named "udev1_loader".
-generate_library_loader("udev1_loader") {
- name = "LibUdev1Loader"
- output_h = "libudev1.h"
- output_cc = "libudev1_loader.cc"
- header = "\"third_party/libudev/libudev1.h\""
-
- functions = gypi_values.libudev_functions
-}
-
-group("udev") {
- public_deps = [
- ":udev0_loader",
- ":udev1_loader",
- ]
-}
-
group("fontconfig") {
if (is_chromecast) {
# Chromecast platform does not provide fontconfig
« no previous file with comments | « .gn ('k') | build/linux/libbrlapi/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698