Skip to content

Commit b28272c

Browse files
committed
[SHELLBTRFS] Add a PCH.
1 parent 58428a6 commit b28272c

File tree

14 files changed

+73
-4
lines changed

14 files changed

+73
-4
lines changed

dll/shellext/shellbtrfs/CMakeLists.txt

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ set_cpp(WITH_RUNTIME WITH_EXCEPTIONS WITH_STL)
33
remove_definitions(-D_WIN32_WINNT=0x502)
44
add_definitions(-D_WIN32_WINNT=0x603)
55

6+
include_directories(${REACTOS_SOURCE_DIR}/drivers/filesystems/btrfs)
7+
68
spec2def(shellbtrfs.dll shellbtrfs.spec)
79

810
list(APPEND SOURCE
@@ -18,16 +20,19 @@ list(APPEND SOURCE
1820
scrub.cpp
1921
send.cpp
2022
volpropsheet.cpp
21-
${CMAKE_CURRENT_BINARY_DIR}/shellbtrfs.def)
23+
precomp.h)
2224

23-
include_directories(
24-
${REACTOS_SOURCE_DIR}/drivers/filesystems/btrfs)
25+
add_library(shellbtrfs SHARED
26+
${SOURCE}
27+
guid.c
28+
shellbtrfs.rc
29+
${CMAKE_CURRENT_BINARY_DIR}/shellbtrfs.def)
2530

2631
file(GLOB shellbtrfs_rc_deps *.ico)
2732
add_rc_deps(shellbtrfs.rc ${shellbtrfs_rc_deps})
2833

29-
add_library(shellbtrfs SHARED ${SOURCE} shellbtrfs.rc)
3034
set_module_type(shellbtrfs win32dll UNICODE)
3135
target_link_libraries(shellbtrfs uuid)
3236
add_importlibs(shellbtrfs advapi32 advapi32_vista ole32 shell32 shlwapi user32 comctl32 uxtheme setupapi comdlg32 gdi32 msvcrt kernel32_vista kernel32 ntdll)
37+
add_pch(shellbtrfs precomp.h SOURCE)
3338
add_cd_file(TARGET shellbtrfs DESTINATION reactos/system32 FOR all)

dll/shellext/shellbtrfs/balance.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
* You should have received a copy of the GNU Lesser General Public Licence
1616
* along with WinBtrfs. If not, see <http://www.gnu.org/licenses/>. */
1717

18+
#pragma once
19+
1820
#include <windows.h>
1921
#ifndef __REACTOS__
2022
#include "../btrfsioctl.h"

dll/shellext/shellbtrfs/contextmenu.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
* You should have received a copy of the GNU Lesser General Public Licence
1616
* along with WinBtrfs. If not, see <http://www.gnu.org/licenses/>. */
1717

18+
#pragma once
19+
1820
#include <shlobj.h>
1921

2022
extern LONG objs_loaded;

dll/shellext/shellbtrfs/devices.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
* You should have received a copy of the GNU Lesser General Public Licence
1616
* along with WinBtrfs. If not, see <http://www.gnu.org/licenses/>. */
1717

18+
#pragma once
19+
1820
#ifndef __REACTOS__
1921
#include <windows.h>
2022
#include <winternl.h>

dll/shellext/shellbtrfs/factory.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
* You should have received a copy of the GNU Lesser General Public Licence
1616
* along with WinBtrfs. If not, see <http://www.gnu.org/licenses/>. */
1717

18+
#pragma once
19+
1820
extern LONG objs_loaded;
1921

