From: Jaewon Lim Date: Thu, 27 Sep 2012 09:29:28 +0000 (+0900) Subject: [Title] add branding file for profiler X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d0e99074084dae94a85c57c672f72423a1baf8c9;p=sdk%2Fide%2Fprofiler-eplugin.git [Title] add branding file for profiler [Type] support [Module] profiler eplugin [Priority] major [Jira#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] --- diff --git a/org.tizen.profiler.branding/.project b/org.tizen.profiler.branding/.project new file mode 100644 index 0000000..a53f985 --- /dev/null +++ b/org.tizen.profiler.branding/.project @@ -0,0 +1,22 @@ + + + org.tizen.profiler.branding + + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.pde.PluginNature + + diff --git a/org.tizen.profiler.branding/32_TIZEN_SDK_icon.png b/org.tizen.profiler.branding/32_TIZEN_SDK_icon.png new file mode 100644 index 0000000..e511542 Binary files /dev/null and b/org.tizen.profiler.branding/32_TIZEN_SDK_icon.png differ diff --git a/org.tizen.profiler.branding/META-INF/MANIFEST.MF b/org.tizen.profiler.branding/META-INF/MANIFEST.MF new file mode 100644 index 0000000..eb318d9 --- /dev/null +++ b/org.tizen.profiler.branding/META-INF/MANIFEST.MF @@ -0,0 +1,6 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: Tizen SDK Profiling Tools +Bundle-SymbolicName: org.tizen.profiler.branding +Bundle-Version: 1.0.0.qualifier +Bundle-Vendor: Tizen SDK diff --git a/org.tizen.profiler.branding/about.ini b/org.tizen.profiler.branding/about.ini new file mode 100644 index 0000000..fc8fa16 --- /dev/null +++ b/org.tizen.profiler.branding/about.ini @@ -0,0 +1,32 @@ +# about.ini +# contains information about a feature +# java.io.Properties file (ISO 8859-1 with "\" escapes) +# "%key" are externalized strings defined in about.properties +# This file does not need to be translated. + +# Property "aboutText" contains blurb for "About" dialog (translated) +aboutText=%blurb + +# Property "windowImage" contains path to window icon (16x16) +# needed for primary features only + +# Property "featureImage" contains path to feature image (32x32) +featureImage=32_TIZEN_SDK_icon.png + +# Property "aboutImage" contains path to product image (500x330 or 115x164) +# needed for primary features only + +# Property "appName" contains name of the application (translated) +# needed for primary features only + +# Property "welcomePage" contains path to welcome page (special XML-based format) +# welcomePage=$nl$/welcome.xml + +# Property "welcomePerspective" contains the id of the perspective in which the +# welcome page is to be opened. +# optional + +# Property "tipsAndTricksHref" contains the Help topic href to a tips and tricks page +# optional +# tipsAndTricksHref=/org.tizen.doc.user/tips/tizen_tips.htm + diff --git a/org.tizen.profiler.branding/about.mappings b/org.tizen.profiler.branding/about.mappings new file mode 100644 index 0000000..bd5dc17 --- /dev/null +++ b/org.tizen.profiler.branding/about.mappings @@ -0,0 +1,6 @@ +# about.mappings +# contains fill-ins for about.properties and bundle.properties +# java.io.Properties file (ISO 8859-1 with "\" escapes) +# This file does not need to be translated. +0=Tzen SDK Profiling Tools +1=date-time diff --git a/org.tizen.profiler.branding/about.properties b/org.tizen.profiler.branding/about.properties new file mode 100644 index 0000000..5c2e80a --- /dev/null +++ b/org.tizen.profiler.branding/about.properties @@ -0,0 +1,12 @@ +# about.properties +# contains externalized strings for about.ini +# java.io.Properties file (ISO 8859-1 with "\" escapes) +# fill-ins are supplied by about.mappings +# This file should be translated. + +blurb={0}\n\ +\n\ +Version : {featureVersion}\n\ +Build id : {1}\n\ +\n\ +Visit https://developer.tizen.org \n \ No newline at end of file diff --git a/org.tizen.profiler.branding/build.properties b/org.tizen.profiler.branding/build.properties new file mode 100644 index 0000000..3672726 --- /dev/null +++ b/org.tizen.profiler.branding/build.properties @@ -0,0 +1,5 @@ +bin.includes = META-INF/,\ + about.ini,\ + about.mappings,\ + about.properties,\ + 32_TIZEN_SDK_icon.png diff --git a/org.tizen.profiler.feature/feature.xml b/org.tizen.profiler.feature/feature.xml index 1ab302c..e26e6dd 100644 --- a/org.tizen.profiler.feature/feature.xml +++ b/org.tizen.profiler.feature/feature.xml @@ -4,7 +4,7 @@ label="%featureName" version="1.0.0.qualifier" provider-name="%providerName" - plugin="org.tizen.base.platform" + plugin="org.tizen.profiler.branding" license-feature="org.tizen.base.feature"> @@ -149,4 +149,10 @@ version="0.0.0" unpack="false"/> + + diff --git a/package/build.linux b/package/build.linux index dfaf4a8..7bca81c 100755 --- a/package/build.linux +++ b/package/build.linux @@ -1,294 +1,25 @@ -#!/bin/bash -x - -build_path=${SRCDIR}/build_result -build_time=`date +%Y%m%d-%H%M` - -__set_parameter() -{ - build_id=${package_name} - build_type=N - build_result_directory=${build_type}.${build_id} - build_result_path="$build_path/$build_result_directory" - ide_root_path_name=ide - - case ${platform} in - ubuntu-32) - archive_platform_name=linux - windowing=gtk - architecture=x86 - os=linux - ;; - windows-32) - archive_platform_name=win32 - windowing=win32 - architecture=x86 - os=windows - ;; - ubuntu-64) - archive_platform_name=linux - windowing=gtk - architecture=x86_64 - os=linux - ;; - windows-64) - archive_platform_name=win32 - windowing=win32 - architecture=x86_64 - os=windows - ;; - macos-64) - archive_platform_name=macosx - windowing=cocoa - architecture=x86_64 - os=macos - ;; - *) - echo "${platform} is not support yet." - ;; - esac - - result_archive_file=${build_id}-${archive_platform_name}.${windowing}.${architecture}.zip -} - -__set_build_parameter() -{ - manifest_version=`grep Version: ${SRCDIR}/package/pkginfo.manifest | cut -f2 -d":" | head -n 1` - - - - - case ${platform} in - ubuntu-32|ubuntu-64) - reference_ide_path=${ROOTDIR}/indigo-pde/eclipse - ;; - windows-32|windows-64) - reference_ide_path=${ROOTDIR}/indigo-winpde/eclipse - ;; - macos-64) - reference_ide_path=${ROOTDIR}/indigo-macpde/eclipse - ;; - *) - echo "${platform} is not support yet." - ;; - esac -} - -__set_install_parameter() -{ - INSTALL_DIR=${SRCDIR}/package/${package_name}.package.${platform}/data -} - -__clean_build_environment() -{ - if [ -d $build_path ] - then - echo "Build result directory : [$build_path]" - else - echo "Make build result directory [$build_path]" - mkdir -p $build_path - fi - - echo "Remove legacy build files..." - if [ -d ${build_result_path}/${archive_platform_name}.${windowing}.${architecture} ] - then - rm -rf ${build_result_path}/${archive_platform_name}.${windowing}.${architecture} - fi - if [ -e ${build_result_path}/${result_archive_file} ] - then - rm -rf ${build_result_path}/${result_archive_file} - fi - if [ -d ${build_path}/tmp ] - then - rm -rf ${build_path}/tmp - fi - - if [ -d ${build_path}/buildRepo ] - then - rm -rf ${build_path}/buildRepo - fi - - rm -rf ${build_path}/*.xml - rm -rf ${build_path}/*.properties - rm -rf ${build_path}/*.clean - - - if [ -d $build_path/plugins ] - then - echo "plugins directory recreate..." - rm -rf $build_path/plugins - mkdir $build_path/plugins - else - echo "Make plugins directory..." - mkdir $build_path/plugins - fi - if [ -d $build_path/features/ ] - then - echo "features directory recreate..." - rm -rf $build_path/features - mkdir $build_path/features - else - echo "Make features directory..." - mkdir $build_path/features - fi - -} - -__copy_build_sources() -{ - echo "Copy features from $SRCDIR to $build_path/features" - temp_dir="`mktemp -d /tmp/ide.XXXXX`" - cp -r ${SRCDIR}/* $temp_dir - cp -r $temp_dir/* $build_path/features - rm -rf $temp_dir - - echo "Copy plugins from $SRCDIR to $build_path/plugins" - temp_dir="`mktemp -d /tmp/ide.XXXXX`" - cp -r $SRCDIR/* $temp_dir - cp -r $temp_dir/* $build_path/plugins -# rm -rf $build_path/plugins/*.feature - rm -rf $temp_dir -} - -__copy_dependency_plugins() -{ - dependency_plugin_path=${ROOTDIR}/${ide_root_path_name} - if [ -d ${dependency_plugin_path} ] - then - cp -rf ${dependency_plugin_path}/features/* ${build_path}/features/ - cp -rf ${dependency_plugin_path}/plugins/* ${build_path}/plugins/ - fi -} - -__make_ant_build_properties_file() -{ - builder_path="${SRCDIR}/builder" - parent_path_of_based_eclipse=${reference_ide_path}/.. - - echo "Make build.properties file..." - if [ ! -e $builder_path/build.properties.clean ] ; then - echo "ERROR : \"build.properties.clean\" file does not exist..." - exit 1 - fi - cp $builder_path/build.properties.clean $build_path - cp $builder_path/customTargets.xml $build_path - - if [ -d $reference_ide_path ] - then - sed -e "s;\(^buildDirectory=\).*;\1${build_path};g" \ - -e "s;\(^base=\).*;\1${parent_path_of_based_eclipse};g" \ - -e "s;\(^baseLocation=\).*;\1${reference_ide_path};g" \ - -e "s;\(^configs=\).*;\1${archive_platform_name},${windowing},${architecture};g" \ - -e "s;\(^buildType=\).*;\1${build_type};g" \ - -e "s;\(^buildId=\).*;\1${build_id};g" \ - -e "s;\(^archivePrefix=\).*;\1${build_id};g" \ - < $build_path/build.properties.clean > $build_path/build.properties - - else - echo "ERROR : target eclipse is not exist." - exit 1 - fi -} - -__execute_pde_build() -{ - echo "Execute Product Ant Builder..." - equinox_launcher=`echo org.eclipse.equinox.launcher_*.jar` - pde_build=`echo org.eclipse.pde.build_*` - - java -server -XX:+UseParNewGC -jar ${reference_ide_path}/plugins/$equinox_launcher -application org.eclipse.ant.core.antRunner -buildfile ${reference_ide_path}/plugins/$pde_build/scripts/productBuild/productBuild.xml -Dbuilder=$build_path -Dosgi.locking=none 2>&1 - - if [ $? != 0 ]; - then - echo "Build failed..." - exit 1 - fi -} - -__unzip_plugin_pack() -{ - echo "unzip to $build_result_path" - unzip -a $build_result_path/${result_archive_file} -d $build_result_path/${archive_platform_name}.${windowing}.${architecture} -} - -build_plugins() -{ - case ${platform} in - ubuntu-32|ubuntu-64) - echo "build plugin for ${platform}" - ;; - windows-32|windows-64) - echo "build plugin for ${platform}" - ;; - macos-64) - echo "build plugin for ${platform}" - ;; - *) - echo "${platform} is not support yet." - exit 1 - ;; - esac - - __set_parameter - __set_build_parameter - __clean_build_environment - __copy_build_sources - __copy_dependency_plugins - __make_ant_build_properties_file - __execute_pde_build - __unzip_plugin_pack - - echo "Build SUCCESS. You will find SDK IDE in \"${build_result_path}\"." -} - -__clean_packaging_environment() -{ - - if [ -d ${INSTALL_DIR} ] - then - rm -rf ${INSTALL_DIR} - else - mkdir -p ${INSTALL_DIR} - fi -} +#!/bin/bash -xe __copy_necessary_binaries() { - ## 패키징시 필요한 파일이 있으면 여기에 구현하시면 됩니다. - ## 파일을 복사할 위치는 ${INSTALL_DIR} 아래에 원하는 위치로 지정하시면 됩니다. - ## INSTALL_DIR의 값은 "${git repository 위치}/package/${package_name}.package.${platform}/data" 로 되어있습니다. - ## ex) cp -rf ~~~~/file.file ${INSTALL_DIR}/${ide_root_path_name}/ + echo "add necessary files" - builder_data_path="${SRCDIR}/builder/metadata/data" - cp -rf ${builder_data_path}/* ${INSTALL_DIR}/ - - echo "add necessary files." +# builder_data_path="${SRCDIR}/builder/metadata/data" +# cp -rf ${builder_data_path}/* ${INSTALL_DIR}/ } -packaging_plugins() +__set_parameter() { - __set_parameter - __set_install_parameter - - __clean_packaging_environment - __copy_necessary_binaries - - install_ide_path=${INSTALL_DIR}/${ide_root_path_name} - - if [ ! -d ${install_ide_path} ] - then - mkdir -p ${install_ide_path} - fi - - cp -rf ${build_result_path}/${archive_platform_name}.${windowing}.${architecture}/${package_name}/* ${install_ide_path}/ + echo "TARGET OS : ${TARGET_OS}" + build_script_path=${ROOTDIR}/pde-build } # clean clean() { echo "=========================================CLEAN============================================" - rm -rf ${SRCDIR}/*.zip - rm -rf ${SRCDIR}/*.tar.gz - rm -rf ${build_path} + __set_parameter + ${build_script_path}/clean.sh ${package_name} } # build @@ -302,9 +33,10 @@ build() package_name=`echo ${pkgname_and_platform} | cut -f1 -d " " | cut -f2 -d ":"` platform=`echo ${pkgname_and_platform} | cut -f2 -d " " | cut -f2 -d ":"` - if [ "x${BUILD_TARGET_OS}" = "x${platform}" ] + if [ "x${TARGET_OS}" = "x${platform}" ] then - build_plugins + __set_parameter + ${build_script_path}/build.sh ${package_name} else echo "" fi @@ -322,9 +54,13 @@ install() package_name=`echo ${pkgname_and_platform} | cut -f1 -d " " | cut -f2 -d ":"` platform=`echo ${pkgname_and_platform} | cut -f2 -d " " | cut -f2 -d ":"` - if [ "x${BUILD_TARGET_OS}" = "x${platform}" ] + if [ "x${TARGET_OS}" = "x${platform}" ] then - packaging_plugins + __set_parameter + INSTALL_DIR=${SRCDIR}/package/${package_name}.package.${TARGET_OS}/data + mkdir -p ${INSTALL_DIR} + __copy_necessary_binaries + ${build_script_path}/install.sh ${package_name} else echo "" fi diff --git a/package/pkginfo.manifest b/package/pkginfo.manifest index 0e7a480..9c5af2b 100644 --- a/package/pkginfo.manifest +++ b/package/pkginfo.manifest @@ -1,5 +1,5 @@ Source:profiler-eplugin -Version:0.2.15 +Version:0.2.16 Maintainer:Jaewon Lim , Juyoung Kim Package:profiler-eplugin @@ -7,32 +7,32 @@ OS:ubuntu-32 Build-host-os:ubuntu-32 Description:Profiler plugin Install-dependency:base-ide-product [ubuntu-32], common-eplugin [ubuntu-32], nativecommon-eplugin [ubuntu-32] -Build-dependency:indigo-pde [ubuntu-32], common-eplugin [ubuntu-32], nativecpp-eplugin [ubuntu-32], nativecommon-eplugin [ubuntu-32] +Build-dependency:pde-build [ubuntu-32], common-eplugin [ubuntu-32], nativecpp-eplugin [ubuntu-32], nativecommon-eplugin [ubuntu-32] Package:profiler-eplugin OS:windows-32 Build-host-os:ubuntu-32 Description:Profiler plugin Install-dependency:base-ide-product [windows-32], common-eplugin [windows-32], nativecommon-eplugin [windows-32] -Build-dependency:indigo-winpde [windows-32], common-eplugin [windows-32], nativecpp-eplugin [windows-32], nativecommon-eplugin [windows-32] +Build-dependency:pde-build [windows-32], common-eplugin [windows-32], nativecpp-eplugin [windows-32], nativecommon-eplugin [windows-32] Package:profiler-eplugin OS:ubuntu-64 Build-host-os:ubuntu-64 Description:Profiler plugin Install-dependency:base-ide-product [ubuntu-64], common-eplugin [ubuntu-64], nativecommon-eplugin [ubuntu-64] -Build-dependency:indigo-pde [ubuntu-64], common-eplugin [ubuntu-64], nativecpp-eplugin [ubuntu-64], nativecommon-eplugin [ubuntu-64] +Build-dependency:pde-build [ubuntu-64], common-eplugin [ubuntu-64], nativecpp-eplugin [ubuntu-64], nativecommon-eplugin [ubuntu-64] Package:profiler-eplugin OS:windows-64 Build-host-os:ubuntu-64 Description:Profiler plugin Install-dependency:base-ide-product [windows-64], common-eplugin [windows-64], nativecommon-eplugin [windows-64] -Build-dependency:indigo-winpde [windows-64], common-eplugin [windows-64], nativecpp-eplugin [windows-64], nativecommon-eplugin [windows-64] +Build-dependency:pde-build [windows-64], common-eplugin [windows-64], nativecpp-eplugin [windows-64], nativecommon-eplugin [windows-64] Package:profiler-eplugin OS:macos-64 Build-host-os:ubuntu-64 Description:Profiler plugin Install-dependency:base-ide-product [macos-64], common-eplugin [macos-64], nativecommon-eplugin [macos-64] -Build-dependency:indigo-macpde [macos-64], common-eplugin [macos-64], nativecpp-eplugin [macos-64], nativecommon-eplugin [macos-64] +Build-dependency:pde-build [macos-64], common-eplugin [macos-64], nativecpp-eplugin [macos-64], nativecommon-eplugin [macos-64]