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

Side by Side Diff: build/config/linux/BUILD.gn

Issue 1841863002: Update monet. (Closed) Base URL: https://github.com/domokit/monet.git@master
Patch Set: Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « build/config/ios/ios_sdk.py ('k') | build/config/linux/pkg-config.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 # found in the LICENSE file.
4
5 import("//build/config/features.gni")
6 import("//build/config/sysroot.gni")
7 import("//build/config/ui.gni")
8 import("//tools/generate_library_loader/generate_library_loader.gni")
9
10 config("sdk") {
11 if (sysroot != "") {
12 cflags = [ "--sysroot=" + sysroot ]
13 ldflags = [ "--sysroot=" + sysroot ]
14
15 # Need to get some linker flags out of the sysroot.
16 ldflags += [ exec_script("sysroot_ld_path.py",
17 [
18 rebase_path("//build/linux/sysroot_ld_path.sh",
19 root_build_dir),
20 sysroot,
21 ],
22 "value") ]
23 }
24 }
25
26 config("x11") {
27 libs = [
28 "X11",
29 "Xi",
30 ]
31 }
32
33 config("xcomposite") {
34 libs = [ "Xcomposite" ]
35 }
36
37 config("xext") {
38 libs = [ "Xext" ]
39 }
40
41 config("libcap") {
42 libs = [ "cap" ]
43 }
44
45 config("libresolv") {
46 libs = [ "resolv" ]
47 }
48
49 # This generates a target named "libpci".
50 generate_library_loader("libpci") {
51 name = "LibPciLoader"
52 output_h = "libpci.h"
53 output_cc = "libpci_loader.cc"
54 header = "<pci/pci.h>"
55
56 functions = [
57 "pci_alloc",
58 "pci_init",
59 "pci_cleanup",
60 "pci_scan_bus",
61 "pci_fill_info",
62 "pci_lookup_name",
63 ]
64 }
65
66 libudev_functions = [
67 "udev_device_get_action",
68 "udev_device_get_devnode",
69 "udev_device_get_parent",
70 "udev_device_get_parent_with_subsystem_devtype",
71 "udev_device_get_property_value",
72 "udev_device_get_subsystem",
73 "udev_device_get_sysattr_value",
74 "udev_device_get_sysname",
75 "udev_device_get_syspath",
76 "udev_device_new_from_devnum",
77 "udev_device_new_from_subsystem_sysname",
78 "udev_device_new_from_syspath",
79 "udev_device_unref",
80 "udev_enumerate_add_match_subsystem",
81 "udev_enumerate_get_list_entry",
82 "udev_enumerate_new",
83 "udev_enumerate_scan_devices",
84 "udev_enumerate_unref",
85 "udev_list_entry_get_next",
86 "udev_list_entry_get_name",
87 "udev_monitor_enable_receiving",
88 "udev_monitor_filter_add_match_subsystem_devtype",
89 "udev_monitor_get_fd",
90 "udev_monitor_new_from_netlink",
91 "udev_monitor_receive_device",
92 "udev_monitor_unref",
93 "udev_new",
94 "udev_set_log_fn",
95 "udev_set_log_priority",
96 "udev_unref",
97 ]
98
99 # This generates a target named "udev0_loader".
100 generate_library_loader("udev0_loader") {
101 name = "LibUdev0Loader"
102 output_h = "libudev0.h"
103 output_cc = "libudev0_loader.cc"
104 header = "\"third_party/libudev/libudev0.h\""
105
106 functions = libudev_functions
107 }
108
109 # This generates a target named "udev1_loader".
110 generate_library_loader("udev1_loader") {
111 name = "LibUdev1Loader"
112 output_h = "libudev1.h"
113 output_cc = "libudev1_loader.cc"
114 header = "\"third_party/libudev/libudev1.h\""
115
116 functions = libudev_functions
117 }
118
119 group("udev") {
120 deps = [
121 ":udev0_loader",
122 ":udev1_loader",
123 ]
124 }
OLDNEW
« no previous file with comments | « build/config/ios/ios_sdk.py ('k') | build/config/linux/pkg-config.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698