Permalink
Browse files

CMakeLists: Enable USE_PMLOG flag

:Release Notes:
Turn on USE_PMLOG to enable logging using pmloglib's new functions
via the MojLog class.
Add PmLogLib detection to CMakeLists.txt

:Detailed Notes:

:Testing Performed:
 Tested on local environment

:QA Notes:

:Issues Addressed:
[GF-8150] ActivityManager: Conform to new PmLogLib specifications

Open-webOS-DCO-1.0-Signed-off-by: shrinivas.kulkarni <shrinivas.kulkarni@lge.com>

Change-Id: I7563fe3f15e2d252fca15fe5d6b782f5d1c3875b
Reviewed-on: https://g2g.palm.com/3014
Reviewed-by: Build Verification
Reviewed-by: Roger Stringer <roger.stringer@lge.com>
Tested-by: Roger Stringer <roger.stringer@lge.com>
  • Loading branch information...
1 parent cf765b1 commit 0d135215110c0b625bd21c56dc2d228960047965 shrinivas.kulkarni committed with RS102839 Aug 8, 2013
Showing with 6 additions and 1 deletion.
  1. +6 −1 CMakeLists.txt
View
@@ -44,12 +44,16 @@ pkg_check_modules(DB8 REQUIRED db8)
include_directories(${DB8_INCLUDE_DIRS})
webos_add_compiler_flags(ALL ${DB8_CFLAGS_OTHER})
+pkg_check_modules(PMLOG REQUIRED PmLogLib)
+include_directories(${PMLOG_INCLUDE_DIRS})
+webos_add_compiler_flags(ALL ${PMLOG_CFLAGS_OTHER})
+
# There is a call to system("initctl ...") in ServiceApp.cpp which is compiled in for
# all implementations except WEBOS_TARGET_MACHINE_IMPL_SIMULATOR
webos_machine_impl_dep()
include_directories(include/internal)
-webos_add_compiler_flags(ALL -Wall -Wno-error=strict-aliasing -Wconversion -DMOJ_LINUX -DBOOST_SP_DISABLE_THREADS)
+webos_add_compiler_flags(ALL -Wall -Wno-error=strict-aliasing -Wconversion -DMOJ_LINUX -DBOOST_SP_DISABLE_THREADS -DUSE_PMLOG)
webos_add_compiler_flags(DEBUG -DMOJ_DEBUG)
# MojoDb generates warnings in core/MojObject.h, so no -Werror
@@ -66,6 +70,7 @@ target_link_libraries(activitymanager
${GLIB2_LDFLAGS}
${OPENSSL_LDFLAGS}
${LS2_LDFLAGS}
+ ${PMLOG_LDFLAGS}
)
webos_build_daemon()

0 comments on commit 0d13521

Please sign in to comment.