mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-12-23 00:26:31 +00:00
Run cargo build on gir unless there was a git submodule update failure
This commit is contained in:
parent
ca96014c47
commit
fec4e12410
1 changed files with 6 additions and 7 deletions
13
generator.py
13
generator.py
|
@ -57,13 +57,12 @@ def def_check_submodule(submodule_path):
|
|||
def build_gir_if_needed(updated_submodule):
|
||||
if updated_submodule == FAILURE:
|
||||
return False
|
||||
elif updated_submodule == NEED_UPDATE or not isfile('./gir/target/release/gir'):
|
||||
print('=> Building gir...')
|
||||
if update_workspace() is True:
|
||||
print('<= Done!')
|
||||
else:
|
||||
print('<= Failed...')
|
||||
return False
|
||||
print('=> Building gir...')
|
||||
if update_workspace() is True:
|
||||
print('<= Done!')
|
||||
else:
|
||||
print('<= Failed...')
|
||||
return False
|
||||
return True
|
||||
|
||||
def regen_crates(path, level=0):
|
||||
|
|
Loading…
Reference in a new issue