| # Copyright 2021 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. |
| |
| # The host stubs should not be included in the real device-side build. |
| assert(!is_efi_toolchain) |
| |
| config("host_config") { |
| # Include the parent dir so that our code can use more qualified paths e.g. |
| # <host/foo.h>. |
| include_dirs = [ ".." ] |
| cflags = [ "-DGIGABOOT_HOST" ] |
| } |
| |
| # This target provides replacements for device-only functionality, so that we |
| # can compile a subset of this code for the host. |
| source_set("host") { |
| sources = [ "stubs.c" ] |
| public_configs = [ ":host_config" ] |
| public_deps = [ "../lib:shared" ] |
| } |