moz.build 943 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. SOURCES += [
  6. 'lib/pkixbuild.cpp',
  7. 'lib/pkixcert.cpp',
  8. 'lib/pkixcheck.cpp',
  9. 'lib/pkixder.cpp',
  10. 'lib/pkixnames.cpp',
  11. 'lib/pkixnss.cpp',
  12. 'lib/pkixocsp.cpp',
  13. 'lib/pkixresult.cpp',
  14. 'lib/pkixtime.cpp',
  15. 'lib/pkixverify.cpp',
  16. ]
  17. LOCAL_INCLUDES += [
  18. '../nss/cpputil',
  19. 'include',
  20. ]
  21. TEST_DIRS += [
  22. 'test/gtest',
  23. 'test/lib',
  24. ]
  25. include('warnings.mozbuild')
  26. Library('mozillapkix')
  27. FINAL_LIBRARY = 'xul'
  28. if CONFIG['GNU_CXX']:
  29. CXXFLAGS += ['-Wno-error=shadow']
  30. if CONFIG['_MSC_VER']:
  31. # This is intended as a temporary hack to support building with VS2015.
  32. # declaration of '*' hides class member
  33. CXXFLAGS += ['-wd4458']