summaryrefslogtreecommitdiff
path: root/package/build.windows
blob: ec128f3be4161d137052253c0eb6a5a501cf4f64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
# clean
clean()
{
        echo "=========================================CLEAN============================================"
        rm -rf ${SRCDIR}/build
}

# build
build()
{
        echo "=========================================BUILD============================================"
        #VER=`cat ./packaging/tidl.spec | grep 'Version' | sed 's/Version://' | tr -d ' \r'`
        #FULLVER=$VER CURDIR=${SRCDIR} make -f Makefile.dibs
}

# install
install()
{
        echo "=========================================INSTALL============================================"
        INSTALL_DIR=${SRCDIR}/package/tidlc.package.${TARGET_OS}

        mkdir -p ${INSTALL_DIR}/data/platforms/tizen-5.0/common/tidl
        #cp ${SRCDIR}/build/idlc/tidlc ${INSTALL_DIR}/data/platforms/tizen-5.0/common/tidl/
        cp ${SRCDIR}/release/${TARGET_OS}/tidlc.exe ${INSTALL_DIR}/data/platforms/tizen-5.0/common/tidl/
}

[ "$1" = "clean" ] && clean
[ "$1" = "build" ] && build
[ "$1" = "install" ] && install
exit 0