diff --git a/src/BUILD.gn b/src/BUILD.gn index f134d7f332c318ab3049be1e60ab6843ae134379..8ef3c9e28beca470fe43687296ae585e52add5ba 100644 --- a/src/BUILD.gn +++ b/src/BUILD.gn @@ -10,6 +10,7 @@ group("src") { "connectivity", "developer", "identity", + "graphics", "ledger", "lib", "media", diff --git a/src/graphics/BUILD.gn b/src/graphics/BUILD.gn new file mode 100644 index 0000000000000000000000000000000000000000..f7fe67f9aa9bc6551bde3a739b81c76aafce3fa3 --- /dev/null +++ b/src/graphics/BUILD.gn @@ -0,0 +1,9 @@ +# Copyright 2019 The Fuchsia Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +group("graphics") { + deps = [ + "lib" + ] +} diff --git a/src/graphics/lib/BUILD.gn b/src/graphics/lib/BUILD.gn new file mode 100644 index 0000000000000000000000000000000000000000..aecf983909220aed8030b0faa0b75b76f9502e9b --- /dev/null +++ b/src/graphics/lib/BUILD.gn @@ -0,0 +1,9 @@ +# Copyright 2019 The Fuchsia Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +group("lib") { + deps = [ + "compute" + ] +} diff --git a/src/graphics/lib/compute/BUILD.gn b/src/graphics/lib/compute/BUILD.gn new file mode 100644 index 0000000000000000000000000000000000000000..94f373488ea2284ebd0e151a02c17f526e6cd1f0 --- /dev/null +++ b/src/graphics/lib/compute/BUILD.gn @@ -0,0 +1,10 @@ +# Copyright 2019 The Fuchsia Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +group("compute") { + deps = [ + "common", + "common/vk", + ] +} diff --git a/src/graphics/lib/compute/common/BUILD.gn b/src/graphics/lib/compute/common/BUILD.gn new file mode 100644 index 0000000000000000000000000000000000000000..6b64745bb69dcdb02dc8f4bbebdd0eef5c0bd7da --- /dev/null +++ b/src/graphics/lib/compute/common/BUILD.gn @@ -0,0 +1,15 @@ +# Copyright 2019 The Fuchsia Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +source_set("common") { + public = [ + "macros.h", + "util.h" + ] + sources = [ + "macros.h", + "util.h", + "util.c" + ] +} diff --git a/src/graphics/lib/compute/common/vk/BUILD.gn b/src/graphics/lib/compute/common/vk/BUILD.gn new file mode 100644 index 0000000000000000000000000000000000000000..f91a4a74cca5e7dd41040beea6a8388ad79f369d --- /dev/null +++ b/src/graphics/lib/compute/common/vk/BUILD.gn @@ -0,0 +1,35 @@ +# Copyright 2019 The Fuchsia Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +source_set("vk") { + public = [ + "vk_assert.h", + "vk_barrier.h", + "vk_cache.h", + "vk_debug.h", + "vk_find_mem_type_idx.h", + "vk_shader_info_amd.h", + ] + sources = [ + "vk_assert.c", + "vk_assert.h", + "vk_barrier.c", + "vk_barrier.h", + "vk_cache.c", + "vk_cache.h", + "vk_debug.c", + "vk_debug.h", + "vk_find_mem_type_idx.c", + "vk_find_mem_type_idx.h", + "vk_shader_info_amd.c", + "vk_shader_info_amd.h", + ] + include_dirs = [ + "//src/graphics/lib/compute" + ] + deps = [ + "//src/graphics/lib/compute/common", + "//third_party/vulkan_loader_and_validation_layers:vulkan" + ] +}