[Systeminfo] T-e-c buildbreak on mobile profile
authorTomasz Iwanek <t.iwanek@samsung.com>
Fri, 31 Oct 2014 09:21:09 +0000 (10:21 +0100)
committerTomasz Iwanek <t.iwanek@samsung.com>
Tue, 4 Nov 2014 09:01:12 +0000 (10:01 +0100)
This commit fixes buildbreak for mobile profile when using this configuration:
  gbs build -A armv7l --define="profile mobile" -R  \
    http://download.tizen.org/snapshots/tizen/mobile/latest/repos/arm/packages/

Build configuration will include system_info_sim class for profiles - ivi and mobile.
System_info_sim will be excluded in common profile according to current
implementation of system_info_sim_ivi.cc and structure of SysSimInfo class.

BUG=XWALK-2861

common/common.gypi
packaging/tizen-extensions-crosswalk.spec
system_info/system_info_instance.cc
system_info/system_info_sim.h

index c7728e8..ce5ac2f 100644 (file)
         'sources/': [['exclude', '_mobile\\.cc$|mobile/']],
         'includes/': [['exclude', '_mobile\\.gypi$|mobile/']],
       }],
+      ['extension_host_os != "ivi"', {
+        'sources/': [['exclude', '_ivi\\.cc$|ivi/']],
+        'includes/': [['exclude', '_ivi\\.gypi$|ivi/']],
+      }],
       ['extension_host_os != "desktop"', {
         'sources/': [['exclude', '_desktop\\.cc$|desktop/']],
         'includes/': [['exclude', '_desktop\\.gypi$|desktop/']],
index 069c185..46695a9 100644 (file)
@@ -41,7 +41,6 @@ BuildRequires: pkgconfig(libtzplatform-config)
 %if "%{profile}" == "ivi"
 BuildRequires: pkgconfig(automotive-message-broker)
 %endif
-# For IVI, it doesn't need sim package.
 %if "%{profile}" == "mobile"
 BuildRequires: pkgconfig(capi-telephony-sim)
 BuildRequires: pkgconfig(contacts-service2)
index 3dd94f0..6d5fd9f 100644 (file)
@@ -69,7 +69,7 @@ void SystemInfoInstance::InstancesMapInitialize() {
   RegisterClass<SysInfoLocale>();
   RegisterClass<SysInfoNetwork>();
   RegisterClass<SysInfoPeripheral>();
-#if defined(TIZEN)
+#if defined(TIZEN_IVI) || defined(TIZEN_MOBILE)
   RegisterClass<SysInfoSim>();
 #endif
   RegisterClass<SysInfoStorage>();
index deb5209..3b16b9e 100644 (file)
@@ -72,7 +72,7 @@ class SysInfoSim : public SysInfoObject {
                 unsigned int& member,
                 const unsigned int& default_value = 0);
   SystemInfoSimState GetSystemInfoSIMState(sim_state_e state);
-#else
+#elif defined(TIZEN_IVI)
   void InitDbusConnection();
   void DeInitDbusConnection();
   void GetSimProperties();
@@ -96,7 +96,7 @@ class SysInfoSim : public SysInfoObject {
   unsigned int mnc_;
   std::string msin_;
   std::string spn_;
-#if !defined(TIZEN_MOBILE)
+#if defined(TIZEN_IVI)
   GDBusConnection* conn_;
   guint prop_changed_watch_;
 #endif