[email protected] | 1f081e7a | 2011-12-01 19:33:21 | [diff] [blame] | 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 |
| 3 | # found in the LICENSE file. |
| 4 | |
| 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 |
| 7 | # requiring NaCl sources for building. |
| 8 | |
| 9 | { |
| 10 | 'includes': [ |
| 11 | '../native_client/build/untrusted.gypi', |
| 12 | 'ppapi_sources.gypi', |
| 13 | ], |
| 14 | 'targets': [ |
| 15 | { |
| 16 | 'target_name': 'ppapi_cpp_lib', |
| 17 | 'type': 'none', |
| 18 | 'variables': { |
| 19 | 'nlib_target': 'libppapi_cpp.a', |
| 20 | 'build_glibc': 0, |
| 21 | 'build_newlib': 1, |
| 22 | 'sources': [ |
[email protected] | 7091950 | 2011-12-16 02:30:03 | [diff] [blame] | 23 | '<@(cpp_source_files)', |
[email protected] | 1f081e7a | 2011-12-01 19:33:21 | [diff] [blame] | 24 | 'cpp/module_embedder.h', |
| 25 | 'cpp/ppp_entrypoints.cc', |
| 26 | ], |
| 27 | }, |
| 28 | 'dependencies': [ |
| 29 | '<(DEPTH)/native_client/tools.gyp:prep_toolchain', |
| 30 | ], |
| 31 | }, |
| 32 | { |
| 33 | 'target_name': 'ppapi_nacl_tests', |
| 34 | 'type': 'none', |
| 35 | 'dependencies': [ |
| 36 | 'ppapi_cpp_lib', |
| 37 | 'native_client/native_client.gyp:ppapi_lib', |
| 38 | 'native_client/native_client.gyp:nacl_irt', |
| 39 | ], |
| 40 | 'variables': { |
| 41 | 'nexe_target': 'ppapi_nacl_tests', |
| 42 | 'build_glibc': 0, |
| 43 | 'build_newlib': 1, |
| 44 | 'include_dirs': [ |
| 45 | 'lib/gl/include', |
| 46 | '..', |
| 47 | ], |
| 48 | 'link_flags': [ |
| 49 | '-lppapi_cpp', |
| 50 | '-lppapi', |
| 51 | ], |
[email protected] | ebd08aa | 2012-05-22 19:54:38 | [diff] [blame^] | 52 | # TODO(bradchen): get rid of extra_deps64 and extra_deps32 |
| 53 | # once native_client/build/untrusted.gypi no longer needs them. |
[email protected] | 1f081e7a | 2011-12-01 19:33:21 | [diff] [blame] | 54 | 'extra_deps64': [ |
[email protected] | 4c3173b | 2011-12-13 23:19:42 | [diff] [blame] | 55 | '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libppapi_cpp.a', |
| 56 | '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libppapi.a', |
[email protected] | 1f081e7a | 2011-12-01 19:33:21 | [diff] [blame] | 57 | ], |
| 58 | 'extra_deps32': [ |
[email protected] | 4c3173b | 2011-12-13 23:19:42 | [diff] [blame] | 59 | '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libppapi_cpp.a', |
| 60 | '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libppapi.a', |
[email protected] | 1f081e7a | 2011-12-01 19:33:21 | [diff] [blame] | 61 | ], |
[email protected] | ebd08aa | 2012-05-22 19:54:38 | [diff] [blame^] | 62 | 'extra_deps_newlib64': [ |
| 63 | '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libppapi_cpp.a', |
| 64 | '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libppapi.a', |
| 65 | ], |
| 66 | 'extra_deps_newlib32': [ |
| 67 | '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libppapi_cpp.a', |
| 68 | '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libppapi.a', |
| 69 | ], |
| 70 | 'extra_deps_glibc64': [ |
| 71 | '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libppapi_cpp.a', |
| 72 | '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libppapi.a', |
| 73 | ], |
| 74 | 'extra_deps_glibc32': [ |
| 75 | '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libppapi_cpp.a', |
| 76 | '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libppapi.a', |
| 77 | ], |
[email protected] | 5386cb24 | 2012-04-03 16:14:52 | [diff] [blame] | 78 | 'extra_deps_arm': [ |
| 79 | '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libppapi_cpp.a', |
| 80 | '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libppapi.a', |
| 81 | ], |
[email protected] | 1f081e7a | 2011-12-01 19:33:21 | [diff] [blame] | 82 | 'sources': [ |
[email protected] | 7091950 | 2011-12-16 02:30:03 | [diff] [blame] | 83 | '<@(test_common_source_files)', |
| 84 | '<@(test_nacl_source_files)', |
[email protected] | 1f081e7a | 2011-12-01 19:33:21 | [diff] [blame] | 85 | ], |
| 86 | }, |
| 87 | }, |
| 88 | ], |
| 89 | } |