| # Copyright 2020 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. |
| |
| config("hwcpipe_config") { |
| include_dirs = [ "." ] |
| defines = [ "HWCPIPE_NO_JSON" ] |
| } |
| |
| source_set("mali_profiler") { |
| sources = [ |
| "cpu_profiler.h", |
| "gpu_profiler.h", |
| "hwcpipe.cpp", |
| "hwcpipe.h", |
| "vendor/arm/mali/hwc.hpp", |
| "vendor/arm/mali/hwc_names.hpp", |
| "vendor/arm/mali/mali_profiler_magma.cpp", |
| "vendor/arm/mali/mali_profiler_magma.h", |
| ] |
| public_configs = [ ":hwcpipe_config" ] |
| configs -= [ "//build/config:no_exceptions" ] |
| |
| # Disable ShadowCallStack, since there seem to be some issues with the call stack after exceptions |
| # are caught. |
| # TODO(fxb/41627): Re-enable. |
| cflags = [ "-fno-sanitize=shadow-call-stack" ] |
| deps = [ |
| "//sdk/lib/fdio", |
| "//src/graphics/drivers/msd-arm-mali/include", |
| "//src/graphics/lib/magma/src/libmagma", |
| "//zircon/public/lib/zx", |
| ] |
| } |