From f8090a33dd7079454fa2c00f1baa8add79e799e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B3zef=20Kucia?= Date: Wed, 21 Sep 2016 12:57:24 +0200 Subject: [PATCH] libs/vkd3d: Add library. --- Makefile.am | 6 ++++++ libs/vkd3d/vkd3d_main.c | 30 ++++++++++++++++++++++++++++++ libs/vkd3d/vkd3d_private.h | 31 +++++++++++++++++++++++++++++++ 3 files changed, 67 insertions(+) create mode 100644 libs/vkd3d/vkd3d_main.c create mode 100644 libs/vkd3d/vkd3d_private.h diff --git a/Makefile.am b/Makefile.am index 1d2052f2..704a131b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,4 +1,6 @@ ACLOCAL_AMFLAGS = -I m4 +AM_CFLAGS = @VKD3D_CFLAGS@ +AM_CPPFLAGS = -I$(srcdir)/include -I$(srcdir)/include/dummy widl_headers = \ include/d3d12.h @@ -6,5 +8,9 @@ widl_headers = \ BUILT_SOURCES = $(widl_headers) CLEANFILES = $(widl_headers) +lib_LTLIBRARIES = libvkd3d.la +libvkd3d_la_SOURCES = \ + libs/vkd3d/vkd3d_main.c + $(widl_headers): %.h: %.idl $(WIDL) -o $@ $< diff --git a/libs/vkd3d/vkd3d_main.c b/libs/vkd3d/vkd3d_main.c new file mode 100644 index 00000000..ebe545af --- /dev/null +++ b/libs/vkd3d/vkd3d_main.c @@ -0,0 +1,30 @@ +/* + * Copyright 2016 Józef Kucia for CodeWeavers + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +#define INITGUID +#include "vkd3d_private.h" + +HRESULT WINAPI D3D12CreateDevice(IUnknown *adapter, D3D_FEATURE_LEVEL minimum_feature_level, + REFIID riid, void **device) +{ + return E_NOTIMPL; +} diff --git a/libs/vkd3d/vkd3d_private.h b/libs/vkd3d/vkd3d_private.h new file mode 100644 index 00000000..20715363 --- /dev/null +++ b/libs/vkd3d/vkd3d_private.h @@ -0,0 +1,31 @@ +/* + * Copyright 2016 Józef Kucia for CodeWeavers + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +#ifndef __VKD3D_PRIVATE_H +#define __VKD3D_PRIVATE_H + +#include "vkd3d_windows.h" +#include "d3d12.h" + +#include + +#endif /* __VKD3D_PRIVATE_H */