xpcom/sample/program/moz.build
author Mike Hommey <mh+mozilla@glandium.org>
Wed, 23 Jul 2014 13:30:52 +0900
changeset 217269 562e8494fb471eec5fd9df66a0f7fca6bea1811d
parent 172551 f4b143a9c6241644470aab2a35e8e8045d0b59ff
child 219696 98614c9969ce8ba59350f978514f60706e18e03b
permissions -rw-r--r--
Bug 1036894 part 8 - Move most in-tree library linkage information to moz.build, as USE_LIBS. 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/.

# We must specify CPP_SOURCES in order to link using the proper c++ linker
# on certain platforms.
SOURCES += [
    'nsTestSample.cpp',
]

# SIMPLE_PROGRAMS compiles a single .cpp file into an executable
SIMPLE_PROGRAMS += [
    'nsTestSample'
]

# Whatever code is going to be linked with the *standalone* glue must be
# built with the XPCOM_GLUE define set.
DEFINES['XPCOM_GLUE'] = True

# USE_LIBS specifies the in-tree  libraries to link when building an executable
# program from this directory. We link against the "standalone glue" which does
# not require# that the application be linked against the XPCOM dynamic library
# or the NSPR dynamic libraries.
USE_LIBS += [
    'xpcomglue',
]