summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTadao Tanikawa <tanikawa.tadao@jp.panasonic.com>2017-12-18 22:17:20 +0900
committerTadao Tanikawa <tanikawa.tadao@jp.panasonic.com>2017-12-18 23:14:06 +0900
commitf1a2e631ef4f9789bfa70509f21d2b5cdd30fa92 (patch)
treec6ae1e41ae8e7bdc593bb8aeea84a701ac5a81e1
parentbb595dc5286a2a41e81cac530d0b4550ffa35441 (diff)
Fix CMakeLists.txt to build in bitbake tree
Fix and clean up CMakeLists.txt Change-Id: I2cf4f2523ff0e2834be90084bc30825ebfbda702 Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
-rw-r--r--CMakeLists.txt74
1 files changed, 31 insertions, 43 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 196e7f5..0021575 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,72 +1,60 @@
-project (runxdg)
-
cmake_minimum_required(VERSION 3.0)
+project (runxdg)
-set(PROJECT_NAME "runxdg")
set(PROJECT_PRETTY_NAME "Run XDG Application")
set(PROJECT_MAJOR_VERSION "1.0")
set(PROJECT_MINOR_VERSION "1")
set(PROJECT_VERSION "${PROJECT_MAJOR_VERSION}.${PROJECT_MINOR_VERSION}")
-add_definitions(-DTARGET_APP_ID=${TARGET_APP_ID})
-add_definitions(-DRUNXDG_NAME=${RUNXDG_NAME})
-
-set(CMAKE_CXX_FLAGS "-Wall -fpermissive")
-
find_package(PkgConfig REQUIRED)
pkg_check_modules(GLIB REQUIRED glib-2.0)
pkg_check_modules(GIO REQUIRED gio-2.0)
-pkg_check_modules(GMODULE REQUIRED gmodule-2.0)
-
-INCLUDE(FindPkgConfig)
-
-INCLUDE_DIRECTORIES(
- include
- ${GLIB_INCLUDE_DIRS}
- ${GIO_INCLUDE_DIRS}
+pkg_check_modules(ILMCONTROL REQUIRED ilmControl)
+
+# No configuration
+# configure_file (
+# "${PROJECT_SOURCE_DIR}/config.h.in"
+# "${PROJECT_BINARY_DIR}/config.h"
+# )
+#
+# include_directories("${PROJECT_BINARY_DIR}")
+
+include_directories(
+ "include"
+ "${ILMCONTROL_INCLUDE_DIRS}"
+ "${GLIB_INCLUDE_DIRS}"
+ "${GIO_INCLUDE_DIRS}"
)
-LINK_DIRECTORIES(
- ${GLIB_LIBRARY_DIRS}
- ${GIO_LIBRARY_DIRS}
- )
+SET(SRC_FILES
+ src/runxdg.cpp
+)
SET(LIBRARIES
- libwindowmanager.so
- libhomescreen.so
- libilmControl.so
- libilmCommon.so
- libafbwsc.so
- libjson-c.so
- libEGL.so
- libGLESv2.so
- libwayland-egl.so
- libwayland-client.so
- libpthread.so
+ windowmanager
+ homescreen
+ ${ILMCONTROL_LIBRARIES}
+ afbwsc
+ json-c
+ pthread
${GLIB_LIBRARIES}
${GIO_LIBRARIES}
-)
+ )
-SET(SRC_FILES
- src/runxdg.cpp
-)
+add_executable (runxdg ${SRC_FILES})
-add_executable(${PROJECT_NAME} ${SRC_FILES})
+TARGET_LINK_LIBRARIES (runxdg ${LIBRARIES})
-TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${LIBRARIES})
+install (TARGETS runxdg DESTINATION bin)
-add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD
+add_custom_command(TARGET runxdg POST_BUILD
COMMAND cp -rf ${CMAKE_CURRENT_SOURCE_DIR}/package ${PROJECT_BINARY_DIR})
add_custom_target(widget
-
+ # simple egl
COMMAND wgtpkg-pack -f -o ${PROJECT_BINARY_DIR}/package/simple-egl.wgt ${PROJECT_BINARY_DIR}/package/simple-egl
-
# override hvac to test runxdg
COMMAND wgtpkg-pack -f -o ${PROJECT_BINARY_DIR}/package/hvac.wgt ${PROJECT_BINARY_DIR}/package/hvac
-
# override navigation to test runxdg
COMMAND wgtpkg-pack -f -o ${PROJECT_BINARY_DIR}/package/navi.wgt ${PROJECT_BINARY_DIR}/package/navi
)
-
-install (TARGETS ${PROJECT_NAME} DESTINATION bin)
nd-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ }
SUMMARY = "Cross SDK of Full AGL Distribution for IVI profile"

DESCRIPTION = "SDK image for full AGL Distribution for IVI profile. \
It includes the full meta-toolchain, plus developement headers and libraries \
to form a standalone cross SDK."

#require agl-image-graphical-qt5.bb
require recipes-platform/images/agl-image-weston.inc


LICENSE = "MIT"

require recipes-platform/images/agl-image-minimal-crosssdk.inc

# Add wayland-scanner to SDK (SPEC-945)
# Use TOOLCHAIN_HOST_TASK instead of adding to the packagegroup
# wayland-scanner is in nativesdk-wayland-dev !
# option: add also nativesdk-qtwayland-tools
TOOLCHAIN_HOST_TASK:append = " nativesdk-wayland nativesdk-wayland-dev"

TOOLCHAIN_HOST_TASK:append = " nativesdk-perl-modules "

# Add qtwaylandscanner to the SDK
TOOLCHAIN_HOST_TASK:append = " nativesdk-qtwayland-tools "


inherit populate_sdk populate_sdk_qt5

# Task do_populate_sdk and do_rootfs can't be exec simultaneously.
# Both exec "createrepo" on the same directory, and so one of them
# can failed (randomly).
addtask do_populate_sdk after do_rootfs