2013-04-01 11:36:59 -07:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 13:20:02 -08:00
|
|
|
# vim: set filetype=python:
|
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# 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/.
|
|
|
|
|
2013-09-18 15:43:02 -07:00
|
|
|
# If you're copying from this file, you'll likely need to replace
|
2014-07-28 16:55:55 -07:00
|
|
|
# TEST_DIRS with DIRS.
|
|
|
|
TEST_DIRS += ['program']
|
2013-03-12 10:20:41 -07:00
|
|
|
|
|
|
|
# XPIDL_SOURCES specifies IDL files. The build system runs the xpidl tool
|
|
|
|
# on these files to generate C++ headers and .xpt typelib files.
|
|
|
|
XPIDL_SOURCES += ['nsISample.idl']
|
|
|
|
|
2013-11-18 18:47:43 -08:00
|
|
|
# XPIDL_MODULE specifies where header files from this Makefile are installed,
|
2013-06-11 13:38:22 -07:00
|
|
|
# i.e. dist/include/xpcomsample
|
2013-11-18 18:47:43 -08:00
|
|
|
XPIDL_MODULE = 'xpcomsample'
|
2013-03-19 11:47:00 -07:00
|
|
|
|
2013-06-11 13:38:22 -07:00
|
|
|
# CPP_SOURCES specifies C++ files to be built into a library.
|
2013-11-18 18:34:00 -08:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'nsSample.cpp',
|
|
|
|
'nsSampleModule.cpp',
|
|
|
|
]
|
|
|
|
|
2013-06-11 13:38:22 -07:00
|
|
|
# EXTRA_COMPONENTS installs components written JavaScript to
|
|
|
|
# dist/bin/components
|
|
|
|
EXTRA_COMPONENTS += [
|
|
|
|
'nsSample.js',
|
|
|
|
'nsSample.manifest',
|
|
|
|
]
|
2013-08-15 06:02:09 -07:00
|
|
|
|
2014-08-23 17:11:05 -07:00
|
|
|
# XPCOMBinaryComponent names the library generated by this makefile,
|
2013-08-15 06:02:09 -07:00
|
|
|
# i.e. dist/bin/components/libxpcomsample.so
|
2014-08-23 17:11:05 -07:00
|
|
|
XPCOMBinaryComponent('xpcomsample')
|
2013-09-19 14:29:32 -07:00
|
|
|
|
2013-11-05 10:37:54 -08:00
|
|
|
RESOURCE_FILES.samples += [
|
|
|
|
'xpconnect-sample.html',
|
|
|
|
]
|
2014-07-22 21:30:52 -07:00
|
|
|
|
2014-08-05 15:25:33 -07:00
|
|
|
# Need to link with CoreFoundation on Mac
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
|
|
|
OS_LIBS += CONFIG['TK_LIBS']
|