Mercurial > hg > piper-vamp-js
changeset 90:7f2955eb7b0f
Conditional export
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Thu, 15 Sep 2016 12:05:23 +0100 |
parents | 498f36aab7d4 |
children | fb3912e09acf |
files | Makefile.inc.em |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile.inc.em Wed Sep 14 17:58:51 2016 +0100 +++ b/Makefile.inc.em Thu Sep 15 12:05:23 2016 +0100 @@ -54,7 +54,7 @@ $(MODULE): $(SOURCES) $(ADAPTER_HEADERS) $(SDK_SOURCES) $(CXX) $(CXXFLAGS) $(EMFLAGS) $(INCPATH) -o $(MODULE) \ $(SOURCES) $(SDK_SOURCES) $(MODULE_LDFLAGS) && \ - ( echo "module.exports=$(MODULE_SYMBOL);" >> $(MODULE) ) + ( echo "if (typeof process === 'object') module.exports=$(MODULE_SYMBOL);" >> $(MODULE) ) clean: rm -f $(MODULE)