# Set required packages
INCLUDE(FindPkgConfig)
-
+SET(AUL-1_PKG_CHECK_MODULES dlog ecore libprivilege-control app-checker rua glib-2.0 ecore-input evas vconf pkgmgr-info privacy-manager-client)
OPTION(WITH_WAYLAND "Build with wayland" OFF)
IF(WITH_WAYLAND)
ADD_DEFINITIONS("-DWAYLAND")
- pkg_check_modules(pkgs REQUIRED dlog ecore x11 libprivilege-control app-checker rua glib-2.0 ecore-wayland ecore-input evas vconf pkgmgr-info privacy-manager-client)
-ELSE()
+ pkg_check_modules(pkgs REQUIRED ${AUL-1_PKG_CHECK_MODULES} ecore-wayland)
+ELSE(WITH_WAYLAND)
ADD_DEFINITIONS("-DX11")
- pkg_check_modules(pkgs REQUIRED dlog ecore x11 libprivilege-control app-checker rua glib-2.0 ecore-x ecore-input evas vconf pkgmgr-info privacy-manager-client)
+ pkg_check_modules(pkgs REQUIRED ${AUL-1_PKG_CHECK_MODULES} x11 ecore-x)
ENDIF(WITH_WAYLAND)
pkg_check_modules(libpkgs REQUIRED dlog bundle dbus-glib-1 ail xdgmime app-checker libsmack)
# launchpad(old avatar) daemon
SET(AVATAR_NAME "launchpad_preloading_preinitializing_daemon")
+IF (WITH_WAYLAND)
+add_executable(${AVATAR_NAME}
+ launchpad_src/launchpad.c
+ )
+ELSE(WITH_WAYLAND)
add_executable(${AVATAR_NAME}
launchpad_src/launchpad.c
launchpad_src/util_x.c
)
+ENDIF(WITH_WAYLAND)
MESSAGE(" "${pkgs_LDFLAGS})
target_link_libraries(${AVATAR_NAME} aul_mods aul ${pkgs_LDFLAGS} ${LIB_DL})
am_daemon/amd_launch.c
am_daemon/amd_status.c
)
-target_link_libraries(amd aul_mods app-checker-server rua glib-2.0 bundle ail aul utilX ${pkgs_LDFLAGS})
+SET(AUL-1_LINK_LIBRARY amd aul_mods app-checker-server rua glib-2.0 bundle ail aul)
+IF (WITH_WAYLAND)
+target_link_libraries(${AUL-1_LINK_LIBRARY} ${pkgs_LDFLAGS})
+ELSE(WITH_WAYLAND)
+target_link_libraries(${AUL-1_LINK_LIBRARY} utilX ${pkgs_LDFLAGS})
+ENDIF(WITH_WAYLAND)
SET(REL_AGENT daemon-manager-release-agent)
ADD_EXECUTABLE(${REL_AGENT} agent/${REL_AGENT}.c)
%bcond_with wayland
+%bcond_with x
Name: aul
Summary: App utility library
BuildRequires: cmake
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(sqlite3)
-BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(ecore)
BuildRequires: pkgconfig(bundle)
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(rua)
%if %{with wayland}
BuildRequires: pkgconfig(ecore-wayland)
-%else
+%endif
+%if %{with x}
BuildRequires: pkgconfig(ecore-x)
+BuildRequires: pkgconfig(x11)
+BuildRequires: pkgconfig(utilX)
%endif
BuildRequires: pkgconfig(ecore-input)
-BuildRequires: pkgconfig(utilX)
BuildRequires: pkgconfig(vconf)
BuildRequires: pkgconfig(pkgmgr-info)
BuildRequires: pkgconfig(libsmack)