Add GN rules to build spriv-as (#1842)

This commit is contained in:
dan sinclair 2018-08-15 15:26:28 -04:00 committed by GitHub
parent 36d675a404
commit 1bdade77ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -228,6 +228,21 @@ action("spvtools_generators_inc") {
] ]
} }
action("spvtools_build_version") {
script = "utils/update_build_version.py"
src_dir = "."
inc_file = "${target_gen_dir}/build-version.inc"
outputs = [
inc_file,
]
args = [
rebase_path(src_dir, root_build_dir),
rebase_path(inc_file, root_build_dir),
]
}
spvtools_core_tables("unified1") { spvtools_core_tables("unified1") {
version = "unified1" version = "unified1"
} }
@ -726,3 +741,15 @@ if (spirv_tools_standalone) {
] ]
} }
} }
executable("spirv-as") {
sources = [
"source/software_version.cpp",
"tools/as/as.cpp",
]
deps = [
":spvtools",
":spvtools_build_version",
]
configs += [ ":spvtools_config" ]
}