OLD | NEW |
(Empty) | |
| 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': [ |
| 23 '<@(cpp_sources)', |
| 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 ], |
| 52 'extra_deps64': [ |
| 53 '<(PRODUCT_DIR)/obj/gen/tc_newlib/lib64/libppapi_cpp.a', |
| 54 '<(PRODUCT_DIR)/obj/gen/tc_newlib/lib64/libppapi.a', |
| 55 ], |
| 56 'extra_deps32': [ |
| 57 '<(PRODUCT_DIR)/obj/gen/tc_newlib/lib32/libppapi_cpp.a', |
| 58 '<(PRODUCT_DIR)/obj/gen/tc_newlib/lib32/libppapi.a', |
| 59 ], |
| 60 'sources': [ |
| 61 '<@(test_sources_common)', |
| 62 '<@(test_sources_nacl)', |
| 63 ], |
| 64 }, |
| 65 }, |
| 66 ], |
| 67 } |
OLD | NEW |