From 08a509daee60f03cf09b86d2079506220e903fad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Mon, 20 Feb 2017 20:47:42 +0000 Subject: [PATCH] [MOFCOMP]: Add the MOF compiler stub from Wine, which allows fixing the very last step in the installation of Office 2010. CORE-12811 #resolve CORE-12279 svn path=/trunk/; revision=73867 --- .../base/applications/cmdutils/CMakeLists.txt | 1 + .../cmdutils/mofcomp/CMakeLists.txt | 6 ++++ .../applications/cmdutils/mofcomp/mofcomp.c | 29 +++++++++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 reactos/base/applications/cmdutils/mofcomp/CMakeLists.txt create mode 100644 reactos/base/applications/cmdutils/mofcomp/mofcomp.c diff --git a/reactos/base/applications/cmdutils/CMakeLists.txt b/reactos/base/applications/cmdutils/CMakeLists.txt index 45c4c5134c3..07642853147 100644 --- a/reactos/base/applications/cmdutils/CMakeLists.txt +++ b/reactos/base/applications/cmdutils/CMakeLists.txt @@ -9,6 +9,7 @@ add_subdirectory(help) add_subdirectory(hostname) add_subdirectory(lodctr) add_subdirectory(mode) +add_subdirectory(mofcomp) add_subdirectory(more) add_subdirectory(reg) add_subdirectory(schtasks) diff --git a/reactos/base/applications/cmdutils/mofcomp/CMakeLists.txt b/reactos/base/applications/cmdutils/mofcomp/CMakeLists.txt new file mode 100644 index 00000000000..4bc16afe9c0 --- /dev/null +++ b/reactos/base/applications/cmdutils/mofcomp/CMakeLists.txt @@ -0,0 +1,6 @@ + +add_executable(mofcomp mofcomp.c) +target_link_libraries(mofcomp wine) +set_module_type(mofcomp win32cui UNICODE) +add_importlibs(mofcomp msvcrt kernel32 ntdll) +add_cd_file(TARGET mofcomp DESTINATION reactos/system32/wbem FOR all) diff --git a/reactos/base/applications/cmdutils/mofcomp/mofcomp.c b/reactos/base/applications/cmdutils/mofcomp/mofcomp.c new file mode 100644 index 00000000000..07698e4eaa0 --- /dev/null +++ b/reactos/base/applications/cmdutils/mofcomp/mofcomp.c @@ -0,0 +1,29 @@ +/* + * Copyright 2010 Hans Leidekker 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 + */ + +#define WIN32_LEAN_AND_MEAN +#include + +#include +WINE_DEFAULT_DEBUG_CHANNEL(mofcomp); + +int wmain( int argc, const WCHAR *argv[] ) +{ + WINE_FIXME("stub\n"); + return 0; +}