diff --git a/bindings/bindings.nim b/bindings/bindings.nim index a103ba7..257d385 100644 --- a/bindings/bindings.nim +++ b/bindings/bindings.nim @@ -34,12 +34,26 @@ proc drawImage3*( ) {.raises: [PixieError].} = ctx.drawImage(image, sx, sy, sWidth, sHeight, dx, dy, dWidth, dHeight) -exportEnums [ - FileFormat, BlendMode, PaintKind, WindingRule, LineCap, LineJoin, - HorizontalAlignment, VerticalAlignment, TextCase -] +exportEnums: + export + FileFormat, + BlendMode, + PaintKind, + WindingRule, + LineCap, + LineJoin, + HorizontalAlignment, + VerticalAlignment, + TextCase -exportObjects [Vector2, Matrix3, Rect, Color, ColorStop, TextMetrics] +exportObjects: + export + Vector2, + Matrix3, + Rect, + Color, + ColorStop, + TextMetrics exportProcs: export diff --git a/bindings/generated/dllapi.nim b/bindings/generated/internal.nim similarity index 100% rename from bindings/generated/dllapi.nim rename to bindings/generated/internal.nim diff --git a/pixie.nimble b/pixie.nimble index b7afdfe..cbb636b 100644 --- a/pixie.nimble +++ b/pixie.nimble @@ -16,5 +16,5 @@ requires "bumpy >= 1.0.3" task docs, "Generate API documents": exec "nim doc --index:on --project --out:docs --hints:off src/pixie.nim" -task dll, "Generate DLL and bindings": +task bindings, "Generate bindings": exec "nim c -f -d:release --app:lib --gc:arc --tlsEmulation:off --out:pixie --outdir:bindings/generated bindings/bindings.nim"