mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-26 11:31:06 +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):
|
def build_gir_if_needed(updated_submodule):
|
||||||
if updated_submodule == FAILURE:
|
if updated_submodule == FAILURE:
|
||||||
return False
|
return False
|
||||||
elif updated_submodule == NEED_UPDATE or not isfile('./gir/target/release/gir'):
|
print('=> Building gir...')
|
||||||
print('=> Building gir...')
|
if update_workspace() is True:
|
||||||
if update_workspace() is True:
|
print('<= Done!')
|
||||||
print('<= Done!')
|
else:
|
||||||
else:
|
print('<= Failed...')
|
||||||
print('<= Failed...')
|
return False
|
||||||
return False
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def regen_crates(path, level=0):
|
def regen_crates(path, level=0):
|
||||||
|
|
Loading…
Reference in a new issue