Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Join PI & Drivers #1

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
build
src/version.h
data/drivers/
17 changes: 17 additions & 0 deletions Plugin/.travis.yml → .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# Set encrypted variable 'GitHub_auth_token' in Travis repo settings to deploy packages
# for tagged commits to GitHub Releases.
# deploy:
# - provider: releases
# api_key: $GitHub_auth_token
# file_glob: true
# file: $TRAVIS_BUILD_DIR/build/*.{deb,rpm,dmg,txz,pkg.tar.xz}
# skip_cleanup: true
# on: # Set deploy conditions
# Deploy only when tag is specified
# tags: true
# or his branch
# branch: dev
# and only when API token is set
# condition: "${#GitHub_auth_token} != 0"

# ov50 Linux/OSX build - courtesy to https://github.com/seandepagnier
language: cpp

matrix:
Expand Down
65 changes: 61 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,65 @@
# define minimum cmake version
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

PROJECT(TwoCanPlugIn)
PROJECT(twocan_pi)

# The TwoCan plugin
ADD_SUBDIRECTORY(Plugin)
SET(PACKAGE_NAME twocan_pi)
SET(VERBOSE_NAME TWOCAN)
SET(TITLE_NAME TWOCAN)
SET(CPACK_PACKAGE_CONTACT "TwoCanPlugin@hotmail.com")
# SET(PLUGIN_VERSION_MAJOR "1")
# SET(PLUGIN_VERSION_MINOR "4")
# SET(PLUGIN_VERSION_PATCH "0")
# SET(NAME_SUFFIX "ov50")
# SET(PLUGIN_VERSION_DATE "2019-05-26")
SET(CMAKE_BUILD_TYPE Release)
SET(CMAKE_CXX_STANDARD 11)



INCLUDE("cmake/PluginConfigure.cmake")

INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/Plugin/inc ${CMAKE_SOURCE_DIR}/{Plugin/src ${CMAKE_SOURCE_DIR}/Plugin/img)

SET(SRC_TWOCAN
src/twocanerror.cpp
inc/twocanerror.h
src/twocandevice.cpp
inc/twocandevice.h
src/twocanplugin.cpp
inc/twocanplugin.h
src/twocansettings.cpp
inc/twocansettings.h
src/twocansettingsbase.cpp
inc/twocansettingsbase.h
src/twocanutils.cpp
inc/twocanutils.h
inc/version.h
img/twocan_16_icon.xpm
img/twocan_32.xpm
img/twocan_64.xpm
img/twocan_128.xpm
)

IF(UNIX AND NOT APPLE)
LIST(APPEND SRC_TWOCAN
src/twocansocket.cpp
inc/twocansocket.h
src/twocanlogreader.cpp
inc/twocanlogreader.h
)
ENDIF(UNIX AND NOT APPLE)

ADD_LIBRARY(${PACKAGE_NAME} SHARED ${SRC_TWOCAN} )

IF(WIN32)
TARGET_LINK_LIBRARIES(${PACKAGE_NAME} iphlpapi)
ENDIF(WIN32)


INCLUDE("cmake/PluginInstall.cmake")
INCLUDE("cmake/PluginLocalization.cmake")
INCLUDE("cmake/PluginPackage.cmake")

# The TwoCan plugin Windows drivers
IF(WIN32)
Expand All @@ -22,4 +77,6 @@ IF(WIN32)
ADD_SUBDIRECTORY(CandumpLog)
ADD_SUBDIRECTORY(KeesLog)
ADD_SUBDIRECTORY(YachtDevicesLog)
ENDIF(WIN32)
ENDIF(WIN32)


67 changes: 0 additions & 67 deletions Plugin/CMakeLists.txt

This file was deleted.

5 changes: 0 additions & 5 deletions Plugin/src/version.h

This file was deleted.

File renamed without changes.
20 changes: 19 additions & 1 deletion Plugin/appveyor.yml → appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,25 @@ before_build:
- cmake -T v141_xp ..

build_script:
- cmake --build . --target package --config release
- cmake --build . --config release
- cd ..
- cd data
- mkdir drivers
- cd drivers
- copy ..\..\build\axiomtek\release\axiomtek.dll
- copy ..\..\build\candumplog\release\candumplog.dll
- copy ..\..\build\cantact\release\cantact.dll
- copy ..\..\build\Common\Release\twocanutil.lib
- copy ..\..\build\KeesLog\Release\keeslog.dll
- copy ..\..\build\Kvaser\Release\kvaser.dll
- copy ..\..\build\TwoCanLog\Release\twocanlog.dll
- copy ..\..\build\YachtDevicesLog\Release\yachtdeviceslog.dll
- cd ..\
- cd ..\
- cd build
- cpack

# - cmake --build . --target package --config release
# --target package doesn't work because of nsis not correctly installed

artifacts:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion Plugin/src/twocandevice.cpp → src/twocandevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
// 2. Rewrite/Port Adapter drivers to C++
//

#include "twocandevice.h"
#include "../inc/twocandevice.h"

TwoCanDevice::TwoCanDevice(wxEvtHandler *handler) : wxThread(wxTHREAD_DETACHED) {
// Save a reference to our "parent", the plugin event handler so we can pass events to it
Expand Down
2 changes: 1 addition & 1 deletion Plugin/src/twocanerror.cpp → src/twocanerror.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
// Date: 6/8/2018
// Version: 1.0

#include "twocanerror.h"
#include "..\inc\twocanerror.h"

#ifdef __LINUX__
#include <cerrno>
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion Plugin/src/twocanplugin.cpp → src/twocanplugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
//


#include "twocanplugin.h"
#include "../inc/twocanplugin.h"

// Globally accessible variables used by the plugin, device and the settings dialog.
wxFileConfig *configSettings;
Expand Down
2 changes: 1 addition & 1 deletion Plugin/src/twocansettings.cpp → src/twocansettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
// 2. Prevent user selecting both LogFile reader and Log Raw frames !
//

#include "twocansettings.h"
#include "../inc/twocansettings.h"

// Constructor and destructor implementation
// inherits froms TwoCanSettingsBase which was implemented using wxFormBuilder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// PLEASE DO *NOT* EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////

#include "twocansettingsbase.h"
#include "../inc/twocansettingsbase.h"

///////////////////////////////////////////////////////////////////////////

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion Plugin/src/twocanutils.cpp → src/twocanutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
// 1. Any additional functions ??
//

#include "twocanutils.h"
#include "../inc/twocanutils.h"

int TwoCanUtils::ConvertByteArrayToInteger(const byte *buf, unsigned int *value) {
if ((buf != NULL) && (value != NULL)) {
Expand Down