tools/profiler/Makefile.in
author Peter Van der Beken <peterv@propagandism.org>
Thu, 06 Dec 2012 11:41:14 +0100
changeset 120775 f23cff8ec6c9ab4cac0c4582967647140855a625
parent 120388 b11c3a2300b132d51f123a6d250c9d3aaf62374e
child 121102 5a9706887c6e5a67b8e7193f1502b671f21a211a
permissions -rw-r--r--
Fix for bug 818219 (Replace HTMLElement quickstubs with new binding methods) - Add a constructor to callbacks to allow conversion between callback types. r=bz.

#! gmake
#
# 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)
relativesrcdir = @relativesrcdir@

XPCSHELL_TESTS = tests

include $(DEPTH)/config/autoconf.mk

EXPORTS = sampler.h

ifdef MOZ_ENABLE_PROFILER_SPS
EXPORTS += \
  sps_sampler.h \
  shared-libraries.h \
  $(NULL)

LOCAL_INCLUDES += \
  -I$(topsrcdir)/mozglue/linker \
  -I$(topsrcdir)/ipc/chromium/src \
  $(NULL)

ifneq (,$(filter armeabi,$(ANDROID_CPU_ARCH)))
DEFINES += -DARCH_ARMV6
endif

ifneq (,$(MOZ_PROFILING))
ifneq (,$(filter Android,$(OS_TARGET)))
LOCAL_INCLUDES += \
  -I$(topsrcdir)/tools/profiler/libunwind/src/include \
  -I$(DEPTH)/tools/profiler/libunwind/src/include \
  $(NULL)

SHARED_LIBRARY_LIBS += \
  $(DEPTH)/tools/profiler/libunwind/src/src/.libs/libunwind-arm.$(LIB_SUFFIX) \
  $(NULL)

export::
	# Avoid building libunwind documentation
	$(topsrcdir)/tools/profiler/libunwind/dont_build_docs.sh $(DEPTH)/tools/profiler/libunwind/src/doc/Makefile
	$(call SUBMAKE,,libunwind/src)

distclean::
	$(call SUBMAKE,$@,libunwind/src)
endif
endif

MODULE          = profiler
MODULE_NAME     = nsProfilerModule
LIBRARY_NAME    = profiler
EXPORT_LIBRARY  = 1
LIBXUL_LIBRARY  = 1
IS_COMPONENT    = 1

CPPSRCS		= \
  nsProfilerFactory.cpp \
  nsProfiler.cpp \
  TableTicker.cpp \
  JSObjectBuilder.cpp \
  JSCustomObjectBuilder.cpp \
  $(NULL)

XPIDLSRCS = \
  nsIProfiler.idl \
  $(NULL)

EXTRA_JS_MODULES = \
  Profiler.jsm \
  $(NULL)

ifdef MOZ_OLD_LINKER
DEFINES += -DMOZ_OLD_LINKER
endif

ifneq (,$(filter Android Linux,$(OS_TARGET)))
CPPSRCS += \
  shared-libraries-linux.cc \
  platform-linux.cc \
  $(NULL)
endif

ifeq ($(OS_TARGET),Darwin)
CPPSRCS += \
  shared-libraries-macos.cc \
  platform-macos.cc \
  $(NULL)
endif

ifeq ($(OS_TARGET),WINNT)
CPPSRCS += \
  shared-libraries-win32.cc \
  platform-win32.cc \
  $(NULL)
endif

endif

include $(topsrcdir)/config/rules.mk