Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(124)

Side by Side Diff: ppapi/BUILD.gn

Issue 1903623002: [Mac/GN] Get //ppapi tests and examples working. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-framework-content
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/config/mac/rules.gni ('k') | ppapi/examples/ppapi_example.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/features.gni") 5 import("//build/config/features.gni")
6 6
7 assert(!is_android || enable_plugins, 7 assert(!is_android || enable_plugins,
8 "//ppapi should not be referenced when is_android && !enable_plugins") 8 "//ppapi should not be referenced when is_android && !enable_plugins")
9 9
10 if (is_mac) { 10 if (is_mac) {
(...skipping 24 matching lines...) Expand all
35 "$root_out_dir/test_url_loader_data/{{source_file_part}}", 35 "$root_out_dir/test_url_loader_data/{{source_file_part}}",
36 ] 36 ]
37 } 37 }
38 38
39 import("//build/config/features.gni") 39 import("//build/config/features.gni")
40 import("//build/config/nacl/config.gni") 40 import("//build/config/nacl/config.gni")
41 import("//build/config/nacl/rules.gni") 41 import("//build/config/nacl/rules.gni")
42 import("//ppapi/ppapi_sources.gni") 42 import("//ppapi/ppapi_sources.gni")
43 import("//testing/test.gni") 43 import("//testing/test.gni")
44 44
45 shared_library("ppapi_tests") { 45 source_set("ppapi_tests_sources") {
46 sources = ppapi_sources.test_common_source_files + 46 sources = ppapi_sources.test_common_source_files +
47 ppapi_sources.test_trusted_source_files 47 ppapi_sources.test_trusted_source_files
48 48
49 configs += [ 49 configs += [
50 "//build/config:precompiled_headers", 50 "//build/config:precompiled_headers",
51 "//v8:external_startup_data", 51 "//v8:external_startup_data",
52 ] 52 ]
53 53
54 defines = [ "GL_GLEXT_PROTOTYPES" ] 54 defines = [ "GL_GLEXT_PROTOTYPES" ]
55 include_dirs = [ "lib/gl/include" ] 55 include_dirs = [ "lib/gl/include" ]
56 56
57 deps = [ 57 deps = [
58 ":copy_test_files", 58 ":copy_test_files",
59 ":copy_test_files2", 59 ":copy_test_files2",
60 "//build/config/sanitizers:deps", 60 "//build/config/sanitizers:deps",
61 "//ppapi/cpp", 61 "//ppapi/cpp",
62 "//ppapi/shared_impl", 62 "//ppapi/shared_impl",
63 ] 63 ]
64 } 64 }
65 65
66 shared_library("power_saver_test_plugin") { 66 if (!is_mac) {
67 shared_library("ppapi_tests") {
68 deps = [
69 ":ppapi_tests_sources",
70 ]
71 }
72 } else {
73 mac_plugin_bundle("ppapi_tests") {
74 deps = [
75 ":ppapi_tests_sources",
76 ]
77 }
78 }
79
80 source_set("power_saver_test_plugin_sources") {
67 sources = [ 81 sources = [
68 "tests/power_saver_test_plugin.cc", 82 "tests/power_saver_test_plugin.cc",
69 "tests/test_utils.cc", 83 "tests/test_utils.cc",
70 ] 84 ]
71 85
72 deps = [ 86 deps = [
73 "//build/config/sanitizers:deps", 87 "//build/config/sanitizers:deps",
74 "//ppapi/cpp", 88 "//ppapi/cpp",
75 "//ppapi/shared_impl", 89 "//ppapi/shared_impl",
76 ] 90 ]
77 } 91 }
78 92
93 if (!is_mac) {
94 shared_library("power_saver_test_plugin") {
95 deps = [
96 ":power_saver_test_plugin_sources",
97 ]
98 }
99 } else {
100 mac_plugin_bundle("power_saver_test_plugin") {
101 deps = [
102 ":power_saver_test_plugin_sources",
103 ]
104 }
105 }
106
79 source_set("blink_deprecated_test_plugin_sources") { 107 source_set("blink_deprecated_test_plugin_sources") {
80 sources = [ 108 sources = [
81 "tests/blink_deprecated_test_plugin.cc", 109 "tests/blink_deprecated_test_plugin.cc",
82 ] 110 ]
83 111
84 deps = [ 112 deps = [
85 "//base", 113 "//base",
86 "//build/config/sanitizers:deps", 114 "//build/config/sanitizers:deps",
87 "//ppapi/cpp", 115 "//ppapi/cpp",
88 "//ppapi/shared_impl", 116 "//ppapi/shared_impl",
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 group("ppapi_nacl_tests_all") { 442 group("ppapi_nacl_tests_all") {
415 data_deps = [ 443 data_deps = [
416 ":copy_test_files", 444 ":copy_test_files",
417 ":ppapi_nacl_tests_copy(//build/toolchain/nacl:clang_newlib_${target_cpu}) ", 445 ":ppapi_nacl_tests_copy(//build/toolchain/nacl:clang_newlib_${target_cpu}) ",
418 ":ppapi_nacl_tests(//build/toolchain/nacl:glibc_${target_cpu})", 446 ":ppapi_nacl_tests(//build/toolchain/nacl:glibc_${target_cpu})",
419 ":ppapi_nacl_tests(//build/toolchain/nacl:newlib_pnacl)", 447 ":ppapi_nacl_tests(//build/toolchain/nacl:newlib_pnacl)",
420 ":ppapi_nacl_tests(//build/toolchain/nacl:newlib_pnacl_nonsfi)", 448 ":ppapi_nacl_tests(//build/toolchain/nacl:newlib_pnacl_nonsfi)",
421 ] 449 ]
422 } 450 }
423 } 451 }
OLDNEW
« no previous file with comments | « build/config/mac/rules.gni ('k') | ppapi/examples/ppapi_example.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698