• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2020 The Pigweed Authors
2#
3# Licensed under the Apache License, Version 2.0 (the "License"); you may not
4# use this file except in compliance with the License. You may obtain a copy of
5# the License at
6#
7#     https://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations under
13# the License.
14
15import("//build_overrides/pigweed.gni")
16
17import("$dir_pw_build/target_types.gni")
18import("embos.gni")
19
20# This file defines a GN source_set for an external installation of embOS.
21# To use, checkout the embOS source into a directory, then set the build arg
22# dir_pw_third_party_embOS to point to that directory. The embOS library
23# will be available in GN at "$dir_pw_third_party/embos".
24if (dir_pw_third_party_embos_include != "") {
25  config("public_includes") {
26    include_dirs = [ "$dir_pw_third_party_embos_include" ]
27    visibility = [ ":*" ]
28  }
29
30  pw_source_set("embos") {
31    public_configs = [ ":public_includes" ]
32    allow_circular_includes_from = [ pw_third_party_embos_PORT ]
33    public_deps = [ pw_third_party_embos_PORT ]
34    public = [ "$dir_pw_third_party_embos_include/RTOS.h" ]
35  }
36} else {
37  group("embos") {
38  }
39}
40