summaryrefslogtreecommitdiffstats
path: root/remoting/app_remoting_webapp.gyp
blob: c6a0065fc08c290eac0c3332411b1a1522e8b2f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# Copyright 2014 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': [
    '../remoting/remoting_locales.gypi',
    '../remoting/app_remoting_webapp_build.gypi',
  ],

  'target_defaults': {
    'variables': {
      'ar_internal': 0,
      'compiler_flags': [
        '--strict',
        '--no-single-file',
        '--externs',
        '../third_party/closure_compiler/externs/chrome_extensions.js',
      ],
    },

    'conditions': [
      ['run_jscompile != 0', {
        'actions': [
          {
            'action_name': 'Verify >(ar_app_name) main.html',
            'variables': {
              'success_stamp': '<(PRODUCT_DIR)/>(_target_name)_main_jscompile.stamp',
            },
            'inputs': [
              '<@(ar_main_js_files)',
              '<@(remoting_webapp_js_proto_files)',
              # Include zip as input so that this action is run after the build.
              '<(zip_path)',
            ],
            'outputs': [
              '<(success_stamp)',
            ],
            'action': [
              'python', '../third_party/closure_compiler/compile.py',
              '<@(compiler_flags)',
              '--success-stamp', '<(success_stamp)',
              '<@(ar_main_js_files)',
              '<@(remoting_webapp_js_proto_files)',
            ],
          },
          {
            'action_name': 'Verify >(ar_app_name) background.html',
            'variables': {
              'success_stamp': '<(PRODUCT_DIR)/>(_target_name)_background_jscompile.stamp',
            },
            'inputs': [
              '<@(ar_background_html_js_files)',
              '<@(remoting_webapp_js_proto_files)',
              # Include zip as input so that this action is run after the build.
              '<(zip_path)',
            ],
            'outputs': [
              '<(success_stamp)',
            ],
            'action': [
              'python', '../third_party/closure_compiler/compile.py',
              '<@(compiler_flags)',
              '--success-stamp', '<(success_stamp)',
              '<@(ar_background_html_js_files)',
              '<@(remoting_webapp_js_proto_files)',
            ],
          },
          {
            'action_name': 'Verify >(ar_app_name) feedback_consent.html',
            'variables': {
              'success_stamp': '<(PRODUCT_DIR)/>(_target_name)_feedback_consent_jscompile.stamp',
            },
            'inputs': [
              '<@(ar_feedback_consent_html_all_js_files)',
              '<@(remoting_webapp_js_proto_files)',
              # Include zip as input so that this action is run after the build.
              '<(zip_path)',
            ],
            'outputs': [
              '<(success_stamp)',
            ],
            'action': [
              'python', '../third_party/closure_compiler/compile.py',
              '<@(compiler_flags)',
              '--success-stamp', '<(success_stamp)',
              '<@(ar_feedback_consent_html_all_js_files)',
              '<@(remoting_webapp_js_proto_files)',
            ],
          },
        ],  # actions
      }],
    ],  # conditions
  },

  'targets': [
    {
      # GN version: //remoting/webapp:ar_sample_app
      # Sample AppRemoting app.
      'target_name': 'ar_sample_app',
      'app_key': 'Sample_App',
      'app_id': 'ljacajndfccfgnfohlgkdphmbnpkjflk',
      'app_client_id': 'sample_client_id',
      'app_name': 'App Remoting Client',
      'app_description': 'App Remoting client',
      'app_capabilities': ['GOOGLE_DRIVE'],
      'manifest_key': 'remotingdevbuild',
    },
  ],  # end of targets
}