OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'conditions': [ | 7 'conditions': [ |
8 ['sysroot!=""', { | 8 ['sysroot!=""', { |
9 'pkg-config': './pkg-config-wrapper "<(sysroot)" "<(target_arch)"', | 9 'pkg-config': './pkg-config-wrapper "<(sysroot)" "<(target_arch)"', |
10 }, { | 10 }, { |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 ], | 100 ], |
101 'libraries': [ | 101 'libraries': [ |
102 '<!@(<(pkg-config) --libs-only-l gtk+-unix-print-2.0)', | 102 '<!@(<(pkg-config) --libs-only-l gtk+-unix-print-2.0)', |
103 ], | 103 ], |
104 }, | 104 }, |
105 }], | 105 }], |
106 ], | 106 ], |
107 }, | 107 }, |
108 ], # targets | 108 ], # targets |
109 }], | 109 }], |
| 110 [ 'use_x11==1', { |
| 111 # Hide X11 and related dependencies when use_x11=0 |
| 112 'targets': [ |
| 113 { |
| 114 'target_name': 'x11', |
| 115 'type': 'none', |
| 116 'toolsets': ['host', 'target'], |
| 117 'conditions': [ |
| 118 ['_toolset=="target"', { |
| 119 'direct_dependent_settings': { |
| 120 'cflags': [ |
| 121 '<!@(<(pkg-config) --cflags x11)', |
| 122 ], |
| 123 }, |
| 124 'link_settings': { |
| 125 'ldflags': [ |
| 126 '<!@(<(pkg-config) --libs-only-L --libs-only-other x11 xi)', |
| 127 ], |
| 128 'libraries': [ |
| 129 '<!@(<(pkg-config) --libs-only-l x11 xi)', |
| 130 ], |
| 131 }, |
| 132 }, { |
| 133 'direct_dependent_settings': { |
| 134 'cflags': [ |
| 135 '<!@(pkg-config --cflags x11)', |
| 136 ], |
| 137 }, |
| 138 'link_settings': { |
| 139 'ldflags': [ |
| 140 '<!@(pkg-config --libs-only-L --libs-only-other x11 xi)', |
| 141 ], |
| 142 'libraries': [ |
| 143 '<!@(pkg-config --libs-only-l x11 xi)', |
| 144 ], |
| 145 }, |
| 146 }], |
| 147 ], |
| 148 }, |
| 149 { |
| 150 'target_name': 'xext', |
| 151 'type': 'none', |
| 152 'conditions': [ |
| 153 ['_toolset=="target"', { |
| 154 'direct_dependent_settings': { |
| 155 'cflags': [ |
| 156 '<!@(<(pkg-config) --cflags xext)', |
| 157 ], |
| 158 }, |
| 159 'link_settings': { |
| 160 'ldflags': [ |
| 161 '<!@(<(pkg-config) --libs-only-L --libs-only-other xext)', |
| 162 ], |
| 163 'libraries': [ |
| 164 '<!@(<(pkg-config) --libs-only-l xext)', |
| 165 ], |
| 166 }, |
| 167 }], |
| 168 ], |
| 169 }, |
| 170 { |
| 171 'target_name': 'xfixes', |
| 172 'type': 'none', |
| 173 'conditions': [ |
| 174 ['_toolset=="target"', { |
| 175 'direct_dependent_settings': { |
| 176 'cflags': [ |
| 177 '<!@(<(pkg-config) --cflags xfixes)', |
| 178 ], |
| 179 }, |
| 180 'link_settings': { |
| 181 'ldflags': [ |
| 182 '<!@(<(pkg-config) --libs-only-L --libs-only-other xfixes)', |
| 183 ], |
| 184 'libraries': [ |
| 185 '<!@(<(pkg-config) --libs-only-l xfixes)', |
| 186 ], |
| 187 }, |
| 188 }], |
| 189 ], |
| 190 }, |
| 191 { |
| 192 'target_name': 'xrandr', |
| 193 'type': 'none', |
| 194 'toolsets': ['host', 'target'], |
| 195 'conditions': [ |
| 196 ['_toolset=="target"', { |
| 197 'direct_dependent_settings': { |
| 198 'cflags': [ |
| 199 '<!@(<(pkg-config) --cflags xrandr)', |
| 200 ], |
| 201 }, |
| 202 'link_settings': { |
| 203 'ldflags': [ |
| 204 '<!@(<(pkg-config) --libs-only-L --libs-only-other xrandr)', |
| 205 ], |
| 206 'libraries': [ |
| 207 '<!@(<(pkg-config) --libs-only-l xrandr)', |
| 208 ], |
| 209 }, |
| 210 }, { |
| 211 'direct_dependent_settings': { |
| 212 'cflags': [ |
| 213 '<!@(pkg-config --cflags xrandr)', |
| 214 ], |
| 215 }, |
| 216 'link_settings': { |
| 217 'ldflags': [ |
| 218 '<!@(pkg-config --libs-only-L --libs-only-other xrandr)', |
| 219 ], |
| 220 'libraries': [ |
| 221 '<!@(pkg-config --libs-only-l xrandr)', |
| 222 ], |
| 223 }, |
| 224 }], |
| 225 ], |
| 226 }, |
| 227 ], # targets |
| 228 }], |
110 ], # conditions | 229 ], # conditions |
111 'targets': [ | 230 'targets': [ |
112 { | 231 { |
113 'target_name': 'dbus', | 232 'target_name': 'dbus', |
114 'type': 'none', | 233 'type': 'none', |
115 'direct_dependent_settings': { | 234 'direct_dependent_settings': { |
116 'cflags': [ | 235 'cflags': [ |
117 '<!@(<(pkg-config) --cflags dbus-1)', | 236 '<!@(<(pkg-config) --cflags dbus-1)', |
118 ], | 237 ], |
119 }, | 238 }, |
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
753 'ldflags': [ | 872 'ldflags': [ |
754 '<!@(<(pkg-config) --libs-only-L --libs-only-other libudev)', | 873 '<!@(<(pkg-config) --libs-only-L --libs-only-other libudev)', |
755 ], | 874 ], |
756 'libraries': [ | 875 'libraries': [ |
757 '<!@(<(pkg-config) --libs-only-l libudev)', | 876 '<!@(<(pkg-config) --libs-only-l libudev)', |
758 ], | 877 ], |
759 }, | 878 }, |
760 }], | 879 }], |
761 ], | 880 ], |
762 }, | 881 }, |
763 { | |
764 'target_name': 'x11', | |
765 'type': 'none', | |
766 'toolsets': ['host', 'target'], | |
767 'conditions': [ | |
768 ['_toolset=="target"', { | |
769 'direct_dependent_settings': { | |
770 'cflags': [ | |
771 '<!@(<(pkg-config) --cflags x11)', | |
772 ], | |
773 }, | |
774 'link_settings': { | |
775 'ldflags': [ | |
776 '<!@(<(pkg-config) --libs-only-L --libs-only-other x11 xi)', | |
777 ], | |
778 'libraries': [ | |
779 '<!@(<(pkg-config) --libs-only-l x11 xi)', | |
780 ], | |
781 }, | |
782 }, { | |
783 'direct_dependent_settings': { | |
784 'cflags': [ | |
785 '<!@(pkg-config --cflags x11)', | |
786 ], | |
787 }, | |
788 'link_settings': { | |
789 'ldflags': [ | |
790 '<!@(pkg-config --libs-only-L --libs-only-other x11 xi)', | |
791 ], | |
792 'libraries': [ | |
793 '<!@(pkg-config --libs-only-l x11 xi)', | |
794 ], | |
795 }, | |
796 }], | |
797 ], | |
798 }, | |
799 { | |
800 'target_name': 'xext', | |
801 'type': 'none', | |
802 'conditions': [ | |
803 ['_toolset=="target"', { | |
804 'direct_dependent_settings': { | |
805 'cflags': [ | |
806 '<!@(<(pkg-config) --cflags xext)', | |
807 ], | |
808 }, | |
809 'link_settings': { | |
810 'ldflags': [ | |
811 '<!@(<(pkg-config) --libs-only-L --libs-only-other xext)', | |
812 ], | |
813 'libraries': [ | |
814 '<!@(<(pkg-config) --libs-only-l xext)', | |
815 ], | |
816 }, | |
817 }], | |
818 ], | |
819 }, | |
820 { | |
821 'target_name': 'xfixes', | |
822 'type': 'none', | |
823 'conditions': [ | |
824 ['_toolset=="target"', { | |
825 'direct_dependent_settings': { | |
826 'cflags': [ | |
827 '<!@(<(pkg-config) --cflags xfixes)', | |
828 ], | |
829 }, | |
830 'link_settings': { | |
831 'ldflags': [ | |
832 '<!@(<(pkg-config) --libs-only-L --libs-only-other xfixes)', | |
833 ], | |
834 'libraries': [ | |
835 '<!@(<(pkg-config) --libs-only-l xfixes)', | |
836 ], | |
837 }, | |
838 }], | |
839 ], | |
840 }, | |
841 { | |
842 'target_name': 'xrandr', | |
843 'type': 'none', | |
844 'toolsets': ['host', 'target'], | |
845 'conditions': [ | |
846 ['_toolset=="target"', { | |
847 'direct_dependent_settings': { | |
848 'cflags': [ | |
849 '<!@(<(pkg-config) --cflags xrandr)', | |
850 ], | |
851 }, | |
852 'link_settings': { | |
853 'ldflags': [ | |
854 '<!@(<(pkg-config) --libs-only-L --libs-only-other xrandr)', | |
855 ], | |
856 'libraries': [ | |
857 '<!@(<(pkg-config) --libs-only-l xrandr)', | |
858 ], | |
859 }, | |
860 }, { | |
861 'direct_dependent_settings': { | |
862 'cflags': [ | |
863 '<!@(pkg-config --cflags xrandr)', | |
864 ], | |
865 }, | |
866 'link_settings': { | |
867 'ldflags': [ | |
868 '<!@(pkg-config --libs-only-L --libs-only-other xrandr)', | |
869 ], | |
870 'libraries': [ | |
871 '<!@(pkg-config --libs-only-l xrandr)', | |
872 ], | |
873 }, | |
874 }], | |
875 ], | |
876 }, | |
877 ], | 882 ], |
878 } | 883 } |
OLD | NEW |