Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
81da9ff0
Commit
81da9ff0
authored
Aug 11, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Sep 05, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makedep: Use #pragma makedep testdll for TESTDLL resources.
parent
2f8fa39d
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
117 additions
and
11 deletions
+117
-11
wine.combase.test.c
dlls/combase/tests/wine.combase.test.c
+4
-0
driver_bus.c
dlls/dinput/tests/driver_bus.c
+4
-0
driver_hid.c
dlls/dinput/tests/driver_hid.c
+4
-0
driver_hid_poll.c
dlls/dinput/tests/driver_hid_poll.c
+4
-0
testdll.c
dlls/imagehlp/tests/testdll.c
+4
-0
ime_wrapper.c
dlls/imm32/tests/ime_wrapper.c
+4
-0
dummy.c
dlls/kernel32/tests/dummy.c
+22
-0
custom.c
dlls/msi/tests/custom.c
+4
-0
selfreg.c
dlls/msi/tests/selfreg.c
+4
-0
driver.c
dlls/ntoskrnl.exe/tests/driver.c
+4
-0
driver2.c
dlls/ntoskrnl.exe/tests/driver2.c
+4
-0
driver3.c
dlls/ntoskrnl.exe/tests/driver3.c
+4
-0
driver_netio.c
dlls/ntoskrnl.exe/tests/driver_netio.c
+4
-0
driver_pnp.c
dlls/ntoskrnl.exe/tests/driver_pnp.c
+4
-0
testlib.c
dlls/ole32/tests/testlib.c
+4
-0
coinst.c
dlls/setupapi/tests/coinst.c
+4
-0
selfreg.c
dlls/setupapi/tests/selfreg.c
+4
-0
threaddll.c
dlls/ucrtbase/tests/threaddll.c
+4
-0
makedep.c
tools/makedep.c
+27
-11
No files found.
dlls/combase/tests/wine.combase.test.c
View file @
81da9ff0
...
...
@@ -16,6 +16,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#if 0
#pragma makedep testdll
#endif
#include <stdarg.h>
#include <stddef.h>
...
...
dlls/dinput/tests/driver_bus.c
View file @
81da9ff0
...
...
@@ -18,6 +18,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#if 0
#pragma makedep testdll
#endif
#include <stdarg.h>
#include <stdio.h>
...
...
dlls/dinput/tests/driver_hid.c
View file @
81da9ff0
...
...
@@ -16,6 +16,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#if 0
#pragma makedep testdll
#endif
#include <stdarg.h>
#include <stdio.h>
...
...
dlls/dinput/tests/driver_hid_poll.c
View file @
81da9ff0
...
...
@@ -16,6 +16,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#if 0
#pragma makedep testdll
#endif
#include <stdarg.h>
#include <stdio.h>
...
...
dlls/imagehlp/tests/testdll.c
View file @
81da9ff0
...
...
@@ -16,6 +16,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#if 0
#pragma makedep testdll
#endif
#include <oaidl.h>
#include <commdlg.h>
#include <shlwapi.h>
...
...
dlls/imm32/tests/ime_wrapper.c
View file @
81da9ff0
...
...
@@ -16,6 +16,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#if 0
#pragma makedep testdll
#endif
#include "ime_test.h"
struct
ime_functions
ime_functions
=
{
0
};
...
...
dlls/kernel32/tests/dummy.c
View file @
81da9ff0
/*
* Copyright 2019 Fabian Maurer
*
* 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
*/
#if 0
#pragma makedep testdll
#endif
#include <windows.h>
static
HINSTANCE
instance
;
...
...
dlls/msi/tests/custom.c
View file @
81da9ff0
...
...
@@ -18,6 +18,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#if 0
#pragma makedep testdll
#endif
#include <stdarg.h>
#include <stdio.h>
...
...
dlls/msi/tests/selfreg.c
View file @
81da9ff0
...
...
@@ -18,6 +18,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#if 0
#pragma makedep testdll
#endif
#include <stdarg.h>
#include <windef.h>
#include <winbase.h>
...
...
dlls/ntoskrnl.exe/tests/driver.c
View file @
81da9ff0
...
...
@@ -20,6 +20,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#if 0
#pragma makedep testdll
#endif
#include <stdarg.h>
#include <stdio.h>
...
...
dlls/ntoskrnl.exe/tests/driver2.c
View file @
81da9ff0
...
...
@@ -18,6 +18,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#if 0
#pragma makedep testdll
#endif
#include <stdarg.h>
#include "ntstatus.h"
...
...
dlls/ntoskrnl.exe/tests/driver3.c
View file @
81da9ff0
...
...
@@ -16,6 +16,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#if 0
#pragma makedep testdll
#endif
#include <stdarg.h>
#include "ntstatus.h"
...
...
dlls/ntoskrnl.exe/tests/driver_netio.c
View file @
81da9ff0
...
...
@@ -18,6 +18,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#if 0
#pragma makedep testdll
#endif
#include <stdarg.h>
#include <stdio.h>
...
...
dlls/ntoskrnl.exe/tests/driver_pnp.c
View file @
81da9ff0
...
...
@@ -18,6 +18,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#if 0
#pragma makedep testdll
#endif
#include <stdarg.h>
#include <stdio.h>
...
...
dlls/ole32/tests/testlib.c
View file @
81da9ff0
...
...
@@ -18,6 +18,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#if 0
#pragma makedep testdll
#endif
#include <stdio.h>
#include <windows.h>
#include <initguid.h>
...
...
dlls/setupapi/tests/coinst.c
View file @
81da9ff0
...
...
@@ -18,6 +18,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#if 0
#pragma makedep testdll
#endif
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
...
...
dlls/setupapi/tests/selfreg.c
View file @
81da9ff0
...
...
@@ -18,6 +18,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#if 0
#pragma makedep testdll
#endif
#define COBJMACROS
#include "msxml.h"
...
...
dlls/ucrtbase/tests/threaddll.c
View file @
81da9ff0
...
...
@@ -16,6 +16,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#if 0
#pragma makedep testdll
#endif
#include <windows.h>
#include "threaddll.h"
...
...
tools/makedep.c
View file @
81da9ff0
...
...
@@ -87,6 +87,7 @@ struct incl_file
#define FLAG_GENERATED 0x000001
/* generated file */
#define FLAG_INSTALL 0x000002
/* file to install */
#define FLAG_TESTDLL 0x000004
/* file is part of a TESTDLL resource */
#define FLAG_IDL_PROXY 0x000100
/* generates a proxy (_p.c) file */
#define FLAG_IDL_CLIENT 0x000200
/* generates a client (_c.c) file */
#define FLAG_IDL_SERVER 0x000400
/* generates a server (_s.c) file */
...
...
@@ -928,6 +929,7 @@ static void parse_pragma_directive( struct file *source, char *str )
return
;
}
else
if
(
!
strcmp
(
flag
,
"install"
))
source
->
flags
|=
FLAG_INSTALL
;
else
if
(
!
strcmp
(
flag
,
"testdll"
))
source
->
flags
|=
FLAG_TESTDLL
;
if
(
strendswith
(
source
->
name
,
".idl"
))
{
...
...
@@ -2731,7 +2733,7 @@ static void output_source_rc( struct makefile *make, struct incl_file *source, c
if
(
source
->
file
->
flags
&
FLAG_RC_HEADER
)
return
;
if
(
source
->
file
->
flags
&
FLAG_GENERATED
)
strarray_add
(
&
make
->
clean_files
,
source
->
name
);
if
(
linguas
.
count
&&
(
source
->
file
->
flags
&
FLAG_RC_PO
))
po_dir
=
"po"
;
if
(
!
make
->
testdll
||
!
find_src_file
(
make
,
strmake
(
"%s.spec"
,
obj
)
))
/* RC is for a TESTDLL */
if
(
!
(
source
->
file
->
flags
&
FLAG_TESTDLL
))
{
for
(
arch
=
0
;
arch
<
archs
.
count
;
arch
++
)
if
(
!
make
->
disabled
[
arch
])
strarray_add
(
&
make
->
res_files
[
arch
],
res_file
);
...
...
@@ -3062,11 +3064,21 @@ static void output_source_in( struct makefile *make, struct incl_file *source, c
*/
static
void
output_source_spec
(
struct
makefile
*
make
,
struct
incl_file
*
source
,
const
char
*
obj
)
{
/* nothing to do */
}
/*******************************************************************
* output_source_testdll
*/
static
void
output_source_testdll
(
struct
makefile
*
make
,
struct
incl_file
*
source
,
const
char
*
obj
)
{
struct
strarray
imports
=
get_expanded_file_local_var
(
make
,
obj
,
"IMPORTS"
);
struct
strarray
dll_flags
=
empty_strarray
;
struct
strarray
default_imports
=
empty_strarray
;
struct
strarray
all_libs
,
dep_libs
;
const
char
*
dll_name
,
*
obj_name
,
*
res_name
,
*
output_rsrc
,
*
output_file
,
*
debug_file
;
struct
incl_file
*
spec_file
=
find_src_file
(
make
,
strmake
(
"%.spec"
,
obj
));
unsigned
int
arch
;
if
(
!
imports
.
count
)
imports
=
make
->
imports
;
...
...
@@ -3074,6 +3086,8 @@ static void output_source_spec( struct makefile *make, struct incl_file *source,
strarray_addall
(
&
dll_flags
,
get_expanded_file_local_var
(
make
,
obj
,
"EXTRADLLFLAGS"
));
if
(
!
strarray_exists
(
&
dll_flags
,
"-nodefaultlibs"
))
default_imports
=
get_default_imports
(
make
,
imports
);
if
(
!
spec_file
)
fatal_error
(
"testdll source %s needs a .spec file
\n
"
,
source
->
name
);
for
(
arch
=
0
;
arch
<
archs
.
count
;
arch
++
)
{
if
(
!
is_multiarch
(
arch
))
continue
;
...
...
@@ -3099,7 +3113,7 @@ static void output_source_spec( struct makefile *make, struct incl_file *source,
tools_path
(
make
,
"wrc"
));
output
(
"%s:"
,
output_file
);
output_filename
(
s
ourc
e
->
filename
);
output_filename
(
s
pec_fil
e
->
filename
);
output_filename
(
obj_name
);
if
(
res_name
)
output_filename
(
res_name
);
output_filenames
(
dep_libs
);
...
...
@@ -3111,7 +3125,7 @@ static void output_source_spec( struct makefile *make, struct incl_file *source,
output_filenames
(
dll_flags
);
if
(
arch
)
output_filenames
(
get_expanded_arch_var_array
(
make
,
"EXTRADLLFLAGS"
,
arch
));
output_filename
(
"-shared"
);
output_filename
(
s
ourc
e
->
filename
);
output_filename
(
s
pec_fil
e
->
filename
);
output_filename
(
obj_name
);
if
(
res_name
)
output_filename
(
res_name
);
if
((
debug_file
=
get_debug_file
(
make
,
dll_name
,
arch
)))
...
...
@@ -3143,7 +3157,7 @@ static void output_source_xml( struct makefile *make, struct incl_file *source,
*/
static
void
output_source_one_arch
(
struct
makefile
*
make
,
struct
incl_file
*
source
,
const
char
*
obj
,
struct
strarray
defines
,
struct
strarray
*
targets
,
unsigned
int
arch
,
int
is_dll_src
)
unsigned
int
arch
)
{
const
char
*
obj_name
;
...
...
@@ -3171,7 +3185,7 @@ static void output_source_one_arch( struct makefile *make, struct incl_file *sou
strarray_add
(
&
make
->
unixobj_files
,
obj_name
);
else
if
(
source
->
file
->
flags
&
FLAG_C_IMPLIB
)
strarray_add
(
&
make
->
implib_files
[
arch
],
obj_name
);
else
if
(
!
is_dll_src
)
else
if
(
!
(
source
->
file
->
flags
&
FLAG_TESTDLL
)
)
strarray_add
(
&
make
->
object_files
[
arch
],
obj_name
);
else
strarray_add
(
&
make
->
clean_files
,
obj_name
);
...
...
@@ -3204,8 +3218,8 @@ static void output_source_one_arch( struct makefile *make, struct incl_file *sou
output_filename
(
arch_make_variable
(
"CFLAGS"
,
arch
));
output
(
"
\n
"
);
if
(
make
->
testdll
&&
!
is_dll_src
&&
strendswith
(
source
->
name
,
".c"
)
&&
!
(
source
->
file
->
flags
&
FLAG_GENERATED
))
if
(
make
->
testdll
&&
strendswith
(
source
->
name
,
".c"
)
&&
!
(
source
->
file
->
flags
&
(
FLAG_GENERATED
|
FLAG_TESTDLL
)
))
{
const
char
*
ok_file
,
*
test_exe
;
...
...
@@ -3228,22 +3242,24 @@ static void output_source_default( struct makefile *make, struct incl_file *sour
{
struct
strarray
defines
=
get_source_defines
(
make
,
source
,
obj
);
struct
strarray
targets
=
empty_strarray
;
int
is_dll_src
=
(
make
->
testdll
&&
strendswith
(
source
->
name
,
".c"
)
&&
find_src_file
(
make
,
replace_extension
(
source
->
name
,
".c"
,
".spec"
)));
unsigned
int
arch
;
for
(
arch
=
0
;
arch
<
archs
.
count
;
arch
++
)
if
(
!
source
->
arch
||
source
->
arch
==
arch
)
output_source_one_arch
(
make
,
source
,
obj
,
defines
,
&
targets
,
arch
,
is_dll_src
);
output_source_one_arch
(
make
,
source
,
obj
,
defines
,
&
targets
,
arch
);
if
(
source
->
file
->
flags
&
FLAG_GENERATED
)
{
if
(
!
make
->
testdll
||
!
strendswith
(
source
->
filename
,
"testlist.c"
))
strarray_add
(
&
make
->
clean_files
,
source
->
basename
);
}
else
if
(
source
->
file
->
flags
&
FLAG_TESTDLL
)
{
output_source_testdll
(
make
,
source
,
obj
);
}
else
{
if
(
make
->
testdll
&&
!
is_dll_src
&&
strendswith
(
source
->
name
,
".c"
))
if
(
make
->
testdll
&&
strendswith
(
source
->
name
,
".c"
))
strarray_add
(
&
make
->
test_files
,
obj
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment