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

Reset35: Restore merging of #35 + fixes #49

Merged
merged 31 commits into from
Oct 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
833b725
Revert to d474c8f, before merging #35
leamas Oct 11, 2019
ec4760b
flatpak: Initial packaging.
leamas Jul 16, 2018
206b9a8
cmake: Define OpenGL lib to use (mute warning).
leamas Aug 22, 2019
1871371
build: Add api16/opencpn.lib, handle api version.
leamas Aug 22, 2019
753d2a3
build: Build a tar.gz package along with ordinary installer
leamas Aug 22, 2019
1860599
build: give plugin a more unique name.
leamas Aug 22, 2019
25a89cd
build: Move to C++11
leamas Aug 22, 2019
b99f86f
build: Add plugin XML metadata generation.
leamas Aug 22, 2019
08e68b0
mingw: Fix opencpn import lib
leamas Sep 8, 2019
7116858
build: Update to handle recent cmake
leamas Sep 8, 2019
2d9fa60
ci: Add appveyor msvc build.
leamas Aug 22, 2019
69c5847
ci: Add travis builds for macos and debian
leamas Aug 22, 2019
4b62982
Avoid using travis crappy bintray integration.
leamas Aug 22, 2019
51dea8b
Adding flatpak build.
leamas Aug 24, 2019
97c4b30
ci: Add cloudsmith deployment.
leamas Sep 2, 2019
55c9753
ci: Add circleci configuration.
leamas Sep 8, 2019
8c5dffd
.gitignore
leamas Sep 12, 2019
ba4802f
appveyor: drop secret, unused key
leamas Sep 15, 2019
39489ce
build: flatpak: Update used branch stable -> master
leamas Oct 11, 2019
b22dd37
build: Restore .travis.yml to original state.
leamas Oct 11, 2019
04d6016
build: appveyor: restore original deployement.
leamas Oct 11, 2019
9feb1bd
build: circleci: Reset built branch to master only.
leamas Oct 11, 2019
3230d33
ci: cloudsmith: Update repo url in upload an xml metadata.
leamas Oct 11, 2019
69db5d1
ci: circleci: Build all branches, not just master
leamas Oct 12, 2019
093eab1
ci: Drop not really useful fedora build.
leamas Oct 12, 2019
5911f17
ci: upload scripts: Don't log cloudsmith key
leamas Oct 12, 2019
fe707fa
ci: Remove unused files.
leamas Oct 13, 2019
08cd5fb
ci: circleci-upload: Log used deployment key.
leamas Oct 14, 2019
057afa4
ci: appveyor-upload: Log used deployment key.
leamas Oct 15, 2019
3d4eed2
ci: macos: Fix broken travis macos image.
leamas Oct 15, 2019
fdbac6c
ci: macos: Update dependencies installation code.
leamas Oct 15, 2019
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
48 changes: 21 additions & 27 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,35 +26,25 @@ jobs:
- checkout
- run: ci/circleci-build-flatpak.sh
- run: ci/circleci-upload.sh
build-fedora:
build-mingw:
docker:
- image: fedora:29
environment:
- OCPN_TARGET: fedora
- OCPN_TARGET: mingw
steps:
- run: su -c "dnf install -q -y git openssh-clients openssh-server"
- checkout
- run: ci/circleci-build-fedora.sh
- run: ci/circleci-build-mingw.sh
- run: ci/circleci-upload.sh
build-mingw:
docker:
- image: fedora:29
build-macos:
macos:
xcode: "10.0.0"
environment:
- OCPN_TARGET: mingw
- OCPN_TARGET: macos
steps:
- run: su -c "dnf install -q -y git openssh-clients openssh-server"
- checkout
- run: ci/circleci-build-mingw.sh
- run: ci/circleci-build-macos.sh
- run: ci/circleci-upload.sh
# build-macos:
# macos:
# xcode: "10.0.0"
# environment:
# - OCPN_TARGET: macos
# steps:
# - checkout
# - run: ci/circleci-build-macos.sh
# - run: ci/circleci-upload.sh

workflows:
version: 2
Expand All @@ -63,20 +53,24 @@ workflows:
- build-debian:
filters:
branches:
only: master
ignore:
- devel
- tmp
- build-flatpak:
filters:
branches:
only: master
- build-fedora:
ignore:
- devel
- tmp
- build-macos:
filters:
branches:
only: master
# - build-macos:
# filters:
# branches:
# only: master
ignore:
- devel
- tmp
- build-mingw:
filters:
branches:
only: master
ignore:
- devel
- tmp
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cscope.files
tags
index.sh
include/version.h
build/
build
Debug
cmake
CMakeFiles
Expand Down
55 changes: 51 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,65 @@
CMAKE_MINIMUM_REQUIRED(VERSION 2.6.2)

