Browse Source

update

master
zhaohe 2 years ago
parent
commit
a39b56c084
  1. 9
      .clang-format
  2. 5
      .gitmodules
  3. 69
      .vscode/settings.json
  4. 17
      CMakeLists.txt
  5. 6
      build.sh
  6. 1
      iflytopcpp
  7. 1
      src/service/iflytop_can_host_device.cpp
  8. 19
      src/service/iflytop_can_host_device.hpp

9
.clang-format

@ -0,0 +1,9 @@
# Defines the Chromium style for automatic reformatting.
# http://clang.llvm.org/docs/ClangFormatStyleOptions.html
Language: Cpp
BasedOnStyle: Google
ColumnLimit: 160
AlignConsecutiveMacros: true
AlignConsecutiveDeclarations: true
AlignConsecutiveAssignments: true
AlignOperands: true

5
.gitmodules

@ -1,6 +1,3 @@
[submodule "iflytopcpp"]
path = iflytopcpp
url = zwsd@192.168.1.3:z2nd_lib/iflytopcpp.git
[submodule "zcmake"]
path = zcmake
url = zwsd@192.168.1.3:zwsd_common_lib/zcmake.git
url = zwsd@192.168.1.3:zwsd_common_lib/zcmake.git

69
.vscode/settings.json

@ -0,0 +1,69 @@
{
"files.associations": {
"array": "cpp",
"atomic": "cpp",
"bit": "cpp",
"*.tcc": "cpp",
"bitset": "cpp",
"cctype": "cpp",
"charconv": "cpp",
"chrono": "cpp",
"clocale": "cpp",
"cmath": "cpp",
"condition_variable": "cpp",
"cstdarg": "cpp",
"cstddef": "cpp",
"cstdint": "cpp",
"cstdio": "cpp",
"cstdlib": "cpp",
"cstring": "cpp",
"ctime": "cpp",
"cwchar": "cpp",
"cwctype": "cpp",
"deque": "cpp",
"forward_list": "cpp",
"list": "cpp",
"map": "cpp",
"set": "cpp",
"unordered_map": "cpp",
"vector": "cpp",
"exception": "cpp",
"algorithm": "cpp",
"functional": "cpp",
"iterator": "cpp",
"memory": "cpp",
"memory_resource": "cpp",
"numeric": "cpp",
"optional": "cpp",
"random": "cpp",
"ratio": "cpp",
"regex": "cpp",
"string": "cpp",
"string_view": "cpp",
"system_error": "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",
"cinttypes": "cpp",
"typeindex": "cpp",
"typeinfo": "cpp",
"valarray": "cpp",
"variant": "cpp"
}
}

17
CMakeLists.txt

@ -40,6 +40,19 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17")
message("CMAKE_CXX_FLAGS: ${CMAKE_CXX_FLAGS}")
message("PROJECT_NAME: ${PROJECT_NAME}")
file(GLOB_RECURSE VAR_APP_SOURCE src/*.cpp)
file(GLOB_RECURSE VAR_APP_SOURCE #
src/*.cpp #
src/*.c iflytopcpp/*.cpp iflytopcpp/*.c)
zadd_executable(TARGET app.out SRC ${VAR_APP_SOURCE})
message("VAR_APP_SOURCE: ${VAR_APP_SOURCE}")
zadd_executable(
TARGET
app.out #
SRC
${VAR_APP_SOURCE}
#
INCLUDE_DIRECTORIES
src
iflytopcpp/core/spdlog/include
./)

6
build.sh

@ -1,5 +1,7 @@
mkdir build
mkdir -p build
cd build
cmake .. \
-DCMAKE_C_COMPILER='aarch64-linux-gnu-gcc' \
-DCMAKE_CXX_COMPILER='aarch64-linux-gnu-g++' \
-DCMAKE_CXX_COMPILER='aarch64-linux-gnu-g++'
make -j8

1
iflytopcpp

@ -1 +0,0 @@
Subproject commit 3b6ad55660aa6aae464021efe19f6b698f03047f

1
src/service/iflytop_can_host_device.cpp

@ -0,0 +1 @@
#include "iflytop_can_host_device.hpp"

19
src/service/iflytop_can_host_device.hpp

@ -0,0 +1,19 @@
#pragma once
#include <fstream>
#include <functional>
#include <iostream>
#include <list>
#include <map>
#include <memory>
#include <set>
#include <sstream>
#include <string>
#include <vector>
namespace iflytop {
using namespace std;
class IflytopCanHostDevice {
public:
IflytopCanHostDevice(){};
};
} // namespace iflytop
Loading…
Cancel
Save