Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
obiltschnig committed Jun 6, 2020
1 parent 7f5a0e8 commit 4c49f9d
Show file tree
Hide file tree
Showing 16 changed files with 804 additions and 0 deletions.
126 changes: 126 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
# Compiled #
############
*.com
*.class
*.dll
*.dylib
*.exe
*.slo
*.lo
*.o
*.so
*.lai
*.la
*.a
*.d
*.vsp
*.psess
*.bndl
*.pyc

# Make #
########
config.build
config.make

# CMake #
########
cmake_install.cmake
cmake_uninstall.cmake
CMakeFiles
CMakeCache.txt
CPackConfig.cmake
CPackSourceConfig.cmake
cmake_*

# Packages #
############
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip

# Logs and databases #
######################
*.log*
*.sqlite
*.db
test*.txt
XML/testsuite/rss.xml

# OS generated files #
######################
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
Icon?
ehthumbs.db
Thumbs.db
*~

# VS generated files #
######################
*.obj
*.exe
*.pdb
*.user
*.aps
*.pch
*.ipch
*.ncb
*.suo
*.sdf
*.opensdf
*.tlb
*.tlh
*.ilk
*.lib
*.exp
*.idb
*.rc
*.res
*.manifest
*.tlog
*.lastbuildstate
*.unsuccessfulbuild
release_shared/
debug_shared/
release_static/
debug_static/
release_static_md/
debug_static_md/
release_static_mt/
debug_static_mt/
bin/
bin64/
lib/
lib64/
pocomsg.h

# Eclipse generated files #
######################
.project
.cproject
.settings
cmake-build/

# Temporary files #
###################
*.bak

# V8 build #
############
platform/JS/V8/out/

# Misc #
########
server/data/

3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "macchina.io"]
path = macchina.io
url = https://github.com/macchina-io/macchina.io.git
85 changes: 85 additions & 0 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
{
"env": {
"MACCHINA_BASE": "${workspaceFolder}/macchina.io",
"POCO_BASE": "${MACCHINA_BASE}/platform",
"macchinaIncludePath": [
"${POCO_BASE}/CppUnit/include",
"${POCO_BASE}/Foundation/include",
"${POCO_BASE}/XML/include",
"${POCO_BASE}/JSON/include",
"${POCO_BASE}/Util/include",
"${POCO_BASE}/Net/include",
"${POCO_BASE}/Crypto/include",
"${POCO_BASE}/NetSSL_OpenSSL/include",
"${POCO_BASE}/Data/include",
"${POCO_BASE}/Data/SQLite/include",
"${POCO_BASE}/Zip/include",
"${POCO_BASE}/CppParser/include",
"${POCO_BASE}/CodeGeneration/include",
"${POCO_BASE}/JS/V8/include",
"${POCO_BASE}/JS/Core/include",
"${POCO_BASE}/JS/Data/include",
"${POCO_BASE}/JS/Bridge/include",
"${POCO_BASE}/JS/Net/include",
"${POCO_BASE}/RemotingNG/include",
"${POCO_BASE}/RemotingNG/TCP/include",
"${POCO_BASE}/OSP/include",
"${POCO_BASE}/OSP/Web/include",
"${POCO_BASE}/OSP/JS/include",
"${POCO_BASE}/Geo/include",
"${POCO_BASE}/Serial/include",
"${POCO_BASE}/Redis/include",
"${POCO_BASE}/WebTunnel/include",
"${POCO_BASE}/JWT/include",
"${MACCHINA_BASE}/protocols/BtLE/include",
"${MACCHINA_BASE}/protocols/CAN/include",
"${MACCHINA_BASE}/protocols/MQTT/include",
"${MACCHINA_BASE}/protocols/Modbus/include",
"${MACCHINA_BASE}/protocols/UDP/include",
"${MACCHINA_BASE}/protocols/XBee/include",
"${MACCHINA_BASE}/services/DeviceStatus/include",
"${MACCHINA_BASE}/services/MobileConnection/include",
"${MACCHINA_BASE}/services/NetworkEnvironment/include",
"${MACCHINA_BASE}/services/UnitsOfMeasure/include",
"${MACCHINA_BASE}/services/WebEvent/include",
"${MACCHINA_BASE}/devices/Devices/include"
]
},
"configurations": [
{
"name": "Mac",
"intelliSenseMode": "clang-x64",
"includePath": ["${macchinaIncludePath}"],
"macFrameworkPath": ["/System/Library/Frameworks"],
"defines": [],
"forcedInclude": [],
"compilerPath": "/usr/bin/clang",
"cStandard": "c11",
"cppStandard": "c++14",
"compileCommands": "",
"browse": {
"path": ["${workspaceFolder}"],
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
}
},
{
"name": "Linux",
"intelliSenseMode": "gcc-x64",
"includePath": ["${macchinaIncludePath}"],
"macFrameworkPath": ["/System/Library/Frameworks"],
"defines": [],
"forcedInclude": [],
"compilerPath": "/usr/bin/gcc",
"cStandard": "c11",
"cppStandard": "c++14",
"compileCommands": "",
"browse": {
"path": ["${workspaceFolder}"],
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
}
}
],
"version": 4
}
28 changes: 28 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"configurations": [
{
"name": "macOS LLDB",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/macchina.io/server/bin/Darwin/x86_64/macchina",
"args": ["--config=${workspaceFolder}/etc/macchina.properties"],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [{ "name": "POCO_ENABLE_DEBUGGER", "value": "1" }],
"externalConsole": false,
"MIMode": "lldb"
},
{
"name": "Linux GDB",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/macchina.io/server/bin/Linux/x86_64/macchina",
"args": ["--config=${workspaceFolder}/etc/macchina.properties"],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [{ "name": "POCO_ENABLE_DEBUGGER", "value": "1" }],
"externalConsole": false,
"MIMode": "lldb"
}
]
}
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"editor.insertSpaces": false,
"editor.tabSize": 4
}
72 changes: 72 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"label": "Build project",
"command": "make",
"args": [
"-s"
],
"options": {
"env": {
"PROJECT_BASE": "${workspaceFolder}",
"MACCHINA_BASE": "${workspaceFolder}/macchina.io",
"POCO_BASE": "${workspaceFolder}/macchina.io/platform"
}
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"type": "shell",
"label": "Clean project",
"command": "make",
"args": [
"-s",
"clean"
],
"options": {
"env": {
"PROJECT_BASE": "${workspaceFolder}",
"MACCHINA_BASE": "${workspaceFolder}/macchina.io",
"POCO_BASE": "${workspaceFolder}/macchina.io/platform"
}
},
"problemMatcher": [
"$gcc"
],
"group": "build"
},
{
"type": "shell",
"label": "RemoteGen",
"command": "${workspaceFolder}/RemoteGen.sh",
"osx": {
"args": [
"${file}",
"-Cclang"
]
},
"linux": {
"args": [
"${file}",
"-Cgcc"
]
},
"options": {
"env": {
"POCO_BASE": "${workspaceFolder}/macchina.io/platform"
},
"cwd": "${fileDirname}"
},
"problemMatcher": [],
"group": "build"
}
]
}
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#
# Makefile
#
# Makefile for sample workspace
#

