mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-11-26 21:30:07 +00:00
Add GN rules to build spriv-as (#1842)
This commit is contained in:
parent
36d675a404
commit
1bdade77ea
27
BUILD.gn
27
BUILD.gn
@ -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") {
|
||||
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" ]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user