-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathCMakeLists.txt
73 lines (63 loc) · 2.46 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# @@@LICENSE
#
# Copyright (c) 2012-2014 LG Electronics, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# LICENSE@@@
cmake_minimum_required(VERSION 2.8.7)
project(luna-init NONE)
include(webOS/webOS)
webos_modules_init(1 0 0 QUALIFIER RC3)
webos_component(2 0 1)
webos_config_build_doxygen(doc Doxyfile)
# ext-timezones.json
add_custom_command(
OUTPUT ext-timezones.json
COMMAND echo "Generating ext-timezones.json"
COMMAND python2
${CMAKE_SOURCE_DIR}/src/gen-ext-timezones.py
-s ${CMAKE_SOURCE_DIR}/src
-o ext-timezones.json
DEPENDS src/gen-ext-timezones.py
src/mccInfo.json
src/uiTzInfo.json
src/abbrevs.py
)
set(ext_timezones_json ${CMAKE_CURRENT_BINARY_DIR}/ext-timezones.json)
add_custom_target(generate ALL DEPENDS ext-timezones.json)
# install json files in /usr/palm
MESSAGE (STATUS, "Install json files in ${WEBOS_INSTALL_WEBOS_PREFIX}")
install(DIRECTORY files/conf/ DESTINATION ${WEBOS_INSTALL_WEBOS_PREFIX}
PATTERN "svn" EXCLUDE
PATTERN ".svn" EXCLUDE
PATTERN "fonts" EXCLUDE
PATTERN "region.json" EXCLUDE
PATTERN ".json" PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE
)
install(FILES ${ext_timezones_json} DESTINATION ${WEBOS_INSTALL_WEBOS_PREFIX}
PERMISSIONS OWNER_READ OWNER_WRITE)
# install region json file in /etc/palm
MESSAGE (STATUS, "Install region.json in ${WEBOS_INSTALL_WEBOS_SYSCONFDIR}")
install(FILES files/conf/region.json DESTINATION ${WEBOS_INSTALL_WEBOS_SYSCONFDIR}
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE)
# install font files /usr/share/fonts
MESSAGE (STATUS, "Install fonts in ${WEBOS_INSTALL_DATADIR}")
install(DIRECTORY files/conf/fonts DESTINATION ${WEBOS_INSTALL_DATADIR}
PATTERN "fonts.tgz" EXCLUDE
PATTERN "svn" EXCLUDE
PATTERN ".svn" EXCLUDE
PATTERN ".xml" PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE
PATTERN ".ttf" PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE
PATTERN ".txt" PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE
)