SUMMARY = "TIDL Network Viewer"
DESCRIPTION = "TIDL Network viewer using dot and graphviz"
HOMEPAGE = "https://downloads.ti.com/mctools/esd/docs/tidl-api/intro.html"
LICENSE = "BSD"

include tidl-api.inc

PR = "${INC_PR}.0"

DEPENDS = "boost boost-native ti-cgt6x-native clocl-native"

S = "${WORKDIR}/git"

TARGET_class-target = "arm"
TARGET_class-native = "x86"
TARGET_class-nativesdk = "x86"

EXTRA_OEMAKE = " -C ${S}/viewer \
                 TARGET=${TARGET} \
                 TARGET_ROOTDIR=${STAGING_DIR_HOST} \
"

do_compile() {
  oe_runmake
}

do_install() {
  install -d ${D}${bindir}
  install -m 755 ${S}/viewer/${TARGET}/tidl_viewer ${D}${bindir}
}

BBCLASSEXTEND = "native nativesdk"

SUMMARY = "TIDL Network Viewer"
DESCRIPTION = "TIDL Network viewer using dot and graphviz"
HOMEPAGE = "https://downloads.ti.com/mctools/esd/docs/tidl-api/intro.html"
LICENSE = "BSD"

include tidl-api.inc

PR = "${INC_PR}.1"

DEPENDS = "boost boost-native ti-cgt6x-native clocl-native"

S = "${WORKDIR}/git"

TARGET_class-target = "arm"
TARGET_class-native = "x86"
TARGET_class-nativesdk = "x86"

CXXFLAGS_append_class-native    = " -DPLATFORM_64BIT "
CXXFLAGS_append_class-nativesdk = " -DPLATFORM_64BIT "

EXTRA_OEMAKE = " -C ${S}/viewer \
                 TARGET=${TARGET} \
                 TARGET_ROOTDIR=${STAGING_DIR_HOST} \
"

do_compile() {
  oe_runmake
}

do_install() {
  install -d ${D}${bindir}
  install -m 755 ${S}/viewer/${TARGET}/tidl_viewer ${D}${bindir}
}

BBCLASSEXTEND = "native nativesdk"

Fix tidl-viewer x86_64 build CXXFLAGS
tidl-api: Fix tidl-viewer x86_64 build CXXFLAGS

Signed-off-by: Yuan Zhao <33ba65427ff4207fbca20aa7a52e7b57f11b5d78@ti.com>
Signed-off-by: Denys Dmytriyenko <d29de71aea38aad3a87d486929cb0aad173ae612@ti.com>
