Skip to content

Commit

Permalink
Bug 1678384 - Add a build flag to allow building nssckbi-testlib in m…
Browse files Browse the repository at this point in the history
…-c r=kjacobs

Differential Revision: https://phabricator.services.mozilla.com/D98154

--HG--
extra : moz-landing-system : lando
  • Loading branch information
Benjamin Beurdouche committed Nov 30, 2020
1 parent e631126 commit bd788dd
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 1 deletion.
1 change: 1 addition & 0 deletions build.sh
Expand Up @@ -131,6 +131,7 @@ while [ $# -gt 0 ]; do
--mozpkix-only) gyp_params+=(-Dmozpkix_only=1 -Ddisable_tests=1 -Dsign_libs=0) ;;
--disable-keylog) sslkeylogfile=0 ;;
--enable-legacy-db) gyp_params+=(-Ddisable_dbm=0) ;;
--mozilla-central) gyp_params+=(-Dmozilla_central=1) ;;
-D*) gyp_params+=("$1") ;;
*) show_help; exit 2 ;;
esac
Expand Down
1 change: 1 addition & 0 deletions coreconf/config.gypi
Expand Up @@ -130,6 +130,7 @@
'only_dev_random%': 1,
'disable_fips%': 1,
'mozpkix_only%': 0,
'mozilla_central%': 0,
'coverage%': 0,
'softfp_cflags%': '',
'enable_draft_hpke%': 0,
Expand Down
2 changes: 1 addition & 1 deletion lib/ckfw/builtins/testlib/builtins-testlib.gyp
Expand Up @@ -47,7 +47,7 @@
}
],
'variables': {
'mapfile': '../nssckbi.def',
'mapfile': 'nssckbi-testlib.def',
'certdata-testlib_c': '<(INTERMEDIATE_DIR)/certdata-testlib.c',
}
}
Expand Down
26 changes: 26 additions & 0 deletions lib/ckfw/builtins/testlib/nssckbi-testlib.def
@@ -0,0 +1,26 @@
;+#
;+# This Source Code Form is subject to the terms of the Mozilla Public
;+# License, v. 2.0. If a copy of the MPL was not distributed with this
;+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
;+#
;+# OK, this file is meant to support SUN, LINUX, AIX and WINDOWS
;+# 1. For all unix platforms, the string ";-" means "remove this line"
;+# 2. For all unix platforms, the string " DATA " will be removed from any
;+# line on which it occurs.
;+# 3. Lines containing ";+" will have ";+" removed on SUN and LINUX.
;+# On AIX, lines containing ";+" will be removed.
;+# 4. For all unix platforms, the string ";;" will thave the ";;" removed.
;+# 5. For all unix platforms, after the above processing has taken place,
;+# all characters after the first ";" on the line will be removed.
;+# And for AIX, the first ";" will also be removed.
;+# This file is passed directly to windows. Since ';' is a comment, all UNIX
;+# directives are hidden behind ";", ";+", and ";-"
;+
;+NSS_3.1 { # NSS 3.1 release
;+ global:
LIBRARY nssckbi-testlib ;-
EXPORTS ;-
C_GetFunctionList;
;+ local:
;+*;
;+};
11 changes: 11 additions & 0 deletions nss.gyp
Expand Up @@ -314,5 +314,16 @@
},
],
}],
[ 'mozilla_central==1', {
'targets': [
{
'target_name': 'test_nssckbi',
'type': 'none',
'dependencies': [
'lib/ckfw/builtins/testlib/builtins-testlib.gyp:nssckbi-testlib',
],
},
],
}],
],
}

0 comments on commit bd788dd

Please sign in to comment.