2011-08-26 17:05:37 -07:00
|
|
|
#! gmake
|
|
|
|
#
|
2012-05-21 04:12:37 -07:00
|
|
|
# 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/.
|
2011-08-26 17:05:37 -07:00
|
|
|
|
2012-08-04 11:26:44 -07:00
|
|
|
DEPTH = @DEPTH@
|
2012-08-30 08:48:35 -07:00
|
|
|
topsrcdir = @top_srcdir@
|
2011-08-26 17:05:37 -07:00
|
|
|
srcdir = @srcdir@
|
2012-01-28 22:56:41 -08:00
|
|
|
VPATH = $(srcdir)
|
2012-08-04 11:26:44 -07:00
|
|
|
relativesrcdir = @relativesrcdir@
|
2012-06-26 14:57:43 -07:00
|
|
|
|
|
|
|
XPCSHELL_TESTS = tests
|
2011-08-26 17:05:37 -07:00
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
2012-05-09 13:54:33 -07:00
|
|
|
EXPORTS = sampler.h
|
2012-03-13 01:48:00 -07:00
|
|
|
|
|
|
|
ifdef MOZ_ENABLE_PROFILER_SPS
|
|
|
|
EXPORTS += \
|
2011-08-26 17:05:37 -07:00
|
|
|
sps_sampler.h \
|
2012-03-12 04:07:05 -07:00
|
|
|
shared-libraries.h \
|
2011-08-26 17:05:37 -07:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
LOCAL_INCLUDES += \
|
2012-08-30 08:48:35 -07:00
|
|
|
-I$(topsrcdir)/mozglue/linker \
|
2011-08-26 17:05:37 -07:00
|
|
|
-I$(topsrcdir)/ipc/chromium/src \
|
|
|
|
$(NULL)
|
|
|
|
|
2012-10-18 08:12:53 -07:00
|
|
|
ifneq (,$(filter armeabi,$(ANDROID_CPU_ARCH)))
|
|
|
|
DEFINES += -DARCH_ARMV6
|
|
|
|
endif
|
|
|
|
|
2011-08-26 17:05:37 -07:00
|
|
|
MODULE = profiler
|
2011-11-04 14:07:50 -07:00
|
|
|
MODULE_NAME = nsProfilerModule
|
2011-08-26 17:05:37 -07:00
|
|
|
LIBRARY_NAME = profiler
|
|
|
|
EXPORT_LIBRARY = 1
|
|
|
|
LIBXUL_LIBRARY = 1
|
2011-11-04 14:07:50 -07:00
|
|
|
IS_COMPONENT = 1
|
2013-01-29 21:12:07 -08:00
|
|
|
ifndef _MSC_VER
|
|
|
|
FAIL_ON_WARNINGS = 1
|
|
|
|
endif # !_MSC_VER
|
2011-08-26 17:05:37 -07:00
|
|
|
|
|
|
|
CPPSRCS = \
|
2011-11-04 14:07:50 -07:00
|
|
|
nsProfilerFactory.cpp \
|
|
|
|
nsProfiler.cpp \
|
2012-03-13 01:48:00 -07:00
|
|
|
TableTicker.cpp \
|
2012-11-30 09:46:59 -08:00
|
|
|
JSObjectBuilder.cpp \
|
2012-11-30 09:49:20 -08:00
|
|
|
JSCustomObjectBuilder.cpp \
|
2011-11-04 14:07:50 -07:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
XPIDLSRCS = \
|
|
|
|
nsIProfiler.idl \
|
2011-08-26 17:05:37 -07:00
|
|
|
$(NULL)
|
|
|
|
|
2011-11-04 14:07:50 -07:00
|
|
|
EXTRA_JS_MODULES = \
|
|
|
|
Profiler.jsm \
|
|
|
|
$(NULL)
|
|
|
|
|
2011-12-15 12:44:13 -08:00
|
|
|
ifneq (,$(filter Android Linux,$(OS_TARGET)))
|
2011-08-26 17:05:37 -07:00
|
|
|
CPPSRCS += \
|
2011-12-15 04:31:41 -08:00
|
|
|
shared-libraries-linux.cc \
|
2011-10-28 13:47:25 -07:00
|
|
|
platform-linux.cc \
|
2011-08-26 17:05:37 -07:00
|
|
|
$(NULL)
|
|
|
|
endif
|
2011-12-01 07:06:20 -08:00
|
|
|
|
2012-03-13 01:48:00 -07:00
|
|
|
ifeq ($(OS_TARGET),Darwin)
|
2011-12-01 07:06:20 -08:00
|
|
|
CPPSRCS += \
|
2011-12-15 03:56:52 -08:00
|
|
|
shared-libraries-macos.cc \
|
2012-02-03 12:19:18 -08:00
|
|
|
platform-macos.cc \
|
2011-12-01 07:06:20 -08:00
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2011-12-04 11:09:00 -08:00
|
|
|
ifeq ($(OS_TARGET),WINNT)
|
|
|
|
CPPSRCS += \
|
2011-12-16 07:56:06 -08:00
|
|
|
shared-libraries-win32.cc \
|
2011-12-04 11:09:00 -08:00
|
|
|
platform-win32.cc \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2012-03-13 01:48:00 -07:00
|
|
|
endif
|
2011-08-26 17:05:37 -07:00
|
|
|
|
2012-03-13 01:48:00 -07:00
|
|
|
include $(topsrcdir)/config/rules.mk
|