The following directories are moved to the src directory.
- aul
- server
- parser
- tool
The include directory is moved to the src/aul directory.
The source codes will have the following directory structure:
aul-1/src
|---aul
|---parser
|---server
+---tool
Change-Id: I0f29482336759eea00cbbdef0b8d15bc11eccbc4
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
ADD_DEFINITIONS("-DLIBDIR=\"${LIBDIR}\"")
## Compile flags
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wl,-zdefs -fvisibility=hidden -g -Wall -Werror -fpic ")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wl,-zdefs")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fpic")
SET(CMAKE_C_FLAGS_DEBUG "-O0 -g")
SET(CMAKE_C_FLAGS_RELEASE "-O2")
SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed")
-SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules/")
+SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH}
+ "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules/")
## Target
SET(TARGET_AUL "aul")
PKG_CHECK_MODULES(VCONF_DEPS REQUIRED vconf)
PKG_CHECK_MODULES(XDGMIME_DEPS REQUIRED xdgmime)
-## Target sources
-AUX_SOURCE_DIRECTORY(src SRCS)
-AUX_SOURCE_DIRECTORY(aul AUL_SRCS)
-AUX_SOURCE_DIRECTORY(aul/api AUL_API_SRCS)
-AUX_SOURCE_DIRECTORY(aul/app_control AUL_APP_CONTROL_SRCS)
-AUX_SOURCE_DIRECTORY(aul/app_group AUL_APP_GROUP_SRCS)
-AUX_SOURCE_DIRECTORY(aul/app_info AUL_APP_INFO_SRCS)
-AUX_SOURCE_DIRECTORY(aul/app_manager AUL_APP_MANAGER_SRCS)
-AUX_SOURCE_DIRECTORY(aul/common AUL_COMMON_SRCS)
-AUX_SOURCE_DIRECTORY(aul/component AUL_COMPONENT_SRCS)
-AUX_SOURCE_DIRECTORY(aul/socket AUL_SOCKET_SRCS)
-
-ADD_LIBRARY(${TARGET_AUL} SHARED
- ${SRCS}
- ${AUL_SRCS}
- ${AUL_API_SRCS}
- ${AUL_APP_CONTROL_SRCS}
- ${AUL_APP_GROUP_SRCS}
- ${AUL_APP_MANAGER_SRCS}
- ${AUL_APP_INFO_SRCS}
- ${AUL_COMMON_SRCS}
- ${AUL_COMPONENT_SRCS}
- ${AUL_SOCKET_SRCS}
- ${AUL_BOOT_SEQUENCE_SRCS}
-)
-
-TARGET_INCLUDE_DIRECTORIES(${TARGET_AUL} PUBLIC
- ${CMAKE_CURRENT_SOURCE_DIR}
- ${CMAKE_CURRENT_SOURCE_DIR}/include
- ${CMAKE_CURRENT_SOURCE_DIR}/include/internal
- ${CMAKE_CURRENT_SOURCE_DIR}/aul/
- ${CMAKE_CURRENT_SOURCE_DIR}/aul/api
- ${CMAKE_CURRENT_SOURCE_DIR}/aul/app_control
- ${CMAKE_CURRENT_SOURCE_DIR}/aul/app_manager
- ${CMAKE_CURRENT_SOURCE_DIR}/aul/common
- ${CMAKE_CURRENT_SOURCE_DIR}/aul/component
- ${CMAKE_CURRENT_SOURCE_DIR}/aul/socket
-)
-
-SET_TARGET_PROPERTIES(${TARGET_AUL} PROPERTIES SOVERSION ${MAJORVER})
-SET_TARGET_PROPERTIES(${TARGET_AUL} PROPERTIES VERSION ${FULLVER})
-
-APPLY_PKG_CONFIG(${TARGET_AUL} PUBLIC
- BUNDLE_DEPS
- CAPI_SYSTEM_INFO_DEPS
- CAPI_SYSTEM_RESOURCE_DEPS
- DLOG_DEPS
- GIO_DEPS
- GLIB_DEPS
- INIPARSER_DEPS
- LIBSMACK_DEPS
- LIBTZPLATFORM_CONFIG_DEPS
- LIBXML_DEPS
- PARCEL_DEPS
- PKGMGR_INFO_DEPS
- STORAGE_DEPS
- TTRACE_DEPS
- UUID_DEPS
- VCONF_DEPS
- XDGMIME_DEPS
-)
-
-INSTALL(TARGETS ${TARGET_AUL} DESTINATION ${LIB_INSTALL_DIR} COMPONENT RuntimeLibraries)
-
# pkgconfig file
-CONFIGURE_FILE(aul.pc.in aul.pc @ONLY)
-CONFIGURE_FILE(feature/preexec_list.txt.in feature/preexec_list.txt @ONLY)
-CONFIGURE_FILE(data/appsvc_db.sql.in data/appsvc_db.sql @ONLY)
-CONFIGURE_FILE(scripts/12_appsvc-add.post.in scripts/12_appsvc-add.post @ONLY)
-CONFIGURE_FILE(scripts/501.appsvc_db_upgrade.sh.in scripts/501.appsvc_db_upgrade.sh @ONLY)
-CONFIGURE_FILE(scripts/upgrade/1_appsvc_db_upgrade.sh.in scripts/upgrade/1_appsvc_db_upgrade.sh @ONLY)
-CONFIGURE_FILE(scripts/upgrade/2_appsvc_db_upgrade.sh.in scripts/upgrade/2_appsvc_db_upgrade.sh @ONLY)
+CONFIGURE_FILE(feature/preexec_list.txt.in
+ feature/preexec_list.txt @ONLY)
+CONFIGURE_FILE(data/appsvc_db.sql.in
+ data/appsvc_db.sql @ONLY)
+CONFIGURE_FILE(scripts/12_appsvc-add.post.in
+ scripts/12_appsvc-add.post @ONLY)
+CONFIGURE_FILE(scripts/501.appsvc_db_upgrade.sh.in
+ scripts/501.appsvc_db_upgrade.sh @ONLY)
+CONFIGURE_FILE(scripts/upgrade/1_appsvc_db_upgrade.sh.in
+ scripts/upgrade/1_appsvc_db_upgrade.sh @ONLY)
+CONFIGURE_FILE(scripts/upgrade/2_appsvc_db_upgrade.sh.in
+ scripts/upgrade/2_appsvc_db_upgrade.sh @ONLY)
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/scripts/501.appsvc_db_upgrade.sh
DESTINATION /usr/share/upgrade/scripts)
DESTINATION /etc/aul/upgrade/scripts)
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/scripts/upgrade/2_appsvc_db_upgrade.sh
DESTINATION /etc/aul/upgrade/scripts)
-INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/aul.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/feature/preexec_list.txt DESTINATION ${SHARE_INSTALL_PREFIX}/aul )
-INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/data/miregex DESTINATION ${SHARE_INSTALL_PREFIX}/aul )
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/aul.conf DESTINATION /etc/dbus-1/system.d)
-INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/include/ DESTINATION include/aul
- FILES_MATCHING
- PATTERN "*.h"
-)
-INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/aul/api/ DESTINATION include/aul/api
- FILES_MATCHING
- PATTERN "*.h"
-)
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/feature/preexec_list.txt
+ DESTINATION ${SHARE_INSTALL_PREFIX}/aul )
+INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/data/miregex
+ DESTINATION ${SHARE_INSTALL_PREFIX}/aul )
## Sub directories
-ADD_SUBDIRECTORY(parser)
-ADD_SUBDIRECTORY(server)
+ADD_SUBDIRECTORY(src)
ADD_SUBDIRECTORY(test)
-ADD_SUBDIRECTORY(tool)
%__make %{?_smp_mflags}
sqlite3 .appsvc.db < ./data/appsvc_db.sql
-sqlite3 .component.db < ./parser/component/data/component_db.sql
+sqlite3 .component.db < ./src/parser/component/data/component_db.sql
%check
-export LD_LIBRARY_PATH="../../"
+export LD_LIBRARY_PATH="../../src/aul"
ctest -V
%if 0%{?gcov:1}
--- /dev/null
+ADD_SUBDIRECTORY(aul)
+ADD_SUBDIRECTORY(parser)
+ADD_SUBDIRECTORY(server)
+ADD_SUBDIRECTORY(tool)
--- /dev/null
+AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR} SRCS)
+AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/api AUL_API_SRCS)
+AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/app_control
+ AUL_APP_CONTROL_SRCS)
+AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/app_group AUL_APP_GROUP_SRCS)
+AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/app_info AUL_APP_INFO_SRCS)
+AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/app_manager AUL_APP_MANAGER_SRCS)
+AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/common AUL_COMMON_SRCS)
+AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/component AUL_COMPONENT_SRCS)
+AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/socket AUL_SOCKET_SRCS)
+
+ADD_LIBRARY(${TARGET_AUL} SHARED
+ ${SRCS}
+ ${AUL_API_SRCS}
+ ${AUL_APP_CONTROL_SRCS}
+ ${AUL_APP_GROUP_SRCS}
+ ${AUL_APP_MANAGER_SRCS}
+ ${AUL_APP_INFO_SRCS}
+ ${AUL_COMMON_SRCS}
+ ${AUL_COMPONENT_SRCS}
+ ${AUL_SOCKET_SRCS}
+ ${AUL_BOOT_SEQUENCE_SRCS}
+)
+
+TARGET_INCLUDE_DIRECTORIES(${TARGET_AUL} PUBLIC
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/../
+ ${CMAKE_CURRENT_SOURCE_DIR}/include
+ ${CMAKE_CURRENT_SOURCE_DIR}/include/internal
+ ${CMAKE_CURRENT_SOURCE_DIR}/api
+ ${CMAKE_CURRENT_SOURCE_DIR}/app_control
+ ${CMAKE_CURRENT_SOURCE_DIR}/app_manager
+ ${CMAKE_CURRENT_SOURCE_DIR}/common
+ ${CMAKE_CURRENT_SOURCE_DIR}/component
+ ${CMAKE_CURRENT_SOURCE_DIR}/socket
+)
+
+SET_TARGET_PROPERTIES(${TARGET_AUL} PROPERTIES SOVERSION ${MAJORVER})
+SET_TARGET_PROPERTIES(${TARGET_AUL} PROPERTIES VERSION ${FULLVER})
+
+APPLY_PKG_CONFIG(${TARGET_AUL} PUBLIC
+ BUNDLE_DEPS
+ CAPI_SYSTEM_INFO_DEPS
+ CAPI_SYSTEM_RESOURCE_DEPS
+ DLOG_DEPS
+ GIO_DEPS
+ GLIB_DEPS
+ INIPARSER_DEPS
+ LIBSMACK_DEPS
+ LIBTZPLATFORM_CONFIG_DEPS
+ LIBXML_DEPS
+ PARCEL_DEPS
+ PKGMGR_INFO_DEPS
+ STORAGE_DEPS
+ TTRACE_DEPS
+ UUID_DEPS
+ VCONF_DEPS
+ XDGMIME_DEPS
+)
+
+INSTALL(TARGETS ${TARGET_AUL}
+ DESTINATION ${LIB_INSTALL_DIR}
+ COMPONENT RuntimeLibraries)
+
+# pkgconfig file
+CONFIGURE_FILE(aul.pc.in aul.pc @ONLY)
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/aul.pc
+ DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/aul.conf
+ DESTINATION /etc/dbus-1/system.d)
+
+INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/ DESTINATION include/aul
+ FILES_MATCHING
+ PATTERN "*.h"
+)
+
+INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/api/ DESTINATION include/aul/api
+ FILES_MATCHING
+ PATTERN "*.h"
+)
* limitations under the License.
*/
-#include "include/aul_app_com.h"
+#include "aul/include/aul_app_com.h"
#include <bundle_cpp.h>
#include <bundle_internal.h>
#include <mutex>
#include <string>
-#include "app_request.h"
-#include "aul_api.h"
-#include "aul_util.h"
-#include "include/aul.h"
-#include "include/aul_cmd.h"
-#include "launch.h"
+#include "aul/app_request.h"
+#include "aul/aul_api.h"
+#include "aul/aul_util.h"
+#include "aul/include/aul.h"
+#include "aul/include/aul_cmd.h"
+#include "aul/launch.h"
using namespace aul::internal;
* limitations under the License.
*/
+#include "aul/app_control/resolve_info.hh"
+
#include <errno.h>
#include <glib.h>
-#include "aul/app_control/resolve_info.hh"
+#include "aul/aul_svc_priv_key.h"
#include "aul/common/exception.hh"
#include "aul/common/log_private.hh"
#include "aul/common/util.hh"
-#include "include/aul.h"
-#include "src/aul_svc_priv_key.h"
+#include "aul/include/aul.h"
namespace aul {
* limitations under the License.
*/
-#include "include/aul_app_group.h"
+#include "aul/include/aul_app_group.h"
#include <bundle_cpp.h>
#include <string>
#include <vector>
-#include "app_request.h"
-#include "aul_api.h"
-#include "aul_util.h"
-#include "include/aul.h"
-#include "include/aul_error.h"
-#include "include/aul_sock.h"
-#include "launch.h"
-
#include "aul/app_group/app_group_info.hh"
+#include "aul/app_request.h"
+#include "aul/aul_api.h"
+#include "aul/aul_util.h"
#include "aul/common/exception.hh"
+#include "aul/include/aul.h"
+#include "aul/include/aul_error.h"
+#include "aul/include/aul_sock.h"
+#include "aul/launch.h"
using namespace aul;
using namespace aul::internal;
* limitations under the License.
*/
-#include "app_request.h"
+#include "aul/app_request.h"
#include <bundle_internal.h>
#include <ctype.h>
#include <memory>
#include <utility>
-#include "aul_cmd.h"
-#include "aul_error.h"
-#include "aul_sock.h"
-#include "aul_util.h"
-#include "launch.h"
+#include "aul/aul_util.h"
+#include "aul/include/aul_cmd.h"
+#include "aul/include/aul_error.h"
+#include "aul/include/aul_sock.h"
+#include "aul/launch.h"
namespace aul {
namespace internal {
* limitations under the License.
*/
-#ifndef APP_REQUEST_H_
-#define APP_REQUEST_H_
+#ifndef AUL_APP_REQUEST_H_
+#define AUL_APP_REQUEST_H_
#include <bundle_cpp.h>
#include <bundle.h>
#include <string>
-#include "aul.h"
-#include "aul_sock.h"
+#include "aul/include/aul.h"
+#include "aul/include/aul_sock.h"
namespace aul {
namespace internal {
class AppRequest {
public:
AppRequest(int cmd, uid_t uid);
- AppRequest(int cmd);
+ explicit AppRequest(int cmd);
AppRequest& With(tizen_base::Bundle b);
AppRequest& With(bundle* b);
} // namespace internal
} // namespace aul
-#endif // APP_REQUEST_H_
\ No newline at end of file
+#endif // AUL_APP_REQUEST_H_
\ No newline at end of file
#include <mutex>
#include <string>
-#include "include/aul.h"
-#include "aul_api.h"
-
-#include "log_private.hh"
+#include "aul/aul_api.h"
+#include "aul/include/aul.h"
+#include "aul/common/log_private.hh"
namespace {
--- /dev/null
+/*
+ * Copyright (c) 2018 - 2020 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * 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.
+ *
+ */
+
+#include "aul/include/aul_cmd.h"
+
+#include <stdio.h>
+
+#include "aul/aul_api.h"
+
+extern "C" API const char* aul_cmd_convert_to_string(int cmd) {
+ static const char* cmd_string_table[] = {
+ "APP_START",
+
+ "APP_OPEN",
+ "APP_RESUME",
+ "APP_RESUME_BY_PID",
+ "APP_TERM_BY_PID",
+ "APP_TERM_BY_PID_WITHOUT_RESTART",
+ "APP_RESULT",
+ "APP_START_RES",
+ "APP_CANCEL",
+ "APP_KILL_BY_PID",
+ "APP_UPDATE_RUA_STAT",
+
+ "APP_ADD_HISTORY",
+ "APP_REMOVE_HISTORY",
+ "APP_RUNNING_INFO",
+ "APP_RUNNING_INFO_RESULT",
+ "APP_IS_RUNNING",
+ "APP_GET_APPID_BYPID",
+ "APP_GET_PKGID_BYPID",
+ "APP_GET_INFO_OK",
+ "APP_GET_INFO_ERROR",
+ "APP_KEY_EVENT",
+
+ "APP_KEY_RESERVE",
+ "APP_KEY_RELEASE",
+ "APP_STATUS_UPDATE",
+ "APP_RUNNING_LIST_UPDATE",
+ "APP_TERM_REQ_BY_PID",
+ "APP_TERM_BY_PID_ASYNC",
+ "APP_TERM_BGAPP_BY_PID",
+ "APP_PAUSE",
+ "APP_PAUSE_BY_PID",
+ "APP_GROUP_GET_WINDOW",
+
+ "APP_GROUP_SET_WINDOW",
+ "APP_GROUP_GET_FG",
+ "APP_GROUP_GET_LEADER_PID",
+ "APP_GROUP_GET_LEADER_PIDS",
+ "APP_GROUP_GET_GROUP_PIDS",
+ "APP_GROUP_GET_IDLE_PIDS",
+ "APP_GROUP_LOWER",
+ "APP_GROUP_CLEAR_TOP",
+ "APP_GROUP_ACTIVATE_BELOW",
+ "APP_GET_STATUS",
+
+ "APP_ADD_LOADER",
+ "APP_REMOVE_LOADER",
+ "APP_GET_PID",
+ "APP_GET_DC_SOCKET_PAIR",
+ "APP_GET_MP_SOCKET_PAIR",
+ "APP_COM_CREATE",
+ "APP_COM_JOIN",
+ "APP_COM_SEND",
+ "APP_COM_LEAVE",
+ "APP_COM_MESSAGE",
+
+ "WIDGET_ADD",
+ "WIDGET_DEL",
+ "WIDGET_LIST",
+ "WIDGET_UPDATE",
+ "WIDGET_COUNT",
+ "WIDGET_GET_CONTENT",
+ "APP_REGISTER_PID",
+ "APP_WAKE",
+ "APP_SUSPEND",
+ "AMD_RELOAD_APPINFO",
+
+ "LAUNCHPAD_DEAD_SIGNAL",
+ "APP_ALL_RUNNING_INFO",
+ "APP_SET_APP_CONTROL_DEFAULT_APP",
+ "APP_UNSET_APP_CONTROL_DEFAULT_APP",
+ "APP_START_ASYNC",
+ "APP_SET_PROCESS_GROUP",
+ "APP_PREPARE_CANDIDATE_PROCESS",
+ "APP_TERM_BY_PID_SYNC",
+ "APP_GET_STATUS_BY_APPID",
+ "APP_GET_LAST_CALLER_PID",
+
+ "APP_TERM_BY_PID_SYNC_WITHOUT_RESTART",
+ "APP_RESUME_BY_PID_ASYNC",
+ "APP_SET_ALIAS_APPID",
+ "APP_UNSET_ALIAS_APPID",
+ "APP_ENABLE_ALIAS_INFO",
+ "APP_DISABLE_ALIAS_INFO",
+ "APP_GROUP_ACTIVATE_ABOVE",
+ "ADD_APP_SCREEN",
+ "REMOVE_APP_SCREEN",
+ "APP_UPDATE_REQUESTED",
+
+ "ADD_SCREEN_VIEWER",
+ "REMOVE_SCREEN_VIEWER",
+ "LAUNCHPAD_LAUNCH_SIGNAL",
+ "APP_RUNNING_INSTANCE_INFO",
+ "APP_GET_INSTANCE_ID_BYPID",
+ "APP_SET_CACHE",
+ "APP_GET_APPID_FROM_CACHE",
+ "APP_INVALIDATE_CACHE",
+ "APP_STARTUP_SIGNAL",
+ "APP_WINDOW_ATTACH",
+
+ "APP_WINDOW_DETACH",
+ "APP_START_RES_ASYNC",
+ "APP_NOTIFY_EXIT",
+ "APP_GET_APPID_BY_SURFACE_ID",
+ "APP_GET_INSTANCE_ID_BY_SURFACE_ID",
+ "UPDATE_SCREEN_VIEWER_STATUS",
+ "WIDGET_RUNNING_INFO",
+ "JOB_STATUS_UPDATE",
+ "WIDGET_CHANGE_STATUS",
+ "RPC_PORT_PREPARE_STUB",
+
+ "RPC_PORT_CREATE_SOCKET_PAIR",
+ "RPC_PORT_NOTIFY_RPC_FINISHED",
+ "COMPLICATION_UPDATE_REQUEST",
+ "APP_NOTIFY_START",
+ "WATCHDOG_ENABLE",
+ "WATCHDOG_DISABLE",
+ "WATCHDOG_PING",
+ "WATCHDOG_KICK",
+ "APP_SEND_LAUNCH_REQUEST",
+ "APP_SEND_LAUNCH_REQUEST_SYNC",
+
+ "COMP_NOTIFY_START",
+ "COMP_NOTIFY_EXIT",
+ "COMP_STATUS_UPDATE",
+ "APP_TERM_INSTANCE_ASYNC",
+ "APP_GROUP_SET_WINDOW_V2",
+ "APP_GROUP_LOWER_V2",
+ "APP_GROUP_GET_LEADER_IDS",
+ "APP_GROUP_GET_GROUP_INFO",
+ "APP_GROUP_GET_IDLE_INFO",
+ "COMP_CONTEXT_FOREACH",
+
+ "COMP_CONTEXT_GET",
+ "COMP_CONTEXT_IS_RUNNING",
+ "COMP_CONTEXT_RESUME",
+ "COMP_CONTEXT_PAUSE",
+ "COMP_CONTEXT_TERMINATE_BG_COMP",
+ "COMP_CONTEXT_TERMINATE",
+ "APP_RESUME_INSTANCE",
+ "APP_PAUSE_INSTANCE",
+ "APP_TERM_BG_INSTANCE",
+ "LAUNCHPAD_CHILD_PROCESS", /* unused */
+
+ "COMP_INFO_GET",
+ "COMP_INFO_FOREACH",
+ "APP_TERMINATE",
+ "APP_IS_RUNNING_V2",
+ "ANR_NOTIFY",
+ "APP_GET_RUNNING_CONTEXT",
+ "LAUNCHER_SERVICE_NOTIFY_ANIMATION_STARTED",
+ "LAUNCHER_SERVICE_NOTIFY_ANIMATION_FINISHED",
+ "APP_SEND_RESUME_REQUEST",
+ "APP_PREPARE_APP_DEFINED_LOADER",
+
+ "WIDGET_DISABLE",
+ "TRIGGER_APP_SCREEN_FOCUSED_FORCE",
+ "WIDGET_EVENT",
+ "SET_PRIVATE_SHARING",
+ "UNSET_PRIVATE_SHARING",
+ "APP_CONTEXT_GET",
+ "APP_CONTEXT_GET_BY_INSTANCE_ID",
+ "APP_CONTEXT_GET_BY_PID",
+ "APP_GROUP_ADD",
+ "APP_GROUP_REMOVE",
+
+ "APP_GET_APPID_LIST",
+ "COMP_PORT_EXIST",
+ "COMP_PORT_CREATE",
+ "COMP_PORT_DESTROY",
+ "APP_LIFECYCLE_UPDATE_STATE",
+
+ "APP_STATUS_UPDATE_V2",
+ "APP_GET_APP_CONTROL_DEFAULT_APPS",
+ "APP_GET_APPID_BY_ALIAS_APPID",
+ "APP_GET_APP_CONTROL_DEFAULT_APP",
+ "APP_LIFECYCLE_GET_STATE",
+
+ "PROC_REGISTER",
+ "PROC_DEREGISTER",
+ "PROC_GET_NAME",
+ "PROC_GET_EXTRA",
+ "RPC_PORT_CREATE",
+
+ "RPC_PORT_DESTROY",
+ "RPC_PORT_EXIST",
+ "APP_WINDOW_ATTACH_BELOW",
+ "PROC_GROUP_ADD",
+ "PROC_GROUP_REMOVE",
+
+ "APP_CONNECT",
+ "APP_SET_AUTO_RESTART",
+ "BOOT_SEQUENCE_START_APP",
+ "BOOT_SEQUENCE_GET_APPINFO_LIST",
+ "BOOT_SEQUENCE_RELOAD",
+
+ "PKG_PRE_EVENT_SEND",
+ "PROC_GROUP_FOREACH",
+ "PROC_GROUP_GET",
+
+ "CUSTOM_COMMAND"};
+
+ if (cmd < 0 || cmd >= APP_CMD_MAX) return cmd_string_table[APP_CMD_MAX];
+
+ return cmd_string_table[cmd];
+}
* limitations under the License.
*/
-#include "include/aul_comp_context.h"
+#include "aul/include/aul_comp_context.h"
#include <bundle_cpp.h>
#include <string>
#include <vector>
-#include "app_request.h"
-#include "aul_api.h"
-#include "aul_util.h"
-#include "include/aul.h"
-#include "include/aul_error.h"
-
+#include "aul/app_request.h"
+#include "aul/aul_api.h"
+#include "aul/aul_util.h"
#include "aul/common/exception.hh"
#include "aul/component/component_running_context.hh"
+#include "aul/include/aul.h"
+#include "aul/include/aul_error.h"
using namespace aul;
* limitations under the License.
*/
-#include "include/aul_comp_info.h"
+#include "aul/include/aul_comp_info.h"
#include <vconf.h>
#include <string>
#include <vector>
-#include "app_request.h"
-#include "aul_api.h"
-#include "aul_util.h"
-#include "include/aul.h"
-#include "include/aul_error.h"
-#include "include/aul_sock.h"
-
+#include "aul/app_request.h"
+#include "aul/aul_api.h"
+#include "aul/aul_util.h"
#include "aul/common/exception.hh"
#include "aul/component/component_info.hh"
+#include "aul/include/aul.h"
+#include "aul/include/aul_error.h"
+#include "aul/include/aul_sock.h"
using namespace aul;
--- /dev/null
+/*
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * 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.
+ */
+
+#include "aul/include/aul_error.h"
+
+#include <errno.h>
+
+#include "aul/aul_api.h"
+#include "aul/aul_util.h"
+#include "aul/include/aul.h"
+#include "aul/include/aul_sock.h"
+
+extern "C" API int aul_error_convert(int res) {
+ int ret;
+
+ switch (res) {
+ case -ENOMEM:
+ ret = AUL_R_ENOMEM;
+ break;
+ case -EREJECTED:
+ ret = AUL_R_EREJECTED;
+ break;
+ case -ENOENT:
+ ret = AUL_R_ENOAPP;
+ break;
+ case -ETERMINATING:
+ ret = AUL_R_ETERMINATING;
+ break;
+ case -EILLEGALACCESS:
+ ret = AUL_R_EILLACC;
+ break;
+ case -ELOCALLAUNCH_ID:
+ ret = AUL_R_LOCAL;
+ break;
+ case -EAGAIN:
+ ret = AUL_R_ETIMEOUT;
+ break;
+ case -EINVAL:
+ ret = AUL_R_EINVAL;
+ break;
+ case -ECOMM:
+ ret = AUL_R_ECOMM;
+ break;
+ case -ECANCELED:
+ ret = AUL_R_ECANCELED;
+ break;
+ default:
+ ret = AUL_R_ERROR;
+ break;
+ }
+
+ return ret;
+}
* limitations under the License.
*/
-#include "include/aul_job_scheduler.h"
+#include "aul/include/aul_job_scheduler.h"
#include <bundle_cpp.h>
-#include "app_request.h"
-#include "aul_api.h"
-#include "aul_util.h"
-#include "include/aul.h"
-#include "include/aul_sock.h"
+#include "aul/app_request.h"
+#include "aul/aul_api.h"
+#include "aul/aul_util.h"
+#include "aul/include/aul.h"
+#include "aul/include/aul_sock.h"
extern "C" API int aul_job_scheduler_update_job_status(const char* job_id,
aul_job_status_e job_status) {
*
*/
-#include "include/aul_launcher_service.h"
+#include "aul/include/aul_launcher_service.h"
+#include <bundle_internal.h>
+#include <glib.h>
#include <stdio.h>
#include <stdlib.h>
-#include <glib.h>
-#include <bundle_internal.h>
-
-#include "aul_api.h"
-#include "aul_util.h"
-#include "include/aul_app_com.h"
-#include "include/aul_error.h"
-#include "include/aul_sock.h"
-#include "app_request.h"
+#include "aul/app_request.h"
+#include "aul/aul_api.h"
+#include "aul/aul_util.h"
+#include "aul/include/aul_app_com.h"
+#include "aul/include/aul_error.h"
+#include "aul/include/aul_sock.h"
struct aul_launcher_serivce_s {
void* dummy;
#include "aul/app_info/directory_info.hh"
#include "aul/app_info/external_directory_info.hh"
-#include "aul_api.h"
-#include "aul_util.h"
-#include "include/aul.h"
+#include "aul/aul_api.h"
+#include "aul/aul_util.h"
+#include "aul/include/aul.h"
#undef AUL_API
#define AUL_API extern "C" API
* limitations under the License.
*/
+#include "aul/include/aul_proc.h"
+
+#include <bundle_cpp.h>
#include <bundle_internal.h>
#include <fcntl.h>
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
-#include <bundle_cpp.h>
-
-#include <string>
#include <memory>
#include <mutex>
+#include <string>
-#include "app_request.h"
-#include "aul_api.h"
-#include "aul_util.h"
-#include "include/aul_proc.h"
-#include "include/aul_sock.h"
-
+#include "aul/app_request.h"
+#include "aul/aul_api.h"
+#include "aul/aul_util.h"
#include "aul/common/file_descriptor.hh"
+#include "aul/include/aul_sock.h"
using namespace aul;
using namespace aul::internal;
* limitations under the License.
*/
-#include "include/aul_proc_group.h"
+#include "aul/include/aul_proc_group.h"
#include <fcntl.h>
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
-#include "app_request.h"
-#include "aul_api.h"
-#include "aul_util.h"
-#include "include/aul_error.h"
-#include "include/aul_sock.h"
-
+#include "aul/app_request.h"
+#include "aul/aul_api.h"
+#include "aul/aul_util.h"
#include "aul/common/file_descriptor.hh"
+#include "aul/include/aul_error.h"
+#include "aul/include/aul_sock.h"
using namespace aul;
using namespace aul::internal;
* limitations under the License.
*/
+#include "aul/include/aul_rpc_port.h"
+
#include <bundle_cpp.h>
#include <bundle_internal.h>
#include <glib.h>
#include <memory>
#include <string>
-#include "app_request.h"
-#include "aul_api.h"
-#include "aul_util.h"
-#include "include/aul.h"
-#include "include/aul_app_com.h"
-#include "include/aul_error.h"
-#include "include/aul_rpc_port.h"
-#include "include/aul_sock.h"
-#include "include/aul_svc.h"
+#include "aul/app_request.h"
+#include "aul/aul_api.h"
+#include "aul/aul_util.h"
+#include "aul/include/aul.h"
+#include "aul/include/aul_app_com.h"
+#include "aul/include/aul_error.h"
+#include "aul/include/aul_sock.h"
+#include "aul/include/aul_svc.h"
using namespace aul::internal;
* limitations under the License.
*/
-#include "include/aul_sock.h"
+#include "aul/include/aul_sock.h"
+#include <bundle_cpp.h>
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include <vconf.h>
-#include <bundle_cpp.h>
-
-#include "aul_api.h"
-#include "aul_key.h"
-#include "aul_util.h"
-
+#include "aul/aul_api.h"
+#include "aul/aul_util.h"
+#include "aul/cpu_inheritance.hh"
+#include "aul/include/aul_key.h"
#include "aul/socket/client_socket.hh"
#include "aul/socket/packet.hh"
#include "aul/socket/server_socket.hh"
-#include "cpu_inheritance.hh"
using namespace aul;
#include <vector>
#include "aul/app_control/resolve_info.hh"
-#include "include/aul.h"
-#include "include/aul_app_group.h"
-#include "include/aul_error.h"
-#include "include/aul_sock.h"
-#include "include/aul_svc.h"
-#include "include/aul_svc_internal.h"
-#include "src/aul_api.h"
-#include "src/aul_svc_priv_key.h"
-#include "src/aul_util.h"
-#include "src/launch.h"
+#include "aul/include/aul.h"
+#include "aul/include/aul_app_group.h"
+#include "aul/include/aul_error.h"
+#include "aul/include/aul_sock.h"
+#include "aul/include/aul_svc.h"
+#include "aul/include/aul_svc_internal.h"
+#include "aul/aul_api.h"
+#include "aul/aul_svc_priv_key.h"
+#include "aul/aul_util.h"
+#include "aul/launch.h"
#undef MAX_MIME_STR_SIZE
#define MAX_MIME_STR_SIZE 256
* limitations under the License.
*/
-#include "include/aul_watch_control.h"
+#include "aul/include/aul_watch_control.h"
#include <algorithm>
-#include <list>
#include <iterator>
+#include <list>
-#include "aul_api.h"
-#include "aul_util.h"
-#include "aul_watch_control_internal.h"
-#include "include/aul.h"
+#include "aul/aul_api.h"
+#include "aul/aul_util.h"
+#include "aul/aul_watch_control_internal.h"
+#include "aul/include/aul.h"
namespace {
* limitations under the License.
*/
-#include "include/aul_watchdog.h"
+#include "aul/include/aul_watchdog.h"
#include <glib.h>
-#include "app_request.h"
-#include "aul_api.h"
-#include "aul_util.h"
-#include "include/aul.h"
-#include "include/aul_error.h"
+#include "aul/app_request.h"
+#include "aul/aul_api.h"
+#include "aul/aul_util.h"
#include "aul/common/exception.hh"
+#include "aul/include/aul.h"
+#include "aul/include/aul_error.h"
using namespace aul;
* limitations under the License.
*/
+#include "aul/include/aul_window.h"
+
+#include <bundle_cpp.h>
#include <gio/gio.h>
#include <glib.h>
#include <stdbool.h>
#include <stdio.h>
-#include <bundle_cpp.h>
-
#include <memory>
#include <mutex>
#include <string>
-#include "app_request.h"
-#include "aul_api.h"
-#include "aul_util.h"
-#include "include/aul.h"
-#include "include/aul_app_com.h"
-#include "include/aul_cmd.h"
-#include "include/aul_window.h"
-#include "launch.h"
+#include "aul/app_request.h"
+#include "aul/aul_api.h"
+#include "aul/aul_util.h"
+#include "aul/include/aul.h"
+#include "aul/include/aul_app_com.h"
+#include "aul/include/aul_cmd.h"
+#include "aul/launch.h"
using namespace aul;
using namespace aul::internal;
* limitations under the License.
*/
-#include "cpu_inheritance.hh"
+#include "aul/cpu_inheritance.hh"
#include <cpu-boosting.h>
-#include "include/aul_cmd.h"
-#include "aul_util.h"
+#include "aul/aul_util.h"
+#include "aul/include/aul_cmd.h"
namespace aul {
namespace internal {
#pragma once
#include <stdbool.h>
+#include <sys/types.h>
#ifdef __cplusplus
extern "C" {
* limitations under the License.
*/
+#include "aul/launch.h"
+
#include <bundle_internal.h>
#include <ctype.h>
#include <dirent.h>
#include <string>
#include <utility>
-#include "app_request.h"
-#include "app_signal.h"
-#include "aul.h"
-#include "aul_api.h"
-#include "aul_app_com.h"
-#include "aul_error.h"
-#include "aul_sock.h"
-#include "aul_util.h"
-#include "launch.h"
+#include "aul/app_request.h"
+#include "aul/app_signal.h"
+#include "aul/aul_api.h"
+#include "aul/aul_util.h"
+#include "aul/include/aul.h"
+#include "aul/include/aul_app_com.h"
+#include "aul/include/aul_error.h"
+#include "aul/include/aul_sock.h"
using namespace aul::internal;
#pragma once
#include <glib.h>
+#include <bundle.h>
#ifdef __cplusplus
extern "C" {
*/
#include <bundle_internal.h>
-#include <glib.h>
#include <gio/gio.h>
+#include <glib.h>
#include <uuid.h>
#include <atomic>
#include <list>
#include <mutex>
-#include "app_request.h"
-#include "aul.h"
-#include "aul_api.h"
-#include "aul_error.h"
-#include "aul_sock.h"
-#include "aul_svc.h"
-#include "aul_svc_priv_key.h"
-#include "aul_util.h"
-#include "cpu_inheritance.hh"
-#include "launch.h"
+#include "aul/app_request.h"
+#include "aul/aul_api.h"
+#include "aul/aul_svc_priv_key.h"
+#include "aul/aul_util.h"
+#include "aul/cpu_inheritance.hh"
+#include "aul/include/aul.h"
+#include "aul/include/aul_error.h"
+#include "aul/include/aul_sock.h"
+#include "aul/include/aul_svc.h"
+#include "aul/launch.h"
using namespace aul::internal;
* limitations under the License.
*/
-#include "pkginfo_internal.h"
-
#include <bundle_cpp.h>
#include <bundle_internal.h>
#include <glib-unix.h>
#include <string>
#include <thread>
-#include "app_request.h"
-#include "aul_api.h"
-#include "aul_error.h"
-#include "aul_util.h"
-#include "menu_db_util.h"
-#include "include/aul.h"
-#include "include/aul_error.h"
-#include "include/aul_sock.h"
+#include "aul/app_request.h"
+#include "aul/aul_api.h"
+#include "aul/aul_util.h"
+#include "aul/include/aul.h"
+#include "aul/include/aul_error.h"
+#include "aul/include/aul_sock.h"
+#include "aul/menu_db_util.h"
+#include "aul/pkginfo_internal.h"
using namespace aul::internal;
* limitations under the License.
*/
-#include "include/aul.h"
-
+#include <bundle_cpp.h>
#include <sys/types.h>
#include <unistd.h>
-#include <bundle_cpp.h>
-
#include <list>
#include <memory>
#include <mutex>
-#include "aul_api.h"
-#include "aul_util.h"
-#include "include/aul_app_com.h"
-#include "include/aul_error.h"
-#include "include/aul_sock.h"
-#include "launch.h"
-
-#include "app_request.h"
+#include "aul/app_request.h"
+#include "aul/aul_api.h"
+#include "aul/aul_util.h"
#include "aul/common/exception.hh"
-#include "pkginfo_internal.h"
+#include "aul/include/aul.h"
+#include "aul/include/aul_app_com.h"
+#include "aul/include/aul_error.h"
+#include "aul/include/aul_sock.h"
+#include "aul/launch.h"
+#include "aul/pkginfo_internal.h"
using namespace aul::internal;
+++ /dev/null
-/*
- * Copyright (c) 2018 - 2020 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * 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.
- *
- */
-
-#define _GNU_SOURCE
-#include <stdio.h>
-
-#include "aul_api.h"
-#include "aul_cmd.h"
-
-API const char *aul_cmd_convert_to_string(int cmd)
-{
- static const char *cmd_string_table[] = {
- "APP_START",
-
- "APP_OPEN",
- "APP_RESUME",
- "APP_RESUME_BY_PID",
- "APP_TERM_BY_PID",
- "APP_TERM_BY_PID_WITHOUT_RESTART",
- "APP_RESULT",
- "APP_START_RES",
- "APP_CANCEL",
- "APP_KILL_BY_PID",
- "APP_UPDATE_RUA_STAT",
-
- "APP_ADD_HISTORY",
- "APP_REMOVE_HISTORY",
- "APP_RUNNING_INFO",
- "APP_RUNNING_INFO_RESULT",
- "APP_IS_RUNNING",
- "APP_GET_APPID_BYPID",
- "APP_GET_PKGID_BYPID",
- "APP_GET_INFO_OK",
- "APP_GET_INFO_ERROR",
- "APP_KEY_EVENT",
-
- "APP_KEY_RESERVE",
- "APP_KEY_RELEASE",
- "APP_STATUS_UPDATE",
- "APP_RUNNING_LIST_UPDATE",
- "APP_TERM_REQ_BY_PID",
- "APP_TERM_BY_PID_ASYNC",
- "APP_TERM_BGAPP_BY_PID",
- "APP_PAUSE",
- "APP_PAUSE_BY_PID",
- "APP_GROUP_GET_WINDOW",
-
- "APP_GROUP_SET_WINDOW",
- "APP_GROUP_GET_FG",
- "APP_GROUP_GET_LEADER_PID",
- "APP_GROUP_GET_LEADER_PIDS",
- "APP_GROUP_GET_GROUP_PIDS",
- "APP_GROUP_GET_IDLE_PIDS",
- "APP_GROUP_LOWER",
- "APP_GROUP_CLEAR_TOP",
- "APP_GROUP_ACTIVATE_BELOW",
- "APP_GET_STATUS",
-
- "APP_ADD_LOADER",
- "APP_REMOVE_LOADER",
- "APP_GET_PID",
- "APP_GET_DC_SOCKET_PAIR",
- "APP_GET_MP_SOCKET_PAIR",
- "APP_COM_CREATE",
- "APP_COM_JOIN",
- "APP_COM_SEND",
- "APP_COM_LEAVE",
- "APP_COM_MESSAGE",
-
- "WIDGET_ADD",
- "WIDGET_DEL",
- "WIDGET_LIST",
- "WIDGET_UPDATE",
- "WIDGET_COUNT",
- "WIDGET_GET_CONTENT",
- "APP_REGISTER_PID",
- "APP_WAKE",
- "APP_SUSPEND",
- "AMD_RELOAD_APPINFO",
-
- "LAUNCHPAD_DEAD_SIGNAL",
- "APP_ALL_RUNNING_INFO",
- "APP_SET_APP_CONTROL_DEFAULT_APP",
- "APP_UNSET_APP_CONTROL_DEFAULT_APP",
- "APP_START_ASYNC",
- "APP_SET_PROCESS_GROUP",
- "APP_PREPARE_CANDIDATE_PROCESS",
- "APP_TERM_BY_PID_SYNC",
- "APP_GET_STATUS_BY_APPID",
- "APP_GET_LAST_CALLER_PID",
-
- "APP_TERM_BY_PID_SYNC_WITHOUT_RESTART",
- "APP_RESUME_BY_PID_ASYNC",
- "APP_SET_ALIAS_APPID",
- "APP_UNSET_ALIAS_APPID",
- "APP_ENABLE_ALIAS_INFO",
- "APP_DISABLE_ALIAS_INFO",
- "APP_GROUP_ACTIVATE_ABOVE",
- "ADD_APP_SCREEN",
- "REMOVE_APP_SCREEN",
- "APP_UPDATE_REQUESTED",
-
- "ADD_SCREEN_VIEWER",
- "REMOVE_SCREEN_VIEWER",
- "LAUNCHPAD_LAUNCH_SIGNAL",
- "APP_RUNNING_INSTANCE_INFO",
- "APP_GET_INSTANCE_ID_BYPID",
- "APP_SET_CACHE",
- "APP_GET_APPID_FROM_CACHE",
- "APP_INVALIDATE_CACHE",
- "APP_STARTUP_SIGNAL",
- "APP_WINDOW_ATTACH",
-
- "APP_WINDOW_DETACH",
- "APP_START_RES_ASYNC",
- "APP_NOTIFY_EXIT",
- "APP_GET_APPID_BY_SURFACE_ID",
- "APP_GET_INSTANCE_ID_BY_SURFACE_ID",
- "UPDATE_SCREEN_VIEWER_STATUS",
- "WIDGET_RUNNING_INFO",
- "JOB_STATUS_UPDATE",
- "WIDGET_CHANGE_STATUS",
- "RPC_PORT_PREPARE_STUB",
-
- "RPC_PORT_CREATE_SOCKET_PAIR",
- "RPC_PORT_NOTIFY_RPC_FINISHED",
- "COMPLICATION_UPDATE_REQUEST",
- "APP_NOTIFY_START",
- "WATCHDOG_ENABLE",
- "WATCHDOG_DISABLE",
- "WATCHDOG_PING",
- "WATCHDOG_KICK",
- "APP_SEND_LAUNCH_REQUEST",
- "APP_SEND_LAUNCH_REQUEST_SYNC",
-
- "COMP_NOTIFY_START",
- "COMP_NOTIFY_EXIT",
- "COMP_STATUS_UPDATE",
- "APP_TERM_INSTANCE_ASYNC",
- "APP_GROUP_SET_WINDOW_V2",
- "APP_GROUP_LOWER_V2",
- "APP_GROUP_GET_LEADER_IDS",
- "APP_GROUP_GET_GROUP_INFO",
- "APP_GROUP_GET_IDLE_INFO",
- "COMP_CONTEXT_FOREACH",
-
- "COMP_CONTEXT_GET",
- "COMP_CONTEXT_IS_RUNNING",
- "COMP_CONTEXT_RESUME",
- "COMP_CONTEXT_PAUSE",
- "COMP_CONTEXT_TERMINATE_BG_COMP",
- "COMP_CONTEXT_TERMINATE",
- "APP_RESUME_INSTANCE",
- "APP_PAUSE_INSTANCE",
- "APP_TERM_BG_INSTANCE",
- "LAUNCHPAD_CHILD_PROCESS", /* unused */
-
- "COMP_INFO_GET",
- "COMP_INFO_FOREACH",
- "APP_TERMINATE",
- "APP_IS_RUNNING_V2",
- "ANR_NOTIFY",
- "APP_GET_RUNNING_CONTEXT",
- "LAUNCHER_SERVICE_NOTIFY_ANIMATION_STARTED",
- "LAUNCHER_SERVICE_NOTIFY_ANIMATION_FINISHED",
- "APP_SEND_RESUME_REQUEST",
- "APP_PREPARE_APP_DEFINED_LOADER",
-
- "WIDGET_DISABLE",
- "TRIGGER_APP_SCREEN_FOCUSED_FORCE",
- "WIDGET_EVENT",
- "SET_PRIVATE_SHARING",
- "UNSET_PRIVATE_SHARING",
- "APP_CONTEXT_GET",
- "APP_CONTEXT_GET_BY_INSTANCE_ID",
- "APP_CONTEXT_GET_BY_PID",
- "APP_GROUP_ADD",
- "APP_GROUP_REMOVE",
-
- "APP_GET_APPID_LIST",
- "COMP_PORT_EXIST",
- "COMP_PORT_CREATE",
- "COMP_PORT_DESTROY",
- "APP_LIFECYCLE_UPDATE_STATE",
-
- "APP_STATUS_UPDATE_V2",
- "APP_GET_APP_CONTROL_DEFAULT_APPS",
- "APP_GET_APPID_BY_ALIAS_APPID",
- "APP_GET_APP_CONTROL_DEFAULT_APP",
- "APP_LIFECYCLE_GET_STATE",
-
- "PROC_REGISTER",
- "PROC_DEREGISTER",
- "PROC_GET_NAME",
- "PROC_GET_EXTRA",
- "RPC_PORT_CREATE",
-
- "RPC_PORT_DESTROY",
- "RPC_PORT_EXIST",
- "APP_WINDOW_ATTACH_BELOW",
- "PROC_GROUP_ADD",
- "PROC_GROUP_REMOVE",
-
- "APP_CONNECT",
- "APP_SET_AUTO_RESTART",
- "BOOT_SEQUENCE_START_APP",
- "BOOT_SEQUENCE_GET_APPINFO_LIST",
- "BOOT_SEQUENCE_RELOAD",
-
- "PKG_PRE_EVENT_SEND",
- "PROC_GROUP_FOREACH",
- "PROC_GROUP_GET",
-
- "CUSTOM_COMMAND"
- };
-
- if (cmd < 0 || cmd >= APP_CMD_MAX)
- return cmd_string_table[APP_CMD_MAX];
-
- return cmd_string_table[cmd];
-}
+++ /dev/null
-/*
- * Copyright (c) 2016 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * 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.
- */
-
-#define _GNU_SOURCE
-#include <errno.h>
-
-#include "aul_util.h"
-#include "aul_error.h"
-#include "aul_sock.h"
-#include "aul.h"
-
-int aul_error_convert(int res)
-{
- int ret;
-
- switch (res) {
- case -ENOMEM:
- ret = AUL_R_ENOMEM;
- break;
- case -EREJECTED:
- ret = AUL_R_EREJECTED;
- break;
- case -ENOENT:
- ret = AUL_R_ENOAPP;
- break;
- case -ETERMINATING:
- ret = AUL_R_ETERMINATING;
- break;
- case -EILLEGALACCESS:
- ret = AUL_R_EILLACC;
- break;
- case -ELOCALLAUNCH_ID:
- ret = AUL_R_LOCAL;
- break;
- case -EAGAIN:
- ret = AUL_R_ETIMEOUT;
- break;
- case -EINVAL:
- ret = AUL_R_EINVAL;
- break;
- case -ECOMM:
- ret = AUL_R_ECOMM;
- break;
- case -ECANCELED:
- ret = AUL_R_ECANCELED;
- break;
- default:
- ret = AUL_R_ERROR;
- break;
- }
-
- return ret;
-}
-
--- /dev/null
+SET(TARGET_APP_COM_TOOL "app_com_tool")
+
+ADD_EXECUTABLE(${TARGET_APP_COM_TOOL}
+ ${CMAKE_CURRENT_SOURCE_DIR}/app_com_tool.c)
+
+SET_TARGET_PROPERTIES(${TARGET_APP_COM_TOOL} PROPERTIES
+ COMPILE_FLAGS ${CFLAGS} "-fPIE")
+SET_TARGET_PROPERTIES(${TARGET_APP_COM_TOOL} PROPERTIES
+ LINK_FLAGS "-pie")
+TARGET_LINK_LIBRARIES(${TARGET_APP_COM_TOOL} PRIVATE ${TARGET_AUL})
+
+TARGET_INCLUDE_DIRECTORIES(${TARGET_APP_COM_TOOL} PUBLIC
+ ${CMAKE_CURRENT_SOURCE_DIR}/../aul
+ ${CMAKE_CURRENT_SOURCE_DIR}/../aul/include)
+
+INSTALL(TARGETS ${TARGET_APP_COM_TOOL} DESTINATION bin)
MESSAGE(STATUS "[__PRELINK__] Enable")
ELSE(_TIZEN_FEATURE_PRELINK)
MESSAGE(STATUS "[__PRELINK__] Disable")
-SET_TARGET_PROPERTIES(${TARGET_APP_LAUNCHER} PROPERTIES COMPILE_FLAGS ${CFLAGS} "-fPIE")
-SET_TARGET_PROPERTIES(${TARGET_APP_LAUNCHER} PROPERTIES LINK_FLAGS "-pie")
+SET_TARGET_PROPERTIES(${TARGET_APP_LAUNCHER} PROPERTIES
+ COMPILE_FLAGS ${CFLAGS} "-fPIE")
+SET_TARGET_PROPERTIES(${TARGET_APP_LAUNCHER} PROPERTIES
+ LINK_FLAGS "-pie")
ENDIF(_TIZEN_FEATURE_PRELINK)
TARGET_LINK_LIBRARIES(${TARGET_APP_LAUNCHER} PRIVATE ${TARGET_AUL})
-TARGET_INCLUDE_DIRECTORIES(${TARGET_APP_LAUNCHER} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../src)
-TARGET_INCLUDE_DIRECTORIES(${TARGET_APP_LAUNCHER} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../include)
+TARGET_INCLUDE_DIRECTORIES(${TARGET_APP_LAUNCHER} PUBLIC
+ ${CMAKE_CURRENT_SOURCE_DIR}/../aul)
+TARGET_INCLUDE_DIRECTORIES(${TARGET_APP_LAUNCHER} PUBLIC
+ ${CMAKE_CURRENT_SOURCE_DIR}/../aul/include)
INSTALL(TARGETS ${TARGET_APP_LAUNCHER} DESTINATION bin)
--- /dev/null
+SET(TARGET_APP_GROUP_INFO "appgroup_info")
+
+ADD_EXECUTABLE(${TARGET_APP_GROUP_INFO}
+ ${CMAKE_CURRENT_SOURCE_DIR}/app_group_info.c)
+
+SET_TARGET_PROPERTIES(${TARGET_APP_GROUP_INFO} PROPERTIES
+ COMPILE_FLAGS ${CFLAGS} "-fPIE")
+SET_TARGET_PROPERTIES(${TARGET_APP_GROUP_INFO} PROPERTIES
+ LINK_FLAGS "-pie")
+TARGET_LINK_LIBRARIES(${TARGET_APP_GROUP_INFO} PRIVATE ${TARGET_AUL})
+
+TARGET_INCLUDE_DIRECTORIES(${TARGET_APP_GROUP_INFO} PUBLIC
+ ${CMAKE_CURRENT_SOURCE_DIR}/../aul
+ ${CMAKE_CURRENT_SOURCE_DIR}/../aul/include)
+
+INSTALL(TARGETS ${TARGET_APP_GROUP_INFO} DESTINATION bin)
--- /dev/null
+SET(TARGET_APPID2PID "appid2pid")
+
+ADD_EXECUTABLE(${TARGET_APPID2PID}
+ ${CMAKE_CURRENT_SOURCE_DIR}/appid2pid.c)
+
+SET_TARGET_PROPERTIES(${TARGET_APPID2PID} PROPERTIES
+ COMPILE_FLAGS ${CFLAGS} "-fPIE")
+SET_TARGET_PROPERTIES(${TARGET_APPID2PID} PROPERTIES
+ LINK_FLAGS "-pie")
+TARGET_LINK_LIBRARIES(${TARGET_APPID2PID} PRIVATE ${TARGET_AUL})
+
+TARGET_INCLUDE_DIRECTORIES(${TARGET_APPID2PID} PUBLIC
+ ${CMAKE_CURRENT_SOURCE_DIR}/../aul
+ ${CMAKE_CURRENT_SOURCE_DIR}/../aul/include)
+
+INSTALL(TARGETS ${TARGET_APPID2PID} DESTINATION bin)
TARGET_INCLUDE_DIRECTORIES(${TARGET_AUL_TEST} PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/
- ${CMAKE_CURRENT_SOURCE_DIR}/../../
- ${CMAKE_CURRENT_SOURCE_DIR}/../../aul/api
- ${CMAKE_CURRENT_SOURCE_DIR}/../../include
- ${CMAKE_CURRENT_SOURCE_DIR}/../../src
+ ${CMAKE_CURRENT_SOURCE_DIR}/../
+ ${CMAKE_CURRENT_SOURCE_DIR}/../aul/
+ ${CMAKE_CURRENT_SOURCE_DIR}/../aul/api
+ ${CMAKE_CURRENT_SOURCE_DIR}/../aul/include
)
INSTALL(TARGETS ${TARGET_AUL_TEST} DESTINATION bin)
TARGET_INCLUDE_DIRECTORIES(${TARGET_AUL_WINDOW} PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/../../
- ${CMAKE_CURRENT_SOURCE_DIR}/../../src
- ${CMAKE_CURRENT_SOURCE_DIR}/../../include)
+ ${CMAKE_CURRENT_SOURCE_DIR}/../aul
+ ${CMAKE_CURRENT_SOURCE_DIR}/../aul/include)
APPLY_PKG_CONFIG(${TARGET_AUL_WINDOW} PUBLIC
GLIB_DEPS
TARGET_INCLUDE_DIRECTORIES(${TARGET_AULCTL} PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/../../
- ${CMAKE_CURRENT_SOURCE_DIR}/../../src
- ${CMAKE_CURRENT_SOURCE_DIR}/../../include
+ ${CMAKE_CURRENT_SOURCE_DIR}/../aul
+ ${CMAKE_CURRENT_SOURCE_DIR}/../aul/include
)
APPLY_PKG_CONFIG(${TARGET_AULCTL} PUBLIC
#include <bundle_internal.h>
-#include "include/aul_key.h"
-#include "src/aul_util.h"
+#include "aul/aul_util.h"
+#include "aul/include/aul_key.h"
namespace aul::internal {
namespace boot_sequence {
#include <utility>
-#include "common/file_descriptor.hh"
-#include "include/aul_sock.h"
-#include "src/app_request.h"
-#include "src/aul_util.h"
+#include "aul/app_request.h"
+#include "aul/aul_util.h"
+#include "aul/common/file_descriptor.hh"
+#include "aul/include/aul_sock.h"
namespace aul::internal {
namespace boot_sequence {
--- /dev/null
+SET(TARGET_COMPMGR_TOOL "compmgr_tool")
+
+ADD_EXECUTABLE(${TARGET_COMPMGR_TOOL}
+ ${CMAKE_CURRENT_SOURCE_DIR}/compmgr_tool.c)
+
+SET_TARGET_PROPERTIES(${TARGET_COMPMGR_TOOL} PROPERTIES
+ COMPILE_FLAGS ${CFLAGS} "-fPIE")
+SET_TARGET_PROPERTIES(${TARGET_COMPMGR_TOOL} PROPERTIES LINK_FLAGS "-pie")
+TARGET_LINK_LIBRARIES(${TARGET_COMPMGR_TOOL} PRIVATE ${TARGET_AUL})
+
+TARGET_INCLUDE_DIRECTORIES(${TARGET_COMPMGR_TOOL} PUBLIC
+ ${CMAKE_CURRENT_SOURCE_DIR}/../aul
+ ${CMAKE_CURRENT_SOURCE_DIR}/../aul/include)
+
+INSTALL(TARGETS ${TARGET_COMPMGR_TOOL} DESTINATION bin)
--- /dev/null
+SET(TARGET_LAUNCH_APP "launch_app")
+
+ADD_EXECUTABLE(${TARGET_LAUNCH_APP}
+ ${CMAKE_CURRENT_SOURCE_DIR}/launch_app.c)
+SET_TARGET_PROPERTIES(${TARGET_LAUNCH_APP} PROPERTIES
+ COMPILE_FLAGS ${CFLAGS} "-fPIE")
+SET_TARGET_PROPERTIES(${TARGET_LAUNCH_APP} PROPERTIES LINK_FLAGS "-pie")
+TARGET_LINK_LIBRARIES(${TARGET_LAUNCH_APP} PRIVATE ${TARGET_AUL})
+
+TARGET_INCLUDE_DIRECTORIES(${TARGET_LAUNCH_APP} PUBLIC
+ ${CMAKE_CURRENT_SOURCE_DIR}/../aul
+ ${CMAKE_CURRENT_SOURCE_DIR}/../aul/include)
+
+INSTALL(TARGETS ${TARGET_LAUNCH_APP} DESTINATION bin)
SET(TARGET_LAUNCH_DEBUG "launch_debug")
-ADD_EXECUTABLE(${TARGET_LAUNCH_DEBUG} ${CMAKE_CURRENT_SOURCE_DIR}/launch_debug.c)
-SET_TARGET_PROPERTIES(${TARGET_LAUNCH_DEBUG} PROPERTIES COMPILE_FLAGS ${CFLAGS} "-fPIE")
+ADD_EXECUTABLE(${TARGET_LAUNCH_DEBUG}
+ ${CMAKE_CURRENT_SOURCE_DIR}/launch_debug.c)
+SET_TARGET_PROPERTIES(${TARGET_LAUNCH_DEBUG} PROPERTIES COMPILE_FLAGS
+ ${CFLAGS} "-fPIE")
SET_TARGET_PROPERTIES(${TARGET_LAUNCH_DEBUG} PROPERTIES LINK_FLAGS "-pie")
TARGET_LINK_LIBRARIES(${TARGET_LAUNCH_DEBUG} PRIVATE ${TARGET_AUL})
-TARGET_INCLUDE_DIRECTORIES(${TARGET_LAUNCH_DEBUG} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../src)
-TARGET_INCLUDE_DIRECTORIES(${TARGET_LAUNCH_DEBUG} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../include)
+TARGET_INCLUDE_DIRECTORIES(${TARGET_LAUNCH_DEBUG} PUBLIC
+ ${CMAKE_CURRENT_SOURCE_DIR}/../aul
+ ${CMAKE_CURRENT_SOURCE_DIR}/../aul/include)
INSTALL(TARGETS ${TARGET_LAUNCH_DEBUG} DESTINATION bin)
SET(TARGET_OPEN_APP "open_app")
ADD_EXECUTABLE(${TARGET_OPEN_APP} ${CMAKE_CURRENT_SOURCE_DIR}/open_app.c)
-SET_TARGET_PROPERTIES(${TARGET_OPEN_APP} PROPERTIES COMPILE_FLAGS ${CFLAGS} "-fPIE")
+SET_TARGET_PROPERTIES(${TARGET_OPEN_APP} PROPERTIES
+ COMPILE_FLAGS ${CFLAGS} "-fPIE")
SET_TARGET_PROPERTIES(${TARGET_OPEN_APP} PROPERTIES LINK_FLAGS "-pie")
TARGET_LINK_LIBRARIES(${TARGET_OPEN_APP} PRIVATE ${TARGET_AUL})
-TARGET_INCLUDE_DIRECTORIES(${TARGET_OPEN_APP} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../src)
-TARGET_INCLUDE_DIRECTORIES(${TARGET_OPEN_APP} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../include)
+TARGET_INCLUDE_DIRECTORIES(${TARGET_OPEN_APP} PUBLIC
+ ${CMAKE_CURRENT_SOURCE_DIR}/../aul
+ ${CMAKE_CURRENT_SOURCE_DIR}/../aul/include)
INSTALL(TARGETS ${TARGET_OPEN_APP} DESTINATION bin)
${APP_CONTROL_TESTS_SRCS})
TARGET_INCLUDE_DIRECTORIES(${TARGET_APP_CONTROL_TESTS} PUBLIC
- "${CMAKE_CURRENT_SOURCE_DIR}/mock"
- "${CMAKE_CURRENT_SOURCE_DIR}/../"
- "${CMAKE_CURRENT_SOURCE_DIR}/../../include"
- "${CMAKE_CURRENT_SOURCE_DIR}/../../src"
+ ${CMAKE_CURRENT_SOURCE_DIR}/mock
+ ${CMAKE_CURRENT_SOURCE_DIR}/../
+ ${CMAKE_CURRENT_SOURCE_DIR}/../../src/aul/include
+ ${CMAKE_CURRENT_SOURCE_DIR}/../../src/aul
)
APPLY_PKG_CONFIG(${TARGET_APP_CONTROL_TESTS} PUBLIC
)
TARGET_INCLUDE_DIRECTORIES(${TARGET_AUL_UNIT_TESTS} PUBLIC
- "${CMAKE_CURRENT_SOURCE_DIR}/../"
- "${CMAKE_CURRENT_SOURCE_DIR}/../../"
- "${CMAKE_CURRENT_SOURCE_DIR}/../../include"
- "${CMAKE_CURRENT_SOURCE_DIR}/../../src"
- "${CMAKE_CURRENT_SOURCE_DIR}/../../aul"
- "${CMAKE_CURRENT_SOURCE_DIR}/../../aul/api"
+ ${CMAKE_CURRENT_SOURCE_DIR}/../
+ ${CMAKE_CURRENT_SOURCE_DIR}/../../
+ ${CMAKE_CURRENT_SOURCE_DIR}/../../src/aul/include
+ ${CMAKE_CURRENT_SOURCE_DIR}/../../src/aul
+ ${CMAKE_CURRENT_SOURCE_DIR}/../../src/aul/api
)
APPLY_PKG_CONFIG(${TARGET_AUL_UNIT_TESTS} PUBLIC
#include <aul_app_com.h>
#include <aul_cmd.h>
#include <aul_sock.h>
-#include <gtest/gtest.h>
-
#include <bundle_cpp.h>
+#include <gtest/gtest.h>
#include <memory>
+#include "aul/launch.h"
#include "mock/mock_hook.h"
#include "mock/socket_mock.h"
#include "mock/test_fixture.h"
-#include "src/launch.h"
using ::testing::_;
using ::testing::DoAll;
#include <aul_app_group.h>
#include <aul_cmd.h>
#include <aul_sock.h>
+#include <bundle_cpp.h>
#include <gtest/gtest.h>
#include <stdlib.h>
-#include <bundle_cpp.h>
-
#include <iostream>
#include <memory>
+#include "aul/launch.h"
#include "mock/mock_hook.h"
#include "mock/socket_mock.h"
#include "mock/test_fixture.h"
-#include "src/launch.h"
using ::testing::_;
using ::testing::DoAll;
* limitations under the License.
*/
-#include <aul_comp_context.h>
#include <aul_cmd.h>
+#include <aul_comp_context.h>
#include <aul_sock.h>
+#include <bundle_cpp.h>
#include <gtest/gtest.h>
#include <stdlib.h>
-#include <bundle_cpp.h>
-
#include <iostream>
#include <memory>
+#include "aul/launch.h"
#include "mock/mock_hook.h"
#include "mock/socket_mock.h"
#include "mock/test_fixture.h"
-#include "src/launch.h"
using ::testing::_;
using ::testing::DoAll;
#include <aul_cmd.h>
#include <aul_comp_info.h>
#include <aul_sock.h>
+#include <bundle_cpp.h>
#include <gtest/gtest.h>
#include <stdlib.h>
-#include <bundle_cpp.h>
-
#include <iostream>
#include <memory>
+#include "aul/launch.h"
#include "mock/mock_hook.h"
#include "mock/socket_mock.h"
#include "mock/test_fixture.h"
#include "mock/vconf_mock.h"
-#include "src/launch.h"
using ::testing::_;
using ::testing::DoAll;
#include <aul_cmd.h>
#include <aul_comp_status.h>
#include <aul_sock.h>
+#include <bundle_cpp.h>
#include <gtest/gtest.h>
#include <stdlib.h>
-#include <bundle_cpp.h>
-
#include <iostream>
#include <memory>
+#include "aul/launch.h"
#include "mock/mock_hook.h"
#include "mock/socket_mock.h"
#include "mock/test_fixture.h"
-#include "src/launch.h"
using ::testing::_;
using ::testing::DoAll;
#include <aul_cmd.h>
#include <aul_complication.h>
#include <aul_sock.h>
+#include <bundle_cpp.h>
#include <gtest/gtest.h>
#include <stdlib.h>
-#include <bundle_cpp.h>
-
+#include "aul/launch.h"
#include "mock/mock_hook.h"
#include "mock/socket_mock.h"
#include "mock/test_fixture.h"
-#include "src/launch.h"
using ::testing::_;
using ::testing::DoAll;
#include <aul_cmd.h>
#include <aul_job_scheduler.h>
#include <aul_sock.h>
+#include <bundle_cpp.h>
#include <gtest/gtest.h>
#include <stdlib.h>
-#include <bundle_cpp.h>
-
#include <iostream>
#include <memory>
+#include "aul/launch.h"
#include "mock/mock_hook.h"
#include "mock/socket_mock.h"
#include "mock/test_fixture.h"
-#include "src/launch.h"
using ::testing::_;
using ::testing::DoAll;
* limitations under the License.
*/
+#include <aul.h>
+#include <aul_cmd.h>
+#include <aul_sock.h>
#include <bundle_cpp.h>
#include <gtest/gtest.h>
#include <stdlib.h>
#include <iostream>
#include <memory>
-#include <aul.h>
-#include <aul_sock.h>
-#include <aul_cmd.h>
-#include "launch.h"
+#include "aul/launch.h"
#include "mock/dbus_mock.h"
#include "mock/glib_mock.h"
#include "mock/mock_hook.h"
* limitations under the License.
*/
-#include <stdlib.h>
+#include <aul.h>
+#include <aul_cmd.h>
+#include <aul_sock.h>
+#include <bundle_cpp.h>
#include <gtest/gtest.h>
+#include <stdlib.h>
-#include <bundle_cpp.h>
#include <iostream>
#include <memory>
-#include <aul.h>
-#include <aul_sock.h>
-#include <aul_cmd.h>
-#include "launch.h"
+#include "aul/launch.h"
#include "mock/dbus_mock.h"
#include "mock/glib_mock.h"
#include "mock/mock_hook.h"
#include <aul_cmd.h>
#include <aul_launcher_service.h>
#include <aul_sock.h>
+#include <bundle_cpp.h>
#include <glib.h>
#include <gtest/gtest.h>
-#include <bundle_cpp.h>
-
#include <string>
+#include "aul/launch.h"
#include "mock/mock_hook.h"
#include "mock/socket_mock.h"
#include "mock/test_fixture.h"
-#include "src/launch.h"
using ::testing::_;
using ::testing::DoAll;
#include <aul.h>
#include <aul_cmd.h>
#include <aul_sock.h>
+#include <bundle_cpp.h>
#include <gtest/gtest.h>
#include <stdlib.h>
-#include <bundle_cpp.h>
-
#include <iostream>
#include <memory>
-#include "mock/mock_hook.h"
+#include "aul/launch.h"
#include "mock/glib_mock.h"
+#include "mock/mock_hook.h"
#include "mock/socket_mock.h"
#include "mock/test_fixture.h"
-#include "src/launch.h"
using ::testing::_;
using ::testing::DoAll;
#include <aul.h>
#include <aul_cmd.h>
#include <aul_sock.h>
-#include <gtest/gtest.h>
-
#include <bundle_cpp.h>
+#include <gtest/gtest.h>
+#include "aul/launch.h"
#include "mock/mock_hook.h"
#include "mock/socket_mock.h"
#include "mock/test_fixture.h"
-#include "src/launch.h"
using ::testing::_;
using ::testing::DoAll;
*/
#include <aul.h>
-#include <aul_watchdog.h>
#include <aul_cmd.h>
#include <aul_sock.h>
+#include <aul_watchdog.h>
+#include <bundle_cpp.h>
#include <gtest/gtest.h>
#include <stdlib.h>
-#include <bundle_cpp.h>
-
#include <iostream>
#include <memory>
+#include "aul/launch.h"
#include "mock/mock_hook.h"
#include "mock/socket_mock.h"
#include "mock/test_fixture.h"
-#include "src/launch.h"
using ::testing::_;
using ::testing::DoAll;
+++ /dev/null
-SET(TARGET_APP_COM_TOOL "app_com_tool")
-
-ADD_EXECUTABLE(${TARGET_APP_COM_TOOL} ${CMAKE_CURRENT_SOURCE_DIR}/app_com_tool.c)
-SET_TARGET_PROPERTIES(${TARGET_APP_COM_TOOL} PROPERTIES COMPILE_FLAGS ${CFLAGS} "-fPIE")
-SET_TARGET_PROPERTIES(${TARGET_APP_COM_TOOL} PROPERTIES LINK_FLAGS "-pie")
-TARGET_LINK_LIBRARIES(${TARGET_APP_COM_TOOL} PRIVATE ${TARGET_AUL})
-
-TARGET_INCLUDE_DIRECTORIES(${TARGET_APP_COM_TOOL} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../src)
-TARGET_INCLUDE_DIRECTORIES(${TARGET_APP_COM_TOOL} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../include)
-
-INSTALL(TARGETS ${TARGET_APP_COM_TOOL} DESTINATION bin)
+++ /dev/null
-SET(TARGET_APP_GROUP_INFO "appgroup_info")
-
-ADD_EXECUTABLE(${TARGET_APP_GROUP_INFO} ${CMAKE_CURRENT_SOURCE_DIR}/app_group_info.c)
-SET_TARGET_PROPERTIES(${TARGET_APP_GROUP_INFO} PROPERTIES COMPILE_FLAGS ${CFLAGS} "-fPIE")
-SET_TARGET_PROPERTIES(${TARGET_APP_GROUP_INFO} PROPERTIES LINK_FLAGS "-pie")
-TARGET_LINK_LIBRARIES(${TARGET_APP_GROUP_INFO} PRIVATE ${TARGET_AUL})
-
-TARGET_INCLUDE_DIRECTORIES(${TARGET_APP_GROUP_INFO} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../src)
-TARGET_INCLUDE_DIRECTORIES(${TARGET_APP_GROUP_INFO} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../include)
-
-INSTALL(TARGETS ${TARGET_APP_GROUP_INFO} DESTINATION bin)
+++ /dev/null
-SET(TARGET_APPID2PID "appid2pid")
-
-ADD_EXECUTABLE(${TARGET_APPID2PID} ${CMAKE_CURRENT_SOURCE_DIR}/appid2pid.c)
-SET_TARGET_PROPERTIES(${TARGET_APPID2PID} PROPERTIES COMPILE_FLAGS ${CFLAGS} "-fPIE")
-SET_TARGET_PROPERTIES(${TARGET_APPID2PID} PROPERTIES LINK_FLAGS "-pie")
-TARGET_LINK_LIBRARIES(${TARGET_APPID2PID} PRIVATE ${TARGET_AUL})
-
-TARGET_INCLUDE_DIRECTORIES(${TARGET_APPID2PID} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../src)
-TARGET_INCLUDE_DIRECTORIES(${TARGET_APPID2PID} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../include)
-
-INSTALL(TARGETS ${TARGET_APPID2PID} DESTINATION bin)
+++ /dev/null
-SET(TARGET_COMPMGR_TOOL "compmgr_tool")
-
-ADD_EXECUTABLE(${TARGET_COMPMGR_TOOL} ${CMAKE_CURRENT_SOURCE_DIR}/compmgr_tool.c)
-SET_TARGET_PROPERTIES(${TARGET_COMPMGR_TOOL} PROPERTIES COMPILE_FLAGS ${CFLAGS} "-fPIE")
-SET_TARGET_PROPERTIES(${TARGET_COMPMGR_TOOL} PROPERTIES LINK_FLAGS "-pie")
-TARGET_LINK_LIBRARIES(${TARGET_COMPMGR_TOOL} PRIVATE ${TARGET_AUL})
-
-TARGET_INCLUDE_DIRECTORIES(${TARGET_COMPMGR_TOOL} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../src)
-TARGET_INCLUDE_DIRECTORIES(${TARGET_COMPMGR_TOOL} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../include)
-
-INSTALL(TARGETS ${TARGET_COMPMGR_TOOL} DESTINATION bin)
+++ /dev/null
-SET(TARGET_LAUNCH_APP "launch_app")
-
-ADD_EXECUTABLE(${TARGET_LAUNCH_APP} ${CMAKE_CURRENT_SOURCE_DIR}/launch_app.c)
-SET_TARGET_PROPERTIES(${TARGET_LAUNCH_APP} PROPERTIES COMPILE_FLAGS ${CFLAGS} "-fPIE")
-SET_TARGET_PROPERTIES(${TARGET_LAUNCH_APP} PROPERTIES LINK_FLAGS "-pie")
-TARGET_LINK_LIBRARIES(${TARGET_LAUNCH_APP} PRIVATE ${TARGET_AUL})
-
-TARGET_INCLUDE_DIRECTORIES(${TARGET_LAUNCH_APP} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../src)
-TARGET_INCLUDE_DIRECTORIES(${TARGET_LAUNCH_APP} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../include)
-
-INSTALL(TARGETS ${TARGET_LAUNCH_APP} DESTINATION bin)