2
# This Source Code Form is subject to the terms of the Mozilla Public
3
# License, v. 2.0. If a copy of the MPL was not distributed with this
4
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
7
topsrcdir = @top_srcdir@
11
include $(DEPTH)/config/autoconf.mk
14
XPIDL_MODULE = telemetry
15
MODULE_NAME = telemetry
22
LIBRARY_NAME = telemetry
24
EXPORTS_NAMESPACES = mozilla
29
TelemetryHistogramEnums.h \
37
TelemetryPing.manifest \
42
TelemetryStopwatch.jsm \
50
$(MOZ_COMPONENT_LIBS) \
56
ifdef MOZILLA_OFFICIAL
57
DEFINES += -DMOZILLA_OFFICIAL
60
include $(topsrcdir)/config/config.mk
61
include $(topsrcdir)/config/rules.mk
62
include $(topsrcdir)/ipc/chromium/chromium-config.mk
64
histograms_file := $(srcdir)/Histograms.json
65
histogram_enum_file := TelemetryHistogramEnums.h
66
histogram_data_file := TelemetryHistogramData.inc
68
$(histogram_enum_file): $(histograms_file) $(srcdir)/gen-histogram-enum.py
69
$(PYTHON) $(srcdir)/gen-histogram-enum.py $< > $@
70
$(histogram_data_file): $(histograms_file) $(srcdir)/gen-histogram-data.py
71
$(PYTHON) $(srcdir)/gen-histogram-data.py $< > $@
73
Telemetry.$(OBJ_SUFFIX): $(histogram_data_file)
75
GARBAGE += $(histogram_data_file) $(histogram_enum_file)