security/build/nss.mk

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/security/build/nss.mk	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,27 @@
     1.4 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.5 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.7 +
     1.8 +include $(DEPTH)/config/autoconf.mk
     1.9 +
    1.10 +include $(topsrcdir)/config/config.mk
    1.11 +
    1.12 +dirs :=
    1.13 +
    1.14 +define add_dirs
    1.15 +SHARED_LIBRARY_DIRS :=
    1.16 +include $(topsrcdir)/security/$(1)/config.mk
    1.17 +dirs += $$(addprefix $(1)/,$$(SHARED_LIBRARY_DIRS)) $(1)
    1.18 +endef
    1.19 +$(foreach dir,util nss ssl smime,$(eval $(call add_dirs,nss/lib/$(dir))))
    1.20 +
    1.21 +libs :=
    1.22 +define add_lib
    1.23 +LIBRARY_NAME :=
    1.24 +include $(topsrcdir)/security/$(1)/manifest.mn
    1.25 +libs += $$(addprefix $(1)/,$(LIB_PREFIX)$$(LIBRARY_NAME).$(LIB_SUFFIX))
    1.26 +endef
    1.27 +$(foreach dir,$(dirs),$(eval $(call add_lib,$(dir))))
    1.28 +
    1.29 +echo-variable-%:
    1.30 +	@echo $($*)

mercurial