VBoxTpG.cpp revision 29099c2d04b11e614f1fa399fab9e9162f2788b9
/* $Id$ */
/** @file
* IPRT Testcase / Tool - VBox Tracepoint Compiler.
*/
/*
* Copyright (C) 2010-2012 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
/*******************************************************************************
* Header Files *
*******************************************************************************/
#include <iprt/initterm.h>
#include "scmstream.h"
enum
{
kVBoxTpGOpt_32Bit = 1000,
};
{
if (RT_FAILURE(rc))
return 1;
/*
* Parse arguments and process input in order (because this is the only
* thing that works at the moment).
*/
static RTGETOPTDEF const s_aOpts[] =
{
};
enum
{
const char *pszAssembler = "yasm";
const char *pszAssemblerFmtOpt = "--oformat";
#ifdef RT_OS_DARWIN
#elif defined(RT_OS_WINDOWS)
#else
#endif
const char *pszAssemblerOutputOpt = "-o"
rc = RTGetOptInit(&GetOptState, argc, argv, &s_aOpts[0], RT_ELEMENTS(s_aOpts), 1, RTGETOPTINIT_FLAGS_OPTS_FIRST);
size_t cProcessed = 0;
{
switch (rc)
{
case 'h':
RTPrintf("VirtualBox Tracepoint Generator\n"
"\n"
"Usage: %s [options]\n"
"\n"
"Options:\n", g_szProgName);
else
return 1;
case 'V':
{
/* The following is assuming that svn does it's job here. */
static const char s_szRev[] = "$Revision$";
return 0;
}
case VINF_GETOPT_NOT_OPTION:
break; /* object files, ignore them. */
/* fall thru */
default:
{
if (RT_SUCCESS(rc2))
break;
if (rc2 != VERR_GETOPT_UNKNOWN_OPTION)
return 2;
}
}
}
return 0;
}