Skip to content

Commit

Permalink
add configuration examples
Browse files Browse the repository at this point in the history
  • Loading branch information
osesov committed Sep 25, 2020
1 parent 53bd635 commit b545dab
Show file tree
Hide file tree
Showing 11 changed files with 671 additions and 199 deletions.
11 changes: 11 additions & 0 deletions config-examples/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
* zebra/: zebra based configuration

Copy all of these into components/zebra_mini/.vscode

Currently I checked only build and local debug

* appcloud/: appcloud based configuration

Copy these into third-parties/appcloud/.vscode

Should be more or less workable
79 changes: 79 additions & 0 deletions config-examples/appcloud/c_cpp_properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
{
"configurations": [
{
"name": "Linux",
"includePath": [
"${workspaceFolder}/**",
"${workspaceFolder}/app/src/**",
"${env:zmk.bundleDir}/appcloud_sdk/include",
"${env:zmk.bundleDir}/bitsery/include",
"${env:zmk.bundleDir}/boost-1.69/include",
"${env:zmk.bundleDir}/breakpad/include",
"${env:zmk.bundleDir}/breakpad_host/include",
"${env:zmk.bundleDir}/cares-1.12.0/include",
"${env:zmk.bundleDir}/carousels/include",
"${env:zmk.bundleDir}/chrtrsi-0.1/include",
"${env:zmk.bundleDir}/common_runtime/include",
"${env:zmk.bundleDir}/common_utils/include",
"${env:zmk.bundleDir}/cpsl/include",
"${env:zmk.bundleDir}/crt_protocol/include",
"${env:zmk.bundleDir}/dcdparser-0.1/include",
"${env:zmk.bundleDir}/disk_mgr/include",
"${env:zmk.bundleDir}/disk_storage/include",
"${env:zmk.bundleDir}/dom/include",
"${env:zmk.bundleDir}/dom_message/include",
"${env:zmk.bundleDir}/dvbs/include",
"${env:zmk.bundleDir}/dvbs-server/include",
"${env:zmk.bundleDir}/eudev-4/include",
"${env:zmk.bundleDir}/ffmpeg-4.0.1/include",
"${env:zmk.bundleDir}/firmware_updater/include",
"${env:zmk.bundleDir}/freetype-2.5.5/include",
"${env:zmk.bundleDir}/fuse-2.9.7/include",
"${env:zmk.bundleDir}/glib-2.52.3/include",
"${env:zmk.bundleDir}/gtest-1.10.0/include",
"${env:zmk.bundleDir}/ipc/include",
"${env:zmk.bundleDir}/jansson-2.11/include",
"${env:zmk.bundleDir}/json-c-0.12.1/include",
"${env:zmk.bundleDir}/libatasmart-0.19/include",
"${env:zmk.bundleDir}/libcurl-7.68.0/include",
"${env:zmk.bundleDir}/libev-4.33/include",
"${env:zmk.bundleDir}/libffi-3.2.1/include",
"${env:zmk.bundleDir}/libjpeg-8d/include",
"${env:zmk.bundleDir}/libmessage_bus/include",
"${env:zmk.bundleDir}/libopus-1.3.1/include",
"${env:zmk.bundleDir}/libpng-1.5.10/include",
"${env:zmk.bundleDir}/libservicectl/include",
"${env:zmk.bundleDir}/libubox-1.0/include",
"${env:zmk.bundleDir}/libuuid-1.0.3/include",
"${env:zmk.bundleDir}/libwebp-1.0.3/include",
"${env:zmk.bundleDir}/libxml2-2.9.6/include",
"${env:zmk.bundleDir}/libyaml-0.1.6/include",
"${env:zmk.bundleDir}/microxml-1.0/include",
"${env:zmk.bundleDir}/mms-0.1/include",
"${env:zmk.bundleDir}/nanomsg-1.1.4/include",
"${env:zmk.bundleDir}/net-snmp-5.7.3/include",
"${env:zmk.bundleDir}/protobuf_host-2.5.0/include",
"${env:zmk.bundleDir}/protobuf_static-2.5.0/include",
"${env:zmk.bundleDir}/serviced_message/include",
"${env:zmk.bundleDir}/span-cpp20/include",
"${env:zmk.bundleDir}/ubus-1.0/include",
"${env:zmk.bundleDir}/uriparser-0.8.5/include",
"${env:zmk.bundleDir}/util-linux-2.34/include",
"${env:zmk.bundleDir}/wvcdm_wrapper/include",
"${env:zmk.bundleDir}/zlib-1.2.11/include",
"${env:zmk.bundleDir}/ztl/include"
],
"defines": [
"WITHOUT_TRACE_EVENT",
"ZM_APP_CONTROLLER_CLIENT",
"ZM_WIDEVINE_ENABLED",
"Z_BUILD_VARIANT=\"dev\""
],
"compilerPath": "/usr/bin/clang",
"cStandard": "c11",
"cppStandard": "c++17",
"intelliSenseMode": "clang-x64"
}
],
"version": 4
}
82 changes: 82 additions & 0 deletions config-examples/appcloud/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
{
// 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": "(gdb) Remote",
"type": "cppdbg",
"request": "launch",
// "preLaunchTask": "make",
"program": "${command:extension.zmkGetBuildDir}/obj/third-parties/appcloud/build/appcloud",
"miDebuggerPath": "/opt/toolchains/zstbgcc-8.3.0-arm-eglibc-2.18-8/bin/arm-linux-gdb",
// "miDebuggerArgs": "/opt/toolchains/stbgcc-4.8-1.5/bin/arm-linux-gdb",
"miDebuggerServerAddress": "192.168.90.65:5555",

"stopAtEntry": false,
"cwd": "${command:extension.zmkGetBuildDir}",
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{ "text": "-gdb-set sysroot ${command:extension.zmkGetRootDir}/out.charter-arriswb20-appcloud-dev/linux/build_nfs_image" },
{ "text": "-gdb-set solib-search-path ${command:extension.zmkGetRootDir}/out.charter-arriswb20-appcloud-dev/linux/build_nfs_image"}
// { "text": "-gdb-set $sysroot=target:/" },
// { "text": "-gdb-set $solib-search-path=target:/"}
],