PROJECT(squiddio_pi)
SET(PARENT "opencpn")

SET(PACKAGE_NAME squiddio_pi)
SET(PACKAGE_FILE_NAME "opencpn-plugin-squiddio")
SET(VERBOSE_NAME Squiddio)
SET(TITLE_NAME SQUIDDIO)
SET(CPACK_PACKAGE_CONTACT "Mauro Calvi")

SET(VERSION_MAJOR "1")
SET(VERSION_MINOR "0")
SET(VERSION_PATCH "12")
SET(PLUGIN_VERSION_DATE "2019/10/10")
SET(VERSION_PATCH "4")
SET(VERSION_DATE "19/05/2019")
SET(OCPN_MIN_VERSION "ov50")

SET(PACKAGE_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}")
SET(PKG_RELEASE "1")
SET(PKG_API_VERSION "1.16")
SET(PKG_AUTHOR "Mauro Calvi")
SET(PKG_NVR ${PACKAGE_NAME}-${PACKAGE_VERSION}-${PKG_RELEASE})
SET(PKG_BASE_URL
"https://dl.cloudsmith.io/public/mauro-calvi/squiddio-pi/raw/files")


INCLUDE("cmake/PluginSetup.cmake")
set(PLUGIN_NAME squiddio-plugin-${PKG_TARGET}-${PKG_TARGET_VERSION})

if (OCPN_FLATPAK)
find_program(TAR NAMES gtar tar)
if (NOT TAR)
message(FATAL_ERROR "tar not found, required for OCPN_FLATPAK")
endif ()
configure_file(
${CMAKE_SOURCE_DIR}/squiddio-plugin.xml.in
${CMAKE_CURRENT_BINARY_DIR}/${PLUGIN_NAME}.xml
)
add_custom_target(flatpak-build ALL
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/flatpak
COMMAND /usr/bin/flatpak-builder --force-clean
${CMAKE_CURRENT_BINARY_DIR}/app
org.opencpn.OpenCPN.Plugin.squiddio.yaml
)
add_custom_target("flatpak-pkg")
add_custom_command(
TARGET flatpak-pkg
COMMAND ${TAR}
-czf ${PKG_NVR}_${PKG_TARGET_NVR}.tar.gz
--transform 's|.*/files/|squiddio-flatpak-${PACKAGE_VERSION}/|'
${CMAKE_CURRENT_BINARY_DIR}/app/files
)
return ()
endif()



#SET(CMAKE_BUILD_TYPE Debug)

# Prefer libGL.so to libOpenGL.so, see CMP0072
set(OpenGL_GL_PREFERENCE "LEGACY")

INCLUDE("cmake/PluginConfigure.cmake")
set(CMAKE_CXX_STANDARD 11)

