--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<launch4jConfig>
+ <dontWrapJar>true</dontWrapJar>
+ <headerType>gui</headerType>
+ <jar>emulator-manager.jar</jar>
+ <outfile>..\..\emulator-manager.exe</outfile>
+ <errTitle></errTitle>
+ <cmdLine></cmdLine>
+ <chdir></chdir>
+ <priority>normal</priority>
+ <downloadUrl>http://java.com/download</downloadUrl>
+ <supportUrl></supportUrl>
+ <stayAlive>false</stayAlive>
+ <manifest></manifest>
+ <icon>..\resource\res\em.ico</icon>
+ <classPath>
+ <mainClass>org.tizen.emulator.manager.EmulatorManager</mainClass>
+ <cp>swt.jar</cp>
+ <cp>jsch-0.1.50.jar</cp>
+ <cp>protobuf.jar</cp>
+ </classPath>
+ <jre>
+ <path></path>
+ <bundledJre64Bit>false</bundledJre64Bit>
+ <minVersion>1.6.0</minVersion>
+ <maxVersion></maxVersion>
+ <jdkPreference>preferJre</jdkPreference>
+ <runtimeBits>64/32</runtimeBits>
+ </jre>
+</launch4jConfig>
--- /dev/null
+#!/bin/bash
+LAUNCH4J_RUN=0
+LAUNCH4J_NOT_FOUND=1
+SKIP_EXE=2
+
+if [ "$EM_EXE_GEN" = "false" ] ; then
+ echo "Skip generating emulator-manager.exe..."
+ exit $SKIP_EXE
+fi
+
+if [ "`which launch4jc 2>/dev/null`" ] ; then
+ echo "Launch4j found. Make emulator-manager.exe ..."
+ launch4jc $1
+ exit $LAUNCH4J_RUN
+else
+ echo "Launch4j not found. Build will be stop..."
+ echo " -- Please install launch4j and add to path."
+ echo " -- Or, if you want to skip generating EXE, set 'EM_EXE_GEN' as 'false'"
+ echo " -- ex) $ export EM_EXE_GEN=false"
+ echo "And try build again."
+ exit $LAUNCH4J_NOT_FOUND
+fi
#$ANT_PATH/ant -buildfile plugin-project/mobile-plugin/build.xml -Dclasspath.dibs=${ROOTDIR}/tools/emulator/bin -Dem.dir=${SRCDIR}/common-project make-jar-dibs
#$ANT_PATH/ant -buildfile plugin-project/ivi-plugin/build.xml -Dclasspath.dibs=${ROOTDIR}/tools/emulator/bin -Dem.dir=${SRCDIR}/common-project make-jar-dibs
- echo 'id ICON "common-project/resource/res/em.ico"' > icon.rc
- windres icon.rc -O coff -o icon.res
- gcc $SRCDIR/common-project/supplement/emulator-manager.c icon.res -o $SRCDIR/emulator-manager.exe -mwindows
- rm icon.rc icon.res
-
- # Add signing to emulator-manager.exe
- java -jar $SIGNTOOL_JAR $SRCDIR/emulator-manager.exe $SRCDIR/emulator-manager.exe emulator-manager.exe
- if [ ! -f "$SRCDIR/emulator-manager.exe" ]; then
- echo "Codesigning fail"
- exit 1
- fi
-
- cd $SRCDIR
- /C/sign/signtool.exe verify "//pa" "emulator-manager.exe"
- CODESIGN_RET=$?
- echo $CODESIGN_RET
- if [ "$CODESIGN_RET" = "0" ]; then
- echo "The signature is vaild"
- else
- echo "The signature is invalid : return value = $CODESIGN_RET"
- exit 1
- fi
+ #echo 'id ICON "common-project/resource/res/em.ico"' > icon.rc
+ #windres icon.rc -O coff -o icon.res
+ #gcc $SRCDIR/common-project/supplement/emulator-manager.c icon.res -o $SRCDIR/emulator-manager.exe -mwindows
+ #rm icon.rc icon.res
+
+ # make emulator-manager.exe with Launch4j
+ LAUNCH4J_RUN=0
+ LAUNCH4J_NOT_FOUND=1
+ SKIP_EXE=2
+ common-project/supplement/genExe.sh common-project/supplement/em-wrapper-config.xml
+ RET=$?
+ if [ "$RET" = "$LAUNCH4J_NOT_FOUND" ]; then
+ echo "Launch4j not found. Exit."
+ exit 1
+ fi
+
+ if [ "$RET" = "$SKIP_EXE" ]; then
+ echo "Skip add signing to emulator-manager.exe ..."
+ fi
+
+ if [ "$RET" = "$LAUNCH4J_RUN" ]; then
+ if [ ! -f "emulator-manager.exe" ]; then
+ echo "Generating emulator-manager.exe FAILED.."
+ exit 1
+ else
+ echo "Generating emulator-manager.exe SUCCESS."
+ # Add signing to emulator-manager.exe
+ java -jar $SIGNTOOL_JAR $SRCDIR/emulator-manager.exe $SRCDIR/emulator-manager.exe emulator-manager.exe
+ if [ ! -f "$SRCDIR/emulator-manager.exe" ]; then
+ echo "Codesigning fail"
+ exit 1
+ fi
+
+ cd $SRCDIR
+ /C/sign/signtool.exe verify "//pa" "emulator-manager.exe"
+ CODESIGN_RET=$?
+ echo $CODESIGN_RET
+ if [ "$CODESIGN_RET" = "0" ]; then
+ echo "The signature is vaild"
+ else
+ echo "The signature is invalid : return value = $CODESIGN_RET"
+ exit 1
+ fi
+ fi
+ fi
+
+
# if [ "$SIGNTOOL_PATH" != "" ] && [ -f "$SIGNTOOL_PATH" ]
# then
# if [ "$SIGNFILE_PATH" != "" ] && [ -f "$SIGNFILE_PATH" ]