/* * Common * * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. * * Contact: * Kangho Kim * Hyunsik Noh * Yoonki Park * * 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. * * Contributors: * - S-Core Co., Ltd * */ package org.tizen.common; import org.tizen.common.util.OSChecker; /** * All constant definitions related Tizen Platform such as Emulator or Device. * @author Kangho Kim {@literal } (S-Core) */ public class TizenPlatformConstants { // Definitions for common public static final String LOCALHOST = "127.0.0.1"; public static final String ENVIRONMENT_SETTING_CMD = "export "; public static final String CMD_RESULT_CHECK = "; echo $?;"; public static final String CMD_RESULT_PREFIX = "cmd_ret:"; public static final String CMD_SUFFIX = "; echo "+CMD_RESULT_PREFIX+"$?;"; public static final String CMD_SUCCESS = CMD_RESULT_PREFIX+"0"; public static final String CMD_FAILURE = CMD_RESULT_PREFIX+"1"; public static final int OS = OSChecker.LINUX; // Definitions for building // Definitions for packaging public static final String PACKAGENAME_PREFIX = "org.tizen"; public static final String DEBIAN_INSTALL_PATH = "opt/*"; // Definitions for debugging public static final String PUBICL_PLATFORM_CORE_PATH = "/opt/bs/core"; public static final String PRIVATE_PLATFORM_CORE_PATH = "/opt/share/hidden_storage/SLP_debug"; public static final String GDBSERVER_CMD = TizenPlatformConstants.TOOLS_TARGET_PATH + "/gdbserver/gdbserver"; public static final String GDBSERVER_PLATFORM_CMD = TizenPlatformConstants.TOOLS_TARGET_PATH + "/gdbserver-platform/gdbserver"; public static final String ATTACH_OPTION = " --attach "; // Definitions for installing public static final String APP_INSTALL_PATH = "/opt/apps"; public static final String TEMPORARY_PKG_PATH = "/opt/apps/PKGS/"; public static final String PKG_TOOL_LIST_COMMAND = "pkgcmd -l | grep %s"; public static final String PKG_TOOL_REMOVE_COMMAND = "pkgcmd -q -u -t %s -n %s"; public static final String PKG_TOOL_INSTALL_COMMAND = "pkgcmd -q -i -t %s -p %s"; // Definitions for launching public static final String LAUNCH_CMD = "launch_app %s"; public static final String LAUNCH_CMD_SUCCESS = "... successfully launched"; public static final String LAUNCH_CMD_FAILURE = "... launch failed"; public static final String ELM_SCALE_GETTER = "/home/developer/sdk_tools/elm_scale_getter/get_elm_scale ";//FIXME : have to be removed // Definitions for ondemand install public static final String CONTROL_EXTENSION = ".control"; public static final String TOOLS_TARGET_PATH = "/home/developer/sdk_tools"; // Definitions for others public static final String CODE_COVERAGE_BUILD_OPTION = "-fprofile-arcs -ftest-coverage"; public static final String CODE_COVERAGE_LAUNCH_OPTION = " __AUL_SDK__ CODE_COVERAGE"; }