Make libdawn_native a shared library.

The interface exposed by libdawn_native is declared in the new headers
living in src/include/dawn_native so that they both the users and the
libraries use the DAWN_NATIVE_EXPORT macros.
This commit is contained in:
Corentin Wallez
2018-07-25 13:37:28 +02:00
committed by Corentin Wallez
parent 36afbb6a0d
commit 196ade667f
21 changed files with 252 additions and 72 deletions

View File

@@ -18,6 +18,7 @@
#include "common/Platform.h"
#include "common/SwapChainUtils.h"
#include "dawn/dawn_wsi.h"
#include "dawn_native/OpenGLBackend.h"
// Glad needs to be included before GLFW otherwise it complain that GL.h was already included
#include "glad/glad.h"
@@ -25,10 +26,6 @@
#include <cstdio>
#include "GLFW/glfw3.h"
namespace dawn_native { namespace opengl {
void Init(void* (*getProc)(const char*), dawnProcTable* procs, dawnDevice* device);
}} // namespace dawn_native::opengl
namespace utils {
class SwapChainImplGL {
public: