[DINPUT_WINETEST] Add a PCH.

This commit is contained in:
Amine Khaldi 2017-12-21 13:45:22 +01:00
parent b09a63709b
commit 0b21a561cd
7 changed files with 26 additions and 74 deletions

View file

@ -1,15 +1,17 @@
add_definitions(-DUSE_WINE_TODOS)
add_executable(dinput_winetest
list(APPEND SOURCE
device.c
dinput.c
joystick.c
keyboard.c
mouse.c
testlist.c)
precomp.h)
add_executable(dinput_winetest ${SOURCE} testlist.c)
target_link_libraries(dinput_winetest dinput_data_formats)
set_module_type(dinput_winetest win32cui)
add_importlibs(dinput_winetest dinput ole32 user32 msvcrt kernel32)
add_pch(dinput_winetest precomp.h SOURCE)
add_rostests_file(TARGET dinput_winetest)

View file

@ -16,18 +16,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#define WIN32_NO_STATUS
#define _INC_WINDOWS
#define COM_NO_WINDOWS_H
#define DIRECTINPUT_VERSION 0x0700
#define COBJMACROS
//#include <windows.h>
#include <wine/test.h>
//#include "windef.h"
#include <dinput.h>
#include "precomp.h"
static const DIOBJECTDATAFORMAT obj_data_format[] = {
{ &GUID_YAxis, 16, DIDFT_OPTIONAL|DIDFT_AXIS |DIDFT_MAKEINSTANCE(1), 0},

View file

@ -16,19 +16,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#define WIN32_NO_STATUS
#define _INC_WINDOWS
#define COM_NO_WINDOWS_H
#include "precomp.h"
#define DIRECTINPUT_VERSION 0x0700
#define COBJMACROS
#include <wine/test.h>
#include <initguid.h>
//#include <windows.h>
#include <dinput.h>
#include <dinputd.h>
HINSTANCE hInstance;

View file

@ -16,24 +16,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#define WIN32_NO_STATUS
#define _INC_WINDOWS
#define COM_NO_WINDOWS_H
#include "precomp.h"
#define DIRECTINPUT_VERSION 0x0700
#define COBJMACROS
//#include <windows.h>
//#include <math.h>
#include <stdio.h>
//#include <stdlib.h>
#include <wine/test.h>
//#include "windef.h"
//#include "wingdi.h"
#include <winnls.h>
#include <dinput.h>
#define numObjects(x) (sizeof(x) / sizeof(x[0]))

View file

@ -16,23 +16,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#define WIN32_NO_STATUS
#define _INC_WINDOWS
#define COM_NO_WINDOWS_H
#define DIRECTINPUT_VERSION 0x0700
#define COBJMACROS
//#include <windows.h>
//#include <math.h>
//#include <stdio.h>
//#include <stdlib.h>
#include <wine/test.h>
//#include "windef.h"
//#include "wingdi.h"
#include <dinput.h>
#include "precomp.h"
static void acquire_tests(IDirectInputA *pDI, HWND hwnd)
{

View file

@ -17,22 +17,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#define WIN32_NO_STATUS
#define _INC_WINDOWS
#define COM_NO_WINDOWS_H
#define DIRECTINPUT_VERSION 0x0700
#define COBJMACROS
//#include <windows.h>
//#include <math.h>
//#include <stdlib.h>
#include <wine/test.h>
//#include "windef.h"
//#include "wingdi.h"
#include <dinput.h>
#include "precomp.h"
static const HRESULT SetCoop_null_window[16] = {
E_INVALIDARG, E_INVALIDARG, E_INVALIDARG, E_INVALIDARG,

View file

@ -0,0 +1,17 @@
#ifndef _DINPUT_WINETEST_PRECOMP_H_
#define _DINPUT_WINETEST_PRECOMP_H_
#define WIN32_NO_STATUS
#define _INC_WINDOWS
#define COM_NO_WINDOWS_H
#define DIRECTINPUT_VERSION 0x0700
#define COBJMACROS
#include <wine/test.h>
#include <initguid.h>
#include <dinput.h>
#endif /* !_DINPUT_WINETEST_PRECOMP_H_ */