[MSI_WINETEST] Add a PCH.
authorAmine Khaldi <amine.khaldi@reactos.org>
Mon, 18 Dec 2017 12:48:13 +0000 (13:48 +0100)
committerAmine Khaldi <amine.khaldi@reactos.org>
Mon, 18 Dec 2017 12:48:13 +0000 (13:48 +0100)
13 files changed:
modules/rostests/winetests/msi/CMakeLists.txt
modules/rostests/winetests/msi/action.c
modules/rostests/winetests/msi/automation.c
modules/rostests/winetests/msi/db.c
modules/rostests/winetests/msi/format.c
modules/rostests/winetests/msi/install.c
modules/rostests/winetests/msi/msi.c
modules/rostests/winetests/msi/package.c
modules/rostests/winetests/msi/patch.c
modules/rostests/winetests/msi/precomp.h [new file with mode: 0644]
modules/rostests/winetests/msi/record.c
modules/rostests/winetests/msi/source.c
modules/rostests/winetests/msi/suminfo.c

index 0149846..3a3a03d 100644 (file)
@@ -15,10 +15,11 @@ list(APPEND SOURCE
     record.c
     source.c
     suminfo.c
-    testlist.c)
+    precomp.h)
 
-add_executable(msi_winetest ${SOURCE})
+add_executable(msi_winetest ${SOURCE} testlist.c)
 target_link_libraries(msi_winetest uuid)
 set_module_type(msi_winetest win32cui)
 add_importlibs(msi_winetest cabinet msi shell32 ole32 oleaut32 user32 advapi32 version msvcrt kernel32)
+add_pch(msi_winetest precomp.h SOURCE)
 add_rostests_file(TARGET msi_winetest)
index 11e244c..7d8eaa2 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define _WIN32_MSI 300
-#include <stdio.h>
-#include <stdlib.h>
-
-#include <windows.h>
-#include <msiquery.h>
-#include <msidefs.h>
-#include <msi.h>
-#include <fci.h>
-#include <srrestoreptapi.h>
-#include <wtypes.h>
-#include <shellapi.h>
-#include <winsvc.h>
-
-#include "wine/test.h"
+#include "precomp.h"
 
 static UINT (WINAPI *pMsiQueryComponentStateA)
     (LPCSTR, LPCSTR, MSIINSTALLCONTEXT, LPCSTR, INSTALLSTATE *);
index e4d2faa..1cb4959 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define COBJMACROS
 
-#include <stdio.h>
+#include "precomp.h"
 
-#include <initguid.h>
-#include <windows.h>
-#include <msiquery.h>
-#include <msidefs.h>
-#include <msi.h>
-#include <fci.h>
-#include <oaidl.h>
-
-#include "wine/test.h"
+#include <ole2.h>
 
 static BOOL is_wow64;
 
index 4ea1f10..5f0738d 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define COBJMACROS
-
-#include <stdio.h>
-
-#include <windows.h>
-#include <objidl.h>
-#include <msi.h>
-#include <msidefs.h>
-#include <msiquery.h>
-
-#include "wine/test.h"
+#include "precomp.h"
 
 static const char *msifile = "winetest-db.msi";
 static const char *msifile2 = "winetst2-db.msi";
index b476c6b..a8bd290 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include <stdio.h>
-#include <windows.h>
-#include <shlwapi.h>
-#include <msi.h>
-#include <msiquery.h>
-
-#include "wine/test.h"
+#include "precomp.h"
 
 static const char msifile[] = "winetest-format.msi";
 static const WCHAR msifileW[] =
index 47a8ad9..21ef1b2 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define _WIN32_MSI 300
-#define COBJMACROS
-
-#include <stdio.h>
-
-#include <windows.h>
-#include <msiquery.h>
-#include <msidefs.h>
-#include <msi.h>
-#include <fci.h>
-#include <objidl.h>
-#include <srrestoreptapi.h>
-#include <shlobj.h>
-
-#include "wine/test.h"
+#include "precomp.h"
 
 static UINT (WINAPI *pMsiQueryComponentStateA)
     (LPCSTR, LPCSTR, MSIINSTALLCONTEXT, LPCSTR, INSTALLSTATE*);
