https://git.reactos.org/?p=reactos.git;a=commitdiff;h=9824a0154e40e01f44ef8…
commit 9824a0154e40e01f44ef80eb9c54fe599876533e
Author: Mark Jansen <mark.jansen(a)reactos.org>
AuthorDate: Sat Apr 6 22:37:13 2019 +0200
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Thu Apr 18 19:21:37 2019 +0200
[ATL] Retire atlnew
---
base/applications/charmap_new/CMakeLists.txt | 2 +-
base/applications/drwtsn32/CMakeLists.txt | 2 +-
base/applications/fltmc/CMakeLists.txt | 1 -
base/applications/msconfig_new/CMakeLists.txt | 2 +-
base/applications/mspaint/CMakeLists.txt | 2 +-
base/applications/rapps/CMakeLists.txt | 2 +-
base/shell/explorer/CMakeLists.txt | 2 +-
base/shell/rshell/CMakeLists.txt | 1 -
dll/shellext/acppage/CMakeLists.txt | 2 +-
dll/shellext/netshell/CMakeLists.txt | 2 +-
dll/shellext/ntobjshex/CMakeLists.txt | 2 +-
dll/shellext/stobject/CMakeLists.txt | 2 +-
dll/shellext/zipfldr/CMakeLists.txt | 2 +-
dll/win32/browseui/CMakeLists.txt | 2 +-
dll/win32/browseui/shellbars/CMakeLists.txt | 1 -
dll/win32/devmgr/CMakeLists.txt | 2 +-
dll/win32/msgina/CMakeLists.txt | 2 +-
dll/win32/shell32/CMakeLists.txt | 2 +-
.../applications/devutils/shlextdbg/CMakeLists.txt | 2 +-
modules/rostests/apitests/atl/CMakeLists.txt | 2 +-
sdk/lib/CMakeLists.txt | 1 -
sdk/lib/atl/CMakeLists.txt | 9 -------
sdk/lib/atl/atlbase.cpp | 30 ----------------------
sdk/lib/atl/atlbase.h | 7 +++--
sdk/lib/atl/atlcore.cpp | 28 --------------------
sdk/lib/atl/atlcore.h | 3 ++-
26 files changed, 24 insertions(+), 91 deletions(-)
diff --git a/base/applications/charmap_new/CMakeLists.txt
b/base/applications/charmap_new/CMakeLists.txt
index 657a5cb8fd..3863bca6eb 100644
--- a/base/applications/charmap_new/CMakeLists.txt
+++ b/base/applications/charmap_new/CMakeLists.txt
@@ -21,7 +21,7 @@ add_library(charmap MODULE
charmap.rc)
set_module_type(charmap win32gui UNICODE)
-target_link_libraries(charmap uuid atlnew wine)
+target_link_libraries(charmap uuid wine)
add_importlibs(charmap advapi32 user32 gdi32 comctl32 version msvcrt kernel32 ole32
uxtheme ntdll)
add_pch(charmap precomp.h SOURCE)
add_cd_file(TARGET charmap DESTINATION reactos/system32 FOR all)
diff --git a/base/applications/drwtsn32/CMakeLists.txt
b/base/applications/drwtsn32/CMakeLists.txt
index e58b1c095f..fbc210b5b8 100644
--- a/base/applications/drwtsn32/CMakeLists.txt
+++ b/base/applications/drwtsn32/CMakeLists.txt
@@ -17,6 +17,6 @@ list(APPEND CPP_SOURCE
add_executable(drwtsn32 ${CPP_SOURCE} drwtsn32.rc)
add_pch(drwtsn32 precomp.h CPP_SOURCE)
set_module_type(drwtsn32 win32gui UNICODE)
-target_link_libraries(drwtsn32 atlnew udmihelp)
+target_link_libraries(drwtsn32 udmihelp)
add_importlibs(drwtsn32 dbghelp psapi advapi32 shell32 shlwapi msvcrt user32 kernel32
ntdll)
add_cd_file(TARGET drwtsn32 DESTINATION reactos/system32 FOR all)
diff --git a/base/applications/fltmc/CMakeLists.txt
b/base/applications/fltmc/CMakeLists.txt
index 4bd22c0c32..01bf7a3a26 100644
--- a/base/applications/fltmc/CMakeLists.txt
+++ b/base/applications/fltmc/CMakeLists.txt
@@ -8,6 +8,5 @@ include_directories(${REACTOS_SOURCE_DIR}/sdk/lib/atl)
add_executable(fltmc fltmc.cpp fltmc.rc)
set_module_type(fltmc win32cui UNICODE)
-target_link_libraries(fltmc atlnew)
add_importlibs(fltmc fltlib msvcrt kernel32 advapi32)
add_cd_file(TARGET fltmc DESTINATION reactos/system32 FOR all)
diff --git a/base/applications/msconfig_new/CMakeLists.txt
b/base/applications/msconfig_new/CMakeLists.txt
index c2aad389e1..0fc32ec536 100644
--- a/base/applications/msconfig_new/CMakeLists.txt
+++ b/base/applications/msconfig_new/CMakeLists.txt
@@ -35,6 +35,6 @@ add_rc_deps(msconfig.rc ${CMAKE_CURRENT_SOURCE_DIR}/res/msconfig.ico)
add_executable(msconfig_new ${C_SOURCE} ${CPP_SOURCE} msconfig.rc)
add_pch(msconfig_new precomp.h CPP_SOURCE)
set_module_type(msconfig_new win32gui UNICODE)
-target_link_libraries(msconfig_new atlnew comsupp)
+target_link_libraries(msconfig_new comsupp)
add_importlibs(msconfig_new user32 gdi32 comctl32 comdlg32 advapi32 version ole32
oleaut32 msxml3 shell32 shlwapi msvcrt kernel32)
add_cd_file(TARGET msconfig_new DESTINATION reactos/system32 FOR all)
diff --git a/base/applications/mspaint/CMakeLists.txt
b/base/applications/mspaint/CMakeLists.txt
index 3f112003c0..b59a2ee419 100644
--- a/base/applications/mspaint/CMakeLists.txt
+++ b/base/applications/mspaint/CMakeLists.txt
@@ -33,7 +33,7 @@ file(GLOB mspaint_rc_deps icons/*.*)
add_rc_deps(rsrc.rc ${mspaint_rc_deps})
add_executable(mspaint ${SOURCE} rsrc.rc)
set_module_type(mspaint win32gui UNICODE)
-target_link_libraries(mspaint atlnew uuid)
+target_link_libraries(mspaint uuid)
add_importlibs(mspaint hhctrl comdlg32 shell32 user32 gdi32 gdiplus advapi32 comctl32
msvcrt kernel32 rpcrt4 shlwapi)
add_pch(mspaint precomp.h SOURCE)
add_cd_file(TARGET mspaint DESTINATION reactos/system32 FOR all)
diff --git a/base/applications/rapps/CMakeLists.txt
b/base/applications/rapps/CMakeLists.txt
index ce8ba3a0ba..f3dea22852 100644
--- a/base/applications/rapps/CMakeLists.txt
+++ b/base/applications/rapps/CMakeLists.txt
@@ -40,7 +40,7 @@ file(GLOB_RECURSE rapps_rc_deps res/*.*)
add_rc_deps(rapps.rc ${rapps_rc_deps})
add_executable(rapps ${SOURCE} rapps.rc)
set_module_type(rapps win32gui UNICODE)
-target_link_libraries(rapps atlnew uuid wine)
+target_link_libraries(rapps uuid wine)
add_importlibs(rapps advapi32 comctl32 gdi32 wininet user32 shell32 shlwapi ole32
setupapi msvcrt kernel32 ntdll)
add_pch(rapps include/rapps.h SOURCE)
add_dependencies(rapps rappsmsg)
diff --git a/base/shell/explorer/CMakeLists.txt b/base/shell/explorer/CMakeLists.txt
index fa66d2e428..b3f2982fda 100644
--- a/base/shell/explorer/CMakeLists.txt
+++ b/base/shell/explorer/CMakeLists.txt
@@ -30,7 +30,7 @@ list(APPEND SOURCE
file(GLOB explorer_rc_deps res/*.*)
add_rc_deps(explorer.rc ${explorer_rc_deps})
add_executable(explorer ${SOURCE} explorer.rc)
-target_link_libraries(explorer uuid atlnew wine)
+target_link_libraries(explorer uuid wine)
set_module_type(explorer win32gui UNICODE)
add_importlibs(explorer advapi32 gdi32 user32 comctl32 ole32 oleaut32 shell32 browseui
shlwapi shdocvw version uxtheme msvcrt kernel32 ntdll)
add_pch(explorer precomp.h SOURCE)
diff --git a/base/shell/rshell/CMakeLists.txt b/base/shell/rshell/CMakeLists.txt
index 4297edbb2e..5d4170d58e 100644
--- a/base/shell/rshell/CMakeLists.txt
+++ b/base/shell/rshell/CMakeLists.txt
@@ -20,7 +20,6 @@ target_link_libraries(rshell
shellbars
shellmenu
shelldesktop
- atlnew
uuid
wine)
diff --git a/dll/shellext/acppage/CMakeLists.txt b/dll/shellext/acppage/CMakeLists.txt
index 9303c23110..f4dc6e1c01 100644
--- a/dll/shellext/acppage/CMakeLists.txt
+++ b/dll/shellext/acppage/CMakeLists.txt
@@ -32,7 +32,7 @@ add_library(acppage MODULE
${CMAKE_CURRENT_BINARY_DIR}/acppage.def)
set_module_type(acppage win32dll UNICODE)
-target_link_libraries(acppage atlnew wine uuid)
+target_link_libraries(acppage wine uuid)
add_delay_importlibs(acppage apphelp ole32 oleaut32 shlwapi comctl32 sfc_os)
add_importlibs(acppage shell32 user32 advapi32 msvcrt kernel32)
add_pch(acppage precomp.h SOURCE)
diff --git a/dll/shellext/netshell/CMakeLists.txt b/dll/shellext/netshell/CMakeLists.txt
index 0a2c0fad15..dc4a260045 100644
--- a/dll/shellext/netshell/CMakeLists.txt
+++ b/dll/shellext/netshell/CMakeLists.txt
@@ -39,7 +39,7 @@ add_library(netshell MODULE
${CMAKE_CURRENT_BINARY_DIR}/netshell.def)
set_module_type(netshell win32dll UNICODE)
-target_link_libraries(netshell atlnew uuid wine)
+target_link_libraries(netshell uuid wine)
add_delay_importlibs(netshell ole32 oleaut32 shlwapi shell32)
add_importlibs(netshell version iphlpapi gdi32 user32 advapi32 setupapi ws2_32 comctl32
msvcrt kernel32 ntdll)
add_pch(netshell precomp.h SOURCE)
diff --git a/dll/shellext/ntobjshex/CMakeLists.txt
b/dll/shellext/ntobjshex/CMakeLists.txt
index f8a6e7347b..854c8a673e 100644
--- a/dll/shellext/ntobjshex/CMakeLists.txt
+++ b/dll/shellext/ntobjshex/CMakeLists.txt
@@ -30,7 +30,7 @@ add_library(ntobjshex MODULE
${CMAKE_CURRENT_BINARY_DIR}/ntobjshex.def)
set_module_type(ntobjshex win32dll UNICODE)
-target_link_libraries(ntobjshex uuid wine atlnew)
+target_link_libraries(ntobjshex uuid wine)
add_importlibs(ntobjshex
advapi32
diff --git a/dll/shellext/stobject/CMakeLists.txt b/dll/shellext/stobject/CMakeLists.txt
index 093303f728..411dab205d 100644
--- a/dll/shellext/stobject/CMakeLists.txt
+++ b/dll/shellext/stobject/CMakeLists.txt
@@ -34,7 +34,7 @@ add_library(stobject MODULE
${CMAKE_CURRENT_BINARY_DIR}/stobject.def)
set_module_type(stobject win32dll UNICODE)
-target_link_libraries(stobject uuid wine atlnew)
+target_link_libraries(stobject uuid wine)
add_importlibs(stobject
setupapi
diff --git a/dll/shellext/zipfldr/CMakeLists.txt b/dll/shellext/zipfldr/CMakeLists.txt
index 9ad72cb173..3c39dc45c3 100644
--- a/dll/shellext/zipfldr/CMakeLists.txt
+++ b/dll/shellext/zipfldr/CMakeLists.txt
@@ -45,7 +45,7 @@ add_library(zipfldr MODULE
set_module_type(zipfldr win32dll UNICODE)
-target_link_libraries(zipfldr minizip zlib atlnew uuid)
+target_link_libraries(zipfldr minizip zlib uuid)
add_importlibs(zipfldr oleaut32 ole32 shlwapi comctl32 shell32 user32 advapi32 msvcrt
kernel32 ntdll)
add_pch(zipfldr precomp.h SOURCE)
add_cd_file(TARGET zipfldr DESTINATION reactos/system32 FOR all)
diff --git a/dll/win32/browseui/CMakeLists.txt b/dll/win32/browseui/CMakeLists.txt
index 0c68a37df0..3681a2f043 100644
--- a/dll/win32/browseui/CMakeLists.txt
+++ b/dll/win32/browseui/CMakeLists.txt
@@ -46,7 +46,7 @@ add_library(browseui MODULE
${CMAKE_CURRENT_BINARY_DIR}/browseui.def)
set_module_type(browseui win32dll UNICODE)
-target_link_libraries(browseui shellbars atlnew uuid wine)
+target_link_libraries(browseui shellbars uuid wine)
add_importlibs(browseui uxtheme shlwapi shell32 comctl32 gdi32 ole32 oleaut32 user32
advapi32 msvcrt kernel32 ntdll)
add_pch(browseui precomp.h SOURCE)
add_cd_file(TARGET browseui DESTINATION reactos/system32 FOR all)
diff --git a/dll/win32/browseui/shellbars/CMakeLists.txt
b/dll/win32/browseui/shellbars/CMakeLists.txt
index ec87d6ce24..64cc9b55f2 100644
--- a/dll/win32/browseui/shellbars/CMakeLists.txt
+++ b/dll/win32/browseui/shellbars/CMakeLists.txt
@@ -23,5 +23,4 @@ if(NOT MSVC)
endif()
add_pch(shellbars shellbars.h SOURCE)
-target_link_libraries(shellbars atlnew)
add_dependencies(shellbars xdk)
diff --git a/dll/win32/devmgr/CMakeLists.txt b/dll/win32/devmgr/CMakeLists.txt
index 44ba6f4cff..f427c3a3c3 100644
--- a/dll/win32/devmgr/CMakeLists.txt
+++ b/dll/win32/devmgr/CMakeLists.txt
@@ -35,7 +35,7 @@ add_library(devmgr MODULE
${CMAKE_CURRENT_BINARY_DIR}/devmgr.def)
set_module_type(devmgr win32dll UNICODE)
-target_link_libraries(devmgr uuid atlnew wine)
+target_link_libraries(devmgr uuid wine)
add_importlibs(devmgr setupapi advapi32 newdev user32 gdi32 comctl32 version msvcrt
kernel32 ole32 oleaut32 uxtheme ntdll)
add_pch(devmgr precomp.h SOURCE)
add_cd_file(TARGET devmgr DESTINATION reactos/system32 FOR all)
diff --git a/dll/win32/msgina/CMakeLists.txt b/dll/win32/msgina/CMakeLists.txt
index 1cfa45f808..694481bc91 100644
--- a/dll/win32/msgina/CMakeLists.txt
+++ b/dll/win32/msgina/CMakeLists.txt
@@ -27,7 +27,7 @@ add_library(msgina MODULE
${CMAKE_CURRENT_BINARY_DIR}/msgina.def)
set_module_type(msgina win32dll UNICODE)
-target_link_libraries(msgina atlnew wine uuid ${PSEH_LIB})
+target_link_libraries(msgina wine uuid ${PSEH_LIB})
add_delay_importlibs(msgina secur32)
add_importlibs(msgina advapi32 user32 gdi32 powrprof userenv msvcrt kernel32 ntdll)
add_pch(msgina msgina.h CPP_SOURCE)
diff --git a/dll/win32/shell32/CMakeLists.txt b/dll/win32/shell32/CMakeLists.txt
index 60d0fc9a3d..ea2fe80631 100644
--- a/dll/win32/shell32/CMakeLists.txt
+++ b/dll/win32/shell32/CMakeLists.txt
@@ -117,7 +117,7 @@ add_typelib(shell32_shldisp.idl)
set_source_files_properties(shell32.rc PROPERTIES OBJECT_DEPENDS
${CMAKE_CURRENT_BINARY_DIR}/shell32_shldisp.tlb)
set_module_type(shell32 win32dll UNICODE)
-target_link_libraries(shell32 shellmenu shelldesktop atlnew wine uuid recyclebin)
+target_link_libraries(shell32 shellmenu shelldesktop wine uuid recyclebin)
add_delay_importlibs(shell32 powrprof shdocvw devmgr winspool.drv winmm mpr uxtheme ole32
oleaut32 userenv browseui version fmifs)
add_importlibs(shell32 advapi32 gdi32 user32 comctl32 comdlg32 shlwapi msvcrt kernel32
ntdll)
add_dependencies(shell32 stdole2) # shell32_shldisp.tlb needs stdole2.tlb
diff --git a/modules/rosapps/applications/devutils/shlextdbg/CMakeLists.txt
b/modules/rosapps/applications/devutils/shlextdbg/CMakeLists.txt
index 21f80e7d60..232244049b 100644
--- a/modules/rosapps/applications/devutils/shlextdbg/CMakeLists.txt
+++ b/modules/rosapps/applications/devutils/shlextdbg/CMakeLists.txt
@@ -7,6 +7,6 @@ include_directories(${REACTOS_SOURCE_DIR}/sdk/lib/atl)
add_executable(shlextdbg shlextdbg.cpp shlextdbg.rc)
set_module_type(shlextdbg win32cui UNICODE)
-target_link_libraries(shlextdbg atlnew uuid)
+target_link_libraries(shlextdbg uuid)
add_importlibs(shlextdbg ole32 comctl32 shell32 user32 msvcrt kernel32)
add_cd_file(TARGET shlextdbg DESTINATION reactos/system32 FOR all)
diff --git a/modules/rostests/apitests/atl/CMakeLists.txt
b/modules/rostests/apitests/atl/CMakeLists.txt
index 249724746c..8055fffc45 100644
--- a/modules/rostests/apitests/atl/CMakeLists.txt
+++ b/modules/rostests/apitests/atl/CMakeLists.txt
@@ -24,7 +24,7 @@ add_executable(atl_apitest
testlist.c
atl_apitest.rc)
-target_link_libraries(atl_apitest wine atlnew uuid)
+target_link_libraries(atl_apitest wine uuid)
set_module_type(atl_apitest win32cui)
add_importlibs(atl_apitest rpcrt4 ole32 oleaut32 msimg32 gdi32 advapi32 user32 msvcrt
kernel32 ntdll)
add_pch(atl_apitest precomp.h SOURCE)
diff --git a/sdk/lib/CMakeLists.txt b/sdk/lib/CMakeLists.txt
index e5d2d92453..c9f4e39604 100644
--- a/sdk/lib/CMakeLists.txt
+++ b/sdk/lib/CMakeLists.txt
@@ -5,7 +5,6 @@ add_subdirectory(inflib)
if(CMAKE_CROSSCOMPILING)
add_subdirectory(3rdparty)
-add_subdirectory(atl)
add_subdirectory(comsupp)
add_subdirectory(conutils)
add_subdirectory(cportlib)
diff --git a/sdk/lib/atl/CMakeLists.txt b/sdk/lib/atl/CMakeLists.txt
deleted file mode 100644
index f0177d597f..0000000000
--- a/sdk/lib/atl/CMakeLists.txt
+++ /dev/null
@@ -1,9 +0,0 @@
-
-set_cpp(WITH_RTTI)
-
-add_definitions(
- -DUNICODE -D_UNICODE
- -DROS_Headers)
-
-add_library(atlnew atlbase.cpp atlcore.cpp)
-add_dependencies(atlnew psdk)
diff --git a/sdk/lib/atl/atlbase.cpp b/sdk/lib/atl/atlbase.cpp
deleted file mode 100644
index 85e196b0df..0000000000
--- a/sdk/lib/atl/atlbase.cpp
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * ReactOS ATL
- *
- * Copyright 2009 Andrew Hill <ash77(a)reactos.org>
- *
- * 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 Street, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-#include "atlbase.h"
-
-namespace ATL
-{
-
-CAtlBaseModule _AtlBaseModule;
-CAtlWinModule _AtlWinModule = CAtlWinModule();
-CAtlComModule _AtlComModule;
-
-}; // namespace ATL
diff --git a/sdk/lib/atl/atlbase.h b/sdk/lib/atl/atlbase.h
index abd0711503..ae4c6ef03f 100644
--- a/sdk/lib/atl/atlbase.h
+++ b/sdk/lib/atl/atlbase.h
@@ -57,7 +57,6 @@ class CComModule;
class CAtlComModule;
__declspec(selectany) CAtlModule *_pAtlModule = NULL;
__declspec(selectany) CComModule *_pModule = NULL;
-extern CAtlComModule _AtlComModule;
struct _ATL_CATMAP_ENTRY
@@ -590,6 +589,9 @@ public:
}
};
+__declspec(selectany) CAtlComModule _AtlComModule;
+
+
template <class T>
HRESULT CAtlModuleT<T>::RegisterServer(BOOL bRegTypeLib, const CLSID *pCLSID)
{
@@ -983,7 +985,8 @@ public:
}
};
-extern CAtlWinModule _AtlWinModule;
+__declspec(selectany) CAtlWinModule _AtlWinModule;
+
class CComAllocator
{
diff --git a/sdk/lib/atl/atlcore.cpp b/sdk/lib/atl/atlcore.cpp
deleted file mode 100644
index 1b3c73de59..0000000000
--- a/sdk/lib/atl/atlcore.cpp
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * ReactOS ATL
- *
- * Copyright 2009 Andrew Hill <ash77(a)reactos.org>
- *
- * 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 Street, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-#include "atlcore.h"
-
-namespace ATL
-{
-
-bool CAtlBaseModule::m_bInitFailed = false;
-
-}; // namespace ATL
diff --git a/sdk/lib/atl/atlcore.h b/sdk/lib/atl/atlcore.h
index 279fa7f107..26f3cedc73 100644
--- a/sdk/lib/atl/atlcore.h
+++ b/sdk/lib/atl/atlcore.h
@@ -217,7 +217,8 @@ public:
HINSTANCE GetHInstanceAt(int i);
};
-extern CAtlBaseModule _AtlBaseModule;
+__declspec(selectany) CAtlBaseModule _AtlBaseModule;
+__declspec(selectany) bool CAtlBaseModule::m_bInitFailed = false;
///