xulrunner/stub/Makefile.in
author Brian O'Keefe <bokeefe@alum.wpi.edu>
Tue, 30 Apr 2013 09:08:31 -0400
changeset 141283 64c7ba1d3d0457e8d75e4b30550f5f8c8f0d9d63
parent 135911 97e443115162450609702fc72c99b6d88d8703d6
child 141287 b2c7297fe7ed8ab6deeda3e48765d9edc3897b44
permissions -rw-r--r--
Bug 862986 - Part 2: Migrate PROGRAM from Makefile.in to moz.build. r=gps

# 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

# Statically link against the RTL on windows
USE_STATIC_LIBS = 1
# Don't create a dependency on mozglue
MOZ_GLUE_LDFLAGS =

CPPSRCS   = nsXULStub.cpp

LOCAL_INCLUDES = \
  -I$(topsrcdir)/xpcom/build \
  -I$(topsrcdir)/xpcom/base \
  $(NULL)

DEFINES  += -DXPCOM_GLUE
STL_FLAGS=

LIBS = \
  $(XPCOM_STANDALONE_STATICRUNTIME_GLUE_LDOPTS) \
  $(NULL)

# Need to link with CoreFoundation on Mac
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
LIBS            += \
		$(TK_LIBS) \
		$(NULL)
endif

ifeq ($(OS_ARCH),WINNT)
RCINCLUDE = xulrunner-stub.rc
ifndef GNU_CC
RCFLAGS += -DMOZ_XULRUNNER -I$(srcdir)
else
RCFLAGS += -DMOZ_XULRUNNER --include-dir $(srcdir)
endif
LOCAL_INCLUDES += -I$(topsrcdir)/toolkit/xre
endif

ifndef MOZ_WINCONSOLE
ifdef MOZ_DEBUG
MOZ_WINCONSOLE = 1
else
MOZ_WINCONSOLE = 0
endif
endif

include $(topsrcdir)/config/config.mk

ifdef _MSC_VER
WIN32_EXE_LDFLAGS += -ENTRY:wmainCRTStartup
endif

ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))

FRAMEWORK_NAME = XUL
FRAMEWORK_VERSION = $(MOZILLA_VERSION)

FINAL_TARGET = \
   $(DIST)/$(FRAMEWORK_NAME).framework/Versions/$(FRAMEWORK_VERSION)

endif

include $(topsrcdir)/config/rules.mk

ifeq ($(OS_ARCH),WINNT)
OS_LIBS += $(call EXPAND_LIBNAME,shell32)
endif