Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / chrome / chrome_android.gypi
index a1ec31a..071a5da 100644 (file)
@@ -18,6 +18,7 @@
   ],
   'targets': [
     {
+      # GN: //chrome:chrome_android_core
       'target_name': 'chrome_android_core',
       'type': 'static_library',
       'dependencies': [
         ],
       },
     },
+    {
+      # GYP: //chrome/android:chrome_version_java
+      'target_name': 'chrome_version_java',
+      'type': 'none',
+      'variables': {
+        'template_input_path': 'android/java/ChromeVersionConstants.java.version',
+        'version_path': 'VERSION',
+        'version_py_path': '<(DEPTH)/build/util/version.py',
+        'output_path': '<(SHARED_INTERMEDIATE_DIR)/templates/<(_target_name)/org/chromium/chrome/browser/ChromeVersionConstants.java',
+
+        'conditions': [
+          ['branding == "Chrome"', {
+            'branding_path': 'app/theme/google_chrome/BRANDING',
+          }, {
+            'branding_path': 'app/theme/chromium/BRANDING',
+          }],
+        ],
+      },
+      'direct_dependent_settings': {
+        'variables': {
+          # Ensure that the output directory is used in the class path
+          # when building targets that depend on this one.
+          'generated_src_dirs': [
+            '<(SHARED_INTERMEDIATE_DIR)/templates/<(_target_name)',
+          ],
+          # Ensure dependents are rebuilt when the generated Java file changes.
+          'additional_input_paths': [
+            '<(output_path)',
+          ],
+        },
+      },
+      'actions': [
+        {
+          'action_name': 'chrome_version_java_template',
+          'inputs': [
+            '<(template_input_path)',
+            '<(version_path)',
+            '<(branding_path)',
+            '<(version_py_path)',
+          ],
+          'outputs': [
+            '<(output_path)',
+          ],
+          'action': [
+            'python',
+            '<(version_py_path)',
+            '-f', '<(version_path)',
+            '-f', '<(branding_path)',
+            '-e', 'CHANNEL=str.upper("<(android_channel)")',
+            '<(template_input_path)',
+            '<(output_path)',
+          ],
+        },
+      ],
+    },
   ],
 }