xpcom/sample/moz.build

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

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

mercurial