OSDN Git Service

android: Support: add genrule for VCSRevision.h header
authorMauro Rossi <issor.oruam@gmail.com>
Sat, 8 Sep 2018 16:32:44 +0000 (18:32 +0200)
committerMauro Rossi <issor.oruam@gmail.com>
Thu, 15 Apr 2021 11:05:04 +0000 (13:05 +0200)
commit253d439a8d5047d88af617ff39b2c07bb0072f2c
tree6c56f449e3d1488fefd7e8bb54216be11016a978
parente199a4bde328132929b1a4bc78f6d9114547494b
android: Support: add genrule for VCSRevision.h header

Cmake build generates the header, in Android blueprint we need to add
a new "llvm-gen-revision" genrule to launch command script that will
generate "llvm/Support/VCSRevision.h" header.
For simplification the new genrule is added to "llvm-headers" library
which is already used to generate attributes and intrinsics headers.
Mesa python script git_sha1_gen.py is added to external/llvm top path,
with the only changes being the relative git_dir path at line 16 that
is changed from '..' to '.' and the content of generated header.
llvm/Android.bp
llvm/git_sha1_gen.py [new file with mode: 0644]