| 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 # This generates a target named "gio". | 183 if (is_desktop_linux) { |
| 184 generate_library_loader("gio") { | 184 # This generates a target named "gio". |
| 185 name = "LibGioLoader" | 185 generate_library_loader("gio") { |
| 186 output_h = "libgio.h" | 186 name = "LibGioLoader" |
| 187 output_cc = "libgio_loader.cc" | 187 output_h = "libgio.h" |
| 188 header = "<gio/gio.h>" | 188 output_cc = "libgio_loader.cc" |
| 189 config = ":gio_config" | 189 header = "<gio/gio.h>" |
| 190 config = ":gio_config" |
| 190 | 191 |
| 191 functions = gypi_values.libgio_functions | 192 functions = gypi_values.libgio_functions |
| 193 } |
| 192 } | 194 } |
| 193 | 195 |
| 194 # This generates a target named "libpci". | 196 # This generates a target named "libpci". |
| 195 generate_library_loader("libpci") { | 197 generate_library_loader("libpci") { |
| 196 name = "LibPciLoader" | 198 name = "LibPciLoader" |
| 197 output_h = "libpci.h" | 199 output_h = "libpci.h" |
| 198 output_cc = "libpci_loader.cc" | 200 output_cc = "libpci_loader.cc" |
| 199 header = "<pci/pci.h>" | 201 header = "<pci/pci.h>" |
| 200 | 202 |
| 201 functions = gypi_values.libpci_functions | 203 functions = gypi_values.libpci_functions |
| (...skipping 20 matching lines...) Expand all Loading... |
| 222 | 224 |
| 223 functions = gypi_values.libudev_functions | 225 functions = gypi_values.libudev_functions |
| 224 } | 226 } |
| 225 | 227 |
| 226 group("udev") { | 228 group("udev") { |
| 227 deps = [ | 229 deps = [ |
| 228 ":udev0_loader", | 230 ":udev0_loader", |
| 229 ":udev1_loader", | 231 ":udev1_loader", |
| 230 ] | 232 ] |
| 231 } | 233 } |
| OLD | NEW |