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 ['chromeos==1 and disable_nacl==0 and disable_nacl_untrusted==0', { 8 'includes': [ '../chromevox/common.gypi', ], 9 'targets': [ 10 { 11 'target_name': 'chromevox2', 12 'type': 'none', 13 'dependencies': [ 14 'chromevox2_copied_scripts', 15 'chromevox2_deps', 16 'chromevox2_manifest', 17 'chromevox2_guest_manifest', 18 'chromevox2_resources', 19 '../chromevox/chromevox.gyp:chromevox_resources', 20 ], 21 }, 22 { 23 'target_name': 'chromevox2_copied_scripts', 24 'type': 'none', 25 'variables': { 26 'dest_dir': '<(chromevox_dest_dir)', 27 'js_root_flags': [ 28 '-r', '.', 29 '-r', '<(closure_goog_dir)', 30 ], 31 }, 32 'sources': [ 33 'cvox2/background/loader.js', 34 'cvox2/injected/loader.js', 35 ], 36 'includes': [ '../chromevox/copy_js.gypi', ], 37 }, 38 { 39 'target_name': 'chromevox2_deps', 40 'type': 'none', 41 'variables': { 42 'deps_js_output_file': '<(chromevox_dest_dir)/deps.js', 43 }, 44 'sources': [ 45 'cvox2/background/loader.js', 46 'cvox2/injected/loader.js', 47 ], 48 'includes': ['../chromevox/generate_deps.gypi'], 49 }, 50 { 51 'target_name': 'chromevox2_resources', 52 'type': 'none', 53 'copies': [ 54 { 55 'destination': '<(PRODUCT_DIR)/resources/chromeos/chromevox/cvox2/background', 56 'files': [ 57 'cvox2/background/background.html', 58 ], 59 }, 60 ], 61 }, 62 { 63 'target_name': 'chromevox2_manifest', 64 'type': 'none', 65 'variables': { 66 'output_manifest_path': '<(chromevox_dest_dir)/manifest.json' 67 }, 68 'includes': [ '../chromevox/generate_manifest.gypi', ], 69 }, 70 { 71 'target_name': 'chromevox2_guest_manifest', 72 'type': 'none', 73 'variables': { 74 'output_manifest_path': '<(chromevox_dest_dir)/manifest_guest.json', 75 'is_guest_manifest': 1, 76 }, 77 'includes': [ '../chromevox/generate_manifest.gypi', ], 78 }, 79 ], 80 }], 81 ], 82} 83