2022
typedef enum {

dll/shellext/shellbtrfs/guid.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/* DO NOT USE THE PRECOMPILED HEADER FOR THIS FILE! */
2+
3+
#define WIN32_NO_STATuS
4+
#define _INC_WINDOWS
5+
#define COM_NO_WINDOWS_H
6+
7+
#include <windef.h>
8+
#include <winbase.h>
9+
#include <initguid.h>
10+
#define DEVICE_TYPE ULONG
11+
#include <ntddstor.h>
12+
13+
/* NO CODE HERE, THIS IS JUST REQUIRED FOR THE GUID DEFINITIONS */

dll/shellext/shellbtrfs/iconoverlay.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
* You should have received a copy of the GNU Lesser General Public Licence
1616
* along with WinBtrfs. If not, see <http://www.gnu.org/licenses/>. */
1717

18+
#pragma once
19+
1820
#include <shlobj.h>
1921

2022
extern LONG objs_loaded;

dll/shellext/shellbtrfs/precomp.h

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#ifndef _SHELLBTRFS_PRECOMP_H_
2+
#define _SHELLBTRFS_PRECOMP_H_
3+
4+
#include <stddef.h>
5+
#include <stdio.h>
6+
#include <string>
7+
#include <sys/stat.h>
8+
#define WIN32_NO_STATUS
9+
#include <windows.h>
10+
#define STRSAFE_NO_DEPRECATE
11+
#include <strsafe.h>
12+
#define NO_SHLWAPI_STRFCNS
13+
#include <shlwapi.h>
14+
#include <ntddstor.h>
15+
#include <ndk/iofuncs.h>
16+
#include <ndk/rtlfuncs.h>
17+
#include <shlobj.h>
18+
#include <shellext.h>
19+
#include <btrfsioctl.h>
20+
#include <uxtheme.h>
21+
22+
#include "contextmenu.h"
23+
#include "factory.h"
24+
#include "iconoverlay.h"
25+
#include "propsheet.h"
26+
#include "resource.h"
27+
#include "volpropsheet.h"
28+
29+
#endif /* _SHELLBTRFS_PRECOMP_H_ */

dll/shellext/shellbtrfs/propsheet.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
* You should have received a copy of the GNU Lesser General Public Licence
1616
* along with WinBtrfs. If not, see <http://www.gnu.org/licenses/>. */
1717

18+
#pragma once
19+
1820
#include <shlobj.h>
1921
#include <deque>
2022
#include <string>

dll/shellext/shellbtrfs/recv.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
* You should have received a copy of the GNU Lesser General Public Licence
1616
* along with WinBtrfs. If not, see <http://www.gnu.org/licenses/>. */
1717

18+
#pragma once
19+
1820
#include <shlobj.h>
1921
#include <string>
2022
#include <vector>

dll/shellext/shellbtrfs/scrub.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
* You should have received a copy of the GNU Lesser General Public Licence
1616
* along with WinBtrfs. If not, see <http://www.gnu.org/licenses/>. */
1717

18+
#pragma once
19+
1820
#include <windows.h>
1921
#ifndef __REACTOS__
2022
#include "../btrfs.h"

dll/shellext/shellbtrfs/send.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
* You should have received a copy of the GNU Lesser General Public Licence
1616
* along with WinBtrfs. If not, see <http://www.gnu.org/licenses/>. */
1717

18+
#pragma once
19+
1820
#ifdef __REACTOS__
1921
#include "btrfs.h"
2022
#include <stdlib.h>

dll/shellext/shellbtrfs/shellext.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
* You should have received a copy of the GNU Lesser General Public Licence
1616
* along with WinBtrfs. If not, see <http://www.gnu.org/licenses/>. */
1717

18+
#pragma once
19+
1820
#define ISOLATION_AWARE_ENABLED 1
1921
#define STRSAFE_NO_DEPRECATE
2022

dll/shellext/shellbtrfs/volpropsheet.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
* You should have received a copy of the GNU Lesser General Public Licence
1616
* along with WinBtrfs. If not, see <http://www.gnu.org/licenses/>. */
1717

18+
#pragma once
19+
1820
#include <shlobj.h>
1921
#ifndef __REACTOS__
2022
#include "../btrfsioctl.h"

0 commit comments

Comments
 (0)