aboutsummaryrefslogtreecommitdiffstats
path: root/gowin/gfx.h
diff options
context:
space:
mode:
authorYRabbit <rabbit@yrabbit.cyou>2022-12-21 16:13:08 +1000
committerYRabbit <rabbit@yrabbit.cyou>2022-12-21 16:13:08 +1000
commitd6cbe4b7f83a083ac174d7f8b0dd26eca61ebe53 (patch)
treeca5cfbeec3e265a7c43654af2089399a020f1cff /gowin/gfx.h
parent3ea3a931ca2b9b7228bf241a3fd6cbf861e40696 (diff)
downloadnextpnr-d6cbe4b7f83a083ac174d7f8b0dd26eca61ebe53.tar.gz
nextpnr-d6cbe4b7f83a083ac174d7f8b0dd26eca61ebe53.tar.bz2
nextpnr-d6cbe4b7f83a083ac174d7f8b0dd26eca61ebe53.zip
gowin: fix build for wasm
A large number of global variables are not suitable for WASM, so completely disable the graphics part where the main array of them is used. For other architectures GUI is still possible. Signed-off-by: YRabbit <rabbit@yrabbit.cyou>
Diffstat (limited to 'gowin/gfx.h')
-rw-r--r--gowin/gfx.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gowin/gfx.h b/gowin/gfx.h
index 623b9fb2..4c798ed9 100644
--- a/gowin/gfx.h
+++ b/gowin/gfx.h
@@ -24,6 +24,7 @@
NEXTPNR_NAMESPACE_BEGIN
+#ifndef NO_GUI
void gfxCreateBelDecals(Arch *arch);
void gfxSetBelDefaultDecal(Arch *arch, BelInfo &bel);
void gfxSetIOBWireDecals(Arch *arch, BelInfo &bel);
@@ -32,6 +33,7 @@ void gfxSetPipDefaultDecal(Arch *arch, PipInfo &pip);
void gfxSetWireDefaultDecal(Arch *arch, WireInfo &wire);
DecalXY gfxGetLutGroupDecalXY(int x, int y, int z);
DecalXY gfxGetCruGroupDecalXY(int x, int y);
+#endif
NEXTPNR_NAMESPACE_END