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/features.gni") | 6 import("//build/config/features.gni") |
7 import("//build/config/sysroot.gni") | 7 import("//build/config/sysroot.gni") |
8 import("//build/config/ui.gni") | 8 import("//build/config/ui.gni") |
9 import("//tools/generate_library_loader/generate_library_loader.gni") | 9 import("//tools/generate_library_loader/generate_library_loader.gni") |
10 | 10 |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 ] | 173 ] |
174 | 174 |
175 # TODO(brettw) Theoretically I think ignore_libs should be set so that we | 175 # TODO(brettw) Theoretically I think ignore_libs should be set so that we |
176 # don't link directly to GIO and use the loader generated below. But the gio | 176 # don't link directly to GIO and use the loader generated below. But the gio |
177 # target in GYP doesn't make any sense to me and appears to link directly to | 177 # target in GYP doesn't make any sense to me and appears to link directly to |
178 # GIO in addition to making a loader. This this uncommented, the link in | 178 # GIO in addition to making a loader. This this uncommented, the link in |
179 # component build fails, so I think this is closer to the GYP build. | 179 # component build fails, so I think this is closer to the GYP build. |
180 #ignore_libs = true # Loader generated below. | 180 #ignore_libs = true # Loader generated below. |
181 } | 181 } |
182 | 182 |
183 if (is_desktop_linux) { | 183 # This generates a target named "gio". |
184 # This generates a target named "gio". | 184 generate_library_loader("gio") { |
185 generate_library_loader("gio") { | 185 name = "LibGioLoader" |
186 name = "LibGioLoader" | 186 output_h = "libgio.h" |
187 output_h = "libgio.h" | 187 output_cc = "libgio_loader.cc" |
188 output_cc = "libgio_loader.cc" | 188 header = "<gio/gio.h>" |
189 header = "<gio/gio.h>" | 189 config = ":gio_config" |
190 config = ":gio_config" | |
191 | 190 |
192 functions = gypi_values.libgio_functions | 191 functions = gypi_values.libgio_functions |
193 } | |
194 } | 192 } |
195 | 193 |
196 # This generates a target named "libpci". | 194 # This generates a target named "libpci". |
197 generate_library_loader("libpci") { | 195 generate_library_loader("libpci") { |
198 name = "LibPciLoader" | 196 name = "LibPciLoader" |
199 output_h = "libpci.h" | 197 output_h = "libpci.h" |
200 output_cc = "libpci_loader.cc" | 198 output_cc = "libpci_loader.cc" |
201 header = "<pci/pci.h>" | 199 header = "<pci/pci.h>" |
202 | 200 |
203 functions = gypi_values.libpci_functions | 201 functions = gypi_values.libpci_functions |
(...skipping 20 matching lines...) Expand all Loading... |
224 | 222 |
225 functions = gypi_values.libudev_functions | 223 functions = gypi_values.libudev_functions |
226 } | 224 } |
227 | 225 |
228 group("udev") { | 226 group("udev") { |
229 deps = [ | 227 deps = [ |
230 ":udev0_loader", | 228 ":udev0_loader", |
231 ":udev1_loader", | 229 ":udev1_loader", |
232 ] | 230 ] |
233 } | 231 } |
OLD | NEW |