forked from PolymerLabs/arcs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Defines new arcs_kt_particles build rule (PolymerLabs#4298)
* Defines new arcs_kt_particles build rule This replaces arcs_kt_binary. There are two main advantages for using this rule instead of arcs_kt_binary: 1. You can bundles lots of particles together into the one wasm binary (technically you could do this before using arcs_kt_binary, but we weren't) 2. It will let us do interesting things when compiling particles (e.g. generate wasm bindings, etc.) * Update new tutorial * Fix test * lint
- Loading branch information
1 parent
855ed2f
commit 7233f5f
Showing
24 changed files
with
206 additions
and
204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
load("//third_party/java/arcs/build_defs:build_defs.bzl", "arcs_kt_binary") | ||
load("//third_party/java/arcs/build_defs:build_defs.bzl", "arcs_kt_particles") | ||
|
||
arcs_kt_binary( | ||
licenses(["notice"]) | ||
|
||
arcs_kt_particles( | ||
name = "HelloWorld", | ||
srcs = ["HelloWorld.kt"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
load("//third_party/java/arcs/build_defs:build_defs.bzl", "arcs_kt_binary") | ||
load("//third_party/java/arcs/build_defs:build_defs.bzl", "arcs_kt_particles") | ||
|
||
arcs_kt_binary( | ||
licenses(["notice"]) | ||
|
||
arcs_kt_particles( | ||
name = "BasicTemplate", | ||
srcs = ["BasicTemplate.kt"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
load("//third_party/java/arcs/build_defs:build_defs.bzl", "arcs_kt_binary") | ||
load("//third_party/java/arcs/build_defs:build_defs.bzl", "arcs_kt_particles") | ||
|
||
arcs_kt_binary( | ||
name = "ParentParticle", | ||
srcs = ["ParentParticle.kt"], | ||
) | ||
licenses(["notice"]) | ||
|
||
arcs_kt_binary( | ||
name = "ChildParticle", | ||
srcs = ["ChildParticle.kt"], | ||
arcs_kt_particles( | ||
name = "RenderSlots", | ||
srcs = glob(["*.kt"]), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
load("//third_party/java/arcs/build_defs:build_defs.bzl", "arcs_kt_binary", "arcs_kt_schema") | ||
load( | ||
"//third_party/java/arcs/build_defs:build_defs.bzl", | ||
"arcs_kt_particles", | ||
"arcs_kt_schema", | ||
) | ||
|
||
licenses(["notice"]) | ||
|
||
arcs_kt_schema( | ||
name = "handles_schemas", | ||
srcs = ["Handles.arcs"], | ||
package = "arcs.tutorials", | ||
) | ||
|
||
arcs_kt_binary( | ||
name = "GetPerson", | ||
srcs = ["GetPerson.kt"], | ||
deps = [":handles_schemas"], | ||
) | ||
|
||
arcs_kt_binary( | ||
name = "DisplayGreeting", | ||
srcs = ["DisplayGreeting.kt"], | ||
arcs_kt_particles( | ||
name = "Handles", | ||
srcs = glob(["*.kt"]), | ||
deps = [":handles_schemas"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
load("//third_party/java/arcs/build_defs:build_defs.bzl", "arcs_kt_binary", "arcs_kt_schema") | ||
load( | ||
"//third_party/java/arcs/build_defs:build_defs.bzl", | ||
"arcs_kt_particles", | ||
"arcs_kt_schema", | ||
) | ||
|
||
licenses(["notice"]) | ||
|
||
arcs_kt_schema( | ||
name = "game_schemas", | ||
srcs = ["TTTGame.arcs"], | ||
) | ||
|
||
arcs_kt_binary( | ||
name = "TTTBoard", | ||
srcs = ["TTTBoard.kt"], | ||
deps = [":game_schemas"], | ||
) | ||
|
||
arcs_kt_binary( | ||
name = "TTTGame", | ||
srcs = ["TTTGame.kt"], | ||
arcs_kt_particles( | ||
name = "particles", | ||
srcs = glob(["*.kt"]), | ||
deps = [":game_schemas"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,18 @@ | ||
load("//third_party/java/arcs/build_defs:build_defs.bzl", "arcs_kt_binary", "arcs_kt_schema") | ||
load( | ||
"//third_party/java/arcs/build_defs:build_defs.bzl", | ||
"arcs_kt_particles", | ||
"arcs_kt_schema", | ||
) | ||
|
||
licenses(["notice"]) | ||
|
||
arcs_kt_schema( | ||
name = "game_schemas", | ||
srcs = ["TTTGame.arcs"], | ||
) | ||
|
||
arcs_kt_binary( | ||
name = "TTTBoard", | ||
srcs = ["TTTBoard.kt"], | ||
deps = [":game_schemas"], | ||
) | ||
|
||
arcs_kt_binary( | ||
name = "TTTGame", | ||
srcs = ["TTTGame.kt"], | ||
deps = [":game_schemas"], | ||
) | ||
|
||
arcs_kt_binary( | ||
name = "TTTHumanPlayer", | ||
srcs = ["TTTHumanPlayer.kt"], | ||
arcs_kt_particles( | ||
name = "particles", | ||
srcs = glob(["*.kt"]), | ||
deps = [":game_schemas"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,16 @@ | ||
load("//third_party/java/arcs/build_defs:build_defs.bzl", "arcs_kt_binary", "arcs_kt_schema") | ||
load( | ||
"//third_party/java/arcs/build_defs:build_defs.bzl", | ||
"arcs_kt_particles", | ||
"arcs_kt_schema", | ||
) | ||
|
||
arcs_kt_schema( | ||
name = "game_schemas", | ||
srcs = ["TTTGame.arcs"], | ||
) | ||
|
||
arcs_kt_binary( | ||
name = "TTTBoard", | ||
srcs = ["TTTBoard.kt"], | ||
deps = [":game_schemas"], | ||
) | ||
|
||
arcs_kt_binary( | ||
name = "TTTGame", | ||
srcs = ["TTTGame.kt"], | ||
deps = [":game_schemas"], | ||
) | ||
|
||
arcs_kt_binary( | ||
name = "TTTHumanPlayer", | ||
srcs = ["TTTHumanPlayer.kt"], | ||
deps = [":game_schemas"], | ||
) | ||
|
||
arcs_kt_binary( | ||
name = "TTTRandomComputer", | ||
srcs = ["TTTRandomComputer.kt"], | ||
arcs_kt_particles( | ||
name = "particles", | ||
srcs = glob(["*.kt"]), | ||
deps = [":game_schemas"], | ||
) |
Oops, something went wrong.