michael@0: # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- michael@0: # vim: set filetype=python: michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: # If you're copying from this file, you'll likely need to replace michael@0: # TEST_TOOL_DIRS with DIRS. michael@0: TEST_TOOL_DIRS += ['program'] michael@0: michael@0: # XPIDL_SOURCES specifies IDL files. The build system runs the xpidl tool michael@0: # on these files to generate C++ headers and .xpt typelib files. michael@0: XPIDL_SOURCES += ['nsISample.idl'] michael@0: michael@0: # XPIDL_MODULE specifies where header files from this Makefile are installed, michael@0: # i.e. dist/include/xpcomsample michael@0: XPIDL_MODULE = 'xpcomsample' michael@0: michael@0: # CPP_SOURCES specifies C++ files to be built into a library. michael@0: UNIFIED_SOURCES += [ michael@0: 'nsSample.cpp', michael@0: 'nsSampleModule.cpp', michael@0: ] michael@0: michael@0: # EXTRA_COMPONENTS installs components written JavaScript to michael@0: # dist/bin/components michael@0: EXTRA_COMPONENTS += [ michael@0: 'nsSample.js', michael@0: 'nsSample.manifest', michael@0: ] michael@0: michael@0: # LIBRARY_NAME names the library generated by this makefile, michael@0: # i.e. dist/bin/components/libxpcomsample.so michael@0: LIBRARY_NAME = 'xpcomsample' michael@0: michael@0: # IS_COMPONENT indicates that this makefile builds a component shared library. michael@0: IS_COMPONENT = True michael@0: michael@0: RESOURCE_FILES.samples += [ michael@0: 'xpconnect-sample.html', michael@0: ]