moz.build 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
  2. # This Source Code Form is subject to the terms of the Mozilla Public
  3. # License, v. 2.0. If a copy of the MPL was not distributed with this
  4. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
  5. UNIFIED_SOURCES += [
  6. 'AppSignatureVerification.cpp',
  7. 'AppTrustDomain.cpp',
  8. ]
  9. FINAL_LIBRARY = 'xul'
  10. LOCAL_INCLUDES += [
  11. '/security/certverifier',
  12. '/security/manager/ssl',
  13. '/security/pkix/include',
  14. ]
  15. DEFINES['NSS_ENABLE_ECC'] = 'True'
  16. for var in ('DLL_PREFIX', 'DLL_SUFFIX'):
  17. DEFINES[var] = '"%s"' % CONFIG[var]
  18. test_ssl_path = '/security/manager/ssl/tests/unit'
  19. headers_arrays_certs = [
  20. ('marketplace-prod-public.inc', 'marketplaceProdPublicRoot', 'marketplace-prod-public.crt'),
  21. ('marketplace-prod-reviewers.inc', 'marketplaceProdReviewersRoot', 'marketplace-prod-reviewers.crt'),
  22. ('marketplace-dev-public.inc', 'marketplaceDevPublicRoot', 'marketplace-dev-public.crt'),
  23. ('marketplace-dev-reviewers.inc', 'marketplaceDevReviewersRoot', 'marketplace-dev-reviewers.crt'),
  24. ('marketplace-stage.inc', 'marketplaceStageRoot', 'marketplace-stage.crt'),
  25. ('manifest-signing-root.inc', 'trustedAppPublicRoot', 'trusted-app-public.der'),
  26. ('manifest-signing-test-root.inc', 'trustedAppTestRoot', test_ssl_path + '/test_signed_manifest/trusted_ca1.der'),
  27. ('xpcshell.inc', 'xpcshellRoot', test_ssl_path + '/test_signed_apps/trusted_ca1.der'),
  28. ('addons-public.inc', 'addonsPublicRoot', 'addons-public.crt'),
  29. ('addons-stage.inc', 'addonsStageRoot', 'addons-stage.crt'),
  30. ('privileged-package-root.inc', 'privilegedPackageRoot', 'privileged-package-root.der'),
  31. ]
  32. for header, array_name, cert in headers_arrays_certs:
  33. GENERATED_FILES += [header]
  34. h = GENERATED_FILES[header]
  35. h.script = 'gen_cert_header.py:' + array_name
  36. h.inputs = [cert]