Jactry Zeng : powershell: Add a stub program.

Alexandre Julliard julliard at winehq.org
Thu Jul 13 14:41:33 CDT 2017


Module: wine
Branch: master
Commit: 54dc788b114250717e83947c3fd391bfd4ee87d1
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=54dc788b114250717e83947c3fd391bfd4ee87d1

Author: Jactry Zeng <jzeng at codeweavers.com>
Date:   Wed Jun 28 15:45:30 2017 +0800

powershell: Add a stub program.

Signed-off-by: Jactry Zeng <jzeng at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 configure                       |  2 ++
 configure.ac                    |  1 +
 programs/powershell/Makefile.in |  5 +++++
 programs/powershell/main.c      | 33 +++++++++++++++++++++++++++++++++
 4 files changed, 41 insertions(+)

diff --git a/configure b/configure
index 95cfa25..f334749 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 77b04b9..bae5ba0 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 0000000..8a8c319
--- /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 0000000..d39cdc0
--- /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;
+}




More information about the wine-cvs mailing list