parameters: ()
docstring: Return a list of code sign flags considering the build environment.
docstring_summary: Return a list of code sign flags considering the build environment.
docstring_tokens: Return a list of code sign flags considering the build environment .
function: def GetCodeSignFlags():
    """Return a list of code sign flags considering the build environment."""
    identity = GetIdentifier("")
    keychain = GetKeychain("")
  
    if identity and keychain:
      flags = "--deep --timestamp --options=runtime --keychain %s" % keychain
      return [
          "CODE_SIGN_IDENTITY=%s" % identity,
          "OTHER_CODE_SIGN_FLAGS=%s" % flags,
          # CODE_SIGN_INJECT_BASE_ENTITLEMENTS=NO is the configuration to address
          # the error of "The executable requests the
          #               com.apple.security.get-task-allow entitlement."
          "CODE_SIGN_INJECT_BASE_ENTITLEMENTS=NO",
      ]
    else:
      return []
function_tokens: def GetCodeSignFlags ( ) : identity = GetIdentifier ( "" ) keychain = GetKeychain ( "" ) if identity and keychain : flags = "--deep --timestamp --options=runtime --keychain %s" % keychain return [ "CODE_SIGN_IDENTITY=%s" % identity , "OTHER_CODE_SIGN_FLAGS=%s" % flags , # CODE_SIGN_INJECT_BASE_ENTITLEMENTS=NO is the configuration to address # the error of "The executable requests the #               com.apple.security.get-task-allow entitlement." "CODE_SIGN_INJECT_BASE_ENTITLEMENTS=NO" , ] else : return [ ]