"logging": {
"trace": false,
"traceResponse": false,
"engineLogging": false
}
},

{
"name": "(gdb) Local",
"type": "cppdbg",
"request": "launch",
// "preLaunchTask": "make",
"program": "${command:extension.zmkGetBuildDir}/obj/third-parties/appcloud/build/appcloud",
"environment": [
{ "name": "APPCLOUD_CONFIG_FILE_", "value": "/home/osesov/zodiac/valhalla/.local/ac.config.yaml"}
],
"args": [
// "--standalone"
"-h", "a87acab95f201449583e9ee50bf63da9-381020955.eu-west-1.elb.amazonaws.com"
],
"stopAtEntry": false,
"cwd": "${command:extension.zmkGetBuildDir}",
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
// { "text": "-enable-pretty-printing", "ignoreFailures": true },
{ "text": "-gdb-set env LD_LIBRARY_PATH ${command:extension.zmkGetBuildDir}/linux/sysroot/usr/lib" }
]
},

{
"name": "(gdb) Local unit tests",
"type": "cppdbg",
"request": "launch",
// "preLaunchTask": "make",
"program": "${command:extension.zmkGetBuildDir}/obj/third-parties/appcloud/build/appcloud_test",
"args": [
// "--gtest_filter=handoff*"
],
"stopAtEntry": false,
"cwd": "${command:extension.zmkGetBuildDir}",
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
// { "text": "-enable-pretty-printing", "ignoreFailures": true },
{ "text": "-gdb-set env LD_LIBRARY_PATH ${command:extension.zmkGetBuildDir}/linux/sysroot/usr/lib" }
]
},
]
}
137 changes: 137 additions & 0 deletions config-examples/appcloud/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
{
// "zmk.config": "zodiac-pc_linux-unit_tests-dev",
// "zmk.target": "components/zebra_mini/unit_tests:sysroot",
// "zmk.target": "components/zebra_mini/unit_tests/units-zebra_mini-state_controller:run_unittests",

// "zmk.config": "zodiac-pc_linux-appcloud-dev",
"zmk.config": "local-arriswb20-appcloud-dev",

"zmk.target": "third-parties/appcloud/app:build",
// "zmk.target": "third-parties/appcloud/app:install_to_bundle",
// "zmk.target": "third-parties/appcloud/app:nfs",
// "zmk.target": "third-parties/appcloud/app:sysroot",
// "zmk.target": "nfs_image",

// "zmk.target": "components/gst_player:sysroot",
// "zmk.config": "zodiac-humaxwb20-zebra-tst",

"psi-header.templates": [
{
"language": "*",
"template": [
"Copyright (C) 2019-<<year>> <<company>>",
"",
"@developer <<author>> <<authoremail>>",
"",
" Proprietary and Confidential.",
" Unauthorized distribution or copying is prohibited.",
" All rights reserved.",
"",
" No part of this computer software may be reprinted, reproduced or utilized",
" in any form or by any electronic, mechanical, or other means, now known or",
" hereafter invented, including photocopying and recording, or using any",
" information storage and retrieval system, without permission in writing",
" from DOB, LLC."
]
}
],
"psi-header.variables": [
["company", "Zodiac Systems Inc"],
["authoremail", "<[email protected]>"]
],

"files.associations": {
"atomic": "cpp",
"system_error": "cpp",
"optional": "cpp",
"cctype": "cpp",
"clocale": "cpp",
"cmath": "cpp",
"cstdarg": "cpp",
"cstddef": "cpp",
"cstdio": "cpp",
"cstdlib": "cpp",
"cstring": "cpp",
"ctime": "cpp",
"cwchar": "cpp",
"cwctype": "cpp",
"array": "cpp",
"bit": "cpp",
"*.tcc": "cpp",
"bitset": "cpp",
"charconv": "cpp",
"chrono": "cpp",
"cinttypes": "cpp",
"codecvt": "cpp",
"condition_variable": "cpp",
"cstdint": "cpp",
"deque": "cpp",
"forward_list": "cpp",
"list": "cpp",
"map": "cpp",
"set": "cpp",
"unordered_map": "cpp",
"unordered_set": "cpp",
"vector": "cpp",
"exception": "cpp",
"algorithm": "cpp",
"functional": "cpp",
"iterator": "cpp",
"memory": "cpp",
"memory_resource": "cpp",
"numeric": "cpp",
"random": "cpp",
"ratio": "cpp",
"regex": "cpp",
"string": "cpp",
"string_view": "cpp",
"tuple": "cpp",
"type_traits": "cpp",
"utility": "cpp",
"fstream": "cpp",
"future": "cpp",
"initializer_list": "cpp",
"iomanip": "cpp",
"iosfwd": "cpp",
"iostream": "cpp",
"istream": "cpp",
"limits": "cpp",
"mutex": "cpp",
"new": "cpp",
"ostream": "cpp",
"shared_mutex": "cpp",
"sstream": "cpp",
"stdexcept": "cpp",
"streambuf": "cpp",
"thread": "cpp",
"cfenv": "cpp",
"typeinfo": "cpp",
"valarray": "cpp",
"variant": "cpp",
"cassert": "cpp",
"hash_map": "cpp",
"hash_set": "cpp",
"complex": "cpp",
"typeindex": "cpp",
"cerrno": "cpp",
"cfloat": "cpp",
"ciso646": "cpp",
"climits": "cpp",
"filesystem": "cpp",
"ios": "cpp",
"locale": "cpp",
"queue": "cpp",
"stack": "cpp",
"cstdbool": "cpp",
"*.inc": "cpp",
"*.def": "cpp",
"strstream": "cpp",
"csignal": "cpp",
"*.ipp": "cpp",
"compare": "cpp",
"concepts": "cpp",
"ranges": "cpp",
"stop_token": "cpp"
},
"cmake.configureOnOpen": false
}
Loading

0 comments on commit b545dab

Please sign in to comment.