Revert "Re-land: content: Enable one-copy tile updates on Android."
[chromium-blink-merge.git] / ppapi / BUILD.gn
blobae8b8b7190447a76d19c28d8d2f280d99dbc2b60
1 # Copyright 2014 The Chromium 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.
5 copy("copy_test_files") {
6   visibility = [ ":*" ]
7   sources = [
8     # Keep "test_case.html.mock-http-headers" with "test_case.html".
9     "tests/ppapi_nacl_tests_newlib.nmf",
10     "tests/test_case.html",
11     "tests/test_case.html.mock-http-headers",
12     "tests/test_page.css",
13     "tests/test_page.css.mock-http-headers",
14   ]
15   outputs = [
16     "$root_out_dir/{{source_file_part}}",
17   ]
20 copy("copy_test_files2") {
21   visibility = [ ":*" ]
22   sources = [
23     "tests/test_url_loader_data/hello.txt",
24   ]
25   outputs = [
26     "$root_out_dir/test_url_loader_data/{{source_file_part}}",
27   ]
30 import("//ppapi/ppapi_sources.gni")
31 import("//testing/test.gni")
33 shared_library("ppapi_tests") {
34   sources = ppapi_sources.test_common_source_files +
35             ppapi_sources.test_trusted_source_files
37   defines = [ "GL_GLEXT_PROTOTYPES" ]
38   include_dirs = [ "lib/gl/include" ]
40   deps = [
41     "//ppapi/cpp",
42     "//ppapi/shared_impl",
43     ":copy_test_files",
44     ":copy_test_files2",
45   ]
48 shared_library("power_saver_test_plugin") {
49   sources = [
50     "tests/power_saver_test_plugin.cc",
51     "tests/test_utils.cc",
52   ]
54   deps = [
55     "//ppapi/cpp",
56     "//ppapi/shared_impl",
57   ]
60 test("ppapi_unittests") {
61   sources = [
62     "host/resource_message_filter_unittest.cc",
63     "proxy/device_enumeration_resource_helper_unittest.cc",
64     "proxy/file_chooser_resource_unittest.cc",
65     "proxy/file_system_resource_unittest.cc",
66     "proxy/flash_resource_unittest.cc",
67     "proxy/interface_list_unittest.cc",
68     "proxy/mock_resource.cc",
69     "proxy/mock_resource.h",
70     "proxy/nacl_message_scanner_unittest.cc",
71     "proxy/pdf_resource_unittest.cc",
72     "proxy/plugin_dispatcher_unittest.cc",
73     "proxy/plugin_resource_tracker_unittest.cc",
74     "proxy/plugin_var_tracker_unittest.cc",
75     "proxy/ppb_var_unittest.cc",
76     "proxy/ppp_instance_private_proxy_unittest.cc",
77     "proxy/ppp_instance_proxy_unittest.cc",
78     "proxy/ppp_messaging_proxy_unittest.cc",
79     "proxy/printing_resource_unittest.cc",
80     "proxy/raw_var_data_unittest.cc",
81     "proxy/serialized_var_unittest.cc",
82     "proxy/tracked_callback_unittest.cc",
83     "proxy/video_decoder_resource_unittest.cc",
84     "proxy/video_encoder_resource_unittest.cc",
85     "proxy/websocket_resource_unittest.cc",
86     "shared_impl/media_stream_audio_track_shared_unittest.cc",
87     "shared_impl/media_stream_buffer_manager_unittest.cc",
88     "shared_impl/media_stream_video_track_shared_unittest.cc",
89     "shared_impl/proxy_lock_unittest.cc",
90     "shared_impl/resource_tracker_unittest.cc",
91     "shared_impl/thread_aware_callback_unittest.cc",
92     "shared_impl/time_conversion_unittest.cc",
93     "shared_impl/var_tracker_unittest.cc",
94   ]
96   deps = [
97     "//base/allocator",
98     "//base/test:run_all_unittests",
99     "//base/test:test_support",
100     "//gpu/ipc",
101     "//ipc",
102     "//ipc:test_support",
103     "//media:shared_memory_support",
104     "//ppapi/host",
105     "//ppapi/proxy",
106     "//ppapi/proxy:test_support",
107     "//ppapi/shared_impl",
108     "//ppapi/shared_impl:test_support",
109     "//testing/gmock",
110     "//testing/gtest",
111     "//ui/surface",
112   ]
115 test("ppapi_perftests") {
116   sources = [
117     "proxy/ppapi_perftests.cc",
118     "proxy/ppp_messaging_proxy_perftest.cc",
119   ]
121   deps = [
122     "//base/allocator",
123     "//base/test:test_support",
124     "//ppapi/proxy",
125     "//ppapi/proxy:test_support",
126     "//ppapi/shared_impl",
127     "//ppapi/shared_impl:test_support",
128     "//testing/gtest",
129   ]
132 executable("pepper_hash_for_uma") {
133   sources = [
134     "tools/pepper_hash_for_uma.cc",
135   ]
137   deps = [
138     "//base",
139   ]