2011-05-12 11:22:35 -07:00
|
|
|
#
|
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-05-12 11:22:35 -07:00
|
|
|
|
2012-08-04 11:26:44 -07:00
|
|
|
DEPTH = @DEPTH@
|
2011-05-12 11:22:35 -07:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
|
|
|
MODULE = telemetry
|
2011-06-20 14:47:55 -07:00
|
|
|
XPIDL_MODULE = telemetry
|
|
|
|
MODULE_NAME = telemetry
|
|
|
|
GRE_MODULE = 1
|
|
|
|
|
|
|
|
LIBXUL_LIBRARY = 1
|
|
|
|
EXPORT_LIBRARY = 1
|
|
|
|
IS_COMPONENT = 1
|
|
|
|
|
|
|
|
LIBRARY_NAME = telemetry
|
|
|
|
|
2011-06-20 14:47:58 -07:00
|
|
|
EXPORTS_NAMESPACES = mozilla
|
|
|
|
|
|
|
|
EXPORTS_mozilla = \
|
|
|
|
Telemetry.h \
|
2012-08-21 14:14:38 -07:00
|
|
|
ProcessedStack.h \
|
2012-08-24 12:54:55 -07:00
|
|
|
TelemetryHistogramEnums.h \
|
2011-06-20 14:47:58 -07:00
|
|
|
$(NULL)
|
|
|
|
|
2011-06-20 14:47:55 -07:00
|
|
|
XPIDLSRCS = \
|
|
|
|
nsITelemetry.idl \
|
2012-12-03 10:31:00 -08:00
|
|
|
nsITelemetryPing.idl \
|
2011-06-20 14:47:55 -07:00
|
|
|
$(NULL)
|
2011-05-12 11:22:35 -07:00
|
|
|
|
2012-10-15 11:14:53 -07:00
|
|
|
EXTRA_PP_COMPONENTS = \
|
|
|
|
TelemetryPing.js \
|
|
|
|
$(NULL)
|
|
|
|
|
2011-05-12 11:22:35 -07:00
|
|
|
EXTRA_COMPONENTS = \
|
|
|
|
TelemetryPing.manifest \
|
|
|
|
$(NULL)
|
|
|
|
|
2012-02-08 14:36:01 -08:00
|
|
|
EXTRA_JS_MODULES = \
|
|
|
|
TelemetryStopwatch.jsm \
|
|
|
|
$(NULL)
|
|
|
|
|
2011-06-20 14:47:55 -07:00
|
|
|
CPPSRCS = \
|
|
|
|
Telemetry.cpp \
|
|
|
|
$(NULL)
|
|
|
|
|
2013-01-08 06:04:37 -08:00
|
|
|
LOCAL_INCLUDES += -I$(topsrcdir)/xpcom/build
|
|
|
|
|
2011-06-20 14:47:55 -07:00
|
|
|
EXTRA_DSO_LDOPTS += \
|
|
|
|
$(MOZ_COMPONENT_LIBS) \
|
|
|
|
$(MOZ_JS_LIBS) \
|
|
|
|
$(NULL)
|
|
|
|
|
2012-02-04 09:32:24 -08:00
|
|
|
TEST_DIRS += tests
|
2011-05-12 11:22:35 -07:00
|
|
|
|
2012-02-01 20:42:20 -08:00
|
|
|
ifdef MOZILLA_OFFICIAL
|
|
|
|
DEFINES += -DMOZILLA_OFFICIAL
|
|
|
|
endif
|
|
|
|
|
2013-02-20 10:46:47 -08:00
|
|
|
MOZ_HISTOGRAMS_VERSION ?= $(shell hg path default)rev/$(shell hg -R $(topsrcdir) parent --template="{node|short}\n" 2>/dev/null)
|
|
|
|
ifdef MOZ_HISTOGRAMS_VERSION
|
|
|
|
DEFINES += -DHISTOGRAMS_FILE_VERSION="$(MOZ_HISTOGRAMS_VERSION)"
|
|
|
|
endif
|
|
|
|
|
2011-06-20 14:47:55 -07:00
|
|
|
include $(topsrcdir)/config/config.mk
|
2011-05-12 11:22:35 -07:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
2011-06-20 14:47:55 -07:00
|
|
|
include $(topsrcdir)/ipc/chromium/chromium-config.mk
|
2012-08-24 12:54:55 -07:00
|
|
|
|
|
|
|
histograms_file := $(srcdir)/Histograms.json
|
|
|
|
histogram_enum_file := TelemetryHistogramEnums.h
|
|
|
|
histogram_data_file := TelemetryHistogramData.inc
|
|
|
|
|
2012-08-27 13:47:32 -07:00
|
|
|
enum_python_deps := \
|
|
|
|
$(srcdir)/gen-histogram-enum.py \
|
|
|
|
$(srcdir)/histogram_tools.py \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
data_python_deps := \
|
|
|
|
$(srcdir)/gen-histogram-data.py \
|
|
|
|
$(srcdir)/histogram_tools.py \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
$(histogram_enum_file): $(histograms_file) $(enum_python_deps)
|
2012-08-24 12:54:55 -07:00
|
|
|
$(PYTHON) $(srcdir)/gen-histogram-enum.py $< > $@
|
2012-08-27 13:47:32 -07:00
|
|
|
$(histogram_data_file): $(histograms_file) $(data_python_deps)
|
2012-08-24 12:54:55 -07:00
|
|
|
$(PYTHON) $(srcdir)/gen-histogram-data.py $< > $@
|
|
|
|
|
|
|
|
Telemetry.$(OBJ_SUFFIX): $(histogram_data_file)
|
|
|
|
|
|
|
|
GARBAGE += $(histogram_data_file) $(histogram_enum_file)
|