Skip to content

Commit

Permalink
file name at top, don't need imports
Browse files Browse the repository at this point in the history
  • Loading branch information
aappleby committed Mar 25, 2024
1 parent 1da5491 commit 1fa699b
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion tutorial/rules.hancho
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# tutorial/rules.hancho
from hancho import *
import os

compile = build_config.rule(
desc = "Compile {rel_source_files} -> {rel_build_files}",
Expand Down
3 changes: 1 addition & 2 deletions tutorial/src/src.hancho
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# tutorial/src/src.hancho
from hancho import *
import glob

build_config.source_path = Path(__file__).parent

rules = load("../rules.hancho", build_config)

rules.c_binary(glob.glob("*.cpp"), "app")
rules.c_binary(glob("*.cpp"), "app")
1 change: 1 addition & 0 deletions tutorial/tut3.hancho
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# tutorial/tut3.hancho
from hancho import *

build_config.set_defaults(
Expand Down
2 changes: 1 addition & 1 deletion tutorial/tut4.hancho
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# tutorial/tut3.hancho
# tutorial/tut4.hancho
from hancho import *

build_config.set_defaults(
Expand Down

0 comments on commit 1fa699b

Please sign in to comment.