Build Error patch for "Volume key scenario has been applied for media element and...
authorkeonho07.kim <keonho07.kim@samsung.com>
Fri, 26 Apr 2013 02:06:37 +0000 (11:06 +0900)
committerGerrit Code Review <gerrit2@kim11>
Fri, 26 Apr 2013 02:10:44 +0000 (11:10 +0900)
[Title] Build Error patch for "Volume key senario has been applied for media element and webaudio."
[Problem] DCM-1102
[Cause] N/A
[Solution] N/A

Change-Id: Icb998412b249399f7f5f93f5ecf945e55f4044c2

Source/cmake/FindMMSOUND.cmake [new file with mode: 0755]

diff --git a/Source/cmake/FindMMSOUND.cmake b/Source/cmake/FindMMSOUND.cmake
new file mode 100755 (executable)
index 0000000..1ac6320
--- /dev/null
@@ -0,0 +1,29 @@
+# -Try to find MMSOUND
+# Once done, this will define
+#
+#  MMSOUND_FOUND - system has mm-sound
+#  MMSOUND_INCLUDE_DIRS - the mm-sound include directories
+#  MMSOUND_LIBRARIES - link these to use mm-sound
+
+INCLUDE(FindPkgConfig)
+
+PKG_CHECK_MODULES(MMSOUND
+    mm-sound
+)
+
+FIND_PATH(MMSOUND_INCLUDE_DIRS NAMES mm_sound.h
+    HINTS ${MMSOUND_INCLUDE_DIRS} ${MMSOUND_INCLUDEDIR}
+)
+FIND_LIBRARY(MMSOUND_LIBRARIES NAMES mm-sound
+    HINTS ${MMSOUND_LIBRARY_DIRS} ${MMSOUND_LIBDIR}
+)
+
+SET(MMSOUND_INCLUDE_DIRS
+    ${MMSOUND_INCLUDE_DIRS}
+)
+SET(MMSOUND_LIBRARIES
+    ${MMSOUND_LIBRARIES}
+)
+
+INCLUDE(FindPackageHandleStandardArgs)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(MMSOUND DEFAULT_MSG MMSOUND_INCLUDE_DIRS MMSOUND_LIBRARIES)