-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: quic-khrahul <[email protected]>
- Loading branch information
1 parent
b31fdbd
commit e5ddf25
Showing
1 changed file
with
13 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} | ||
|
||
|