mirror of
git://nv-tegra.nvidia.com/tegra/argus-cam-libav/argus_cam_libavencoder.git
synced 2025-12-22 09:12:30 +03:00
7d8cfb5596b00c49ca01c4d59ee74c8b88059909 - 19_argus_camera_sw_encode/Makefile 0237b5299525c072e55e721dcedbfd3d06e182ca - 19_argus_camera_sw_encode/FFMPEG-LICENSE.md de91caa771262821be9e97cfe54154efd19b3741 - 19_argus_camera_sw_encode/argus_camera_sw_encode_main.cpp 7b299759a546d9c7ed36d7ab0db92bcd15eb5892 - 19_argus_camera_sw_encode/argus_camera_sw_encode.h Change-Id: Iad98392e36b50e871da97e73199b9833bb311733
52 lines
1.3 KiB
Makefile
52 lines
1.3 KiB
Makefile
# SPDX-FileCopyrightText: Copyright (c) 2022-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
include ../Rules.mk
|
|
|
|
APP := camera_sw_encode
|
|
|
|
ARGUS_UTILS_DIR := $(TOP_DIR)/argus/samples/utils
|
|
|
|
SRCS := \
|
|
argus_camera_sw_encode_main.cpp \
|
|
$(wildcard $(CLASS_DIR)/*.cpp) \
|
|
$(ARGUS_UTILS_DIR)/Thread.cpp \
|
|
$(ARGUS_UTILS_DIR)/NativeBuffer.cpp \
|
|
$(ARGUS_UTILS_DIR)/nvmmapi/NvNativeBuffer.cpp
|
|
|
|
OBJS := $(SRCS:.cpp=.o)
|
|
|
|
CPPFLAGS += \
|
|
-I"$(ARGUS_UTILS_DIR)"
|
|
|
|
LDFLAGS += \
|
|
-lnvargus_socketclient -lavcodec -lavutil
|
|
|
|
all: $(APP)
|
|
|
|
$(CLASS_DIR)/%.o: $(CLASS_DIR)/%.cpp
|
|
$(AT)$(MAKE) -C $(CLASS_DIR)
|
|
|
|
%.o: %.cpp
|
|
@echo "Compiling: $<"
|
|
$(CPP) $(CPPFLAGS) -c $< -o $@
|
|
|
|
$(APP): $(OBJS)
|
|
@echo "Linking: $@"
|
|
$(CPP) -o $@ $(OBJS) $(CPPFLAGS) $(LDFLAGS)
|
|
|
|
clean:
|
|
$(AT)rm -rf $(APP) $(OBJS)
|