[download] build download only when it's building for mobile
authorLeandro Dorileo <leandro.maciel.dorileo@intel.com>
Mon, 19 Aug 2013 17:22:32 +0000 (14:22 -0300)
committerLeandro Dorileo <leandro.maciel.dorileo@intel.com>
Mon, 19 Aug 2013 17:22:32 +0000 (14:22 -0300)
Since download_context.cc implementation is highly coupled to
capi-* stuffs we're building it just for mobile.

download/download.gyp
tizen-wrt.gyp

index 3a2d46a..daeb051 100644 (file)
@@ -15,6 +15,9 @@
       ],
       'conditions': [
         ['extension_host_os=="mobile"', {
+          'includes': [
+            '../common/pkg-config.gypi',
+          ],
           'variables': {
             'packages': [
               'capi-appfw-application',
@@ -23,9 +26,6 @@
           },
         }],
       ],
-      'includes': [
-        '../common/pkg-config.gypi',
-      ],
     },
   ],
 }
index db32642..bf0799c 100644 (file)
         'system_setting/system_setting.gyp:*',
         'time/time.gyp:*',
         'tizen/tizen.gyp:*',
-        'download/download.gyp:*',
+      ],
+      'conditions': [
+        [ 'extension_host_os == "mobile"', {
+          'sources': [
+            'download/download.gyp:*',
+          ],
+        }],
       ],
     },
     {