qmake winrt package_manifest: Abort when uuidgen is not found
It's pretty easy to forget to run qmake from a vcvars prompt. Doing so causes the UUID to get persistently written as empty, breaking the vc project. Change-Id: I5badb31ad4f606abbe8c71979019e097c748e07a Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> Reviewed-by: Peng Wu <peng.wu@intopalo.com> Reviewed-by: Maurice Kalinowski <maurice.kalinowski@theqtcompany.com>
This commit is contained in:
parent
c6f5cffcc0
commit
e92b68b1a6
@ -71,7 +71,9 @@
|
||||
exists($$UUID_CACHE) {
|
||||
include($$UUID_CACHE)
|
||||
} else {
|
||||
WINRT_UUID = "WINRT_MANIFEST.identity = $$system(uuidgen)"
|
||||
WINRT_UUID = $$system(uuidgen)
|
||||
isEmpty(WINRT_UUID): error("Unable to generate a UUID. Make sure uuidgen is in your PATH.")
|
||||
WINRT_UUID = "WINRT_MANIFEST.identity = $$WINRT_UUID"
|
||||
write_file($$UUID_CACHE, WINRT_UUID)|error("Unable to write the UUID cache; aborting.")
|
||||
eval($$WINRT_UUID)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user