mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-23 00:47:31 +09:00
re-introduce old nss im too tired for this
This commit is contained in:
parent
3c46be320d
commit
3a838106b9
2871 changed files with 1374431 additions and 1762417 deletions
|
|
@ -4,106 +4,94 @@
|
|||
# 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/.
|
||||
|
||||
CORE_DEPTH = ..
|
||||
DEPTH = ..
|
||||
#######################################################################
|
||||
# (1) Include initial platform-independent assignments (MANDATORY). #
|
||||
#######################################################################
|
||||
|
||||
include manifest.mn
|
||||
|
||||
#######################################################################
|
||||
# (2) Include "global" configuration information. (OPTIONAL) #
|
||||
#######################################################################
|
||||
|
||||
include $(CORE_DEPTH)/coreconf/config.mk
|
||||
|
||||
# This "jungle" of conditionals evaluates which DIRS to build!
|
||||
# The main reason for it is AFAIK /automation/taskcluster/scripts/split.sh
|
||||
#
|
||||
# The fundamental organisation is:
|
||||
# if NSS_BUILD_UTIL_ONLY
|
||||
# else
|
||||
# if NSS_BUILD_SOFTOKEN_ONLY
|
||||
# else # build "all" the rest of NSS
|
||||
# endif
|
||||
#
|
||||
# But there is even some build (NSS_BUILD_WITHOUT_SOFTOKEN), which
|
||||
# depends on a previous partial build!
|
||||
#
|
||||
# FWIW, the dependencies are sorted and "compacted" instead of single
|
||||
# lines for smaller patches, as these probably won't change much and
|
||||
# it's easier to read this way.
|
||||
#######################################################################
|
||||
# (3) Include "component" configuration information. (OPTIONAL) #
|
||||
#######################################################################
|
||||
|
||||
# Building softoken (and freebl) only requires that the paths
|
||||
# to the locations where the util headers and libraries were
|
||||
# previously installed by a prior util-only build - likely in
|
||||
# in a system location that varies with the distribution. This
|
||||
# cannot be addressed here and requires that downstream package
|
||||
# mantainers add suitable modifications. Building full nss will
|
||||
# not have that problem as everything is available.
|
||||
|
||||
|
||||
#######################################################################
|
||||
# (4) Include "local" platform-dependent assignments (OPTIONAL). #
|
||||
#######################################################################
|
||||
|
||||
ifndef USE_SYSTEM_ZLIB
|
||||
ZLIB_SRCDIR = zlib
|
||||
ZLIB_SRCDIR = zlib # Add the zlib directory to DIRS.
|
||||
endif
|
||||
|
||||
ifndef MOZILLA_CLIENT
|
||||
ifndef NSS_USE_SYSTEM_SQLITE
|
||||
SQLITE_SRCDIR = sqlite
|
||||
SQLITE_SRCDIR = sqlite # Add the sqlite directory to DIRS.
|
||||
endif
|
||||
endif
|
||||
|
||||
ifndef MOZILLA_CLIENT
|
||||
ifeq ($(OS_ARCH),Linux)
|
||||
SYSINIT_SRCDIR = sysinit
|
||||
SYSINIT_SRCDIR = sysinit # Add the sysinit directory to DIRS.
|
||||
endif
|
||||
endif
|
||||
endif # MOZILLA_CLIENT
|
||||
|
||||
ifndef NSS_DISABLE_DBM
|
||||
DBM_SRCDIR = dbm
|
||||
endif
|
||||
|
||||
ifndef NSS_DISABLE_LIBPKIX
|
||||
LIBPKIX_SRCDIR = libpkix
|
||||
DBM_SRCDIR = dbm # Add the dbm directory to DIRS.
|
||||
endif
|
||||
|
||||
ifeq ($(NSS_BUILD_UTIL_ONLY),1)
|
||||
UTIL_SRCDIR = util
|
||||
SYSINIT_SRCDIR=
|
||||
endif
|
||||
|
||||
else
|
||||
ifeq ($(NSS_BUILD_SOFTOKEN_ONLY),1)
|
||||
FREEBL_SRCDIR = freebl
|
||||
SOFTOKEN_SRCDIR = softoken
|
||||
else
|
||||
# Not included when building nss without softoken
|
||||
# This build type uses the build results of the prior
|
||||
# NSS_BUILD_UTIL_ONLY and NSS_BUILD_SOFTOKEN_ONLY builds
|
||||
ifneq ($(NSS_BUILD_WITHOUT_SOFTOKEN),1)
|
||||
FREEBL_SRCDIR = freebl
|
||||
SOFTOKEN_SRCDIR = softoken
|
||||
UTIL_SRCDIR = util
|
||||
endif
|
||||
endif
|
||||
ifndef NSS_DISABLE_LIBPKIX
|
||||
LIBPKIX_SRCDIR = libpkix # Add the libpkix directory to DIRS.
|
||||
endif
|
||||
|
||||
SOFTOKEN_SRCDIRS = \
|
||||
$(DBM_SRCDIR) $(FREEBL_SRCDIR) $(SOFTOKEN_SRCDIR) \
|
||||
$(SQLITE_SRCDIR) $(NULL)
|
||||
|
||||
ifneq (,$(FREEBL_SRCDIR))
|
||||
$(FREEBL_SRCDIR): $(UTIL_SRCDIR)
|
||||
endif
|
||||
|
||||
ifneq (,$(SOFTOKEN_SRCDIR))
|
||||
$(SOFTOKEN_SRCDIR): $(DBM_SRCDIR) $(FREEBL_SRCDIR) $(SQLITE_SRCDIR) $(UTIL_SRCDIR)
|
||||
endif
|
||||
|
||||
ifndef NSS_BUILD_SOFTOKEN_ONLY
|
||||
NSS_SRCDIRS = \
|
||||
base certdb certhigh ckfw crmf cryptohi dev jar $(LIBPKIX_SRCDIR) \
|
||||
nss pk11wrap pkcs12 pkcs7 pki smime ssl $(SYSINIT_SRCDIR) $(ZLIB_SRCDIR)
|
||||
|
||||
ifneq (,$(SYSINIT_SRCDIR))
|
||||
$(SYSINIT_SRCDIR): $(UTIL_SRCDIR)
|
||||
endif
|
||||
|
||||
nss: base certdb certhigh cryptohi dev $(LIBPKIX_SRCDIR) pk11wrap pki $(UTIL_SRCDIR)
|
||||
smime: nss pkcs7 pkcs12
|
||||
ssl: nss
|
||||
ckfw: nss
|
||||
|
||||
endif # !NSS_BUILD_SOFTOKEN_ONLY
|
||||
endif # !NSS_BUILD_UTIL_ONLY
|
||||
|
||||
DIRS = \
|
||||
$(NSS_SRCDIRS) $(SOFTOKEN_SRCDIRS) $(UTIL_SRCDIR) $(NULL)
|
||||
#######################################################################
|
||||
# (5) Execute "global" rules. (OPTIONAL) #
|
||||
#######################################################################
|
||||
|
||||
include $(CORE_DEPTH)/coreconf/rules.mk
|
||||
|
||||
#######################################################################
|
||||
# (6) Execute "component" rules. (OPTIONAL) #
|
||||
#######################################################################
|
||||
|
||||
|
||||
|
||||
#######################################################################
|
||||
# (7) Execute "local" rules. (OPTIONAL). #
|
||||
#######################################################################
|
||||
|
||||
ifeq ($(NSS_BUILD_UTIL_ONLY),1)
|
||||
UTIL_SRCDIR = util
|
||||
FREEBL_SRCDIR =
|
||||
SOFTOKEN_SRCDIR =
|
||||
else
|
||||
ifeq ($(NSS_BUILD_SOFTOKEN_ONLY),1)
|
||||
UTIL_SRCDIR =
|
||||
FREEBL_SRCDIR = freebl
|
||||
SOFTOKEN_SRCDIR = softoken
|
||||
else
|
||||
ifeq ($(NSS_BUILD_WITHOUT_SOFTOKEN),1)
|
||||
# Not included when building nss without softoken
|
||||
# This build type uses the build results of the prior
|
||||
# NSS_BUILD_UTIL_ONLY and NSS_BUILD_SOFTOKEN_ONLY builds
|
||||
UTIL_SRCDIR =
|
||||
FREEBL_SRCDIR =
|
||||
SOFTOKEN_SRCDIR =
|
||||
else
|
||||
# default is to include all
|
||||
UTIL_SRCDIR = util
|
||||
FREEBL_SRCDIR = freebl
|
||||
SOFTOKEN_SRCDIR = softoken
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue