moz.build 683 B

1234567891011121314151617181920212223242526
  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. FINAL_TARGET = '_tests/xpcshell/xpcom/tests/unit'
  6. EXTRA_PP_COMPONENTS += [
  7. 'testcomponent.manifest',
  8. ]
  9. SOURCES += [
  10. 'TestComponent.cpp',
  11. ]
  12. XPCOMBinaryComponent('testcomponent')
  13. DEFINES['LIBRARY_FILENAME'] = '%s%s%s' % (
  14. CONFIG['DLL_PREFIX'],
  15. LIBRARY_NAME,
  16. CONFIG['DLL_SUFFIX']
  17. )
  18. # Need to link with CoreFoundation on Mac
  19. if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
  20. OS_LIBS += CONFIG['TK_LIBS']