OLD | NEW |
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 gypi_values = exec_script( | 5 gypi_values = exec_script( |
6 "//build/gypi_to_gn.py", | 6 "//build/gypi_to_gn.py", |
7 [ rebase_path("ppapi_sources.gypi") ], | 7 [ rebase_path("ppapi_sources.gypi") ], |
8 "scope", | 8 "scope", |
9 [ "ppapi_sources.gypi" ]) | 9 [ "ppapi_sources.gypi" ]) |
10 | 10 |
11 # TODO(GYP) support chrome_multiple_dll | 11 # TODO(GYP) support chrome_multiple_dll |
12 #if (chrome_multiple_dll) { | 12 #if (chrome_multiple_dll) { |
13 # blink_target = "//third_party/WebKit/public:blink_minimal" | 13 # blink_target = "//third_party/WebKit/public:blink_minimal" |
14 #} else { | 14 #} else { |
15 blink_target = "//third_party/WebKit/public:blink" | 15 blink_target = "//third_party/WebKit/public:blink" |
16 #} | 16 #} |
17 | 17 |
18 # These are just headers. | 18 # These are just headers. |
19 source_set("ppapi_c") { | 19 source_set("ppapi_c") { |
20 sources = gypi_values.c_source_files | 20 sources = gypi_values.c_source_files |
21 } | 21 } |
22 | 22 |
| 23 # Some targets need to depend on the PPAPI version only. This target exists so |
| 24 # they can include this header without header check warnings. |
| 25 source_set("ppapi_macros") { |
| 26 sources = [ "c/pp_macros.h" ] |
| 27 } |
| 28 |
23 source_set("ppapi_cpp_objects") { | 29 source_set("ppapi_cpp_objects") { |
24 sources = gypi_values.cpp_source_files | 30 sources = gypi_values.cpp_source_files |
25 | 31 |
26 if (is_win) { | 32 if (is_win) { |
27 cflags = [ | 33 cflags = [ |
28 "/we4244", # Implicit conversion, possible loss of data. | 34 "/we4244", # Implicit conversion, possible loss of data. |
29 ] | 35 ] |
30 } else { | 36 } else { |
31 cflags = [ | 37 cflags = [ |
32 "-Wextra", | 38 "-Wextra", |
(...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
796 ":ppapi_shared", | 802 ":ppapi_shared", |
797 "//base/test:test_support", | 803 "//base/test:test_support", |
798 "//ipc", | 804 "//ipc", |
799 "//ipc:test_support", | 805 "//ipc:test_support", |
800 "//testing/gmock", | 806 "//testing/gmock", |
801 "//testing/gtest", | 807 "//testing/gtest", |
802 ] | 808 ] |
803 } | 809 } |
804 | 810 |
805 # TODO(GYP) other targets from ppapi_tests.gyp | 811 # TODO(GYP) other targets from ppapi_tests.gyp |
OLD | NEW |