Browse Source
scripts/buildorder.py: do not handle static library subpackages
* They are not used during normal build procedures.
* During "fast-builds" (option '-i') they just consume our bandwidth.
emacs-27
Leonid Plyushch
5 years ago
No known key found for this signature in database
GPG Key ID: 45F2964132545795
1 changed files with
0 additions and
13 deletions
-
scripts/buildorder.py
|
|
@ -50,14 +50,6 @@ def parse_build_file_dependencies(path): |
|
|
|
|
|
|
|
return set(dependencies) |
|
|
|
|
|
|
|
def staticsplit(path): |
|
|
|
with open(path, encoding="utf-8") as build_script: |
|
|
|
for line in build_script: |
|
|
|
if line.startswith('TERMUX_PKG_NO_STATICSPLIT'): |
|
|
|
return False |
|
|
|
|
|
|
|
return True |
|
|
|
|
|
|
|
class TermuxPackage(object): |
|
|
|
"A main package definition represented by a directory with a build.sh file." |
|
|
|
def __init__(self, dir_path, fast_build_mode): |
|
|
@ -87,11 +79,6 @@ class TermuxPackage(object): |
|
|
|
self.deps.add(subpkg.name) |
|
|
|
self.deps |= subpkg.deps |
|
|
|
|
|
|
|
if staticsplit(build_sh_path): |
|
|
|
subpkg = TermuxSubPackage(self.dir + '/' + self.name + '-static' + '.subpackage.sh', self, virtual=True) |
|
|
|
self.subpkgs.append(subpkg) |
|
|
|
self.deps.add(subpkg.name) |
|
|
|
|
|
|
|
# Do not depend on itself |
|
|
|
self.deps.discard(self.name) |
|
|
|
# Do not depend on any sub package |
|
|
|