Skip to content

Commit

Permalink
merge v0.08.alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
rjhowell44 committed Oct 5, 2020
2 parents b79a644 + 4cdb95f commit 83c74ea
Show file tree
Hide file tree
Showing 74 changed files with 7,379 additions and 2,312 deletions.
23 changes: 23 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See: https://clang.llvm.org/docs/ClangFormatStyleOptions.html
# See: https://code.visualstudio.com/docs/cpp/cpp-ide#_code-formatting

# Copied from "Visual Studio" style
BasedOnStyle: LLVM
UseTab: Never
IndentWidth: 4
TabWidth: 4
BreakBeforeBraces: Allman
AllowShortIfStatementsOnASingleLine: false
IndentCaseLabels: false
ColumnLimit: 0

# Custom
AccessModifierOffset: -4
AlignConsecutiveMacros: true
AlignEscapedNewlines: DontAlign
AllowShortBlocksOnASingleLine: Never
BreakConstructorInitializers: BeforeComma
BreakInheritanceList: BeforeComma
DerivePointerAlignment: false
NamespaceIndentation: All
PointerAlignment: Left
23 changes: 23 additions & 0 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"configurations": [
{
"name": "Linux",
"includePath": [
"/usr/lib/aarch64-linux-gnu/glib-2.0/include",
"/usr/include/glib-2.0/**",
"/usr/include/gstreamer-1.0/**",
"/usr/include/opencv4/**",
"/usr/local/cuda-10.2/targets/aarch64-linux/include",
"/opt/nvidia/deepstream/deepstream-5.0/sources/includes",
"/opt/nvidia/deepstream/deepstream-5.0/sources/apps/apps-common/includes",
"${workspaceFolder}/**"
],
"defines": [],
"compilerPath": "/usr/bin/gcc",
"cStandard": "gnu11",
"cppStandard": "gnu++14",
"intelliSenseMode": "clang-x64"
}
],
"version": 4
}
47 changes: 47 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"cwd": "${workspaceFolder}/examples/python",
"env": {
"DISPLAY": ":1"
}
},
{
"name": "CPP: Current Python File",
"type": "cppdbg",
"request": "launch",
"program": "/usr/bin/python3",
"args": [
"${file}"
],
"stopAtEntry": false,
"cwd": "${workspaceFolder}/examples/python",
"environment": [
{
"name": "DISPLAY",
"value": ":1"
}
],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"preLaunchTask": "build:debug",
"miDebuggerPath": "/usr/bin/gdb"
}
]
}
16 changes: 16 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"C_Cpp.clang_format_fallbackStyle": "Visual Studio",
"python.pythonPath": "~/.virtualenvs/dsl/bin/python",
"python.linting.pylintEnabled": true,
"python.linting.pylintArgs": [
"--max-line-length",
"120"
],
"python.formatting.provider": "autopep8",
"python.formatting.autopep8Args": [
"--max-line-length",
"120",
"--ignore",
"E402"
]
}
34 changes: 34 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"label": "build:debug",
"group": {
"kind": "build",
"isDefault": true
},
"command": "make debug && make so_lib",
"args": [],
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": [
"$gcc"
]
},
{
"type": "shell",
"label": "build:test",
"group": "build",
"command": "make && make lib",
"args": [],
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": [
"$gcc"
]
}
]
}
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ CXX = g++

TARGET_DEVICE = $(shell gcc -dumpmachine | cut -f1 -d -)

DSL_VERSION:='L"v0.07.alpha"'
DSL_VERSION:='L"v0.08.alpha"'
NVDS_VERSION:=5.0
GS_VERSION:=1.0
GLIB_VERSION:=2.0
Expand Down Expand Up @@ -70,7 +70,6 @@ endif
CFLAGS+= -I$(INC_INSTALL_DIR) \
-I$(SRC_INSTALL_DIR)/apps/apps-common/includes \
-I/opt/include \
-I/opt/nvidia/deepstream/deepstream-4.0/sources/includes \
-I/usr/include \
-I/usr/include/gstreamer-$(GS_VERSION) \
-I/usr/include/glib-$(GLIB_VERSION) \
Expand Down Expand Up @@ -113,6 +112,9 @@ LIBS+= `pkg-config --libs $(PKGS)`

all: $(APP)

debug: CFLAGS += -DDEBUG -g
debug: $(APP)

PCH_INC=./src/Dsl.h
PCH_OUT=./src/Dsl.h.gch
$(PCH_OUT): $(PCH_INC) Makefile
Expand All @@ -133,6 +135,7 @@ lib:

so_lib:
$(CXX) -shared $(OBJS) -o dsl-lib.so $(LIBS)
cp dsl-lib.so examples/python/

clean:
rm -rf $(OBJS) $(APP) dsl-lib.a dsl-lib.so $(PCH_OUT)
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,5 @@ DSL is released under the [MIT License](LICENSE). Contributions are welcome and
* [Examples](/docs/examples.md)
* [C/C++](/docs/examples-cpp.md)
* [Python](/docs/examples-python.md)
* [Using VS Code](/docs/vscode.md)
* [Logging and Debugging](/docs/debugging-dsl.md)
Loading

0 comments on commit 83c74ea

Please sign in to comment.