From 37e2801641c59f07a232fe3b6c92cda5dac27b28 Mon Sep 17 00:00:00 2001 From: "shingil.kang" Date: Tue, 14 Jan 2014 21:41:12 +0900 Subject: [PATCH] CLI: used OS dependent 'org.eclipse.cdt.core' package The 'org.eclipse.cdt.core' package depends on the OS Change-Id: I97b4a17e199813c1441edbe25740231fac38f95e Signed-off-by: shingil.kang --- package/build.linux | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/package/build.linux b/package/build.linux index 69b8937..f22a206 100755 --- a/package/build.linux +++ b/package/build.linux @@ -243,7 +243,6 @@ new_native_cli_build() { SRC_LIST=" org.eclipse.cdt.core_* - org.eclipse.cdt.core.linux.x86_* org.eclipse.cdt.managedbuilder.core_* org.tizen.nativecommon_* org.tizen.nativecpp.misc_* @@ -252,12 +251,38 @@ new_native_cli_build() { org.tizen.nativecpp_* org.tizen.nativecpp.template_* " - + SRC_LIST_LINUX=" + org.eclipse.cdt.core.linux.x86_* + " + SRC_LIST_WINDOWS=" + org.eclipse.cdt.core.win32_* + " for SRC in ${SRC_LIST} do TARGET=`find $ROOTDIR -name "${SRC}" | head -1` cp -r ${TARGET} ${NCLI_NATIVE_LIB} done + + case ${TARGET_OS} in + ubuntu-32|ubuntu-64|macos-64) + for SRC in ${SRC_LIST_LINUX} + do + TARGET=`find $ROOTDIR -name "${SRC}" | head -1` + cp -r ${TARGET} ${NCLI_NATIVE_LIB} + done + ;; + windows-32|windows-64) + for SRC in ${SRC_LIST_WINDOWS} + do + TARGET=`find $ROOTDIR -name "${SRC}" | head -1` + cp -r ${TARGET} ${NCLI_NATIVE_LIB} + done + ;; + *) + echo "${TARGET_OS} is not support yet." + exit 1 + ;; + esac } new_cli_jar_build() -- 2.7.4