mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-14 03:11:29 +00:00
This will allow Tint's dependent to depend on libtint without GN discovering Tint's test and try to build them. In particular it will help use Tint in Dawn in Skia's standalone build which doesn't have //testing. Bug: dawn:706 Change-Id: Idd28662b89aa75df7704eaae205328dce0b96fef Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/44540 Reviewed-by: David Neto <dneto@google.com> Commit-Queue: Corentin Wallez <cwallez@chromium.org> Auto-Submit: Corentin Wallez <cwallez@chromium.org>
37 lines
1.1 KiB
Plaintext
37 lines
1.1 KiB
Plaintext
# Copyright 2021 The Tint Authors
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
import("//build_overrides/build.gni")
|
|
import("../tint_overrides_with_defaults.gni")
|
|
|
|
executable("tint") {
|
|
sources = [ "main.cc" ]
|
|
deps = [
|
|
"${tint_root_dir}/src:libtint",
|
|
"${tint_spirv_tools_dir}/:spvtools",
|
|
"${tint_spirv_tools_dir}/:spvtools_opt",
|
|
"${tint_spirv_tools_dir}/:spvtools_val",
|
|
]
|
|
|
|
configs += [
|
|
"${tint_root_dir}/src:tint_common_config",
|
|
"${tint_root_dir}/src:tint_config",
|
|
]
|
|
|
|
if (build_with_chromium) {
|
|
configs -= [ "//build/config/compiler:chromium_code" ]
|
|
configs += [ "//build/config/compiler:no_chromium_code" ]
|
|
}
|
|
}
|