index 6ae7753..25d9dad 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define _WIN32_MSI 300
-#define COBJMACROS
-
-#include <stdio.h>
-#include <windows.h>
-#include <msi.h>
-#include <msiquery.h>
-#include <msidefs.h>
-#include <sddl.h>
-#include <fci.h>
-
-#include "wine/test.h"
+#include "precomp.h"
 
 static BOOL is_wow64;
 static const char msifile[] = "winetest.msi";
index c00ed61..6834bec 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define COBJMACROS
+#include "precomp.h"
 
 #include <assert.h>
-#include <stdio.h>
-#include <windows.h>
-#include <msidefs.h>
-#include <msi.h>
-#include <msiquery.h>
-#include <srrestoreptapi.h>
 #include <shlobj.h>
 
-#include "wine/test.h"
-
 static BOOL is_wow64;
 static const char msifile[] = "winetest-package.msi";
 static const WCHAR msifileW[] =
index 6aeb4b1..bb2276e 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define _WIN32_MSI 300
-#define COBJMACROS
-
-#include <stdio.h>
-
-#include <windows.h>
-#include <msiquery.h>
-#include <msidefs.h>
-#include <msi.h>
-
-#include "wine/test.h"
+#include "precomp.h"
 
 static UINT (WINAPI *pMsiApplyPatchA)( LPCSTR, LPCSTR, INSTALLTYPE, LPCSTR );
 static UINT (WINAPI *pMsiGetPatchInfoExA)( LPCSTR, LPCSTR, LPCSTR, MSIINSTALLCONTEXT,
diff --git a/modules/rostests/winetests/msi/precomp.h b/modules/rostests/winetests/msi/precomp.h
new file mode 100644 (file)
index 0000000..67839b1
--- /dev/null
@@ -0,0 +1,27 @@
+#ifndef _MSI_WINETEST_PRECOMP_H_
+#define _MSI_WINETEST_PRECOMP_H_
+
+#define _WIN32_MSI 300
+
+#include <stdio.h>
+
+#define WIN32_NO_STATUS
+#define _INC_WINDOWS
+#define COM_NO_WINDOWS_H
+#define COBJMACROS
+
+#include <wine/test.h>
+
+#include <winuser.h>
+#include <winreg.h>
+#include <winnls.h>
+#include <winsvc.h>
+#include <winver.h>
+#include <objbase.h>
+#include <msiquery.h>
+#include <msidefs.h>
+#include <fci.h>
+#include <srrestoreptapi.h>
+#include <shellapi.h>
+
+#endif /* !_MSI_WINETEST_PRECOMP_H_ */
index 5caaefc..1106e25 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include <windows.h>
-#include <msi.h>
-#include <msiquery.h>
-
-#include "wine/test.h"
+#include "precomp.h"
 
 static const char *msifile = "winetest-record.msi";
 static const WCHAR msifileW[] =
index 1d94695..daf2979 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define _WIN32_MSI 300
+#include "precomp.h"
 
-#include <stdio.h>
-
-#include <windows.h>
-#include <msiquery.h>
-#include <msidefs.h>
-#include <msi.h>
-#include <sddl.h>
 #include <secext.h>
 
-#include "wine/test.h"
-
 static BOOL is_wow64;
 
 static BOOL (WINAPI *pConvertSidToStringSidA)(PSID, LPSTR*);
index 8c2e292..40fcef4 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define COBJMACROS
-
-#include <stdio.h>
-#include <windows.h>
-#include <msi.h>
-#include <msiquery.h>
-#include <objidl.h>
-
-#include "wine/test.h"
+#include "precomp.h"
 
 /*
  * The following are defined in Windows SDK's msidefs.h