mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 02:25:17 +00:00
[DINPUT_WINETEST] Add a PCH.
This commit is contained in:
parent
b09a63709b
commit
0b21a561cd
7 changed files with 26 additions and 74 deletions
|
@ -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)
|
||||
|
|
|
@ -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},
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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]))
|
||||
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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,
|
||||
|
|
17
modules/rostests/winetests/dinput/precomp.h
Normal file
17
modules/rostests/winetests/dinput/precomp.h
Normal 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_ */
|
Loading…
Reference in a new issue