Skip to content
Newer
Older
100644 76 lines (59 sloc) 2.17 KB
7625159 Added CMake file
Suresh Arumugam authored Aug 20, 2012
1 # @@@LICENSE
2 #
21da29b @maksym-shevchenko-owo Assign Copyright to LG Electronics, Inc.
maksym-shevchenko-owo authored Jun 13, 2013
3 # Copyright (c) 2007-2013 LG Electronics, Inc.
7625159 Added CMake file
Suresh Arumugam authored Aug 20, 2012
4 #
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
9 # http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 #
17 # LICENSE@@@
18
19 cmake_minimum_required(VERSION 2.8.7)
20
21 project(configurator CXX)
22
23 include(webOS/webOS)
24 webos_modules_init(1 0 0 QUALIFIER RC2)
ac4e6e0 @RS102839 Update configurator for com.webos.mediadb
RS102839 authored Sep 23, 2013
25 webos_component(3 0 0)
7625159 Added CMake file
Suresh Arumugam authored Aug 20, 2012
26
3be4783 @sarumugam Remove MOJ_X86 compiler flag
sarumugam authored Sep 26, 2012
27 webos_add_compiler_flags(ALL "-DMOJ_LINUX")
7625159 Added CMake file
Suresh Arumugam authored Aug 20, 2012
28
29 webos_machine_dep()
30
31 include_directories(src)
32
33 include(FindPkgConfig)
34
35 pkg_check_modules(GLIB2 REQUIRED glib-2.0)
36 include_directories(${GLIB2_INCLUDE_DIRS})
37 webos_add_compiler_flags(ALL ${GLIB2_CFLAGS})
38
39 pkg_check_modules(LUNASERVICE REQUIRED luna-service2)
40 include_directories(${LUNASERVICE_INCLUDE_DIRS})
41 webos_add_compiler_flags(ALL ${LUNASERVICE_CFLAGS})
42
43 pkg_check_modules(CJSON cjson)
44 include_directories(${CJSON_INCLUDE_DIRS})
45 webos_add_compiler_flags(ALL ${CJSON_CFLAGS})
46
ac4e6e0 @RS102839 Update configurator for com.webos.mediadb
RS102839 authored Sep 24, 2013
47 pkg_check_modules(DB8 REQUIRED db8>=3)
d9c1f44 @ericblade-owo Use pkg-config to locate db8
ericblade-owo authored Oct 30, 2012
48 include_directories(${DB8_INCLUDE_DIRS})
49 webos_add_compiler_flags(ALL ${DB8_CFLAGS_OTHER})
7625159 Added CMake file
Suresh Arumugam authored Aug 20, 2012
50
cfabdec CMakeLists: Enable USE_PMLOG flag
Shrinivas Kulkarni authored Aug 28, 2013
51 if (NOT DEFINED USE_PMLOG OR USE_PMLOG)
52 # -- check for pmLogLib
53 pkg_check_modules(PMLOG REQUIRED PmLogLib>=3)
54 include_directories(${PMLOG_INCLUDE_DIRS})
55 webos_add_compiler_flags(ALL ${PMLOG_CFLAGS_OTHER} -DUSE_PMLOG)
56 endif()
57
8eee52b @jdapena Explicitely link pthread
jdapena authored Nov 27, 2012
58 find_library(PTHREAD pthread REQUIRED)
59
7625159 Added CMake file
Suresh Arumugam authored Aug 20, 2012
60 file(GLOB SOURCE_FILES src/*.cpp)
61 add_executable(configurator ${SOURCE_FILES} )
62
63 target_link_libraries(configurator
64 -L.
d9c1f44 @ericblade-owo Use pkg-config to locate db8
ericblade-owo authored Oct 31, 2012
65 ${DB8_LDFLAGS}
7625159 Added CMake file
Suresh Arumugam authored Aug 20, 2012
66 ${GLIB2_LDFLAGS}
67 ${LUNASERVICE_LDFLAGS}
68 ${CJSON_LDFLAGS}
8eee52b @jdapena Explicitely link pthread
jdapena authored Nov 27, 2012
69 ${PTHREAD}
cfabdec CMakeLists: Enable USE_PMLOG flag
Shrinivas Kulkarni authored Aug 29, 2013
70 ${PMLOG_LDFLAGS}
7625159 Added CMake file
Suresh Arumugam authored Aug 20, 2012
71 )
72
394e1f8 @sarumugam Modified to use WEBOS_INSTALL_STATEDIR to save its stamp files
sarumugam authored Sep 7, 2012
73 webos_configure_header_files(src)
a2a2206 @sarumugam Update the CMake file to copy the upstart files.
sarumugam authored Sep 19, 2012
74 webos_build_daemon(NAME configurator LAUNCH files/launch)
9c2f94c @sarumugam Modified CMake file. Added launch and sysbus files.
sarumugam authored Aug 27, 2012
75 webos_build_system_bus_files()
Something went wrong with that request. Please try again.