in project_future.py [0:0]
def get_build_command(self, incremental=False):
project_param = self.project_param
target_param = self.target_param
try:
build_parent_dir = common.check_execute_output([
'git', '-C', os.path.dirname(self._project),
'rev-parse', '--show-toplevel']).rstrip()
except common.ExecuteCommandFailure as error:
build_parent_dir = os.path.dirname(self._project)
build_dir = os.path.join(build_parent_dir, 'build')
build = []
if self._clean_build and not incremental and not self._pretargets:
build += ['clean']
build += ['build']
dir_override = []
if self._has_scheme:
dir_override += ['-derivedDataPath', build_dir]
elif 'SYMROOT' not in self._env:
dir_override += ['SYMROOT=' + build_dir]
dir_override += [k + "=" + v for k, v in self._env.items()]
command = (['xcodebuild']
+ build
+ [project_param, self._project,
target_param, self._target,
'-destination', self._destination]
+ dir_override
+ ['CODE_SIGN_IDENTITY=',
'CODE_SIGNING_REQUIRED=NO',
'ENTITLEMENTS_REQUIRED=NO',
'ENABLE_BITCODE=NO',
'INDEX_ENABLE_DATA_STORE=NO',
'GCC_TREAT_WARNINGS_AS_ERRORS=NO',
'SWIFT_TREAT_WARNINGS_AS_ERRORS=NO'])
command += self._added_xcodebuild_flags
if self._destination == 'generic/platform=watchOS':
command += ['ARCHS=armv7k']
return command