-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #174 from EmixamPP/remove-py
Migrate all Python code to C++ and remove boot command
- Loading branch information
Showing
51 changed files
with
516 additions
and
921 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
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
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
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Update YAML | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 7 * * *' | ||
|
||
jobs: | ||
update-yaml: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Fetch release version | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
OWNER: p-ranav | ||
REPO: argparse | ||
run: | | ||
VERSION=$(gh api "/repos/$OWNER/$REPO/releases/latest" --jq ".tag_name") | ||
echo "VERSION=$VERSION" >> "$GITHUB_ENV" | ||
- name: Modify file if new version | ||
run: | | ||
sed -E -i "s@(ARGPARSE_GIT_TAG=\s+\")(v[0-9]+\.[0-9]+\.[0-9]+)(\")@\1$VERSION\3@" .github/workflows/deps/version.env | ||
- name: Create PR if new version | ||
uses: peter-evans/create-pull-request@v6 | ||
with: | ||
token: ${{ secrets.PAT }} | ||
title: "chore(ci): update argparse to ${{ env.VERSION }}" | ||
branch: "argparse-${{ env.VERSION }}" | ||
commit-message: "chore(ci): update argparse to ${{ env.VERSION }}" | ||
body: | | ||
Update YAML to ${{ env.VERSION }}. | ||
This PR has been created automatically. | ||
committer: github-actions[bot] <noreply@github.com> | ||
author: github-actions[bot] <noreply@github.com> | ||
assignees: "EmixamPP" | ||
labels: dependencies | ||
delete-branch: true |
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
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
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 |
---|---|---|
@@ -0,0 +1,88 @@ | ||
cmake_minimum_required(VERSION 3.10) | ||
project("linux-enable-ir-emitter dependencies") | ||
|
||
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) | ||
set(CMAKE_INSTALL_PREFIX "${PROJECT_SOURCE_DIR}/install_dir" CACHE PATH "Default install prefix" FORCE) | ||
endif() | ||
|
||
option(OPENCV_GIT_TAG "Tag or branch used to checkout when cloning opencv" "master") | ||
option(YAML_GIT_TAG "Tag or branch used to checkout when cloning yaml-cpp" "master") | ||
option(ARGPARSE_GIT_TAG "Tag or branch used to checkout when cloning argparse" "master") | ||
|
||
include(ExternalProject) | ||
|
||
ExternalProject_Add(opencv | ||
GIT_REPOSITORY https://github.com/opencv/opencv.git | ||
GIT_TAG ${OPENCV_GIT_TAG} | ||
PREFIX ${CMAKE_BINARY_DIR}/opencv | ||
INSTALL_DIR ${CMAKE_INSTALL_PREFIX} | ||
CMAKE_ARGS | ||
-DLIBRARY_OUTPUT_DIRECTORY=lib | ||
-DCMAKE_INSTALL_PREFIX=<INSTALL_DIR> | ||
-DBUILD_SHARED_LIBS=OFF | ||
-DOPENCV_GENERATE_PKGCONFIG=YES | ||
-DBUILD_LIST=videoio,highgui | ||
-DWITH_V4L=ON | ||
-DWITH_GTK=ON | ||
-DZLIB_FOUND=OFF | ||
-DBUILD_ZLIB=ON | ||
-DWITH_JPEG=OFF | ||
-DWITH_PNG=OFF | ||
-DWITH_TIFF=OFF | ||
-DWITH_WEBP=OFF | ||
-DWITH_OPENJPEG=OFF | ||
-DWITH_JASPER=OFF | ||
-DWITH_OPENEXR=OFF | ||
-DWITH_IMGCODEC_HDR=OFF | ||
-DWITH_IMGCODEC_SUNRASTER=OFF | ||
-DWITH_IMGCODEC_PXM=OFF | ||
-DWITH_IMGCODEC_PFM=OFF | ||
-DWITH_FFMPEG=FALSE | ||
-DWITH_GSTREAMER=OFF | ||
-DWITH_1394=OFF | ||
-DDVIDEOIO_ENABLE_PLUGINS=OFF | ||
-DWITH_ANDROID_MEDIANDK=OFF | ||
-DHIGHGUI_ENABLE_PLUGINS=OFF | ||
-DWITH_VTK=OFF | ||
-DWITH_PROTOBUF=OFF | ||
-DOPENCV_DNN_OPENCL=OFF | ||
-DWITH_VA_INTEL=OFF | ||
-DWITH_OPENCL=OFF | ||
-DWITH_OPENCL_SVM=OFF | ||
-DWITH_OPENCLAMDFFT=OFF | ||
-DWITH_OPENCLAMDBLAS=OFF | ||
-DWITH_OPENCL_D3D11_NV=OFF | ||
-DWITH_CAROTENE=OFF | ||
-DWITH_CPUFEATURES=OFF | ||
-DWITH_EIGEN=OFF | ||
-DWITH_OPENVX=OFF | ||
-DWITH_DIRECTX=OFF | ||
-DWITH_VA=OFF | ||
-DWITH_LAPACK=OFF | ||
-DWITH_QUIRC=OFF | ||
-DBUILD_ITT=OFF | ||
-DWITH_IPP=OFF | ||
-DBUILD_IPP_IW=OFF | ||
) | ||
|
||
ExternalProject_Add(yaml-cpp | ||
GIT_REPOSITORY https://github.com/jbeder/yaml-cpp.git | ||
GIT_TAG ${YAML_GIT_TAG} | ||
PREFIX ${CMAKE_BINARY_DIR}/yaml-cpp | ||
INSTALL_DIR ${CMAKE_INSTALL_PREFIX} | ||
CMAKE_ARGS | ||
-DCMAKE_INSTALL_PREFIX=<INSTALL_DIR> | ||
-DYAML_BUILD_SHARED_LIBS=OFF | ||
-DYAML_CPP_BUILD_CONTRIB=OFF | ||
-DYAML_CPP_BUILD_TOOLS=OFF | ||
) | ||
|
||
ExternalProject_Add(argparse | ||
GIT_REPOSITORY https://github.com/p-ranav/argparse.git | ||
GIT_TAG ${ARGPARSE_GIT_TAG} | ||
PREFIX ${CMAKE_BINARY_DIR}/argparse | ||
INSTALL_DIR ${CMAKE_INSTALL_PREFIX} | ||
CMAKE_ARGS | ||
-DCMAKE_INSTALL_PREFIX=<INSTALL_DIR> | ||
-DARGPARSE_BUILD_TESTS=OFF | ||
) |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
OPENCV_GIT_TAG="4.9.0" | ||
YAML_GIT_TAG="0.8.0" | ||
ARGPARSE_GIT_TAG="v3.0" |
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
Oops, something went wrong.