OLD | NEW |
(Empty) | |
| 1 # Copyright 2015 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 'includes': [ |
| 7 '../build/common_untrusted.gypi', |
| 8 ], |
| 9 |
| 10 'variables': { |
| 11 'remoting_key_tester_js_files': [ |
| 12 'tools/javascript_key_tester/background.js', |
| 13 'tools/javascript_key_tester/chord_tracker.js', |
| 14 'tools/javascript_key_tester/keyboard_map.js', |
| 15 'tools/javascript_key_tester/main.js', |
| 16 ], |
| 17 }, |
| 18 |
| 19 'conditions': [ |
| 20 ['disable_nacl==0 and disable_nacl_untrusted==0', { |
| 21 'targets': [ |
| 22 { |
| 23 'target_name': 'remoting_key_tester', |
| 24 'type': 'none', |
| 25 'dependencies': [ |
| 26 'remoting_key_tester_pexe', |
| 27 'remoting_key_tester_jscompile', |
| 28 ], |
| 29 'copies': [ |
| 30 { |
| 31 'destination': '<(PRODUCT_DIR)/remoting/key_tester', |
| 32 'files': [ |
| 33 '<@(remoting_key_tester_js_files)', |
| 34 'tools/javascript_key_tester/main.css', |
| 35 'tools/javascript_key_tester/main.html', |
| 36 'tools/javascript_key_tester/manifest.json', |
| 37 'tools/javascript_key_tester/pnacl/remoting_key_tester.nmf', |
| 38 '<(PRODUCT_DIR)/remoting_key_tester_newlib.pexe', |
| 39 ], |
| 40 } |
| 41 ], |
| 42 }, # end of target 'remoting_key_tester' |
| 43 |
| 44 { |
| 45 'target_name': 'remoting_key_tester_jscompile', |
| 46 'type': 'none', |
| 47 'conditions': [ |
| 48 # TODO(lukasza): Enable when remoting_key_tester_jscompile is clean. |
| 49 # ['run_jscompile != 0', { |
| 50 ['0 != 0', { |
| 51 'variables': { |
| 52 'success_stamp': '<(PRODUCT_DIR)/<(_target_name).stamp', |
| 53 }, |
| 54 'actions': [ |
| 55 { |
| 56 'action_name': 'jscompile remoting_key_tester', |
| 57 'inputs': [ |
| 58 '<@(remoting_key_tester_js_files)', |
| 59 ], |
| 60 'outputs': [ |
| 61 '<(success_stamp)', |
| 62 ], |
| 63 'action': [ |
| 64 'python', '../third_party/closure_compiler/checker.py', |
| 65 '--strict', |
| 66 '--no-single-file', |
| 67 '--success-stamp', '<(success_stamp)', |
| 68 '<@(remoting_key_tester_js_files)', |
| 69 ], |
| 70 }, |
| 71 ], # actions |
| 72 }], |
| 73 ], |
| 74 }, # end of target 'remoting_key_tester_jscompile' |
| 75 |
| 76 { |
| 77 'target_name': 'remoting_key_tester_pexe', |
| 78 'type': 'none', |
| 79 'sources': [ |
| 80 'tools/javascript_key_tester/pnacl/remoting_key_tester.cc', |
| 81 ], |
| 82 'variables': { |
| 83 'nexe_target': 'remoting_key_tester', |
| 84 'build_glibc': 0, |
| 85 'build_newlib': 0, |
| 86 'build_pnacl_newlib': 1, |
| 87 'extra_deps_pnacl_newlib': [ |
| 88 '>(tc_lib_dir_pnacl_newlib)/libppapi.a', |
| 89 '>(tc_lib_dir_pnacl_newlib)/libppapi_cpp.a', |
| 90 ], |
| 91 }, |
| 92 'link_flags': [ |
| 93 '-lppapi_stub', |
| 94 '-lppapi_cpp', |
| 95 ], |
| 96 }, # end of target 'remoting_key_tester_pexe' |
| 97 ], |
| 98 }] |
| 99 ], |
| 100 } |
OLD | NEW |