Index: remoting/remoting_key_tester.gypi |
diff --git a/remoting/remoting_key_tester.gypi b/remoting/remoting_key_tester.gypi |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5c906389440e94b535513692855708b5313c8624 |
--- /dev/null |
+++ b/remoting/remoting_key_tester.gypi |
@@ -0,0 +1,97 @@ |
+# Copyright 2015 The Chromium Authors. All rights reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+ |
+{ |
+ 'includes': [ |
+ '../build/common_untrusted.gypi', |
+ ], |
+ |
+ 'variables': { |
+ 'remoting_key_tester_js_files': [ |
+ 'tools/javascript_key_tester/background.js', |
+ 'tools/javascript_key_tester/chord_tracker.js', |
+ 'tools/javascript_key_tester/keyboard_map.js', |
+ 'tools/javascript_key_tester/main.js', |
+ ], |
+ }, |
+ |
+ 'targets': [ |
+ { |
+ 'target_name': 'remoting_key_tester', |
+ 'type': 'none', |
+ 'dependencies': [ |
+ 'remoting_key_tester_pexe', |
+ ], |
+ 'copies': [ |
+ { |
+ 'destination': '<(PRODUCT_DIR)/remoting/key_tester', |
+ 'files': [ |
+ '<@(remoting_key_tester_js_files)', |
+ 'tools/javascript_key_tester/main.css', |
+ 'tools/javascript_key_tester/main.html', |
+ 'tools/javascript_key_tester/manifest.json', |
+ 'tools/javascript_key_tester/pnacl/remoting_key_tester.nmf', |
+ '<(PRODUCT_DIR)/remoting_key_tester_newlib.pexe', |
+ ], |
+ } |
+ ], |
+# TODO(lukasza): Make remoting_key_tester jscompile-clean. |
+# 'conditions': [ |
+# ['run_jscompile != 0', { |
+# 'dependencies': [ |
+# 'remoting_key_tester_jscompile', |
+# ], |
+# }], |
+# ], |
+ }, # end of target 'remoting_key_tester' |
+ |
+ { |
+ 'target_name': 'remoting_key_tester_jscompile', |
+ 'type': 'none', |
+ 'variables': { |
+ 'success_stamp': '<(PRODUCT_DIR)/<(_target_name).stamp', |
+ }, |
+ 'actions': [ |
+ { |
+ 'action_name': 'jscompile remoting_key_tester', |
+ 'inputs': [ |
+ '<@(remoting_key_tester_js_files)', |
+ ], |
+ 'outputs': [ |
+ '<(success_stamp)', |
+ ], |
+ 'action': [ |
+ 'python', '../third_party/closure_compiler/checker.py', |
+ '--strict', |
+ '--no-single-file', |
+ '--success-stamp', '<(success_stamp)', |
+ '<@(remoting_key_tester_js_files)', |
+ ], |
+ }, |
+ ], # actions |
+ }, # end of target 'remoting_key_tester_jscompile' |
+ |
+ { |
+ 'target_name': 'remoting_key_tester_pexe', |
+ 'type': 'none', |
+ 'sources': [ |
+ 'tools/javascript_key_tester/pnacl/remoting_key_tester.cc', |
+ ], |
+ 'variables': { |
+ 'nexe_target': 'remoting_key_tester', |
+ 'build_glibc': 0, |
+ 'build_newlib': 0, |
+ 'build_pnacl_newlib': 1, |
+ 'extra_deps_pnacl_newlib': [ |
+ '>(tc_lib_dir_pnacl_newlib)/libppapi.a', |
+ '>(tc_lib_dir_pnacl_newlib)/libppapi_cpp.a', |
+ ], |
+ }, |
+ 'link_flags': [ |
teravest
2015/02/02 22:33:37
I feel like you should be able to depend on agains
|
+ '-lppapi_stub', |
+ '-lppapi_cpp', |
+ ], |
+ }, # end of target 'remoting_key_tester_pexe' |
+ ], |
+} |