def get_prebuild_command()

in project_future.py [0:0]


    def get_prebuild_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:
            build += ['clean']

        if self._pretargets:
            build += ['build']

        dir_override = []
        if self._has_scheme:
            dir_override += ['-derivedDataPath', build_dir]
        elif not 'SYMROOT' in self._env:
            dir_override += ['SYMROOT=' + build_dir]
        dir_override += [k + "=" + v for k, v in self._env.items()]

        project_target_params = [project_param, self._project,
                                 '-destination', self._destination]
        for pretarget in self._pretargets:
            project_target_params += [target_param, pretarget]

        command = (['xcodebuild']
                   + build
                   + project_target_params
                   + 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