Skip to content

Commit

Permalink
updated actions. Added new classes to Build.hx
Browse files Browse the repository at this point in the history
  • Loading branch information
codescapade committed Sep 11, 2024
1 parent 729454f commit a12f308
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-check-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
run: haxe hxml/lint.hxml

- name: Build
run: haxe hxml/build.hxml
run: haxe hxml/build-action.hxml

- name: Tests
run: haxe hxml/test.hxml
34 changes: 33 additions & 1 deletion build/Build.hx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,40 @@ import jume.di.Services;
// events.
import jume.events.Event;
import jume.events.EventListener;
import jume.events.EventType;
import jume.events.Events;
import jume.events.EventType;
import jume.events.FocusEvent;
import jume.events.ResizeEvent;
// graphics
import jume.graphics.Color;
import jume.graphics.Pipeline;
import jume.graphics.Shader;
import jume.graphics.ShaderType;
// graphics.gl
import jume.graphics.gl.BlendMode;
import jume.graphics.gl.BlendOperation;
import jume.graphics.gl.Context;
import jume.graphics.gl.MipmapFilter;
import jume.graphics.gl.TextureFilter;
import jume.graphics.gl.TextureWrap;
// math
import jume.math.Mat4;
import jume.math.MathUtils;
import jume.math.Random;
import jume.math.Rectangle;
import jume.math.Size;
import jume.math.Vec2;
import jume.math.Vec3;
// utils
import jume.utils.Bitset;
import jume.utils.BrowserInfo;
import jume.utils.TimeStep;
// view
import jume.view.ScaleModes;
import jume.view.View;
// Jume
import jume.Jume;
import jume.JumeOptions;

class Build {
static function main() {}
Expand Down
8 changes: 8 additions & 0 deletions hxml/build-action.hxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
-cp src
-cp build

--js dist/jume.js

--debug

--main Build
13 changes: 4 additions & 9 deletions src/jume/utils/Macros.hx
Original file line number Diff line number Diff line change
@@ -1,23 +1,18 @@
package jume.utils;

import haxe.display.Display.MetadataTarget;
import haxe.display.Display.Platform;
import haxe.macro.Compiler;
import haxe.macro.Expr;
import haxe.macro.Expr.FunctionArg;
#if macro
import haxe.macro.Compiler;
import haxe.macro.Context;
import haxe.macro.Expr.Field;
import haxe.macro.Expr.Function;
import haxe.macro.Expr;

using haxe.macro.Tools;

function init() {
Compiler.registerCustomMetadata({
metadata: ':inject',
doc: 'Inject the service of this type.',
targets: [MetadataTarget.ClassField],
platforms: [Platform.Js]
targets: [ClassField],
platforms: [Js]
}, 'jume');
}

Expand Down

0 comments on commit a12f308

Please sign in to comment.