Allow setting VATSIM key on qmake commandline.

Summary: By qualifying the key with `isEmpty` it prevents overwriting a value specified on the commandline.

Reviewers: rwinklmeier

Reviewed By: rwinklmeier

Subscribers: jenkins

Tags: #swift_pilot_client

Differential Revision: https://dev.swift-project.org/D51
This commit is contained in:
Mathew Sutcliffe
2017-09-08 17:49:10 +01:00
parent f1211d328e
commit e98662d530

View File

@@ -2,10 +2,10 @@
# VATSIM client id as assigned by VATSIM Network team. The one below is a test key.
# It is working only with VATGER test server.
VATSIM_CLIENT_ID = "0xb9ba"
isEmpty(VATSIM_CLIENT_ID):VATSIM_CLIENT_ID = "0xb9ba"
# VATSIM private key, which belongs to the id above.
VATSIM_CLIENT_PRIVATE_KEY = "727d1efd5cb9f8d2c28372469d922bb4"
isEmpty(VATSIM_CLIENT_PRIVATE_KEY):VATSIM_CLIENT_PRIVATE_KEY = "727d1efd5cb9f8d2c28372469d922bb4"
# Comment the section below to build a version without VATSIM features enabled
BLACK_CONFIG *= SwiftVatsimSupport