Enforce "treat warning as error" policy for efl_webview_app and mini_browser
authorSeungSeop Park <sns.park@samsung.com>
Mon, 25 Jan 2016 08:26:11 +0000 (17:26 +0900)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 07:55:23 +0000 (07:55 +0000)
SSIA.

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=15612

Reviewed by: sns.park

Change-Id: Ic1276552cdae91ce1054b9cb8a03dbc0cfc0a472
Signed-off-by: SeungSeop Park <sns.park@samsung.com>
tizen_src/ewk/efl_webview_app/efl_webview_app.gypi

index cf88bbc..d11269e 100644 (file)
       'includes': [
         '../tizen_version_defines_for_apps.gypi',
       ],
+      'cflags/': [
+        # Treat warning as error for this target.
+        # It needs to be included by means of pattern list because '-Werror' cflag
+        # will be excluded in chromium side (src/build/common.gypi), and GYP
+        # processes pattern lists after exclusion lists.
+        # (ref: https://gyp.gsrc.io/docs/InputFormatReference.md#Processing-Order)
+        ['include', '-Werror'],
+      ],
       'conditions': [
         ['use_wayland==0', {
           'dependencies': [
     {
       'target_name': 'mini_browser',
       'type': 'executable',
+      'cflags/': [
+        # Treat warning as error for this target.
+        # It needs to be included by means of pattern list because '-Werror' cflag
+        # will be excluded in chromium side (src/build/common.gypi), and GYP
+        # processes pattern lists after exclusion lists.
+        # (ref: https://gyp.gsrc.io/docs/InputFormatReference.md#Processing-Order)
+        ['include', '-Werror'],
+      ],
       'conditions': [
         ['building_for_tizen==1', { # FIXME: mini_browser shouldn't depend on dlog and appcore-efl without OS(TIZEN) checks
           'sources': [