xpcom/sample/moz.build
author Chris Peterson <cpeterson@mozilla.com>
Thu, 04 Dec 2014 16:24:03 -0800
changeset 235531 b14b9b335d4e1cf2a6e6ee0af1739b49506906ac
parent 215637 62b9f6d4328bb3609e731c694aabf9ad2ba9406d
permissions -rw-r--r--
Bug 1107814 - Part 1: Mark more directories as FAIL_ON_WARNINGS for all compilers. r=gps

# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
# 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/.

# If you're copying from this file, you'll likely need to replace
# TEST_DIRS with DIRS.
TEST_DIRS += ['program']

# 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']

# XPIDL_MODULE specifies where header files from this Makefile are installed,
# i.e. dist/include/xpcomsample
XPIDL_MODULE = 'xpcomsample'

# CPP_SOURCES specifies C++ files to be built into a library.
UNIFIED_SOURCES += [
    'nsSample.cpp',
    'nsSampleModule.cpp',
]

# EXTRA_COMPONENTS installs components written JavaScript to
# dist/bin/components
EXTRA_COMPONENTS += [
    'nsSample.js',
    'nsSample.manifest',
]

# XPCOMBinaryComponent names the library generated by this makefile,
# i.e. dist/bin/components/libxpcomsample.so
XPCOMBinaryComponent('xpcomsample')

RESOURCE_FILES.samples += [
    'xpconnect-sample.html',
]

# Need to link with CoreFoundation on Mac
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
    OS_LIBS += CONFIG['TK_LIBS']

FAIL_ON_WARNINGS = True