Skip to content

Commit

Permalink
Update Makefile
Browse files Browse the repository at this point in the history
Signed-off-by: quic-khrahul <[email protected]>
  • Loading branch information
quic-khrahul authored Jun 4, 2024
1 parent b31fdbd commit e5ddf25
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions Hello-QIM/Makefile
Original file line number Diff line number Diff line change
@@ -1,28 +1,32 @@
# Copyright (c) 2020, 2022 Qualcomm Innovation Center, Inc. All Rights Reserved.
# SPDX-License-Identifier: BSD-3-Clause-Clear

CXX=${SDKTARGETSYSROOT}/x86_64-qcomsdk-linux/usr/bin/aarch64-qcom-linux/aarch64-qcom-linux-g++
#Need to set SDKTARGETSYSROOT and GST_APP_NAME environment variables.

#export SDKTARGETSYSROOT=<path to installation directory of platfom SDK>/tmp/sysroots
#Example: export SDKTARGETSYSROOT=/local/mnt/workspace/Platform_eSDK_plus_QIM/tmp/sysroots

#Example: export GST_APP_NAME=gst-appsink

CXX=${SDKTARGETSYSROOT}/x86_64/usr/bin/aarch64-qcom-linux/aarch64-qcom-linux-g++

SOURCES = \
main.cc
INCLUDES += -I ${SDKTARGETSYSROOT}/armv8-2a-qcom-linux/usr/include
INCLUDES += -I ${SDKTARGETSYSROOT}/armv8-2a-qcom-linux/usr/include/glib-2.0
INCLUDES += -I ${SDKTARGETSYSROOT}/armv8-2a-qcom-linux/usr/lib/glib-2.0/include
INCLUDES += -I ${SDKTARGETSYSROOT}/armv8-2a-qcom-linux/usr/include/gstreamer-1.0
INCLUDES += -I ${SDKTARGETSYSROOT}/qcm6490/usr/include
INCLUDES += -I ${SDKTARGETSYSROOT}/qcm6490/usr/include/glib-2.0
INCLUDES += -I ${SDKTARGETSYSROOT}/qcm6490/usr/lib/glib-2.0/include
INCLUDES += -I ${SDKTARGETSYSROOT}/qcm6490/usr/include/gstreamer-1.0
INCLUDES += -I ..
TARGETS = $(foreach n,$(SOURCES),$(basename $(n)))

LLIBS += -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0


all: ${TARGETS}

.PHONY: ${TARGETS}

${TARGETS}: %:%.cc
$(CXX) -Wall --sysroot=$(SDKTARGETSYSROOT)/armv8-2a-qcom-linux $(INCLUDES) $(LLIBS) $< -o $(GST_APP_NAME)
$(CXX) -Wall --sysroot=$(SDKTARGETSYSROOT)/qcm6490 $(INCLUDES) $(LLIBS) $< -o $(GST_APP_NAME)

clean:
rm -f ${TARGETS}


0 comments on commit e5ddf25

Please sign in to comment.