skia2/third_party/imgui/BUILD.gn
John Stiles b5f7a07b77 Enable OS X clipboard in ImGui.
ImGui gates the OS clipboard behind a #define to avoid forcing ImGui
apps to link against ApplicationServices if they otherwise wouldn't need
to. In our case this is harmless; our tools already link against Cocoa.

This #define is safe to enable on all platforms.

Context:
29d9394a41

Change-Id: Ice5d027ddc0157c0cfe87a7cc0c064c4fa682425
Bug: skia:10338
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/300197
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Reed <reed@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
2020-07-01 21:33:07 +00:00

23 lines
561 B
Plaintext

# Copyright 2016 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
declare_args() {
}
import("../third_party.gni")
third_party("imgui") {
public_include_dirs = [ "../externals/imgui" ]
public_defines = [ "IMGUI_ENABLE_OSX_DEFAULT_CLIPBOARD_FUNCTIONS" ]
sources = [
"../externals/imgui/imgui.cpp",
"../externals/imgui/imgui_demo.cpp",
"../externals/imgui/imgui_draw.cpp",
"../externals/imgui/imgui_widgets.cpp",
"../externals/imgui/misc/cpp/imgui_stdlib.cpp",
]
}