Move blueprint/* up a directory

Make integrating with go tools easier by putting the blueprint package
files in the top level directory of the git project instead of in a
subdirectory called blueprint.

Change-Id: I35c144c5fe7ddf34e478d0c47c50b2f6c92c2a03
This commit is contained in:
Colin Cross 2015-01-23 13:38:48 -08:00
parent 6bb4af9e20
commit 3e8e74f276
35 changed files with 98 additions and 61 deletions

View file

@ -3,45 +3,45 @@ bootstrap_go_package {
deps: ["blueprint-parser", deps: ["blueprint-parser",
"blueprint-proptools"], "blueprint-proptools"],
pkgPath: "blueprint", pkgPath: "blueprint",
srcs: ["blueprint/context.go", srcs: ["context.go",
"blueprint/live_tracker.go", "live_tracker.go",
"blueprint/mangle.go", "mangle.go",
"blueprint/module_ctx.go", "module_ctx.go",
"blueprint/ninja_defs.go", "ninja_defs.go",
"blueprint/ninja_strings.go", "ninja_strings.go",
"blueprint/ninja_writer.go", "ninja_writer.go",
"blueprint/package_ctx.go", "package_ctx.go",
"blueprint/scope.go", "scope.go",
"blueprint/singleton_ctx.go", "singleton_ctx.go",
"blueprint/unpack.go"], "unpack.go"],
} }
bootstrap_go_package { bootstrap_go_package {
name: "blueprint-parser", name: "blueprint-parser",
pkgPath: "blueprint/parser", pkgPath: "blueprint/parser",
srcs: ["blueprint/parser/modify.go", srcs: ["parser/modify.go",
"blueprint/parser/parser.go", "parser/parser.go",
"blueprint/parser/printer.go", "parser/printer.go",
"blueprint/parser/sort.go"], "parser/sort.go"],
} }
bootstrap_go_package { bootstrap_go_package {
name: "blueprint-deptools", name: "blueprint-deptools",
pkgPath: "blueprint/deptools", pkgPath: "blueprint/deptools",
srcs: ["blueprint/deptools/depfile.go"], srcs: ["deptools/depfile.go"],
} }
bootstrap_go_package { bootstrap_go_package {
name: "blueprint-pathtools", name: "blueprint-pathtools",
pkgPath: "blueprint/pathtools", pkgPath: "blueprint/pathtools",
srcs: ["blueprint/pathtools/lists.go", srcs: ["pathtools/lists.go",
"blueprint/pathtools/glob.go"], "pathtools/glob.go"],
} }
bootstrap_go_package { bootstrap_go_package {
name: "blueprint-proptools", name: "blueprint-proptools",
pkgPath: "blueprint/proptools", pkgPath: "blueprint/proptools",
srcs: ["blueprint/proptools/proptools.go"], srcs: ["proptools/proptools.go"],
} }
bootstrap_go_package { bootstrap_go_package {
@ -50,27 +50,27 @@ bootstrap_go_package {
"blueprint-deptools", "blueprint-deptools",
"blueprint-pathtools"], "blueprint-pathtools"],
pkgPath: "blueprint/bootstrap", pkgPath: "blueprint/bootstrap",
srcs: ["blueprint/bootstrap/bootstrap.go", srcs: ["bootstrap/bootstrap.go",
"blueprint/bootstrap/cleanup.go", "bootstrap/cleanup.go",
"blueprint/bootstrap/command.go", "bootstrap/command.go",
"blueprint/bootstrap/config.go", "bootstrap/config.go",
"blueprint/bootstrap/doc.go"], "bootstrap/doc.go"],
} }
bootstrap_go_binary { bootstrap_go_binary {
name: "minibp", name: "minibp",
deps: ["blueprint", "blueprint-bootstrap"], deps: ["blueprint", "blueprint-bootstrap"],
srcs: ["blueprint/bootstrap/minibp/main.go"], srcs: ["bootstrap/minibp/main.go"],
} }
bootstrap_go_binary { bootstrap_go_binary {
name: "bpfmt", name: "bpfmt",
deps: ["blueprint-parser"], deps: ["blueprint-parser"],
srcs: ["blueprint/bpfmt/bpfmt.go"], srcs: ["bpfmt/bpfmt.go"],
} }
bootstrap_go_binary { bootstrap_go_binary {
name: "bpmodify", name: "bpmodify",
deps: ["blueprint-parser"], deps: ["blueprint-parser"],
srcs: ["blueprint/bpmodify/bpmodify.go"], srcs: ["bpmodify/bpmodify.go"],
} }

View file

@ -55,17 +55,14 @@ rule g.bootstrap.link
# Defined: Blueprints:1:1 # Defined: Blueprints:1:1
build .bootstrap/blueprint/pkg/blueprint.a: g.bootstrap.gc $ build .bootstrap/blueprint/pkg/blueprint.a: g.bootstrap.gc $
${g.bootstrap.srcDir}/blueprint/context.go $ ${g.bootstrap.srcDir}/context.go ${g.bootstrap.srcDir}/live_tracker.go $
${g.bootstrap.srcDir}/blueprint/live_tracker.go $ ${g.bootstrap.srcDir}/mangle.go ${g.bootstrap.srcDir}/module_ctx.go $
${g.bootstrap.srcDir}/blueprint/mangle.go $ ${g.bootstrap.srcDir}/ninja_defs.go $
${g.bootstrap.srcDir}/blueprint/module_ctx.go $ ${g.bootstrap.srcDir}/ninja_strings.go $
${g.bootstrap.srcDir}/blueprint/ninja_defs.go $ ${g.bootstrap.srcDir}/ninja_writer.go $
${g.bootstrap.srcDir}/blueprint/ninja_strings.go $ ${g.bootstrap.srcDir}/package_ctx.go ${g.bootstrap.srcDir}/scope.go $
${g.bootstrap.srcDir}/blueprint/ninja_writer.go $ ${g.bootstrap.srcDir}/singleton_ctx.go ${g.bootstrap.srcDir}/unpack.go $
${g.bootstrap.srcDir}/blueprint/package_ctx.go $ | ${g.bootstrap.gcCmd} $
${g.bootstrap.srcDir}/blueprint/scope.go $
${g.bootstrap.srcDir}/blueprint/singleton_ctx.go $
${g.bootstrap.srcDir}/blueprint/unpack.go | ${g.bootstrap.gcCmd} $
.bootstrap/blueprint-parser/pkg/blueprint/parser.a $ .bootstrap/blueprint-parser/pkg/blueprint/parser.a $
.bootstrap/blueprint-proptools/pkg/blueprint/proptools.a .bootstrap/blueprint-proptools/pkg/blueprint/proptools.a
incFlags = -I .bootstrap/blueprint-parser/pkg -I .bootstrap/blueprint-proptools/pkg incFlags = -I .bootstrap/blueprint-parser/pkg -I .bootstrap/blueprint-proptools/pkg
@ -76,15 +73,14 @@ default .bootstrap/blueprint/pkg/blueprint.a
# Module: blueprint-bootstrap # Module: blueprint-bootstrap
# Type: bootstrap_go_package # Type: bootstrap_go_package
# Factory: blueprint/bootstrap.newGoPackageModule # Factory: blueprint/bootstrap.newGoPackageModule
# Defined: Blueprints:44:1 # Defined: Blueprints:47:1
build .bootstrap/blueprint-bootstrap/pkg/blueprint/bootstrap.a: g.bootstrap.gc $ build .bootstrap/blueprint-bootstrap/pkg/blueprint/bootstrap.a: g.bootstrap.gc $
${g.bootstrap.srcDir}/blueprint/bootstrap/bootstrap.go $ ${g.bootstrap.srcDir}/bootstrap/bootstrap.go $
${g.bootstrap.srcDir}/blueprint/bootstrap/cleanup.go $ ${g.bootstrap.srcDir}/bootstrap/cleanup.go $
${g.bootstrap.srcDir}/blueprint/bootstrap/command.go $ ${g.bootstrap.srcDir}/bootstrap/command.go $
${g.bootstrap.srcDir}/blueprint/bootstrap/config.go $ ${g.bootstrap.srcDir}/bootstrap/config.go $
${g.bootstrap.srcDir}/blueprint/bootstrap/doc.go | $ ${g.bootstrap.srcDir}/bootstrap/doc.go | ${g.bootstrap.gcCmd} $
${g.bootstrap.gcCmd} $
.bootstrap/blueprint-parser/pkg/blueprint/parser.a $ .bootstrap/blueprint-parser/pkg/blueprint/parser.a $
.bootstrap/blueprint-proptools/pkg/blueprint/proptools.a $ .bootstrap/blueprint-proptools/pkg/blueprint/proptools.a $
.bootstrap/blueprint/pkg/blueprint.a $ .bootstrap/blueprint/pkg/blueprint.a $
@ -98,11 +94,10 @@ default .bootstrap/blueprint-bootstrap/pkg/blueprint/bootstrap.a
# Module: blueprint-deptools # Module: blueprint-deptools
# Type: bootstrap_go_package # Type: bootstrap_go_package
# Factory: blueprint/bootstrap.newGoPackageModule # Factory: blueprint/bootstrap.newGoPackageModule
# Defined: Blueprints:25:1 # Defined: Blueprints:28:1
build .bootstrap/blueprint-deptools/pkg/blueprint/deptools.a: g.bootstrap.gc $ build .bootstrap/blueprint-deptools/pkg/blueprint/deptools.a: g.bootstrap.gc $
${g.bootstrap.srcDir}/blueprint/deptools/depfile.go | $ ${g.bootstrap.srcDir}/deptools/depfile.go | ${g.bootstrap.gcCmd}
${g.bootstrap.gcCmd}
pkgPath = blueprint/deptools pkgPath = blueprint/deptools
default .bootstrap/blueprint-deptools/pkg/blueprint/deptools.a default .bootstrap/blueprint-deptools/pkg/blueprint/deptools.a
@ -113,8 +108,10 @@ default .bootstrap/blueprint-deptools/pkg/blueprint/deptools.a
# Defined: Blueprints:19:1 # Defined: Blueprints:19:1
build .bootstrap/blueprint-parser/pkg/blueprint/parser.a: g.bootstrap.gc $ build .bootstrap/blueprint-parser/pkg/blueprint/parser.a: g.bootstrap.gc $
${g.bootstrap.srcDir}/blueprint/parser/parser.go | $ ${g.bootstrap.srcDir}/parser/modify.go $
${g.bootstrap.gcCmd} ${g.bootstrap.srcDir}/parser/parser.go $
${g.bootstrap.srcDir}/parser/printer.go $
${g.bootstrap.srcDir}/parser/sort.go | ${g.bootstrap.gcCmd}
pkgPath = blueprint/parser pkgPath = blueprint/parser
default .bootstrap/blueprint-parser/pkg/blueprint/parser.a default .bootstrap/blueprint-parser/pkg/blueprint/parser.a
@ -122,12 +119,11 @@ default .bootstrap/blueprint-parser/pkg/blueprint/parser.a
# Module: blueprint-pathtools # Module: blueprint-pathtools
# Type: bootstrap_go_package # Type: bootstrap_go_package
# Factory: blueprint/bootstrap.newGoPackageModule # Factory: blueprint/bootstrap.newGoPackageModule
# Defined: Blueprints:31:1 # Defined: Blueprints:34:1
build .bootstrap/blueprint-pathtools/pkg/blueprint/pathtools.a: g.bootstrap.gc $ build .bootstrap/blueprint-pathtools/pkg/blueprint/pathtools.a: g.bootstrap.gc $
${g.bootstrap.srcDir}/blueprint/pathtools/lists.go $ ${g.bootstrap.srcDir}/pathtools/lists.go $
${g.bootstrap.srcDir}/blueprint/pathtools/glob.go | $ ${g.bootstrap.srcDir}/pathtools/glob.go | ${g.bootstrap.gcCmd}
${g.bootstrap.gcCmd}
pkgPath = blueprint/pathtools pkgPath = blueprint/pathtools
default .bootstrap/blueprint-pathtools/pkg/blueprint/pathtools.a default .bootstrap/blueprint-pathtools/pkg/blueprint/pathtools.a
@ -135,23 +131,63 @@ default .bootstrap/blueprint-pathtools/pkg/blueprint/pathtools.a
# Module: blueprint-proptools # Module: blueprint-proptools
# Type: bootstrap_go_package # Type: bootstrap_go_package
# Factory: blueprint/bootstrap.newGoPackageModule # Factory: blueprint/bootstrap.newGoPackageModule
# Defined: Blueprints:38:1 # Defined: Blueprints:41:1
build .bootstrap/blueprint-proptools/pkg/blueprint/proptools.a: g.bootstrap.gc $ build .bootstrap/blueprint-proptools/pkg/blueprint/proptools.a: g.bootstrap.gc $
${g.bootstrap.srcDir}/blueprint/proptools/proptools.go | $ ${g.bootstrap.srcDir}/proptools/proptools.go | ${g.bootstrap.gcCmd}
${g.bootstrap.gcCmd}
pkgPath = blueprint/proptools pkgPath = blueprint/proptools
default .bootstrap/blueprint-proptools/pkg/blueprint/proptools.a default .bootstrap/blueprint-proptools/pkg/blueprint/proptools.a
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Module: bpfmt
# Type: bootstrap_go_binary
# Factory: blueprint/bootstrap.newGoBinaryModule
# Defined: Blueprints:66:1
build .bootstrap/bpfmt/obj/bpfmt.a: g.bootstrap.gc $
${g.bootstrap.srcDir}/bpfmt/bpfmt.go | ${g.bootstrap.gcCmd} $
.bootstrap/blueprint-parser/pkg/blueprint/parser.a
incFlags = -I .bootstrap/blueprint-parser/pkg
pkgPath = bpfmt
default .bootstrap/bpfmt/obj/bpfmt.a
build .bootstrap/bpfmt/obj/a.out: g.bootstrap.link $
.bootstrap/bpfmt/obj/bpfmt.a | ${g.bootstrap.linkCmd}
libDirFlags = -L .bootstrap/blueprint-parser/pkg
default .bootstrap/bpfmt/obj/a.out
build .bootstrap/bin/bpfmt: g.bootstrap.cp .bootstrap/bpfmt/obj/a.out
default .bootstrap/bin/bpfmt
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Module: bpmodify
# Type: bootstrap_go_binary
# Factory: blueprint/bootstrap.newGoBinaryModule
# Defined: Blueprints:72:1
build .bootstrap/bpmodify/obj/bpmodify.a: g.bootstrap.gc $
${g.bootstrap.srcDir}/bpmodify/bpmodify.go | ${g.bootstrap.gcCmd} $
.bootstrap/blueprint-parser/pkg/blueprint/parser.a
incFlags = -I .bootstrap/blueprint-parser/pkg
pkgPath = bpmodify
default .bootstrap/bpmodify/obj/bpmodify.a
build .bootstrap/bpmodify/obj/a.out: g.bootstrap.link $
.bootstrap/bpmodify/obj/bpmodify.a | ${g.bootstrap.linkCmd}
libDirFlags = -L .bootstrap/blueprint-parser/pkg
default .bootstrap/bpmodify/obj/a.out
build .bootstrap/bin/bpmodify: g.bootstrap.cp .bootstrap/bpmodify/obj/a.out
default .bootstrap/bin/bpmodify
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Module: minibp # Module: minibp
# Type: bootstrap_go_binary # Type: bootstrap_go_binary
# Factory: blueprint/bootstrap.newGoBinaryModule # Factory: blueprint/bootstrap.newGoBinaryModule
# Defined: Blueprints:57:1 # Defined: Blueprints:60:1
build .bootstrap/minibp/obj/minibp.a: g.bootstrap.gc $ build .bootstrap/minibp/obj/minibp.a: g.bootstrap.gc $
${g.bootstrap.srcDir}/blueprint/bootstrap/minibp/main.go | $ ${g.bootstrap.srcDir}/bootstrap/minibp/main.go | ${g.bootstrap.gcCmd} $
${g.bootstrap.gcCmd} $
.bootstrap/blueprint-parser/pkg/blueprint/parser.a $ .bootstrap/blueprint-parser/pkg/blueprint/parser.a $
.bootstrap/blueprint-proptools/pkg/blueprint/proptools.a $ .bootstrap/blueprint-proptools/pkg/blueprint/proptools.a $
.bootstrap/blueprint/pkg/blueprint.a $ .bootstrap/blueprint/pkg/blueprint.a $
@ -186,7 +222,8 @@ rule s.bootstrap.minibp
generator = true generator = true
build .bootstrap/main.ninja.in: s.bootstrap.bigbp $ build .bootstrap/main.ninja.in: s.bootstrap.bigbp $
${g.bootstrap.srcDir}/Blueprints | .bootstrap/bin/minibp ${g.bootstrap.srcDir}/Blueprints | .bootstrap/bin/bpfmt $
.bootstrap/bin/bpmodify .bootstrap/bin/minibp
default .bootstrap/main.ninja.in default .bootstrap/main.ninja.in
build .bootstrap/notAFile: phony build .bootstrap/notAFile: phony
default .bootstrap/notAFile default .bootstrap/notAFile