OLD | NEW |
(Empty) | |
| 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 |
| 3 # found in the LICENSE file. |
| 4 |
| 5 { |
| 6 'conditions': [ |
| 7 ['disable_nacl==0 and disable_nacl_untrusted==0', { |
| 8 'variables': { |
| 9 'monacl_codegen_dir': '<(SHARED_INTERMEDIATE_DIR)/<!(python <(DEPTH)/bui
ld/inverse_depth.py <(DEPTH))/monacl', |
| 10 }, |
| 11 'includes': [ |
| 12 'mojo_variables.gypi', |
| 13 '../build/common_untrusted.gypi', |
| 14 '../components/nacl/nacl_defines.gypi', |
| 15 ], |
| 16 'targets': [ |
| 17 { |
| 18 'target_name': 'libmojo', |
| 19 'type': 'none', |
| 20 'variables': { |
| 21 'nlib_target': 'libmojo.a', |
| 22 'build_glibc': 0, |
| 23 'build_newlib': 0, |
| 24 'build_pnacl_newlib': 1, |
| 25 }, |
| 26 'defines': [ |
| 27 '<@(nacl_defines)', |
| 28 ], |
| 29 'sources': [ |
| 30 '<(monacl_codegen_dir)/libmojo.cc', |
| 31 ], |
| 32 'dependencies': [ |
| 33 'mojo_nacl.gyp:monacl_codegen', |
| 34 ], |
| 35 }, |
| 36 { |
| 37 'target_name': 'monacl_test', |
| 38 'type': 'none', |
| 39 'variables': { |
| 40 'nexe_target': 'monacl_test', |
| 41 'build_newlib': 0, |
| 42 'build_pnacl_newlib': 1, |
| 43 'translate_pexe_with_build': 1, |
| 44 'link_flags': [ |
| 45 '-pthread', |
| 46 '-lmojo', |
| 47 '-limc_syscalls', |
| 48 ], |
| 49 'sources': [ |
| 50 '<@(mojo_public_system_unittest_sources)', |
| 51 ], |
| 52 }, |
| 53 'dependencies': [ |
| 54 '<(DEPTH)/native_client/tools.gyp:prep_toolchain', |
| 55 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib', |
| 56 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:imc_syscalls_lib
', |
| 57 '<(DEPTH)/native_client/src/untrusted/pthread/pthread.gyp:pthread_li
b', |
| 58 '../testing/gtest_nacl.gyp:gtest_nacl', |
| 59 '../testing/gtest_nacl.gyp:gtest_main_nacl', |
| 60 'libmojo', |
| 61 'mojo_nacl.gyp:monacl_codegen', |
| 62 ], |
| 63 }, |
| 64 ], |
| 65 }], |
| 66 ], |
| 67 } |
OLD | NEW |