diff --git a/reactos/dll/win32/oleacc/CMakeLists.txt b/reactos/dll/win32/oleacc/CMakeLists.txt index 6f46767afa7..173ecd55882 100644 --- a/reactos/dll/win32/oleacc/CMakeLists.txt +++ b/reactos/dll/win32/oleacc/CMakeLists.txt @@ -5,11 +5,18 @@ spec2def(oleacc.dll oleacc.spec ADD_IMPORTLIB) list(APPEND SOURCE main.c - oleacc.rc ${CMAKE_CURRENT_BINARY_DIR}/oleacc_stubs.c ${CMAKE_CURRENT_BINARY_DIR}/oleacc.def) -add_library(oleacc SHARED ${SOURCE}) +add_typelib(oleacc_classes.idl) + +list(APPEND oleacc_rc_deps + ${CMAKE_CURRENT_SOURCE_DIR}/oleacc_classes.rgs + ${CMAKE_CURRENT_BINARY_DIR}/oleacc_classes.tlb) + +set_source_files_properties(oleacc.rc PROPERTIES OBJECT_DEPENDS "${oleacc_rc_deps}") + +add_library(oleacc SHARED ${SOURCE} oleacc.rc) set_module_type(oleacc win32dll) target_link_libraries(oleacc wine) add_importlibs(oleacc user32 msvcrt kernel32 ntdll) diff --git a/reactos/dll/win32/oleacc/oleacc.rc b/reactos/dll/win32/oleacc/oleacc.rc index bb688bf1104..216be08d2dd 100644 --- a/reactos/dll/win32/oleacc/oleacc.rc +++ b/reactos/dll/win32/oleacc/oleacc.rc @@ -21,6 +21,9 @@ //#include "windef.h" //#include "oleacc.h" +1 TYPELIB "oleacc_classes.tlb" +1 WINE_REGISTRY "oleacc_classes.rgs" + #ifdef LANGUAGE_EN_US #include "lang/oleacc_En.rc" #endif diff --git a/reactos/dll/win32/oleacc/oleacc_classes.idl b/reactos/dll/win32/oleacc/oleacc_classes.idl new file mode 100644 index 00000000000..28cb93e319b --- /dev/null +++ b/reactos/dll/win32/oleacc/oleacc_classes.idl @@ -0,0 +1,18 @@ +/* + * Copyright (C) 2013 Alistair Leslie-Hughes + * + * 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 + */ +#include "oleacc.idl" diff --git a/reactos/dll/win32/oleacc/oleacc_classes.rgs b/reactos/dll/win32/oleacc/oleacc_classes.rgs new file mode 100644 index 00000000000..aa929629bd0 --- /dev/null +++ b/reactos/dll/win32/oleacc/oleacc_classes.rgs @@ -0,0 +1,20 @@ +HKCR +{ + NoRemove Typelib + { + NoRemove '{1EA4DBF0-3C3B-11CF-810C-00AA00389B71}' + { + '1.1' = s 'Accessibility' + { + '0' { win32 = s '%MODULE%' } + FLAGS = s '4' + } + } + } + NoRemove Interface + { + } + NoRemove CLSID + { + } +}