Dash:
[t2.git] / package / develop / gn / version.patch
blobe2e5e65f89a7926888ac59fe1349313692920395
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/gn/version.patch
3 # Copyright (C) 2021 The T2 SDE Project
4 #
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7 #
8 # This patch file is dual-licensed. It is available under the license the
9 # patched project is licensed under, as long as it is an OpenSource license
10 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
11 # of the GNU General Public License version 2 as used by the T2 SDE.
12 # --- T2-COPYRIGHT-NOTE-END ---
14 Prevent the build from trying to generate a version number using a .git dir
15 --- gn-69ec4fc/build/gen.py.orig 2021-10-24 19:44:02.604535132 +0200
16 +++ gn-69ec4fc/build/gen.py 2021-10-24 19:46:04.759540562 +0200
17 @@ -157,9 +157,9 @@
18 out_dir = options.out_path or os.path.join(REPO_ROOT, 'out')
19 if not os.path.isdir(out_dir):
20 os.makedirs(out_dir)
21 - if not options.no_last_commit_position:
22 - GenerateLastCommitPosition(host,
23 - os.path.join(out_dir, 'last_commit_position.h'))
24 + #if not options.no_last_commit_position:
25 + # GenerateLastCommitPosition(host,
26 + # os.path.join(out_dir, 'last_commit_position.h'))
27 WriteGNNinja(os.path.join(out_dir, 'build.ninja'), platform, host, options)
28 return 0