1# Copyright 2018 The PDFium Authors 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5import("../../pdfium.gni") 6import("../../testing/test.gni") 7 8source_set("pwl") { 9 sources = [ 10 "cpwl_button.cpp", 11 "cpwl_button.h", 12 "cpwl_caret.cpp", 13 "cpwl_caret.h", 14 "cpwl_cbbutton.cpp", 15 "cpwl_cbbutton.h", 16 "cpwl_cblistbox.cpp", 17 "cpwl_cblistbox.h", 18 "cpwl_combo_box.cpp", 19 "cpwl_combo_box.h", 20 "cpwl_edit.cpp", 21 "cpwl_edit.h", 22 "cpwl_edit_impl.cpp", 23 "cpwl_edit_impl.h", 24 "cpwl_list_box.cpp", 25 "cpwl_list_box.h", 26 "cpwl_list_ctrl.cpp", 27 "cpwl_list_ctrl.h", 28 "cpwl_sbbutton.cpp", 29 "cpwl_sbbutton.h", 30 "cpwl_scroll_bar.cpp", 31 "cpwl_scroll_bar.h", 32 "cpwl_special_button.cpp", 33 "cpwl_special_button.h", 34 "cpwl_wnd.cpp", 35 "cpwl_wnd.h", 36 "ipwl_fillernotify.h", 37 ] 38 configs += [ 39 "../../:pdfium_strict_config", 40 "../../:pdfium_noshorten_config", 41 ] 42 deps = [ 43 "../../:pdfium_public_headers", 44 "../../constants", 45 "../../core/fpdfapi/font", 46 "../../core/fpdfapi/render", 47 "../../core/fpdfdoc", 48 "../../core/fxcrt", 49 "../../core/fxge", 50 ] 51 visibility = [ "../../*" ] 52} 53 54source_set("embedder_test_support") { 55 testonly = true 56 sources = [ 57 "cpwl_combo_box_embeddertest.cpp", 58 "cpwl_combo_box_embeddertest.h", 59 ] 60 configs += [ "../../:pdfium_strict_config" ] 61 deps = [ 62 ":pwl", 63 "../:fpdfsdk", 64 "../../:pdfium_public_headers", 65 "../../testing:embedder_test_support", 66 "../formfiller", 67 "//testing/gtest", 68 ] 69} 70 71pdfium_embeddertest_source_set("embeddertests") { 72 sources = [ 73 "cpwl_combo_box_edit_embeddertest.cpp", 74 "cpwl_edit_embeddertest.cpp", 75 "cpwl_special_button_embeddertest.cpp", 76 ] 77 deps = [ 78 ":embedder_test_support", 79 ":pwl", 80 "../:fpdfsdk", 81 "../formfiller", 82 ] 83 pdfium_root_dir = "../../" 84} 85