mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[SHELLBTRFS] Add a PCH.
This commit is contained in:
parent
58428a6c29
commit
b28272c545
14 changed files with 73 additions and 4 deletions
|
@ -3,6 +3,8 @@ set_cpp(WITH_RUNTIME WITH_EXCEPTIONS WITH_STL)
|
||||||
remove_definitions(-D_WIN32_WINNT=0x502)
|
remove_definitions(-D_WIN32_WINNT=0x502)
|
||||||
add_definitions(-D_WIN32_WINNT=0x603)
|
add_definitions(-D_WIN32_WINNT=0x603)
|
||||||
|
|
||||||
|
include_directories(${REACTOS_SOURCE_DIR}/drivers/filesystems/btrfs)
|
||||||
|
|
||||||
spec2def(shellbtrfs.dll shellbtrfs.spec)
|
spec2def(shellbtrfs.dll shellbtrfs.spec)
|
||||||
|
|
||||||
list(APPEND SOURCE
|
list(APPEND SOURCE
|
||||||
|
@ -18,16 +20,19 @@ list(APPEND SOURCE
|
||||||
scrub.cpp
|
scrub.cpp
|
||||||
send.cpp
|
send.cpp
|
||||||
volpropsheet.cpp
|
volpropsheet.cpp
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/shellbtrfs.def)
|
precomp.h)
|
||||||
|
|
||||||
include_directories(
|
add_library(shellbtrfs SHARED
|
||||||
${REACTOS_SOURCE_DIR}/drivers/filesystems/btrfs)
|
${SOURCE}
|
||||||
|
guid.c
|
||||||
|
shellbtrfs.rc
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}/shellbtrfs.def)
|
||||||
|
|
||||||
file(GLOB shellbtrfs_rc_deps *.ico)
|
file(GLOB shellbtrfs_rc_deps *.ico)
|
||||||
add_rc_deps(shellbtrfs.rc ${shellbtrfs_rc_deps})
|
add_rc_deps(shellbtrfs.rc ${shellbtrfs_rc_deps})
|
||||||
|
|
||||||
add_library(shellbtrfs SHARED ${SOURCE} shellbtrfs.rc)
|
|
||||||
set_module_type(shellbtrfs win32dll UNICODE)
|
set_module_type(shellbtrfs win32dll UNICODE)
|
||||||
target_link_libraries(shellbtrfs uuid)
|
target_link_libraries(shellbtrfs uuid)
|
||||||
add_importlibs(shellbtrfs advapi32 advapi32_vista ole32 shell32 shlwapi user32 comctl32 uxtheme setupapi comdlg32 gdi32 msvcrt kernel32_vista kernel32 ntdll)
|
add_importlibs(shellbtrfs advapi32 advapi32_vista ole32 shell32 shlwapi user32 comctl32 uxtheme setupapi comdlg32 gdi32 msvcrt kernel32_vista kernel32 ntdll)
|
||||||
|
add_pch(shellbtrfs precomp.h SOURCE)
|
||||||
add_cd_file(TARGET shellbtrfs DESTINATION reactos/system32 FOR all)
|
add_cd_file(TARGET shellbtrfs DESTINATION reactos/system32 FOR all)
|
||||||
|
|
|
@ -15,6 +15,8 @@
|
||||||
* You should have received a copy of the GNU Lesser General Public Licence
|
* You should have received a copy of the GNU Lesser General Public Licence
|
||||||
* along with WinBtrfs. If not, see <http://www.gnu.org/licenses/>. */
|
* along with WinBtrfs. If not, see <http://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#ifndef __REACTOS__
|
#ifndef __REACTOS__
|
||||||
#include "../btrfsioctl.h"
|
#include "../btrfsioctl.h"
|
||||||
|
|
|
@ -15,6 +15,8 @@
|
||||||
* You should have received a copy of the GNU Lesser General Public Licence
|
* You should have received a copy of the GNU Lesser General Public Licence
|
||||||
* along with WinBtrfs. If not, see <http://www.gnu.org/licenses/>. */
|
* along with WinBtrfs. If not, see <http://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
#include <shlobj.h>
|
#include <shlobj.h>
|
||||||
|
|
||||||
extern LONG objs_loaded;
|
extern LONG objs_loaded;
|
||||||
|
|
|
@ -15,6 +15,8 @@
|
||||||
* You should have received a copy of the GNU Lesser General Public Licence
|
* You should have received a copy of the GNU Lesser General Public Licence
|
||||||
* along with WinBtrfs. If not, see <http://www.gnu.org/licenses/>. */
|
* along with WinBtrfs. If not, see <http://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
#ifndef __REACTOS__
|
#ifndef __REACTOS__
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <winternl.h>
|
#include <winternl.h>
|
||||||
|
|
|
@ -15,6 +15,8 @@
|
||||||
* You should have received a copy of the GNU Lesser General Public Licence
|
* You should have received a copy of the GNU Lesser General Public Licence
|
||||||
* along with WinBtrfs. If not, see <http://www.gnu.org/licenses/>. */
|
* along with WinBtrfs. If not, see <http://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
extern LONG objs_loaded;
|
extern LONG objs_loaded;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
|
13
dll/shellext/shellbtrfs/guid.c
Normal file
13
dll/shellext/shellbtrfs/guid.c
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
/* DO NOT USE THE PRECOMPILED HEADER FOR THIS FILE! */
|
||||||
|
|
||||||
|
#define WIN32_NO_STATuS
|
||||||
|
#define _INC_WINDOWS
|
||||||
|
#define COM_NO_WINDOWS_H
|
||||||
|
|
||||||
|
#include <windef.h>
|
||||||
|
#include <winbase.h>
|
||||||
|
#include <initguid.h>
|
||||||
|
#define DEVICE_TYPE ULONG
|
||||||
|
#include <ntddstor.h>
|
||||||
|
|
||||||
|
/* NO CODE HERE, THIS IS JUST REQUIRED FOR THE GUID DEFINITIONS */
|
|
@ -15,6 +15,8 @@
|
||||||
* You should have received a copy of the GNU Lesser General Public Licence
|
* You should have received a copy of the GNU Lesser General Public Licence
|
||||||
* along with WinBtrfs. If not, see <http://www.gnu.org/licenses/>. */
|
* along with WinBtrfs. If not, see <http://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
#include <shlobj.h>
|
#include <shlobj.h>
|
||||||
|
|
||||||
extern LONG objs_loaded;
|
extern LONG objs_loaded;
|
||||||
|
|
29
dll/shellext/shellbtrfs/precomp.h
Normal file
29
dll/shellext/shellbtrfs/precomp.h
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
#ifndef _SHELLBTRFS_PRECOMP_H_
|
||||||
|
#define _SHELLBTRFS_PRECOMP_H_
|
||||||
|
|
||||||
|
#include <stddef.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <string>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#define WIN32_NO_STATUS
|
||||||
|
#include <windows.h>
|
||||||
|
#define STRSAFE_NO_DEPRECATE
|
||||||
|
#include <strsafe.h>
|
||||||
|
#define NO_SHLWAPI_STRFCNS
|
||||||
|
#include <shlwapi.h>
|
||||||
|
#include <ntddstor.h>
|
||||||
|
#include <ndk/iofuncs.h>
|
||||||
|
#include <ndk/rtlfuncs.h>
|
||||||
|
#include <shlobj.h>
|
||||||
|
#include <shellext.h>
|
||||||
|
#include <btrfsioctl.h>
|
||||||
|
#include <uxtheme.h>
|
||||||
|
|
||||||
|
#include "contextmenu.h"
|
||||||
|
#include "factory.h"
|
||||||
|
#include "iconoverlay.h"
|
||||||
|
#include "propsheet.h"
|
||||||
|
#include "resource.h"
|
||||||
|
#include "volpropsheet.h"
|
||||||
|
|
||||||
|
#endif /* _SHELLBTRFS_PRECOMP_H_ */
|
|
@ -15,6 +15,8 @@
|
||||||
* You should have received a copy of the GNU Lesser General Public Licence
|
* You should have received a copy of the GNU Lesser General Public Licence
|
||||||
* along with WinBtrfs. If not, see <http://www.gnu.org/licenses/>. */
|
* along with WinBtrfs. If not, see <http://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
#include <shlobj.h>
|
#include <shlobj.h>
|
||||||
#include <deque>
|
#include <deque>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
|
@ -15,6 +15,8 @@
|
||||||
* You should have received a copy of the GNU Lesser General Public Licence
|
* You should have received a copy of the GNU Lesser General Public Licence
|
||||||
* along with WinBtrfs. If not, see <http://www.gnu.org/licenses/>. */
|
* along with WinBtrfs. If not, see <http://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
#include <shlobj.h>
|
#include <shlobj.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
|
@ -15,6 +15,8 @@
|
||||||
* You should have received a copy of the GNU Lesser General Public Licence
|
* You should have received a copy of the GNU Lesser General Public Licence
|
||||||
* along with WinBtrfs. If not, see <http://www.gnu.org/licenses/>. */
|
* along with WinBtrfs. If not, see <http://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#ifndef __REACTOS__
|
#ifndef __REACTOS__
|
||||||
#include "../btrfs.h"
|
#include "../btrfs.h"
|
||||||
|
|
|
@ -15,6 +15,8 @@
|
||||||
* You should have received a copy of the GNU Lesser General Public Licence
|
* You should have received a copy of the GNU Lesser General Public Licence
|
||||||
* along with WinBtrfs. If not, see <http://www.gnu.org/licenses/>. */
|
* along with WinBtrfs. If not, see <http://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
#ifdef __REACTOS__
|
#ifdef __REACTOS__
|
||||||
#include "btrfs.h"
|
#include "btrfs.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
|
@ -15,6 +15,8 @@
|
||||||
* You should have received a copy of the GNU Lesser General Public Licence
|
* You should have received a copy of the GNU Lesser General Public Licence
|
||||||
* along with WinBtrfs. If not, see <http://www.gnu.org/licenses/>. */
|
* along with WinBtrfs. If not, see <http://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
#define ISOLATION_AWARE_ENABLED 1
|
#define ISOLATION_AWARE_ENABLED 1
|
||||||
#define STRSAFE_NO_DEPRECATE
|
#define STRSAFE_NO_DEPRECATE
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,8 @@
|
||||||
* You should have received a copy of the GNU Lesser General Public Licence
|
* You should have received a copy of the GNU Lesser General Public Licence
|
||||||
* along with WinBtrfs. If not, see <http://www.gnu.org/licenses/>. */
|
* along with WinBtrfs. If not, see <http://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
#include <shlobj.h>
|
#include <shlobj.h>
|
||||||
#ifndef __REACTOS__
|
#ifndef __REACTOS__
|
||||||
#include "../btrfsioctl.h"
|
#include "../btrfsioctl.h"
|
||||||
|
|
Loading…
Reference in a new issue