Skip to content

Commit

Permalink
configure build for cpp target as a library
Browse files Browse the repository at this point in the history
  • Loading branch information
endel committed Jan 14, 2019
1 parent cc5e8ef commit f4a0b40
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
21 changes: 21 additions & 0 deletions build.hxml
@@ -0,0 +1,21 @@
-cp src

# exposed classes
io.colyseus.Client
io.colyseus.Room

-lib hxcpp
-lib haxe-ws

# this is for Mac OS X:
-D HXCPP_M64

# this is required on Windows. the "d" stands for debug:
# -D ABI=-MTd

-dce full
-cpp build/cpp

-D static_link
# -D dll_export # WINDOWS?
-D actuate
1 change: 1 addition & 0 deletions src/io/colyseus/Client.hx
Expand Up @@ -10,6 +10,7 @@ interface RoomAvailable {
public var metadata: Dynamic;
}

@:keep
class Client {
public var id: String = "";
public var endpoint: String;
Expand Down

0 comments on commit f4a0b40

Please sign in to comment.