-SET(SLP_INCLUDE_DIRS
- /usr/include
- /usr/include/vconf
- /usr/include/glib-2.0
- /usr/lib/glib-2.0/include
- /usr/include/dbus-1.0
- /usr/lib/dbus-1.0/include
- /usr/include/dlog
- /usr/include/appfw
- /usr/include/aul
- /usr/include/notification
- /usr/include/heynoti
- /usr/include/sensor
- /usr/include/media
- /usr/include/devman
- /usr/include/network
- /usr/include/libxml2
- /usr/include/content
- /usr/include/system
- /usr/include/location
- /usr/include/libsoup-2.4
- /usr/include/pkgmgr
- /usr/include/telephony
- /usr/include/curl
- /usr/include/minizip
- /usr/include/chromium
- /usr/include/wifi-direct
- /usr/include/drm-intel
- /usr/include/telephony-client
- /usr/include/haptic
- /usr/include/sysman
- /usr/include/ecore-1
- /usr/include/eina-1
- /usr/include/eina-1/eina
+
+INCLUDE(FindPkgConfig)
+pkg_check_modules(pkgs REQUIRED
+ alarm-service
+ appinfo
+ aul
+ appsvc
+ bundle
+ chromium
+ dbus-1
+ dbus-glib-1
+ devman
+ dlog
+ dukgenerator
+ ecore
+ glib-2.0
+ haptic
+ icu-i18n
+ iniparser
+ libpcre
+ libsoup-2.4
+ libxml-2.0
+ message-port
+ minizip
+ notification
+ pmapi
+ pkgmgr
+ pkgmgr-info
+ sqlite3
+ uuid
+ vconf
+ zlib
+ tapi
+ capi-appfw-application
+ capi-content-mime-type
+ capi-network-serial
+ capi-system-runtime-info
+ capi-system-device
+ capi-system-power
+ capi-system-system-settings
+ capi-system-info
+ security-server
+ libprivilege-control
)
+FOREACH(flag ${pkgs_CFLAGS})
+ SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag} -Wall -Wno-unused")
+ENDFOREACH(flag)
+
## Add SubModules
-ADD_SUBDIRECTORY(osp-string)
-ADD_SUBDIRECTORY(newlib-compat)
ADD_SUBDIRECTORY(app)
ADD_SUBDIRECTORY(io)
ADD_SUBDIRECTORY(base)
+ADD_SUBDIRECTORY(base/runtime base-runtime)
ADD_SUBDIRECTORY(locales)
ADD_SUBDIRECTORY(security)
ADD_SUBDIRECTORY(system)
ADD_SUBDIRECTORY(text)
ADD_SUBDIRECTORY(appfw)
-
-
-
+ADD_SUBDIRECTORY(osp-string)
+ADD_SUBDIRECTORY(server)
+ADD_SUBDIRECTORY(server/system osp-system-server)