.PHONY: clean all

clean all:
$(MAKE) -C devices/LinuxThermal $(MAKECMDGOALS)
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# sample-workspace

A sample workspace for a project based on macchina.io IoT Edge Device SDK.
Configuration file for Visual Studio code are included.
4 changes: 4 additions & 0 deletions RemoteGen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#! /bin/bash
osname=`uname`
osarch=`uname -m`
$POCO_BASE/RemotingNG/RemoteGen/bin/$osname/$osarch/RemoteGenNG -DPOCO_BASE="$POCO_BASE" $*
25 changes: 25 additions & 0 deletions devices/LinuxThermal/LinuxThermalSimple.bndlspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<bundlespec>
<manifest>
<name>macchina.io Simple Linux Thermal Sensor</name>
<symbolicName>io.macchina.linux-thermal-simple</symbolicName>
<version>1.0.0</version>
<vendor>Applied Informatics</vendor>
<copyright>(c) 2019-2020, Applied Informatics Software Engineering GmbH</copyright>
<activator>
<class>IoT::LinuxThermalSimple::BundleActivator</class>
<library>io.macchina.linux-thermal-simple</library>
</activator>
<lazyStart>false</lazyStart>
<runLevel>610</runLevel>
<dependency>
<symbolicName>io.macchina.devices</symbolicName>
<version>[1.0.0, 2.0.0)</version>
</dependency>
</manifest>
<code>
bin/*.dll,
bin/*.pdb,
bin/${osName}/${osArch}/*.so,
bin/${osName}/${osArch}/*.dylib,
</code>
</bundlespec>
19 changes: 19 additions & 0 deletions devices/LinuxThermal/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#
# Makefile
#
# Makefile for macchina.io Simple Linux Thermal Sensor Bundle
#

include $(POCO_BASE)/build/rules/global
include $(POCO_BASE)/OSP/BundleCreator/BundleCreator.make

objects = LinuxThermalSensor BundleActivator

target = io.macchina.linux-thermal-simple
target_includes = $(MACCHINA_BASE)/devices/Devices/include
target_libs = IoTDevices PocoRemotingNG PocoOSP PocoUtil PocoXML PocoFoundation
target_libpaths = $(MACCHINA_BASE)/lib/$(OSNAME)/$(OSARCH)

postbuild = $(SET_LD_LIBRARY_PATH) $(BUNDLE_TOOL) -n$(OSNAME) -a$(OSARCH) -o../bundles LinuxThermalSimple.bndlspec

include $(POCO_BASE)/build/rules/dylib
Loading

0 comments on commit 4c49f9d

Please sign in to comment.