| 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 # 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 '../native_client/build/untrusted.gypi', | 11 '../native_client/build/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 'build_glibc': 0, | 20 'build_glibc': 1, |
| 21 'build_newlib': 1, | 21 'build_newlib': 1, |
| 22 'sources': [ | 22 'sources': [ |
| 23 '<@(cpp_source_files)', | 23 '<@(cpp_source_files)', |
| 24 'cpp/module_embedder.h', | 24 'cpp/module_embedder.h', |
| 25 'cpp/ppp_entrypoints.cc', | 25 'cpp/ppp_entrypoints.cc', |
| 26 ], | 26 ], |
| 27 }, | 27 }, |
| 28 'dependencies': [ | 28 'dependencies': [ |
| 29 '<(DEPTH)/native_client/tools.gyp:prep_toolchain', | 29 '<(DEPTH)/native_client/tools.gyp:prep_toolchain', |
| 30 ], | 30 ], |
| 31 }, | 31 }, |
| 32 { | 32 { |
| 33 'target_name': 'ppapi_nacl_tests', | 33 'target_name': 'ppapi_nacl_tests', |
| 34 'type': 'none', | 34 'type': 'none', |
| 35 'dependencies': [ | 35 'dependencies': [ |
| 36 'ppapi_cpp_lib', | 36 'ppapi_cpp_lib', |
| 37 'native_client/native_client.gyp:ppapi_lib', | 37 'native_client/native_client.gyp:ppapi_lib', |
| 38 'native_client/native_client.gyp:nacl_irt', | 38 'native_client/native_client.gyp:nacl_irt', |
| 39 ], | 39 ], |
| 40 'variables': { | 40 'variables': { |
| 41 'nexe_target': 'ppapi_nacl_tests', | 41 'nexe_target': 'ppapi_nacl_tests', |
| 42 'build_glibc': 0, | 42 'build_glibc': 1, |
| 43 'build_newlib': 1, | 43 'build_newlib': 1, |
| 44 'include_dirs': [ | 44 'include_dirs': [ |
| 45 'lib/gl/include', | 45 'lib/gl/include', |
| 46 '..', | 46 '..', |
| 47 ], | 47 ], |
| 48 'link_flags': [ | 48 'link_flags': [ |
| 49 '-lppapi_cpp', | 49 '-lppapi_cpp', |
| 50 '-lppapi', | 50 '-lppapi', |
| 51 ], | 51 ], |
| 52 'extra_deps64': [ | 52 'extra_deps_newlib64': [ |
| 53 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libppapi_cpp.a', | 53 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libppapi_cpp.a', |
| 54 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libppapi.a', | 54 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libppapi.a', |
| 55 ], | 55 ], |
| 56 'extra_deps32': [ | 56 'extra_deps_newlib32': [ |
| 57 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libppapi_cpp.a', | 57 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libppapi_cpp.a', |
| 58 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libppapi.a', | 58 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libppapi.a', |
| 59 ], | 59 ], |
| 60 'extra_deps_glibc64': [ |
| 61 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libppapi_cpp.a', |
| 62 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libppapi.a', |
| 63 ], |
| 64 'extra_deps_glibc32': [ |
| 65 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libppapi_cpp.a', |
| 66 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libppapi.a', |
| 67 ], |
| 60 'extra_deps_arm': [ | 68 'extra_deps_arm': [ |
| 61 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libppapi_cpp.a', | 69 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libppapi_cpp.a', |
| 62 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libppapi.a', | 70 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libppapi.a', |
| 63 ], | 71 ], |
| 64 'sources': [ | 72 'sources': [ |
| 65 '<@(test_common_source_files)', | 73 '<@(test_common_source_files)', |
| 66 '<@(test_nacl_source_files)', | 74 '<@(test_nacl_source_files)', |
| 67 ], | 75 ], |
| 68 }, | 76 }, |
| 69 }, | 77 }, |
| 70 ], | 78 ], |
| 71 } | 79 } |
| OLD | NEW |