OLD | NEW |
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 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 # Shared source lists between trusted and untrusted targets are stored in | 5 # Shared source lists between trusted and untrusted targets are stored in |
6 # ppapi_sources.gypi. | 6 # ppapi_sources.gypi. |
7 | 7 |
8 { | 8 { |
9 'includes': [ | 9 'includes': [ |
10 'ppapi_sources.gypi', | 10 'ppapi_sources.gypi', |
(...skipping 18 matching lines...) Expand all Loading... |
29 'type': 'static_library', | 29 'type': 'static_library', |
30 'dependencies': [ | 30 'dependencies': [ |
31 'ppapi_c' | 31 'ppapi_c' |
32 ], | 32 ], |
33 'include_dirs+': [ | 33 'include_dirs+': [ |
34 '..', | 34 '..', |
35 ], | 35 ], |
36 'sources': [ | 36 'sources': [ |
37 '<@(cpp_source_files)', | 37 '<@(cpp_source_files)', |
38 ], | 38 ], |
39 'conditions': [ | |
40 ['OS=="win"', { | |
41 'msvs_settings': { | |
42 'VCCLCompilerTool': { | |
43 'AdditionalOptions': ['/we4244'], # implicit conversion, possible
loss of data | |
44 }, | |
45 }, | |
46 'msvs_disabled_warnings': [ | |
47 4267, | |
48 ], | |
49 }], | |
50 ['OS=="linux"', { | |
51 'cflags': ['-Wextra', '-pedantic'], | |
52 }], | |
53 ['OS=="mac"', { | |
54 'xcode_settings': { | |
55 'WARNING_CFLAGS': ['-Wextra', '-pedantic'], | |
56 }, | |
57 }], | |
58 ], | |
59 }, | 39 }, |
60 { | 40 { |
61 # GN version: //ppapi:ppapi_cpp | 41 # GN version: //ppapi:ppapi_cpp |
62 'target_name': 'ppapi_cpp', | 42 'target_name': 'ppapi_cpp', |
63 'type': 'static_library', | 43 'type': 'static_library', |
64 'dependencies': [ | 44 'dependencies': [ |
65 'ppapi_c', | 45 'ppapi_c', |
66 'ppapi_cpp_objects', | 46 'ppapi_cpp_objects', |
67 ], | 47 ], |
68 'include_dirs+': [ | 48 'include_dirs+': [ |
69 '..', | 49 '..', |
70 ], | 50 ], |
71 'sources': [ | 51 'sources': [ |
72 'cpp/module_embedder.h', | 52 'cpp/module_embedder.h', |
73 'cpp/ppp_entrypoints.cc', | 53 'cpp/ppp_entrypoints.cc', |
74 ], | 54 ], |
75 'conditions': [ | |
76 ['OS=="linux"', { | |
77 'cflags': ['-Wextra', '-pedantic'], | |
78 }], | |
79 ['OS=="mac"', { | |
80 'xcode_settings': { | |
81 'WARNING_CFLAGS': ['-Wextra', '-pedantic'], | |
82 }, | |
83 }] | |
84 ], | |
85 }, | 55 }, |
86 { | 56 { |
87 # GN version: //ppapi:ppapi_internal_module | 57 # GN version: //ppapi:ppapi_internal_module |
88 'target_name': 'ppapi_internal_module', | 58 'target_name': 'ppapi_internal_module', |
89 'type': 'static_library', | 59 'type': 'static_library', |
90 'include_dirs+': [ | 60 'include_dirs+': [ |
91 '..', | 61 '..', |
92 ], | 62 ], |
93 'sources': [ | 63 'sources': [ |
94 'cpp/private/internal_module.cc', | 64 'cpp/private/internal_module.cc', |
95 'cpp/private/internal_module.h', | 65 'cpp/private/internal_module.h', |
96 ] | 66 ] |
97 }, | 67 }, |
98 ], | 68 ], |
99 } | 69 } |
OLD | NEW |