1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/gn/gn.conf
3 # Copyright (C) 2021 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
15 # Downloaded tarball does not contain toplevel project dir, sigh
16 var_insert taropt ' ' '--one-top-level'
18 hook_add premake 5 'gn_premake'
19 hook_add inmake 5 'gn_inmake'
20 hook_add postmake 5 'gn_postmake'
22 # Version number needs the .git dir which is not acceptable and not provided
23 # in tarballs so we hardcode it.
25 mkdir $builddir/$pkg-$ver/out/
26 cp $confdir/last_commit_position.h $builddir/$pkg-$ver/out/
31 ninja -C out/ -j$SDECFG_PARALLEL_MAX
35 install -D -m755 out/gn $root$bindir
36 install -D -m644 docs/* $root$docdir