From 54dc788b114250717e83947c3fd391bfd4ee87d1 Mon Sep 17 00:00:00 2001 From: Jactry Zeng Date: Wed, 28 Jun 2017 15:45:30 +0800 Subject: [PATCH] powershell: Add a stub program. Signed-off-by: Jactry Zeng Signed-off-by: Alexandre Julliard --- configure | 2 ++ configure.ac | 1 + programs/powershell/Makefile.in | 5 +++++ programs/powershell/main.c | 33 +++++++++++++++++++++++++++++++++ 4 files changed, 41 insertions(+) create mode 100644 programs/powershell/Makefile.in create mode 100644 programs/powershell/main.c diff --git a/configure b/configure index 95cfa25e386..f334749b2a8 100755 --- a/configure +++ b/configure @@ -1599,6 +1599,7 @@ enable_notepad enable_oleview enable_ping enable_plugplay +enable_powershell enable_presentationfontcache enable_progman enable_reg @@ -18868,6 +18869,7 @@ wine_fn_config_program notepad enable_notepad clean,install,installbin,manpage wine_fn_config_program oleview enable_oleview clean,install wine_fn_config_program ping enable_ping install wine_fn_config_program plugplay enable_plugplay install +wine_fn_config_program powershell enable_powershell install wine_fn_config_program presentationfontcache enable_presentationfontcache install wine_fn_config_program progman enable_progman clean,install wine_fn_config_program reg enable_reg clean,install diff --git a/configure.ac b/configure.ac index 77b04b9c162..bae5ba0ba7b 100644 --- a/configure.ac +++ b/configure.ac @@ -3693,6 +3693,7 @@ WINE_CONFIG_PROGRAM(notepad,,[clean,install,installbin,manpage]) WINE_CONFIG_PROGRAM(oleview,,[clean,install]) WINE_CONFIG_PROGRAM(ping,,[install]) WINE_CONFIG_PROGRAM(plugplay,,[install]) +WINE_CONFIG_PROGRAM(powershell,,[install]) WINE_CONFIG_PROGRAM(presentationfontcache,,[install]) WINE_CONFIG_PROGRAM(progman,,[clean,install]) WINE_CONFIG_PROGRAM(reg,,[clean,install]) diff --git a/programs/powershell/Makefile.in b/programs/powershell/Makefile.in new file mode 100644 index 00000000000..8a8c319bc5a --- /dev/null +++ b/programs/powershell/Makefile.in @@ -0,0 +1,5 @@ +MODULE = powershell.exe +APPMODE = -mconsole -municode + +C_SRCS = \ + main.c diff --git a/programs/powershell/main.c b/programs/powershell/main.c new file mode 100644 index 00000000000..d39cdc032e7 --- /dev/null +++ b/programs/powershell/main.c @@ -0,0 +1,33 @@ +/* + * Copyright 2017 Jactry Zeng for CodeWeavers + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(powershell); + +int wmain(int argc, WCHAR *argv[]) +{ + int i; + + WINE_FIXME("stub:"); + for (i = 0; i < argc; i++) + WINE_FIXME(" %s", wine_dbgstr_w(argv[i])); + WINE_FIXME("\n"); + + return 0; +}