SET(SRC_SQUIDDIO
src/squiddio_pi.h
Expand Down Expand Up @@ -142,6 +184,7 @@ SET(SRC_NMEA0183
)
INCLUDE_DIRECTORIES(nmea0183)
INCLUDE_DIRECTORIES(src/wxJSON)
INCLUDE_DIRECTORIES(api-16)

ADD_DEFINITIONS(-DTIXML_USE_STL)
IF(UNIX)
Expand All @@ -167,3 +210,7 @@ INCLUDE("cmake/PluginInstall.cmake")
INCLUDE("cmake/PluginLocalization.cmake")
INCLUDE("cmake/PluginPackage.cmake")

configure_file(
${CMAKE_SOURCE_DIR}/squiddio-plugin.xml.in
${CMAKE_CURRENT_BINARY_DIR}/${PLUGIN_NAME}.xml
)
Binary file added api-16/libopencpn.dll.a
Binary file not shown.
File renamed without changes.
Binary file added api-16/opencpn.lib
Binary file not shown.
20 changes: 13 additions & 7 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
clone_folder: c:\project\squiddio_pi
shallow_clone: false
clone_depth: 10

image:
- Visual Studio 2017

clone_folder: c:\project\squiddio_pi
shallow_clone: false
platform:
# - x64
- Win32
Expand All @@ -12,6 +13,7 @@ configuration: Release
test: OFF

install:
# VS2015 and earlier version - '"C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x86'
- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars32.bat"

# sent environment variables for wxWidgets
Expand All @@ -22,10 +24,8 @@ install:

# install dependencies:
- choco install poedit
- ps: Start-FileDownload http://opencpn.navnux.org/build_deps/nsis-3.04-setup.exe
- cmd: nsis-3.04-setup.exe /S

# Download and unzip wxwidgets
# Download and unzip wxwidgets
- ps: Start-FileDownload http://opencpn.navnux.org/build_deps/wxWidgets-3.1.2.7z
- cmd: 7z x wxWidgets-3.1.2.7z -o%WXWIN% > null

Expand All @@ -41,9 +41,15 @@ before_build:
- cmake -T v141_xp ..

build_script:
- cmake --build . --target package --config release
- cmake -G "Visual Studio 15 2017" ..
- cmake --build . --target install --config Release
- cmake --build . --target package --config Release
- choco install git
- python -m ensurepip
- python -m pip install -q setuptools
- python -m pip install -q cloudsmith-cli
- bash ../ci/appveyor-upload.sh

# Artifacts Configuration #
artifacts:
path: 'build\*.exe'
name: installer
Expand Down
49 changes: 0 additions & 49 deletions buildosx/Info.plist.in

This file was deleted.

15 changes: 13 additions & 2 deletions buildosx/InstallOSX/squiddio_pi.pkgproj.in
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,18 @@
<key>PROJECT_COMMENTS</key>
<dict>
<key>NOTES</key>
<data>ITY5bfgEHsABqkzibS60y9W3so4eht4ociqAE7H0gnFA/3h3aVXyaZZvUhSQF8XwaWgTDfgxJOvPvOsY+mYNN5GOOSFd0YwRxKA8ys8TPqB2T2MkQ5lt9+5pJ52VkJ8cR1Ro688k5NEZmavke29QHVuzOfaNWPqAx1Xfkp/Vnbw1ApB5mQiNwQKtfkI8dZDtP/IFYHSF8+2gRuCe9i/Ed+yUfpojRSb15X/qs2+l57VOKrR//J21iqZ+hYRQKzfqs6QOyb2B822ABJuI6kESzVWg2vtO1mI4XD3dv6BIaWnzHiwIk8nbI0TAuYTR/Yze4jACqSa6ud9I1KLT3trbw9ZFRODiFniSGIjqEpZG5S1FMK7TLK0+a8Lk5GHqDJn5T+mVxljSPO3rcMtWqa51uar4FFyUVgPL1bBd5FgsRkRNulV5O6I89rDmtgoc0UzUBy7WrO/JrT2AEoe4WiYM7BYxjRHTcW1+dHGr/y1CU3sIvcR/0BdZuTDfET5NV5zl6AabJUcyi5M7p2wmW0In2OAJzCWuRGthTmAx9xeUiXAbNzSCpkozKSZDRJnTLpvyBm4RzsqiWZKoKgFRP2AFpkh6E23e9REdKih5nTkD19aEKj7uXFViEojAQ13RqcchksQyzZ33u0mgJ2i2aX0x8eFG8qbYXMgB6t7pMrmq9tY=
<data>
PCFET0NUWVBFIGh0bWwgUFVCTElDICItLy9XM0MvL0RURCBIVE1M
IDQuMDEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvVFIvaHRtbDQv
c3RyaWN0LmR0ZCI+CjxodG1sPgo8aGVhZD4KPG1ldGEgaHR0cC1l
cXVpdj0iQ29udGVudC1UeXBlIiBjb250ZW50PSJ0ZXh0L2h0bWw7
IGNoYXJzZXQ9VVRGLTgiPgo8bWV0YSBodHRwLWVxdWl2PSJDb250
ZW50LVN0eWxlLVR5cGUiIGNvbnRlbnQ9InRleHQvY3NzIj4KPHRp
dGxlPjwvdGl0bGU+CjxtZXRhIG5hbWU9IkdlbmVyYXRvciIgY29u
dGVudD0iQ29jb2EgSFRNTCBXcml0ZXIiPgo8bWV0YSBuYW1lPSJD
b2NvYVZlcnNpb24iIGNvbnRlbnQ9IjExMzguNTEiPgo8c3R5bGUg
dHlwZT0idGV4dC9jc3MiPgo8L3N0eWxlPgo8L2hlYWQ+Cjxib2R5
Pgo8L2JvZHk+CjwvaHRtbD4K
</data>
</dict>
<key>PROJECT_PRESENTATION</key>
Expand Down Expand Up @@ -1438,7 +1449,7 @@
</dict>
</array>
<key>NAME</key>
<string>${PACKAGE_FILE_NAME}_${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}-${OCPN_MIN_VERSION}</string>
<string>${VERBOSE_NAME}-Plugin_${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}</string>
<key>REFERENCE_FOLDER_PATH</key>
<string>.</string>
</dict>
Expand Down
Loading