| # Copyright 2019 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//build/buildflag_header.gni") |
| import("//pdf/features.gni") |
| import("//third_party/closure_compiler/compile_js.gni") |
| |
| assert(enable_pdf, "enable_pdf check failed") |
| assert(enable_ink, "ink_api dependencies should be guarded by enable_ink") |
| |
| js_type_check("closure_compile") { |
| deps = [ ":ink_api" ] |
| } |
| |
| js_library("ink_api") { |
| deps = [ "..:annotation_tool" ] |
| externs_list = [ |
| "$externs_path/pending.js", |
| "drawing_canvas_externs.js", |
| ] |
| } |