Bug 1881538 [wpt PR 44730] - Convert CSS2 visual tests into reftests where an existin...
[gecko.git] / security / nss / nss.gyp
blob9fd8b4481f34f130dabc55bbeb356143aa2ceefb
1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
5   'includes': [
6     'coreconf/config.gypi'
7   ],
8   'conditions': [
9     [ 'mozpkix_only==0', {
10       'targets': [
11         {
12           'target_name': 'nss_libs',
13           'type': 'none',
14           'dependencies': [
15             'lib/softoken/softoken.gyp:softokn3',
16           ],
17           'conditions': [
18             [ 'OS=="solaris" and target_arch=="sparc64"', {
19               'dependencies': [
20                 'lib/freebl/freebl.gyp:freebl_64int_3',
21                 'lib/freebl/freebl.gyp:freebl_64fpu_3',
22               ],
23             }, {
24               'dependencies': [
25                 'lib/freebl/freebl.gyp:freebl3',
26               ],
27             }],
28             [ 'moz_fold_libs==0', {
29               'dependencies': [
30                 'lib/nss/nss.gyp:nss3',
31                 'lib/smime/smime.gyp:smime3',
32                 'lib/sqlite/sqlite.gyp:sqlite3',
33                 'lib/ssl/ssl.gyp:ssl3',
34                 'lib/util/util.gyp:nssutil3',
35               ],
36             }],
37             [ 'OS=="linux"', {
38               'dependencies': [
39                 'lib/freebl/freebl.gyp:freeblpriv3',
40               ],
41             }],
42             [ 'OS=="linux" and mozilla_client==0', {
43               'dependencies': [
44                 'lib/sysinit/sysinit.gyp:nsssysinit',
45               ],
46             }],
47             [ 'disable_dbm==0', {
48               'dependencies': [
49                 'lib/softoken/legacydb/legacydb.gyp:nssdbm3',
50               ],
51             }],
52             [ 'disable_ckbi==0', {
53               'dependencies': [
54                 'lib/ckfw/builtins/builtins.gyp:nssckbi',
55               ],
56             }],
57           ],
58         },
59         {
60           'target_name': 'nss_static_libs',
61           'type': 'none',
62           'dependencies': [
63             'cmd/lib/lib.gyp:sectool',
64             'lib/base/base.gyp:nssb',
65             'lib/certdb/certdb.gyp:certdb',
66             'lib/certhigh/certhigh.gyp:certhi',
67             'lib/ckfw/ckfw.gyp:nssckfw',
68             'lib/crmf/crmf.gyp:crmf',
69             'lib/cryptohi/cryptohi.gyp:cryptohi',
70             'lib/dev/dev.gyp:nssdev',
71             'lib/freebl/freebl.gyp:freebl',
72             'lib/jar/jar.gyp:jar',
73             'lib/libpkix/libpkix.gyp:libpkix',
74             # mozpkix and mozpkix-testlib are static C++ libs
75             'lib/mozpkix/mozpkix.gyp:mozpkix',
76             'lib/mozpkix/mozpkix.gyp:mozpkix-testlib',
77             'lib/nss/nss.gyp:nss_static',
78             'lib/pk11wrap/pk11wrap.gyp:pk11wrap',
79             'lib/pkcs12/pkcs12.gyp:pkcs12',
80             'lib/pkcs7/pkcs7.gyp:pkcs7',
81             'lib/pki/pki.gyp:nsspki',
82             'lib/smime/smime.gyp:smime',
83             'lib/softoken/softoken.gyp:softokn',
84             'lib/ssl/ssl.gyp:ssl',
85             'lib/util/util.gyp:nssutil',
86           ],
87           'conditions': [
88             [ 'OS=="linux" and mozilla_client==0', {
89               'dependencies': [
90                 'lib/sysinit/sysinit.gyp:nsssysinit_static',
91               ],
92             }],
93             [ 'disable_dbm==0', {
94               'dependencies': [
95                 'lib/dbm/src/src.gyp:dbm',
96                 'lib/softoken/legacydb/legacydb.gyp:nssdbm',
97               ],
98             }],
99             [ 'use_system_sqlite==0', {
100               'dependencies': [
101                 'lib/sqlite/sqlite.gyp:sqlite',
102               ],
103             }],
104             [ 'moz_fold_libs==1', {
105               'dependencies': [
106                 'lib/nss/nss.gyp:nss3_static',
107                 'lib/smime/smime.gyp:smime3_static',
108               ],
109             }],
110           ],
111         },
112         {
113           'target_name': 'nss_cmds',
114           'type': 'none',
115           'dependencies': [
116             'cmd/certutil/certutil.gyp:certutil',
117             'cmd/pk12util/pk12util.gyp:pk12util',
118           ],
119           'conditions': [
120             [ 'comm_client==1', {
121               'dependencies': [
122                 'cmd/smimetools/smimetools.gyp:cmsutil',
123                 'cmd/atob/atob.gyp:atob',
124                 'cmd/btoa/btoa.gyp:btoa',
125               ],
126             }],
127             [ 'mozilla_client==0', {
128               'dependencies': [
129                 'cmd/crlutil/crlutil.gyp:crlutil',
130                 'cmd/dbtool/dbtool.gyp:dbtool',
131                 'cmd/modutil/modutil.gyp:modutil',
132                 'cmd/pwdecrypt/pwdecrypt.gyp:pwdecrypt',
133                 'cmd/shlibsign/shlibsign.gyp:shlibsign',
134                 'cmd/signtool/signtool.gyp:signtool',
135                 'cmd/signver/signver.gyp:signver',
136                 'cmd/smimetools/smimetools.gyp:cmsutil',
137                 'cmd/ssltap/ssltap.gyp:ssltap',
138                 'cmd/symkeyutil/symkeyutil.gyp:symkeyutil',
139                 'cmd/validation/validation.gyp:validation',
140                 'nss-tool/nss_tool.gyp:nss',
141                 'nss-tool/nss_tool.gyp:hw-support',
142               ],
143             }],
144           ],
145         },
146       ],
147     }, { # else, i.e. mozpkix_only==1
148       # Build only mozpkix.
149       'targets': [
150         {
151           'target_name': 'nss_mozpkix_libs',
152           'type': 'none',
153           'dependencies': [
154             # mozpkix and mozpkix-testlib are static C++ libs
155             'lib/mozpkix/mozpkix.gyp:mozpkix',
156             'lib/mozpkix/mozpkix.gyp:mozpkix-testlib',
157           ],
158         },
159       ],
160     }],
161     [ 'disable_tests==0', {
162       'targets': [
163         {
164           'target_name': 'nss_tests',
165           'type': 'none',
166           'dependencies': [
167             'cmd/addbuiltin/addbuiltin.gyp:addbuiltin',
168             'cmd/atob/atob.gyp:atob',
169             'cmd/bltest/bltest.gyp:bltest',
170             'cmd/btoa/btoa.gyp:btoa',
171             'cmd/chktest/chktest.gyp:chktest',
172             'cmd/crmftest/crmftest.gyp:crmftest',
173             'cmd/dbtest/dbtest.gyp:dbtest',
174             'cmd/derdump/derdump.gyp:derdump',
175             'cmd/digest/digest.gyp:digest',
176             'cmd/ecperf/ecperf.gyp:ecperf',
177             'cmd/fbectest/fbectest.gyp:fbectest',
178             'cmd/httpserv/httpserv.gyp:httpserv',
179             'cmd/listsuites/listsuites.gyp:listsuites',
180             'cmd/makepqg/makepqg.gyp:makepqg',
181             'cmd/multinit/multinit.gyp:multinit',
182             'cmd/nss-policy-check/nss-policy-check.gyp:nss-policy-check',
183             'cmd/ocspclnt/ocspclnt.gyp:ocspclnt',
184             'cmd/ocspresp/ocspresp.gyp:ocspresp',
185             'cmd/oidcalc/oidcalc.gyp:oidcalc',
186             'cmd/p7content/p7content.gyp:p7content',
187             'cmd/p7env/p7env.gyp:p7env',
188             'cmd/p7sign/p7sign.gyp:p7sign',
189             'cmd/p7verify/p7verify.gyp:p7verify',
190             'cmd/pk11ectest/pk11ectest.gyp:pk11ectest',
191             'cmd/pk11gcmtest/pk11gcmtest.gyp:pk11gcmtest',
192             'cmd/pk11mode/pk11mode.gyp:pk11mode',
193             'cmd/pk11importtest/pk11importtest.gyp:pk11importtest',
194             'cmd/pk1sign/pk1sign.gyp:pk1sign',
195             'cmd/pp/pp.gyp:pp',
196             'cmd/rsaperf/rsaperf.gyp:rsaperf',
197             'cmd/rsapoptst/rsapoptst.gyp:rsapoptst',
198             'cmd/sdbthreadtst/sdbthreadtst.gyp:sdbthreadtst',
199             'cmd/sdrtest/sdrtest.gyp:sdrtest',
200             'cmd/selfserv/selfserv.gyp:selfserv',
201             'cmd/shlibsign/mangle/mangle.gyp:mangle',
202             'cmd/strsclnt/strsclnt.gyp:strsclnt',
203             'cmd/tests/tests.gyp:baddbdir',
204             'cmd/tests/tests.gyp:conflict',
205             'cmd/tests/tests.gyp:dertimetest',
206             'cmd/tests/tests.gyp:encodeinttest',
207             'cmd/tests/tests.gyp:nonspr10',
208             'cmd/tests/tests.gyp:remtest',
209             'cmd/tests/tests.gyp:secmodtest',
210             'cmd/tstclnt/tstclnt.gyp:tstclnt',
211             'cmd/vfychain/vfychain.gyp:vfychain',
212             'cmd/vfyserv/vfyserv.gyp:vfyserv',
213             'cmd/mpitests/mpitests.gyp:mpi_tests',
214             'gtests/base_gtest/base_gtest.gyp:base_gtest',
215             'gtests/certhigh_gtest/certhigh_gtest.gyp:certhigh_gtest',
216             'gtests/cryptohi_gtest/cryptohi_gtest.gyp:cryptohi_gtest',
217             'gtests/der_gtest/der_gtest.gyp:der_gtest',
218             'gtests/certdb_gtest/certdb_gtest.gyp:certdb_gtest',
219             'gtests/freebl_gtest/freebl_gtest.gyp:freebl_gtest',
220             'gtests/mozpkix_gtest/mozpkix_gtest.gyp:mozpkix_gtest',
221             'gtests/nss_bogo_shim/nss_bogo_shim.gyp:nss_bogo_shim',
222             'gtests/pkcs11testmodule/pkcs11testmodule.gyp:pkcs11testmodule',
223             'gtests/pk11_gtest/pk11_gtest.gyp:pk11_gtest',
224             'gtests/smime_gtest/smime_gtest.gyp:smime_gtest',
225             'gtests/softoken_gtest/softoken_gtest.gyp:softoken_gtest',
226             'gtests/ssl_gtest/ssl_gtest.gyp:ssl_gtest',
227             'gtests/util_gtest/util_gtest.gyp:util_gtest',
228             'lib/ckfw/builtins/testlib/builtins-testlib.gyp:nssckbi-testlib',
229           ],
230           'conditions': [
231             [ 'OS=="linux"', {
232               'dependencies': [
233                 'cmd/lowhashtest/lowhashtest.gyp:lowhashtest',
234               ],
235             }],
236             [ 'OS=="linux" and mozilla_client==0', {
237               'dependencies': [
238                 'gtests/sysinit_gtest/sysinit_gtest.gyp:sysinit_gtest',
239               ],
240             }],
241             [ 'disable_libpkix==0', {
242               'dependencies': [
243                 'cmd/pkix-errcodes/pkix-errcodes.gyp:pkix-errcodes',
244               ],
245             }],
246             [ 'disable_fips==0', {
247               'dependencies': [
248                 'cmd/fipstest/fipstest.gyp:fipstest',
249               ],
250             }],
251           ],
252         },
253       ],
254     }],
255     [ 'sign_libs==1', {
256       'targets': [
257         {
258         'target_name': 'nss_sign_shared_libs',
259           'type': 'none',
260           'dependencies': [
261             'cmd/shlibsign/shlibsign.gyp:shlibsign',
262           ],
263           'actions': [
264             {
265           'action_name': 'shlibsign',
266               'msvs_cygwin_shell': 0,
267               'inputs': [
268                 '<(nss_dist_obj_dir)/lib/<(dll_prefix)freebl3.<(dll_suffix)',
269                 '<(nss_dist_obj_dir)/lib/<(dll_prefix)freeblpriv3.<(dll_suffix)',
270                 '<(nss_dist_obj_dir)/lib/<(dll_prefix)nssdbm3.<(dll_suffix)',
271                 '<(nss_dist_obj_dir)/lib/<(dll_prefix)softokn3.<(dll_suffix)',
272               ],
273               'outputs': [
274                 '<(nss_dist_obj_dir)/lib/<(dll_prefix)freebl3.chk',
275                 '<(nss_dist_obj_dir)/lib/<(dll_prefix)freeblpriv3.chk',
276                 '<(nss_dist_obj_dir)/lib/<(dll_prefix)nssdbm3.chk',
277                 '<(nss_dist_obj_dir)/lib/<(dll_prefix)softokn3.chk'
278               ],
279               'conditions': [
280                 ['OS!="linux"', {
281                   'inputs/': [['exclude', 'freeblpriv']],
282                   'outputs/': [['exclude', 'freeblpriv']]
283                 }],
284                 ['disable_dbm==1', {
285                   'inputs/': [['exclude', 'nssdbm3']],
286                   'outputs/': [['exclude', 'nssdbm3']]
287                 }],
288               ],
289               'action': ['<(python)', '<(DEPTH)/coreconf/shlibsign.py', '<@(_inputs)']
290             }
291           ],
292         },
293       ],
294     }],
295     [ 'fuzz_tls==1', {
296       'targets': [
297         {
298           'target_name': 'fuzz_warning',
299           'type': 'none',
300           'actions': [
301             {
302               'action_name': 'fuzz_warning',
303               'action': ['cat', 'fuzz/warning.txt'],
304               'inputs': ['fuzz/warning.txt'],
305               'ninja_use_console': 1,
306               'outputs': ['dummy'],
307             }
308           ],
309         },
310       ],
311     }],
312     [ 'fuzz==1', {
313       'targets': [
314         {
315           'target_name': 'fuzz',
316           'type': 'none',
317           'dependencies': [
318             'fuzz/fuzz.gyp:nssfuzz',
319           ],
320         },
321       ],
322     }],
323     [ 'mozilla_central==1', {
324       'targets': [
325         {
326           'target_name': 'test_nssckbi',
327           'type': 'none',
328           'dependencies': [
329             'lib/ckfw/builtins/testlib/builtins-testlib.gyp:nssckbi-testlib',
330           ],
331         },
332       ],
333     }],
334   ],