Use git commit id as release identifier in development builds
authorPyry Haulos <phaulos@google.com>
Thu, 20 Nov 2014 22:29:20 +0000 (14:29 -0800)
committerPyry Haulos <phaulos@google.com>
Thu, 20 Nov 2014 23:50:27 +0000 (15:50 -0800)
commit1de3ceccb54eb098350110f9c26fc0feba44de75
tree76203b25212d22d2fd1dc141423c2814d61076ba
parentce5bdf5f075fc660cea4dd3a8b136844c54d0e8f
Use git commit id as release identifier in development builds

This change adds support for using latest git commit id as release name
and id. This is done only if:

1) No existing release info file is detected. Release script will
generate that file so actual release builds won't accidentally use
development identifiers.

2) .git dir is detected.

3) Python binary is found, so this change doesn't add mandatory
build-time dependency to python.

Bug: 18445909
Change-Id: I3253b8b05f14e507774bb43331872607ffe6c1d0
framework/qphelper/CMakeLists.txt
framework/qphelper/gen_release_info.py [new file with mode: 0644]
framework/qphelper/qpInfo.c
scripts/make_release.py