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 # This GYP file defines untrusted (NaCl) targets. All targets in this | 5 # This GYP file defines untrusted (NaCl) targets. All targets in this |
6 # file should be conditionally depended upon via 'disable_nacl!=1' to avoid | 6 # file should be conditionally depended upon via 'disable_nacl!=1' to avoid |
7 # requiring NaCl sources for building. | 7 # requiring NaCl sources for building. |
8 | 8 |
9 { | 9 { |
10 'includes': [ | 10 'includes': [ |
11 '../build/common_untrusted.gypi', | 11 '../build/common_untrusted.gypi', |
12 'ppapi_sources.gypi', | 12 'ppapi_sources.gypi', |
13 ], | 13 ], |
14 'targets': [ | 14 'targets': [ |
15 { | 15 { |
16 'target_name': 'ppapi_cpp_lib', | 16 'target_name': 'ppapi_cpp_lib', |
17 'type': 'none', | 17 'type': 'none', |
18 'variables': { | 18 'variables': { |
19 'nlib_target': 'libppapi_cpp.a', | 19 'nlib_target': 'libppapi_cpp.a', |
20 'nso_target': 'libppapi_cpp.so', | 20 'nso_target': 'libppapi_cpp.so', |
| 21 'nacl_untrusted_build': 1, |
21 'build_glibc': 1, | 22 'build_glibc': 1, |
22 'build_newlib': 1, | 23 'build_newlib': 1, |
23 'build_pnacl_newlib': 1, | 24 'build_pnacl_newlib': 1, |
24 'sources': [ | 25 'sources': [ |
25 '<@(cpp_source_files)', | 26 '<@(cpp_source_files)', |
26 'cpp/module_embedder.h', | 27 'cpp/module_embedder.h', |
27 'cpp/ppp_entrypoints.cc', | 28 'cpp/ppp_entrypoints.cc', |
28 ], | 29 ], |
29 }, | 30 }, |
30 }, | 31 }, |
31 { | 32 { |
32 'target_name': 'ppapi_gles2_lib', | 33 'target_name': 'ppapi_gles2_lib', |
33 'type': 'none', | 34 'type': 'none', |
34 'variables': { | 35 'variables': { |
35 'nlib_target': 'libppapi_gles2.a', | 36 'nlib_target': 'libppapi_gles2.a', |
| 37 'nacl_untrusted_build': 1, |
36 'nso_target': 'libppapi_gles2.so', | 38 'nso_target': 'libppapi_gles2.so', |
37 'build_glibc': 1, | 39 'build_glibc': 1, |
38 'build_newlib': 1, | 40 'build_newlib': 1, |
39 'build_pnacl_newlib': 1, | 41 'build_pnacl_newlib': 1, |
40 'include_dirs': [ | 42 'include_dirs': [ |
41 'lib/gl/include', | 43 'lib/gl/include', |
42 ], | 44 ], |
43 'sources': [ | 45 'sources': [ |
44 'lib/gl/gles2/gl2ext_ppapi.c', | 46 'lib/gl/gles2/gl2ext_ppapi.c', |
45 'lib/gl/gles2/gl2ext_ppapi.h', | 47 'lib/gl/gles2/gl2ext_ppapi.h', |
(...skipping 23 matching lines...) Expand all Loading... |
69 # We compile with --strip-all under extra_args so debug info is | 71 # We compile with --strip-all under extra_args so debug info is |
70 # discarded anyway. Remove this and the --strip-all flag if | 72 # discarded anyway. Remove this and the --strip-all flag if |
71 # debug info is really needed. | 73 # debug info is really needed. |
72 'compile_flags!': [ | 74 'compile_flags!': [ |
73 '-g', | 75 '-g', |
74 ], | 76 ], |
75 'defines': [ | 77 'defines': [ |
76 'GL_GLEXT_PROTOTYPES', | 78 'GL_GLEXT_PROTOTYPES', |
77 ], | 79 ], |
78 'nexe_target': 'ppapi_nacl_tests', | 80 'nexe_target': 'ppapi_nacl_tests', |
| 81 'nacl_untrusted_build': 1, |
79 'build_newlib': 1, | 82 'build_newlib': 1, |
80 'include_dirs': [ | 83 'include_dirs': [ |
81 'lib/gl/include', | 84 'lib/gl/include', |
82 '..', | 85 '..', |
83 ], | 86 ], |
84 'link_flags': [ | 87 'link_flags': [ |
85 '-lppapi_cpp', | 88 '-lppapi_cpp', |
86 '-lppapi', | 89 '-lppapi', |
87 '-pthread', | 90 '-pthread', |
88 ], | 91 ], |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 '>@(create_nmf_flags)', | 351 '>@(create_nmf_flags)', |
349 '--output=>(nmf_pnacl)', | 352 '--output=>(nmf_pnacl)', |
350 ], | 353 ], |
351 }, | 354 }, |
352 ], | 355 ], |
353 }], | 356 }], |
354 ], | 357 ], |
355 }, | 358 }, |
356 ], | 359 ], |
357 } | 360 } |
OLD | NEW |