2 # Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
19 ${PROJECT_SOURCE_DIR}/src/configuration_parser/widget_parser.cpp
20 ${PROJECT_SOURCE_DIR}/src/configuration_parser/parser_runner.cpp
21 ${PROJECT_SOURCE_DIR}/src/configuration_parser/ignoring_parser.cpp
22 ${PROJECT_SOURCE_DIR}/src/configuration_parser/deny_all_parser.cpp
23 ${PROJECT_SOURCE_DIR}/src/configuration_parser/libiriwrapper.cpp
24 ${PROJECT_SOURCE_DIR}/src/wrt-installer/language_subtag_rst_tree.cpp
27 PKG_CHECK_MODULES(WRT_BACKLIB_PKGS
41 ${WRT_BACKLIB_PKGS_INCLUDE_DIRS}
42 ${PROJECT_SOURCE_DIR}/src/configuration_parser
45 ADD_LIBRARY(${TARGET_BACKEND_LIB} SHARED
49 TARGET_LINK_LIBRARIES(${TARGET_BACKEND_LIB}
50 ${WRT_BACKLIB_PKGS_LIBRARIES}
53 SET_TARGET_PROPERTIES(${TARGET_BACKEND_LIB} PROPERTIES
54 LINK_FLAGS "-Wl,--as-needed -Wl,--hash-style=both"
57 INSTALL(TARGETS ${TARGET_BACKEND_LIB}
58 DESTINATION etc/package-manager/backendlib
59 PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
64 set(SYMLINK_DEST "${CMAKE_INSTALL_PREFIX}/etc/package-manager")
67 ADD_CUSTOM_COMMAND(OUTPUT ${SYMLINK_DEST}/backend/wgt
69 ARGS -p ${SYMLINK_DEST}/backend
71 ARGS -sf ${CMAKE_INSTALL_PREFIX}/bin/${BACKEND} ${SYMLINK_DEST}/backend/wgt
74 ADD_CUSTOM_TARGET(test_symlinks ALL
75 DEPENDS ${SYMLINK_DEST}/backend/wgt