js/xpconnect/shell/Makefile.in
author Ryan VanderMeulen <ryanvm@gmail.com>
Tue, 30 Apr 2013 21:09:41 -0400
changeset 130421 d5db4e09eeef840fd81294ab2a2a0344ea0cde96
parent 130420 c7937fb5f4bbe90cbe8fd030e40d36eeb9f34fb9
child 131410 557f1d26fb712722030373ff369d4dba8477260e
permissions -rw-r--r--
Backed out changesets c7937fb5f4bb and cf8db9b6bd61 (bug 862986) for bustage. CLOSED TREE

#
# 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/.

DEPTH		= @DEPTH@
topsrcdir	= @top_srcdir@
srcdir		= @srcdir@
VPATH		= @srcdir@

include $(DEPTH)/config/autoconf.mk

PROGRAM		= xpcshell$(BIN_SUFFIX)
SDK_BINARY	= $(PROGRAM)

CPPSRCS		= xpcshell.cpp

LOCAL_INCLUDES += \
  -I$(topsrcdir)/toolkit/xre \
  $(NULL)

ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
CMMSRCS += xpcshellMacUtils.mm
endif

ifeq (windows,$(MOZ_WIDGET_TOOLKIT))
  ifdef MOZ_APP_PROFILE
    DEFINES += -DMOZ_APP_PROFILE='"$(MOZ_APP_PROFILE)"'
  else
    ifdef MOZ_APP_VENDOR
      DEFINES += -DMOZ_APP_VENDOR='"$(MOZ_APP_VENDOR)"'
    endif
    ifdef MOZ_APP_BASENAME
      DEFINES += -DMOZ_APP_BASENAME='"$(MOZ_APP_BASENAME)"'
    endif
    DEFINES += -DMOZ_APP_NAME='"$(MOZ_APP_NAME)"'
  endif
endif

LIBS		= \
		$(DIST)/lib/$(LIB_PREFIX)xpcomglue_s.$(LIB_SUFFIX) \
		$(LIBXUL_LIBS) \
		$(XPCOM_LIBS) \
		$(NULL)

ifdef JS_SHARED_LIBRARY
LIBS +=	$(MOZ_JS_LIBS)
endif

LIBS +=	$(NSPR_LIBS)

NSDISTMODE = copy

ifeq ($(OS_TEST),ia64)
LIBS += $(JEMALLOC_LIBS)
endif
include $(topsrcdir)/config/config.mk

ifdef _MSC_VER
# Always enter a Windows program through wmain, whether or not we're
# a console application.
WIN32_EXE_LDFLAGS += -ENTRY:wmainCRTStartup
endif

include $(topsrcdir)/ipc/chromium/chromium-config.mk
include $(topsrcdir)/config/rules.mk

DEFINES		+= -DJS_THREADSAFE

ifdef MOZ_SHARK
DEFINES += -DMOZ_SHARK
endif
ifdef MOZ_CALLGRIND
DEFINES += -DMOZ_CALLGRIND
endif
ifdef MOZ_VTUNE
DEFINES += -DMOZ_VTUNE
CXXFLAGS += -IC:/Program\ Files/Intel/VTune/Analyzer/Include
LIBS += C:/Program\ Files/Intel/VTune/Analyzer/Lib/VtuneApi.lib
endif
#
# Line editing support.  If your OS supplies the readline library, define
# JS_READLINE to get line editing in the xpcshell.
#
# If you can't link against readline because of GPL licensing issues
# (which may not apply, as xpcshell.c has the dual license) you might
# look at mozilla/js/src/editline, which is license-free (but not part
# of the mozilla build.)
#
ifdef JS_READLINE
DEFINES += -DEDITLINE
LIBS += -lreadline $(JS_READLINE_EXTRA_LIBS)
endif