1 # Copyright (c) 2012 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.
7 # If any of the linux_link_FOO below are set to 1, then the corresponding
8 # target will be linked against the FOO library (either dynamically or
9 # statically, depending on the pkg-config files), as opposed to loading the
10 # FOO library dynamically with dlopen.
11 'linux_link_libgps%': 0,
12 'linux_link_libpci%': 0,
13 'linux_link_libspeechd%': 0,
14 'linux_link_libbrlapi%': 0,
16 # Used below for the various libraries. In this scope for sharing with GN.
17 'libbrlapi_functions': [
18 'brlapi_getHandleSize',
19 'brlapi_error_location',
22 'brlapi__openConnection',
23 'brlapi__closeConnection',
24 'brlapi__getDisplaySize',
25 'brlapi__enterTtyModeWithPath',
26 'brlapi__leaveTtyMode',
32 'g_settings_get_child',
33 'g_settings_get_string',
34 'g_settings_get_boolean',
36 'g_settings_get_strv',
37 'g_settings_list_schemas',
47 'libudev_functions': [
48 'udev_device_get_action',
49 'udev_device_get_devnode',
50 'udev_device_get_parent',
51 'udev_device_get_parent_with_subsystem_devtype',
52 'udev_device_get_property_value',
53 'udev_device_get_subsystem',
54 'udev_device_get_sysattr_value',
55 'udev_device_get_sysname',
56 'udev_device_get_syspath',
57 'udev_device_new_from_devnum',
58 'udev_device_new_from_subsystem_sysname',
59 'udev_device_new_from_syspath',
61 'udev_enumerate_add_match_subsystem',
62 'udev_enumerate_get_list_entry',
64 'udev_enumerate_scan_devices',
65 'udev_enumerate_unref',
66 'udev_list_entry_get_next',
67 'udev_list_entry_get_name',
68 'udev_monitor_enable_receiving',
69 'udev_monitor_filter_add_match_subsystem_devtype',
70 'udev_monitor_get_fd',
71 'udev_monitor_new_from_netlink',
72 'udev_monitor_receive_device',
76 'udev_set_log_priority',
81 [ 'chromeos==0 and use_ozone==0', {
82 # Hide GTK and related dependencies for Chrome OS and Ozone, so they won't get
83 # added back to Chrome OS and Ozone. Don't try to use GTK on Chrome OS and Ozone.
89 ['_toolset=="target"', {
90 'direct_dependent_settings': {
92 '<!@(<(pkg-config) --cflags atk)',
95 'ATK_LIB_DIR="<!@(<(pkg-config) --variable=libdir atk)"',
100 '<!@(<(pkg-config) --libs-only-L --libs-only-other atk)',
103 '<!@(<(pkg-config) --libs-only-l atk)',
110 'target_name': 'gdk',
113 ['_toolset=="target"', {
114 'direct_dependent_settings': {
116 '<!@(<(pkg-config) --cflags gdk-2.0)',
121 '<!@(<(pkg-config) --libs-only-L --libs-only-other gdk-2.0)',
124 '<!@(<(pkg-config) --libs-only-l gdk-2.0)',
131 'target_name': 'gtk2',
133 'toolsets': ['host', 'target'],
135 # gtk requires gmodule, but it does not list it as a dependency
136 # in some misconfigured systems.
137 'gtk_packages': 'gmodule-2.0 gtk+-2.0 gthread-2.0',
140 ['_toolset=="target"', {
141 'all_dependent_settings': {
143 '<!@(<(pkg-config) --cflags <(gtk_packages))',
148 '<!@(<(pkg-config) --libs-only-L --libs-only-other <(gtk_packages))',
151 '<!@(<(pkg-config) --libs-only-l <(gtk_packages))',
155 'all_dependent_settings': {
157 '<!@(pkg-config --cflags <(gtk_packages))',
162 '<!@(pkg-config --libs-only-L --libs-only-other <(gtk_packages))',
165 '<!@(pkg-config --libs-only-l <(gtk_packages))',
172 'target_name': 'gtkprint2',
175 ['_toolset=="target"', {
176 'direct_dependent_settings': {
178 '<!@(<(pkg-config) --cflags gtk+-unix-print-2.0)',
183 '<!@(<(pkg-config) --libs-only-L --libs-only-other gtk+-unix-print-2.0)',
186 '<!@(<(pkg-config) --libs-only-l gtk+-unix-print-2.0)',
194 [ 'use_x11==1 or ozone_platform_ozonex==1', {
195 # Hide X11 and related dependencies when use_x11=0
198 'target_name': 'x11',
200 'toolsets': ['host', 'target'],
202 ['_toolset=="target"', {
203 'direct_dependent_settings': {
205 '<!@(<(pkg-config) --cflags x11)',
210 '<!@(<(pkg-config) --libs-only-L --libs-only-other x11 xi)',
213 '<!@(<(pkg-config) --libs-only-l x11 xi)',
217 'direct_dependent_settings': {
219 '<!@(pkg-config --cflags x11)',
224 '<!@(pkg-config --libs-only-L --libs-only-other x11 xi)',
227 '<!@(pkg-config --libs-only-l x11 xi)',
234 'target_name': 'xcursor',
236 'direct_dependent_settings': {
238 '<!@(<(pkg-config) --cflags xcursor)',
243 '<!@(<(pkg-config) --libs-only-L --libs-only-other xcursor)',
246 '<!@(<(pkg-config) --libs-only-l xcursor)',
251 'target_name': 'xcomposite',
253 'direct_dependent_settings': {
255 '<!@(<(pkg-config) --cflags xcomposite)',
260 '<!@(<(pkg-config) --libs-only-L --libs-only-other xcomposite)',
263 '<!@(<(pkg-config) --libs-only-l xcomposite)',
268 'target_name': 'xdamage',
270 'direct_dependent_settings': {
272 '<!@(<(pkg-config) --cflags xdamage)',
277 '<!@(<(pkg-config) --libs-only-L --libs-only-other xdamage)',
280 '<!@(<(pkg-config) --libs-only-l xdamage)',
285 'target_name': 'xext',
287 'direct_dependent_settings': {
289 '<!@(<(pkg-config) --cflags xext)',
294 '<!@(<(pkg-config) --libs-only-L --libs-only-other xext)',
297 '<!@(<(pkg-config) --libs-only-l xext)',
302 'target_name': 'xfixes',
304 'direct_dependent_settings': {
306 '<!@(<(pkg-config) --cflags xfixes)',
311 '<!@(<(pkg-config) --libs-only-L --libs-only-other xfixes)',
314 '<!@(<(pkg-config) --libs-only-l xfixes)',
321 'direct_dependent_settings': {
323 '<!@(<(pkg-config) --cflags xi)',
328 '<!@(<(pkg-config) --libs-only-L --libs-only-other xi)',
331 '<!@(<(pkg-config) --libs-only-l xi)',
336 'target_name': 'xrandr',
338 'toolsets': ['host', 'target'],
340 ['_toolset=="target"', {
341 'direct_dependent_settings': {
343 '<!@(<(pkg-config) --cflags xrandr)',
348 '<!@(<(pkg-config) --libs-only-L --libs-only-other xrandr)',
351 '<!@(<(pkg-config) --libs-only-l xrandr)',
355 'direct_dependent_settings': {
357 '<!@(pkg-config --cflags xrandr)',
362 '<!@(pkg-config --libs-only-L --libs-only-other xrandr)',
365 '<!@(pkg-config --libs-only-l xrandr)',
372 'target_name': 'xrender',
374 'direct_dependent_settings': {
376 '<!@(<(pkg-config) --cflags xrender)',
381 '<!@(<(pkg-config) --libs-only-L --libs-only-other xrender)',
384 '<!@(<(pkg-config) --libs-only-l xrender)',
389 'target_name': 'xtst',
391 'toolsets': ['host', 'target'],
393 ['_toolset=="target"', {
394 'direct_dependent_settings': {
396 '<!@(<(pkg-config) --cflags xtst)',
401 '<!@(<(pkg-config) --libs-only-L --libs-only-other xtst)',
404 '<!@(<(pkg-config) --libs-only-l xtst)',
408 'direct_dependent_settings': {
410 '<!@(pkg-config --cflags xtst)',
415 '<!@(pkg-config --libs-only-L --libs-only-other xtst)',
418 '<!@(pkg-config --libs-only-l xtst)',
427 # Hide GTK3 and related dependencies when use_gtk3==0 because the user
428 # might not have the GTK3 headers yet.
431 'target_name': 'gtk3',
433 'toolsets': ['host', 'target'],
435 # gtk requires gmodule, but it does not list it as a dependency
436 # in some misconfigured systems.
437 'gtk_packages': 'gmodule-2.0 gtk+-3.0 gthread-2.0',
440 ['_toolset=="target"', {
441 'all_dependent_settings': {
443 '<!@(<(pkg-config) --cflags <(gtk_packages))',
448 '<!@(<(pkg-config) --libs-only-L --libs-only-other <(gtk_packages))',
451 '<!@(<(pkg-config) --libs-only-l <(gtk_packages))',
455 'all_dependent_settings': {
457 '<!@(pkg-config --cflags <(gtk_packages))',
462 '<!@(pkg-config --libs-only-L --libs-only-other <(gtk_packages))',
465 '<!@(pkg-config --libs-only-l <(gtk_packages))',
472 'target_name': 'gtkprint3',
475 ['_toolset=="target"', {
476 'direct_dependent_settings': {
478 '<!@(<(pkg-config) --cflags gtk+-unix-print-3.0)',
483 '<!@(<(pkg-config) --libs-only-L --libs-only-other gtk+-unix-print-3.0)',
486 '<!@(<(pkg-config) --libs-only-l gtk+-unix-print-3.0)',
494 ['use_x11==1 and chromeos==0', {
497 'target_name': 'xscrnsaver',
499 'direct_dependent_settings': {
501 '<!@(<(pkg-config) --cflags xscrnsaver)',
506 '<!@(<(pkg-config) --libs-only-L --libs-only-other xscrnsaver)',
509 '<!@(<(pkg-config) --libs-only-l xscrnsaver)',
515 ['use_evdev_gestures==1', {
518 'target_name': 'libevdev-cros',
520 'direct_dependent_settings': {
522 '<!@(<(pkg-config) --cflags libevdev-cros)'
527 '<!@(<(pkg-config) --libs-only-L --libs-only-other libevdev-cros)',
530 '<!@(<(pkg-config) --libs-only-l libevdev-cros)',
535 'target_name': 'libgestures',
537 'direct_dependent_settings': {
539 '<!@(<(pkg-config) --cflags libgestures)'
544 '<!@(<(pkg-config) --libs-only-L --libs-only-other libgestures)',
547 '<!@(<(pkg-config) --libs-only-l libgestures)',
553 ['use_xkbcommon==1', {
556 'target_name': 'xkbcommon',
558 'direct_dependent_settings': {
560 '<!@(<(pkg-config) --cflags xkbcommon)'
565 '<!@(<(pkg-config) --libs-only-L --libs-only-other xkbcommon)',
568 '<!@(<(pkg-config) --libs-only-l xkbcommon)',
574 ['ozone_platform_gbm==1', {
577 'target_name': 'gbm',
579 'direct_dependent_settings': {
581 '<!@(<(pkg-config) --cflags gbm)',
586 '<!@(<(pkg-config) --libs-only-L --libs-only-other gbm)',
589 '<!@(<(pkg-config) --libs-only-l gbm)',
595 ['ozone_platform_drm==1 or ozone_platform_gbm==1', {
598 'target_name': 'libdrm',
600 'direct_dependent_settings': {
602 '<!@(<(pkg-config) --cflags libdrm)',
607 '<!@(<(pkg-config) --libs-only-L --libs-only-other libdrm)',
610 '<!@(<(pkg-config) --libs-only-l libdrm)',
619 'target_name': 'udev',
620 'type': 'static_library',
622 ['_toolset=="target"', {
626 'hard_dependency': 1,
630 'output_h': '<(SHARED_INTERMEDIATE_DIR)/library_loaders/libudev0.h',
631 'output_cc': '<(INTERMEDIATE_DIR)/libudev0_loader.cc',
632 'generator': '../../tools/generate_library_loader/generate_library_loader.py',
634 'action_name': 'generate_libudev0_loader',
644 '--name', 'LibUdev0Loader',
645 '--output-h', '<(output_h)',
646 '--output-cc', '<(output_cc)',
647 '--header', '"third_party/libudev/libudev0.h"',
649 '<@(libudev_functions)',
651 'message': 'Generating libudev0 library loader',
652 'process_outputs_as_sources': 1,
656 'output_h': '<(SHARED_INTERMEDIATE_DIR)/library_loaders/libudev1.h',
657 'output_cc': '<(INTERMEDIATE_DIR)/libudev1_loader.cc',
658 'generator': '../../tools/generate_library_loader/generate_library_loader.py',
660 'action_name': 'generate_libudev1_loader',
670 '--name', 'LibUdev1Loader',
671 '--output-h', '<(output_h)',
672 '--output-cc', '<(output_cc)',
673 '--header', '"third_party/libudev/libudev1.h"',
675 '<@(libudev_functions)',
677 'message': 'Generating libudev1 library loader',
678 'process_outputs_as_sources': 1,
689 'target_name': 'libpci',
690 'type': 'static_library',
692 '<!@(<(pkg-config) --cflags libpci)',
694 'direct_dependent_settings': {
696 '<(SHARED_INTERMEDIATE_DIR)',
699 ['linux_link_libpci==1', {
702 '<!@(<(pkg-config) --libs-only-L --libs-only-other libpci)',
705 '<!@(<(pkg-config) --libs-only-l libpci)',
714 'hard_dependency': 1,
718 'output_h': '<(SHARED_INTERMEDIATE_DIR)/library_loaders/libpci.h',
719 'output_cc': '<(INTERMEDIATE_DIR)/libpci_loader.cc',
720 'generator': '../../tools/generate_library_loader/generate_library_loader.py',
722 'action_name': 'generate_libpci_loader',
732 '--name', 'LibPciLoader',
733 '--output-h', '<(output_h)',
734 '--output-cc', '<(output_cc)',
735 '--header', '<pci/pci.h>',
736 # TODO(phajdan.jr): Report problem to pciutils project
737 # and get it fixed so that we don't need --use-extern-c.
739 '--link-directly=<(linux_link_libpci)',
740 '<@(libpci_functions)',
742 'message': 'Generating libpci library loader',
743 'process_outputs_as_sources': 1,
752 'target_name': 'dbus',
754 'direct_dependent_settings': {
756 '<!@(<(pkg-config) --cflags dbus-1)',
761 '<!@(<(pkg-config) --libs-only-L --libs-only-other dbus-1)',
764 '<!@(<(pkg-config) --libs-only-l dbus-1)',
769 'target_name': 'fontconfig',
772 ['_toolset=="target"', {
774 ['use_system_fontconfig==1', {
775 'direct_dependent_settings': {
777 '<!@(<(pkg-config) --cflags fontconfig)',
782 '<!@(<(pkg-config) --libs-only-L --libs-only-other fontconfig)',
785 '<!@(<(pkg-config) --libs-only-l fontconfig)',
788 }, { # use_system_fontconfig==0
790 '../../third_party/fontconfig/fontconfig.gyp:fontconfig',
792 'export_dependent_settings' : [
793 '../../third_party/fontconfig/fontconfig.gyp:fontconfig',
801 'target_name': 'freetype2',
804 ['_toolset=="target"', {
805 'direct_dependent_settings': {
807 '<!@(<(pkg-config) --cflags freetype2)',
812 '<!@(<(pkg-config) --libs-only-L --libs-only-other freetype2)',
815 '<!@(<(pkg-config) --libs-only-l freetype2)',
822 'target_name': 'gconf',
825 ['use_gconf==1 and _toolset=="target"', {
826 'direct_dependent_settings': {
828 '<!@(<(pkg-config) --cflags gconf-2.0)',
836 '<!@(<(pkg-config) --libs-only-L --libs-only-other gconf-2.0)',
839 '<!@(<(pkg-config) --libs-only-l gconf-2.0)',
846 'target_name': 'gio',
847 'type': 'static_library',
849 ['use_gio==1 and _toolset=="target"', {
851 '<!@(<(pkg-config) --cflags gio-2.0)',
854 'gio_warning_define': [
855 # glib >=2.40 deprecate g_settings_list_schemas in favor of
856 # g_settings_schema_source_list_schemas. This function is not
857 # available on earlier versions that we still need to support
858 # (specifically, 2.32), so disable the warning.
859 # TODO(mgiuca): Remove this suppression (and variable) when we
860 # drop support for Ubuntu 13.10 (saucy) and earlier. Update the
861 # code to use g_settings_schema_source_list_schemas instead.
862 'GLIB_DISABLE_DEPRECATION_WARNINGS',
866 '<(gio_warning_define)',
868 'direct_dependent_settings': {
870 '<!@(<(pkg-config) --cflags gio-2.0)',
874 '<(gio_warning_define)',
877 '<(SHARED_INTERMEDIATE_DIR)',
885 '<!@(<(pkg-config) --libs-only-L --libs-only-other gio-2.0)',
888 '<!@(<(pkg-config) --libs-only-l gio-2.0)',
891 ['linux_link_gsettings==0 and OS=="linux"', {
898 'hard_dependency': 1,
902 'output_h': '<(SHARED_INTERMEDIATE_DIR)/library_loaders/libgio.h',
903 'output_cc': '<(INTERMEDIATE_DIR)/libgio_loader.cc',
904 'generator': '../../tools/generate_library_loader/generate_library_loader.py',
906 'action_name': 'generate_libgio_loader',
916 '--name', 'LibGioLoader',
917 '--output-h', '<(output_h)',
918 '--output-cc', '<(output_cc)',
919 '--header', '<gio/gio.h>',
920 '--link-directly=<(linux_link_gsettings)',
921 '<@(libgio_functions)',
923 'message': 'Generating libgio library loader',
924 'process_outputs_as_sources': 1,
931 'target_name': 'glib',
933 'toolsets': ['host', 'target'],
935 'glib_packages': 'glib-2.0 gmodule-2.0 gobject-2.0 gthread-2.0',
938 ['_toolset=="target"', {
939 'direct_dependent_settings': {
941 '<!@(<(pkg-config) --cflags <(glib_packages))',
946 '<!@(<(pkg-config) --libs-only-L --libs-only-other <(glib_packages))',
949 '<!@(<(pkg-config) --libs-only-l <(glib_packages))',
953 'direct_dependent_settings': {
955 '<!@(pkg-config --cflags <(glib_packages))',
960 '<!@(pkg-config --libs-only-L --libs-only-other <(glib_packages))',
963 '<!@(pkg-config --libs-only-l <(glib_packages))',
970 'target_name': 'gnome_keyring',
973 ['use_gnome_keyring==1', {
974 'direct_dependent_settings': {
976 '<!@(<(pkg-config) --cflags gnome-keyring-1)',
982 ['linux_link_gnome_keyring==0', {
983 'defines': ['DLOPEN_GNOME_KEYRING'],
988 ['linux_link_gnome_keyring!=0', {
991 '<!@(<(pkg-config) --libs-only-L --libs-only-other gnome-keyring-1)',
994 '<!@(<(pkg-config) --libs-only-l gnome-keyring-1)',
1013 # The unit tests use a few convenience functions from the GNOME
1014 # Keyring library directly. We ignore linux_link_gnome_keyring and
1015 # link directly in this version of the target to allow this.
1016 # *** Do not use this target in the main binary! ***
1017 'target_name': 'gnome_keyring_direct',
1020 ['use_gnome_keyring==1', {
1021 'direct_dependent_settings': {
1023 '<!@(<(pkg-config) --cflags gnome-keyring-1)',
1026 'USE_GNOME_KEYRING',
1029 ['linux_link_gnome_keyring==0', {
1030 'defines': ['DLOPEN_GNOME_KEYRING'],
1036 '<!@(<(pkg-config) --libs-only-L --libs-only-other gnome-keyring-1)',
1039 '<!@(<(pkg-config) --libs-only-l gnome-keyring-1)',
1046 'target_name': 'libbrlapi',
1047 'type': 'static_library',
1048 'all_dependent_settings': {
1050 '<(SHARED_INTERMEDIATE_DIR)',
1056 ['linux_link_libbrlapi==1', {
1068 'hard_dependency': 1,
1072 'output_h': '<(SHARED_INTERMEDIATE_DIR)/library_loaders/libbrlapi.h',
1073 'output_cc': '<(INTERMEDIATE_DIR)/libbrlapi_loader.cc',
1074 'generator': '../../tools/generate_library_loader/generate_library_loader.py',
1076 'action_name': 'generate_brlapi_loader',
1084 'action': ['python',
1086 '--name', 'LibBrlapiLoader',
1087 '--output-h', '<(output_h)',
1088 '--output-cc', '<(output_cc)',
1089 '--header', '<brlapi.h>',
1090 '--link-directly=<(linux_link_libbrlapi)',
1091 '<@(libbrlapi_functions)',
1093 'message': 'Generating libbrlapi library loader',
1094 'process_outputs_as_sources': 1,
1099 'target_name': 'libcap',
1108 'target_name': 'libresolv',
1117 # GN version: //third_party/speech-dispatcher
1118 'target_name': 'libspeechd',
1119 'type': 'static_library',
1120 'direct_dependent_settings': {
1122 '<(SHARED_INTERMEDIATE_DIR)',
1125 ['linux_link_libspeechd==1', {
1137 'hard_dependency': 1,
1141 'output_h': '<(SHARED_INTERMEDIATE_DIR)/library_loaders/libspeechd.h',
1142 'output_cc': '<(INTERMEDIATE_DIR)/libspeechd_loader.cc',
1143 'generator': '../../tools/generate_library_loader/generate_library_loader.py',
1145 # speech-dispatcher >= 0.8 installs libspeechd.h into
1146 # speech-dispatcher/libspeechd.h, whereas speech-dispatcher < 0.8
1147 # puts libspeechd.h in the top-level include directory.
1148 # Since we need to support both cases for now, we ship a copy of
1149 # libspeechd.h in third_party/speech-dispatcher. If the user
1150 # prefers to link against the speech-dispatcher directly, the
1151 # `libspeechd_h_prefix' variable can be passed to gyp with a value
1152 # such as "speech-dispatcher/" that will be prepended to
1153 # "libspeechd.h" in the #include directive.
1154 # TODO(phaldan.jr): Once we do not need to support
1155 # speech-dispatcher < 0.8 we can get rid of all this (including
1156 # third_party/speech-dispatcher) and just include
1157 # speech-dispatcher/libspeechd.h unconditionally.
1158 'libspeechd_h_prefix%': '',
1160 'action_name': 'generate_libspeechd_loader',
1168 'action': ['python',
1170 '--name', 'LibSpeechdLoader',
1171 '--output-h', '<(output_h)',
1172 '--output-cc', '<(output_cc)',
1173 '--header', '<<(libspeechd_h_prefix)libspeechd.h>',
1175 '"third_party/speech-dispatcher/libspeechd.h"',
1176 '--link-directly=<(linux_link_libspeechd)',
1183 'spd_set_notification_on',
1184 'spd_set_voice_rate',
1185 'spd_set_voice_pitch',
1186 'spd_list_synthesis_voices',
1187 'spd_set_synthesis_voice',
1189 'spd_set_output_module',
1192 'message': 'Generating libspeechd library loader',
1193 'process_outputs_as_sources': 1,
1198 'target_name': 'pangocairo',
1200 'toolsets': ['host', 'target'],
1202 ['use_pango==1 and use_cairo==1', {
1204 ['_toolset=="target"', {
1205 'direct_dependent_settings': {
1207 '<!@(<(pkg-config) --cflags pangocairo pangoft2)',
1212 '<!@(<(pkg-config) --libs-only-L --libs-only-other pangocairo pangoft2)',
1215 '<!@(<(pkg-config) --libs-only-l pangocairo pangoft2)',
1219 'direct_dependent_settings': {
1221 '<!@(pkg-config --cflags pangocairo pangoft2)',
1226 '<!@(pkg-config --libs-only-L --libs-only-other pangocairo pangoft2)',
1229 '<!@(pkg-config --libs-only-l pangocairo pangoft2)',
1238 'target_name': 'ssl',
1241 ['_toolset=="target"', {
1243 ['use_openssl==1', {
1245 '../../third_party/boringssl/boringssl.gyp:boringssl',
1249 '../../net/third_party/nss/ssl.gyp:libssl',
1251 'direct_dependent_settings': {
1253 # We need for our local copies of the libssl3 headers to come
1254 # before other includes, as we are shadowing system headers.
1255 '<(DEPTH)/net/third_party/nss/ssl',
1259 # Link in the system NSS if it is used for either the internal
1260 # crypto library (use_openssl==0) or platform certificate
1261 # library (use_nss_certs==1).
1262 ['use_openssl==0 or use_nss_certs==1', {
1263 'direct_dependent_settings': {
1265 '<!@(<(pkg-config) --cflags nss)',
1270 '<!@(<(pkg-config) --libs-only-L --libs-only-other nss)',
1273 '<!@(<(pkg-config) --libs-only-l nss | sed -e "s/-lssl3//")',
1278 'direct_dependent_settings': {
1280 # There is a broken header guard in /usr/include/nss/secmod.h:
1281 # https://bugzilla.mozilla.org/show_bug.cgi?id=884072
1282 '-Wno-header-guard',