tools/profiler/Makefile.in
author Mike Hommey <mh+mozilla@glandium.org>
Sat, 04 Aug 2012 08:48:56 +0200
changeset 101418 2ef51674316aadfe26a46877b16794f758bf4b6d
parent 97750 3ee5063de5d557a45678038cfc47aeffc7c23fb6
child 101426 1fc17369c9a6c85dfd5724b9b6ecc073f0b3cc6c
permissions -rw-r--r--
Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted

#! 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)/ipc/chromium/src \
  $(NULL)

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 \
  $(NULL)

XPIDLSRCS = \
  nsIProfiler.idl \
  $(NULL)

EXTRA_JS_MODULES = \
  Profiler.jsm \
  $(NULL)

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