Merge to XFA: Restore checked strlen conversions.
[pdfium.git] / samples / BUILD.gn
1 # Copyright 2014 PDFium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 group("samples") {
6   deps = [
7     ":pdfium_test",
8   ]
9 }
10
11 config("pdfium_samples_config") {
12   defines = [
13     "PNG_PREFIX",
14     "PNGPREFIX_H",
15     "PNG_USE_READ_MACROS",
16   ]
17 }
18
19 executable("pdfium_test") {
20   sources = [
21     "image_diff_png.cc",
22     "pdfium_test.cc",
23   ]
24   deps = [
25     "//third_party/pdfium",
26     "//v8:v8_libplatform",
27   ]
28   include_dirs = [
29     "//v8",
30     "//v8/include",
31   ]
32   configs += [ ":pdfium_samples_config" ]
33 }
34
35 executable("pdfium_diff") {
36   sources = [
37     "image_diff.cc",
38     "image_diff_png.cc",
39     "image_diff_png.h",
40   ]
41   deps = [
42     "//third_party/pdfium",
43   ]
44   configs += [ ":pdfium_samples_config" ]
45 }