Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / yasm / yasm.gyp
index f135421..78f1966 100644 (file)
         'genstring',
         're2c',
       ],
+      'variables': {
+        'clang_warning_flags': [
+          # yasm passes a `const elf_machine_sym*` through `void*`.
+          '-Wno-incompatible-pointer-types',
+        ],
+      },
       'sources': [
          'source/patched-yasm/frontends/yasm/yasm-options.c',
          'source/patched-yasm/frontends/yasm/yasm.c',
       ],
       'defines': [ '<@(yasm_defines)' ],
       'cflags': [ '<@(yasm_cflags)', ],
-      'conditions': [
-        ['clang==1', {
-          'xcode_settings': {
-            'WARNING_CFLAGS': [
-              # yasm passes a `const elf_machine_sym*` through `void*`.
-              '-Wno-incompatible-pointer-types',
-            ],
-          },
-          'cflags': [
-            '-Wno-incompatible-pointer-types',
-          ],
-        }],
-      ],
       'msvs_disabled_warnings': [ 4267 ],
       'rules': [
         {
       'cflags': [
         '-std=gnu99',
       ],
-      'conditions': [
-        ['clang==1', {
-          'xcode_settings': {
-            'WARNING_CFLAGS': [
-              # re2c is missing CLOSEVOP from one switch.
-              '-Wno-switch',
-            ],
-          },
-          'cflags': [
-            '-Wno-switch',
-          ],
-        }],
-      ],
+      'variables': {
+          # re2c is missing CLOSEVOP from one switch.
+        'clang_warning_flags': [ '-Wno-switch' ],
+      },
       'msvs_disabled_warnings': [ 4267 ],
     },
     {