Browse Source

Use local pugl wasm code

Signed-off-by: falkTX <falktx@falktx.com>
pull/397/head
falkTX 2 years ago
parent
commit
1b732bfc5c
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
5 changed files with 7 additions and 10 deletions
  1. +1
    -1
      dgl/src/pugl-extra/wasm.c
  2. +1
    -2
      dgl/src/pugl-extra/wasm.h
  3. +1
    -1
      dgl/src/pugl-extra/wasm_gl.c
  4. +1
    -3
      dgl/src/pugl-extra/wasm_stub.c
  5. +3
    -3
      dgl/src/pugl.cpp

+ 1
- 1
dgl/src/pugl-extra/wasm.c View File

@@ -4,7 +4,7 @@

#include "wasm.h"

#include "internal.h"
#include "../pugl-upstream/src/internal.h"

#include <stdio.h>



+ 1
- 2
dgl/src/pugl-extra/wasm.h View File

@@ -5,8 +5,7 @@
#ifndef PUGL_SRC_WASM_H
#define PUGL_SRC_WASM_H

// #include "attributes.h"
#include "types.h"
#include "../pugl-upstream/src/types.h"

#include "pugl/pugl.h"



+ 1
- 1
dgl/src/pugl-extra/wasm_gl.c View File

@@ -2,7 +2,7 @@
// Copyright 2021-2022 Filipe Coelho <falktx@falktx.com>
// SPDX-License-Identifier: ISC

#include "stub.h"
#include "../pugl-upstream/src/stub.h"
#include "wasm.h"

#include "pugl/pugl.h"


+ 1
- 3
dgl/src/pugl-extra/wasm_stub.c View File

@@ -4,9 +4,7 @@

#include "pugl/stub.h"

#include "stub.h"
// #include "types.h"
// #include "wasm.h"
#include "../pugl-upstream/src/stub.h"

#include "pugl/pugl.h"



+ 3
- 3
dgl/src/pugl.cpp View File

@@ -146,10 +146,10 @@ START_NAMESPACE_DGL
# endif
# pragma clang diagnostic pop
#elif defined(DISTRHO_OS_WASM)
# include "pugl-upstream/src/wasm.c"
# include "pugl-upstream/src/wasm_stub.c"
# include "pugl-extra/wasm.c"
# include "pugl-extra/wasm_stub.c"
# ifdef DGL_OPENGL
# include "pugl-upstream/src/wasm_gl.c"
# include "pugl-extra/wasm_gl.c"
# endif
#elif defined(DISTRHO_OS_WINDOWS)
# include "pugl-upstream/src/win.c"


Loading…
Cancel
Save