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.
7 '../build/common_untrusted.gypi',
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/event_listeners.js',
15 'tools/javascript_key_tester/main.js',
20 ['disable_nacl==0 and disable_nacl_untrusted==0', {
23 'target_name': 'remoting_key_tester',
26 'remoting_key_tester_pexe',
27 'remoting_key_tester_jscompile',
31 'destination': '<(PRODUCT_DIR)/remoting/key_tester',
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/icon_128.png',
38 'tools/javascript_key_tester/pnacl/remoting_key_tester.nmf',
39 '<(PRODUCT_DIR)/remoting_key_tester_newlib.pexe',
43 }, # end of target 'remoting_key_tester'
46 'target_name': 'remoting_key_tester_jscompile',
49 ['run_jscompile != 0', {
51 'success_stamp': '<(PRODUCT_DIR)/<(_target_name).stamp',
55 'action_name': 'jscompile remoting_key_tester',
57 '<@(remoting_key_tester_js_files)',
63 'python', '../third_party/closure_compiler/compile.py',
66 '--externs', '<(DEPTH)/third_party/closure_compiler/externs/chrome_extensions.js',
67 '--success-stamp', '<(success_stamp)',
68 '<@(remoting_key_tester_js_files)',
74 }, # end of target 'remoting_key_tester_jscompile'
77 'target_name': 'remoting_key_tester_pexe',
80 'tools/javascript_key_tester/pnacl/remoting_key_tester.cc',
83 'nexe_target': 'remoting_key_tester',
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',
96 }, # end of target 'remoting_key_tester_pexe'