# Copyright 2022 The Pigweed 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
#
#     https://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/pigweed.gni")

import("$dir_pw_build/target_types.gni")

config("default_config") {
  include_dirs = [ "public" ]

  # To silence OpenGL warnings on macOS.
  defines = [ "GL_SILENCE_DEPRECATION" ]
}

pw_source_set("pw_display_driver_imgui") {
  public_configs = [ ":default_config" ]
  public = [ "public/pw_display_driver_imgui/display_driver.h" ]
  deps = [
    "$dir_pigweed_experimental/third_party/glfw",
    "$dir_pigweed_experimental/third_party/imgui",
    "$dir_pw_log",
    "$dir_pw_math",
  ]
  public_deps = [
    "$dir_pw_display_driver:display_driver",
    "$dir_pw_framebuffer_pool",
  ]
  sources = [ "display_driver.cc" ]
  remove_configs = [ "$dir_pw_build:strict_warnings" ]

  if (host_os == "linux") {
    remove_configs += [ "$dir_pw_toolchain/host_clang:linux_sysroot" ]
  }
}
