toolkit/components/telemetry/Makefile.in

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/toolkit/components/telemetry/Makefile.in	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,42 @@
     1.4 +#
     1.5 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.6 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.8 +
     1.9 +USE_RCS_MK := 1
    1.10 +include $(topsrcdir)/config/makefiles/rcs.mk
    1.11 +
    1.12 +DEFINES += -DMOZ_APP_VERSION='"$(MOZ_APP_VERSION)"'
    1.13 +
    1.14 +MOZ_HISTOGRAMS_VERSION ?= $(call getSourceRepo)/rev/$(firstword $(shell hg -R $(topsrcdir) parent --template='{node|short}\n' 2>/dev/null))
    1.15 +ifdef MOZ_HISTOGRAMS_VERSION
    1.16 +DEFINES += -DHISTOGRAMS_FILE_VERSION='$(MOZ_HISTOGRAMS_VERSION)'
    1.17 +endif
    1.18 +
    1.19 +INSTALL_TARGETS += histoenums
    1.20 +histoenums_FILES := TelemetryHistogramEnums.h
    1.21 +histoenums_DEST = $(DIST)/include/mozilla
    1.22 +histoenums_TARGET := export
    1.23 +
    1.24 +include $(topsrcdir)/config/rules.mk
    1.25 +
    1.26 +histograms_file := $(srcdir)/Histograms.json
    1.27 +histogram_enum_file := TelemetryHistogramEnums.h
    1.28 +histogram_data_file := TelemetryHistogramData.inc
    1.29 +
    1.30 +enum_python_deps := \
    1.31 +  $(srcdir)/gen-histogram-enum.py \
    1.32 +  $(srcdir)/histogram_tools.py \
    1.33 +  $(NULL)
    1.34 +
    1.35 +data_python_deps := \
    1.36 +  $(srcdir)/gen-histogram-data.py \
    1.37 +  $(srcdir)/histogram_tools.py \
    1.38 +  $(NULL)
    1.39 +
    1.40 +$(histogram_enum_file): $(histograms_file) $(enum_python_deps)
    1.41 +	$(PYTHON) $(srcdir)/gen-histogram-enum.py $< > $@
    1.42 +$(histogram_data_file): $(histograms_file) $(data_python_deps)
    1.43 +	$(PYTHON) $(srcdir)/gen-histogram-data.py $< > $@
    1.44 +
    1.45 +GARBAGE += $(histogram_enum_file)

mercurial