diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-08-27 19:29:27 -0300 |
---|---|---|
committer | Hugo Lima <hugo.lima@openbossa.org> | 2009-08-28 14:16:38 -0300 |
commit | 6aebdfc467fb3a6436f418875d974542519666b0 (patch) | |
tree | 5f755d3f07ae0b287c6093286a5556a8e458e082 /main.cpp | |
parent | 7170eba0ae3b8c1017b08161e827894f6afa6693 (diff) |
added convenience binary applications to call the generatorrunner
with --generatorSet parameter for shiboken
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp new file mode 100644 index 000000000..6ca7da537 --- /dev/null +++ b/main.cpp @@ -0,0 +1,34 @@ +/* + * This file is part of the Boost Python Generator project. + * + * Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). + * + * Contact: PySide team <contact@pyside.org> + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +#include <QtCore> + +int main(int argc, char *argv[]) +{ + QStringList args; + args.append("--generatorSet=shiboken"); + for (int i = 1; i < argc; i++) + args.append(argv[i]); + return QProcess::execute("generatorrunner", args); +} + |