[email protected] | 126f4fb | 2011-06-27 20:18:59 | [diff] [blame] | 1 | # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
[email protected] | b42370e | 2011-01-22 01:13:09 | [diff] [blame] | 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
[email protected] | 1f081e7a | 2011-12-01 19:33:21 | [diff] [blame] | 5 | # Shared source lists between trusted and untrusted targets are stored in |
| 6 | # ppapi_sources.gypi. |
| 7 | |
[email protected] | b42370e | 2011-01-22 01:13:09 | [diff] [blame] | 8 | { |
[email protected] | 1f081e7a | 2011-12-01 19:33:21 | [diff] [blame] | 9 | 'includes': [ |
| 10 | 'ppapi_sources.gypi', |
| 11 | ], |
[email protected] | b42370e | 2011-01-22 01:13:09 | [diff] [blame] | 12 | 'targets': [ |
| 13 | { |
[email protected] | e80bdfb | 2011-10-19 20:17:17 | [diff] [blame] | 14 | 'target_name': 'ppapi_c', |
[email protected] | b42370e | 2011-01-22 01:13:09 | [diff] [blame] | 15 | 'type': 'none', |
| 16 | 'all_dependent_settings': { |
[email protected] | ec5e04d | 2011-07-11 21:30:43 | [diff] [blame] | 17 | 'include_dirs+': [ |
[email protected] | b42370e | 2011-01-22 01:13:09 | [diff] [blame] | 18 | '..', |
| 19 | ], |
| 20 | }, |
| 21 | 'sources': [ |
[email protected] | 7091950 | 2011-12-16 02:30:03 | [diff] [blame] | 22 | '<@(c_source_files)', |
[email protected] | a026daa | 2011-04-20 15:49:51 | [diff] [blame] | 23 | ], |
[email protected] | b42370e | 2011-01-22 01:13:09 | [diff] [blame] | 24 | }, |
| 25 | { |
[email protected] | e80bdfb | 2011-10-19 20:17:17 | [diff] [blame] | 26 | 'target_name': 'ppapi_cpp_objects', |
[email protected] | b42370e | 2011-01-22 01:13:09 | [diff] [blame] | 27 | 'type': 'static_library', |
| 28 | 'dependencies': [ |
[email protected] | e80bdfb | 2011-10-19 20:17:17 | [diff] [blame] | 29 | 'ppapi_c' |
[email protected] | b42370e | 2011-01-22 01:13:09 | [diff] [blame] | 30 | ], |
[email protected] | ec5e04d | 2011-07-11 21:30:43 | [diff] [blame] | 31 | 'include_dirs+': [ |
[email protected] | b42370e | 2011-01-22 01:13:09 | [diff] [blame] | 32 | '..', |
| 33 | ], |
| 34 | 'sources': [ |
[email protected] | 7091950 | 2011-12-16 02:30:03 | [diff] [blame] | 35 | '<@(cpp_source_files)', |
[email protected] | b42370e | 2011-01-22 01:13:09 | [diff] [blame] | 36 | ], |
| 37 | 'conditions': [ |
| 38 | ['OS=="win"', { |
[email protected] | b42370e | 2011-01-22 01:13:09 | [diff] [blame] | 39 | 'msvs_settings': { |
| 40 | 'VCCLCompilerTool': { |
| 41 | 'AdditionalOptions': ['/we4244'], # implicit conversion, possible loss of data |
| 42 | }, |
| 43 | }, |
| 44 | }], |
| 45 | ['OS=="linux"', { |
| 46 | 'cflags': ['-Wextra', '-pedantic'], |
| 47 | }], |
| 48 | ['OS=="mac"', { |
| 49 | 'xcode_settings': { |
| 50 | 'WARNING_CFLAGS': ['-Wextra', '-pedantic'], |
| 51 | }, |
[email protected] | a026daa | 2011-04-20 15:49:51 | [diff] [blame] | 52 | }], |
[email protected] | b42370e | 2011-01-22 01:13:09 | [diff] [blame] | 53 | ], |
| 54 | }, |
| 55 | { |
[email protected] | e80bdfb | 2011-10-19 20:17:17 | [diff] [blame] | 56 | 'target_name': 'ppapi_cpp', |
[email protected] | b42370e | 2011-01-22 01:13:09 | [diff] [blame] | 57 | 'type': 'static_library', |
| 58 | 'dependencies': [ |
[email protected] | e80bdfb | 2011-10-19 20:17:17 | [diff] [blame] | 59 | 'ppapi_c', |
| 60 | 'ppapi_cpp_objects', |
[email protected] | b42370e | 2011-01-22 01:13:09 | [diff] [blame] | 61 | ], |
[email protected] | ec5e04d | 2011-07-11 21:30:43 | [diff] [blame] | 62 | 'include_dirs+': [ |
[email protected] | b42370e | 2011-01-22 01:13:09 | [diff] [blame] | 63 | '..', |
| 64 | ], |
| 65 | 'sources': [ |
| 66 | 'cpp/module_embedder.h', |
| 67 | 'cpp/ppp_entrypoints.cc', |
| 68 | ], |
| 69 | 'conditions': [ |
[email protected] | b42370e | 2011-01-22 01:13:09 | [diff] [blame] | 70 | ['OS=="linux"', { |
| 71 | 'cflags': ['-Wextra', '-pedantic'], |
| 72 | }], |
| 73 | ['OS=="mac"', { |
| 74 | 'xcode_settings': { |
| 75 | 'WARNING_CFLAGS': ['-Wextra', '-pedantic'], |
| 76 | }, |
| 77 | }] |
| 78 | ], |
| 79 | }, |
| 80 | ], |
[email protected] | b42370e | 2011-01-22 01:13:09 | [diff] [blame] | 81 | } |