1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/xpcom/sample/program/moz.build Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,20 @@ 1.4 +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- 1.5 +# vim: set filetype=python: 1.6 +# This Source Code Form is subject to the terms of the Mozilla Public 1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.9 + 1.10 +# We must specify CPP_SOURCES in order to link using the proper c++ linker 1.11 +# on certain platforms. 1.12 +SOURCES += [ 1.13 + 'nsTestSample.cpp', 1.14 +] 1.15 + 1.16 +# SIMPLE_PROGRAMS compiles a single .cpp file into an executable 1.17 +SIMPLE_PROGRAMS += [ 1.18 + 'nsTestSample' 1.19 +] 1.20 + 1.21 +# Whatever code is going to be linked with the *standalone* glue must be 1.22 +# built with the XPCOM_GLUE define set. 1.23 +DEFINES['XPCOM_GLUE'] = True