From af35d1157aa42a8659dcc68e7bf893f142c89719 Mon Sep 17 00:00:00 2001 From: Krzysztof Wieclaw Date: Fri, 12 Oct 2018 20:05:43 +0200 Subject: [PATCH] Cleaned platform build remainders Change-Id: Ia95dc4084368d8e2f59bbd7682fd3141e68ce636 Signed-off-by: Krzysztof Wieclaw --- CMakeLists.txt | 58 ------------------------------- inc/utils.h | 27 --------------- packaging/car-controller.spec | 81 ------------------------------------------- 3 files changed, 166 deletions(-) delete mode 100644 CMakeLists.txt delete mode 100644 inc/utils.h delete mode 100644 packaging/car-controller.spec diff --git a/CMakeLists.txt b/CMakeLists.txt deleted file mode 100644 index 421e804..0000000 --- a/CMakeLists.txt +++ /dev/null @@ -1,58 +0,0 @@ -CMAKE_MINIMUM_REQUIRED(VERSION 2.6) -PROJECT(${P_NAME} C) - -SET(INSTALL_EXEC_PREFIX "${INSTALL_PREFIX}/bin") -SET(CMAKE_VERBOSE_MAKEFILE 0) - -SET(PROJECT_ROOT_DIR "${CMAKE_SOURCE_DIR}") -SET(PROJECT_RESOURCES_DIR "${PROJECT_ROOT_DIR}/res") - -INCLUDE(FindPkgConfig) -pkg_check_modules(APP_PKGS REQUIRED - dlog - capi-appfw-application - capi-ui-efl-util - elementary - efl-extension - capi-system-sensor -) - -FOREACH (flag ${APP_PKGS_CFLAGS}) - SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}") -ENDFOREACH(flag) - -SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -fvisibility=hidden -Wall -Winline -g -fno-builtin-malloc -fPIE") -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}") -SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -pie") - -INCLUDE_DIRECTORIES(${PROJECT_ROOT_DIR}/inc) - -ADD_EXECUTABLE(${PROJECT_NAME} - ${PROJECT_ROOT_DIR}/src/app.c - ${PROJECT_ROOT_DIR}/src/communication_center.c - ${PROJECT_ROOT_DIR}/src/communication_by_udp.c - ${PROJECT_ROOT_DIR}/src/view.c - ${PROJECT_ROOT_DIR}/src/resource.c - ${PROJECT_ROOT_DIR}/src/resource_accelerometer.c -) - -ADD_CUSTOM_COMMAND(OUTPUT app.edj - COMMAND edje_cc -id ${CMAKE_SOURCE_DIR}/res/images/ - ${CMAKE_SOURCE_DIR}/res/edje/app.edc ${CMAKE_BINARY_DIR}/app.edj - DEPENDS ${CMAKE_SOURCE_DIR}/res/edje/app.edc -) - -ADD_CUSTOM_TARGET(edj_build DEPENDS app.edj) -ADD_DEPENDENCIES(${PROJECT_NAME} edj_build) - -TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_LDFLAGS} -lm) -TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${APP_PKGS_LDFLAGS}) - -CONFIGURE_FILE(${PROJECT_ROOT_DIR}/tizen-manifest.xml.in ${ORG_PREFIX}.${PROJECT_NAME}.xml @ONLY) -# Install -INSTALL(TARGETS ${PROJECT_NAME} DESTINATION ${INSTALL_EXEC_PREFIX}) -INSTALL(FILES ${ORG_PREFIX}.${PROJECT_NAME}.xml DESTINATION ${SYS_PACKAGES_DIR}) -INSTALL(FILES ${PROJECT_ROOT_DIR}/shared/res/default_icon.png DESTINATION ${SYS_ICONS_DIR} RENAME ${PROJECT_NAME}.png) -INSTALL(FILES ${CMAKE_BINARY_DIR}/app.edj DESTINATION /usr/apps/${ORG_PREFIX}.${PROJECT_NAME}/res/edje) - -# End of a file diff --git a/inc/utils.h b/inc/utils.h deleted file mode 100644 index f0fa69e..0000000 --- a/inc/utils.h +++ /dev/null @@ -1,27 +0,0 @@ -/* -* Copyright (c) 2018 Samsung Electronics Co., Ltd. -* -* Licensed under the Flora License, Version 1.1 (the License); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://floralicense.org/license/ -* -* 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. -*/ - - -#ifndef UTILS_H_ -#define UTILS_H_ - -void app_get_resource(const char *edj_file_in, char *edj_path_out); -Evas_Object *create_button(Evas_Object *parent, char *part, char *text, char *image_path, char *style, Evas_Smart_Cb callback, void *data); -Evas_Object *create_image(Evas_Object *parent, char *path); -Evas_Object *create_layout(Evas_Object *parent, char *edj_file, char *group); -void get_screen_size(int *width, int *height); - -#endif /* UTILS_H_ */ diff --git a/packaging/car-controller.spec b/packaging/car-controller.spec deleted file mode 100644 index a7a559d..0000000 --- a/packaging/car-controller.spec +++ /dev/null @@ -1,81 +0,0 @@ -%define P_NAME car-controller -%define ORG_PREFIX org.tizen -%define APP_LABEL "Car Controller" - -Name: %{ORG_PREFIX}.%{P_NAME} -%define alias %{name} -Summary: Car Application -Version: 0.0.1 -Release: 1 -License: Flora-1.1 -Provides: %{name} = %{version}-%{release} -Source0: %{name}-%{version}.tar.gz - -BuildRequires: cmake -BuildRequires: hash-signer -BuildRequires: pkgconfig(elementary) -BuildRequires: pkgconfig(capi-ui-efl-util) -BuildRequires: pkgconfig(capi-appfw-application) -BuildRequires: pkgconfig(efl-extension) -BuildRequires: pkgconfig(capi-system-sensor) -BuildRequires: pkgconfig(dlog) - -%description -Car Controller application - -%prep -%setup -q - -%build - -%define _pkg_dir %{TZ_SYS_RO_APP}/%{alias} -%define _pkg_shared_dir %{_pkg_dir}/shared -%define _pkg_data_dir %{_pkg_dir}/data -%define _pkg_res_dir %{_pkg_dir}/res -%define _sys_icons_dir %{_pkg_shared_dir}/res -%define _sys_packages_dir %{TZ_SYS_RO_PACKAGES} -%define _sys_license_dir %{TZ_SYS_SHARE}/license - - -%ifarch %{arm} -export CFLAGS="$CFLAGS -DTIZEN_BUILD_TARGET" -export CXXFLAGS="$CXXFLAGS -DTIZEN_BUILD_TARGET" -export FFLAGS="$FFLAGS -DTIZEN_BUILD_TARGET" -%else -export CFLAGS="$CFLAGS -DTIZEN_BUILD_EMULATOR" -export CXXFLAGS="$CXXFLAGS -DTIZEN_BUILD_EMULATOR" -export FFLAGS="$FFLAGS -DTIZEN_BUILD_EMULATOR" -%endif - -cmake . -DP_NAME=%{P_NAME} \ - -DORG_PREFIX=%{ORG_PREFIX} \ - -DAPP_LABEL=%{APP_LABEL} \ - -DINSTALL_PREFIX=%{_pkg_dir} \ - -DSYS_ICONS_DIR=%{_sys_icons_dir} \ - -DSYS_PACKAGES_DIR=%{_sys_packages_dir} \ - -make %{?jobs:-j%jobs} - -%install -%make_install - -%define tizen_sign 1 -%define tizen_sign_base %{_pkg_dir} -%define tizen_sign_level platform -%define tizen_author_sign 1 -%define tizen_dist_sign 1 - -%post -/sbin/ldconfig - -%postun -p /sbin/ldconfig - -%files -%manifest %{alias}.manifest -%defattr(-,root,root,-) -%{_pkg_dir}/bin/%{P_NAME} -%{_sys_packages_dir}/%{alias}.xml -%{_sys_icons_dir}/*.png -%{_pkg_dir}/author-signature.xml -%{_pkg_dir}/signature1.xml -%{_pkg_res_dir}/edje/app.edj -- 2.7.4