Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / angle / src / angle.gypi
index 06d58a5..0acafb6 100644 (file)
                 'targets':
                 [
                     {
+                        'target_name': 'commit_id',
+                        'type': 'none',
+                        'actions':
+                        [
+                            {
+                                'action_name': 'Generate Commit ID Header',
+                                'message': 'Generating commit ID header...',
+                                'inputs': [ 'commit_id.bat' ],
+                                'outputs': ['<(SHARED_INTERMEDIATE_DIR)/commit.h'],
+                                'action': ['<(angle_relative_src_path)commit_id.bat', '<(SHARED_INTERMEDIATE_DIR)'],
+                            }
+                        ] #actions
+                    },
+                    {
                         'target_name': 'copy_compiler_dll',
                         'type': 'none',
                         'sources': [ 'copy_compiler_dll.bat' ],
                     }
                 ] # targets
             }
-        ]
+        ],
+        [
+            'OS!="win"',
+            {
+                'targets':
+                [
+                    {
+                        'target_name': 'commit_id',
+                        'type': 'none',
+                        'actions':
+                        [
+                            {
+                                'action_name': 'Generate Commit ID Header',
+                                'message': 'Generating commit ID header...',
+                                'inputs': [ 'commit_id.py' ],
+                                'outputs': ['<(SHARED_INTERMEDIATE_DIR)/commit.h'],
+                                'action': ['python', '<(angle_relative_src_path)commit_id.py', '<(SHARED_INTERMEDIATE_DIR)/commit.h'],
+                            }
+                        ] #actions
+                    },
+                ]
+            }
+        ],
     ] # conditions
 }