Skip to content

Commit d5dc2ed

Browse files
committed
mefged with frontend2 branch
2 parents effeaa1 + 6f5cda3 commit d5dc2ed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+20370
-5175
lines changed

CMakeLists.txt

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
## * xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx *
2222
## ***
2323
##
24-
## ====FRONTEND 2 Version: 1.0.124 (corresponds with testplugin 1.0.124)=============
24+
## ====FRONTEND 2 Version: 1.0.126 (corresponds with testplugin 1.0.126)=============
2525
##
2626
## ----- When changing this file do NOT change the order in which sections occur ----- ##
2727
## ----- Changes should only be made between the section blocks that identify where ----- ##
@@ -57,7 +57,8 @@ SET(VERSION_MAJOR "1")
5757
SET(VERSION_MINOR "3")
5858
SET(VERSION_PATCH "8")
5959
set(VERSION_TWEAK "2")
60-
set(VERSION_DATE "7/05/2020")
60+
set(VERSION_DATE "7/14/2020")
61+
6162
set(OCPN_MIN_VERSION "ov50")
6263
set(OCPN_API_VERSION_MAJOR "1")
6364
set(OCPN_API_VERSION_MINOR "16")
@@ -125,15 +126,15 @@ message(STATUS "${CMLOC}Build type: ${CMAKE_BUILD_TYPE}")
125126

126127
project(${PACKAGE})
127128

129+
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake;")
128130

129131
#===========================================================
130-
INCLUDE("cmake/PluginSetup.cmake")
132+
include("PluginSetup")
131133
#===========================================================
132134
## ----- The above is used to setup standard variables that are required by the CMAKE process - do not remove ----- ##
133135
## ----- Modify section below if there are special requirements for the plugin ----- ##
134136
##
135137

136-
# Settings and Options
137138
set(CMAKE_VERBOSE_MAKEFILE ON)
138139

139140
option(Plugin_CXX11 "Use c++11" OFF)
@@ -142,7 +143,7 @@ option(Plugin_CXX11 "Use c++11" OFF)
142143
## ----- Modify section above if there are special requirements for the plugin ----- ##
143144
## ----- do not change next section - needed to configure build process ----- ##
144145
#===========================================================
145-
INCLUDE("cmake/PluginConfigure.cmake")
146+
include("PluginConfigure")
146147
#===========================================================
147148
## ----- do not change section above - needed to configure build process ----- ##
148149
## ----- Change below to match project requirements for source, headers, etc. ----- ##
@@ -304,9 +305,9 @@ ENDIF(TINYXML_FOUND)
304305
## ----- Do not change - needed to build app ----- ##
305306
##
306307

307-
include("cmake/PluginInstall.cmake")
308-
include("cmake/PluginLocalization.cmake")
309-
include("cmake/PluginPackage.cmake")
308+
include("PluginInstall")
309+
include("PluginLocalization")
310+
include("PluginPackage")
310311

311312
##
312313
## ----- do not change section above - needed to configure build process ----- ##

appveyor.yml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
clone_folder: c:\project\ocpn_project
2-
32
shallow_clone: false
43
clone_depth: 10
54

@@ -28,25 +27,23 @@ install:
2827
# install dependencies:
2928
- choco install poedit
3029
- choco install git
31-
3230
- ps: Start-FileDownload http://opencpn.navnux.org/build_deps/nsis-3.04-setup.exe
3331
- cmd: nsis-3.04-setup.exe /S
3432

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

4138
before_build:
4239
- cd c:\project\ocpn_project
40+
- ps: Start-FileDownload https://downloads.sourceforge.net/project/opencpnplugins/opencpn_lib/4.99.1405-vc141_xp/opencpn.lib
4341
- ps: Start-FileDownload http://opencpn.navnux.org/build_deps/OpenCPN_buildwin-4.99a.7z
4442
- cmd: 7z x -y OpenCPN_buildwin-4.99a.7z -oc:\project\ocpn_project\buildwin
4543
- cd buildwin
4644
- ps: Start-FileDownload https://downloads.sourceforge.net/project/opencpnplugins/opencpn_packaging_data/PVW32Con.exe
4745
- cd ..
4846
- rm -rf build && mkdir build && cd build
49-
- ps: Start-FileDownload https://downloads.sourceforge.net/project/opencpnplugins/opencpn_lib/4.99.1405-vc141_xp/opencpn.lib
5047
- cmake -T v141_xp ..
5148

5249
build_script:
@@ -59,22 +56,13 @@ build_script:
5956
artifacts:
6057
- path: 'build\*.exe'
6158
name: installer
62-
#deploy:
63-
# description: 'release created by AppVeyor CI'
64-
# provider: GitHub
65-
# auth_token: '%GitHub_auth_token%'
66-
# artifact: installer,portable
67-
# draft: true
68-
# prerelease: true
69-
# on:
70-
# appveyor_repo_tag: true # deploy on tag push only
71-
# configuration: Release # Debug contains non-redist MS DLLs
7259

60+
# Removed from process as not providing real benefit at the moment
7361
#deploy:
7462
# description: 'release created by AppVeyor CI'
7563
# provider: GitHub
7664
# #auth_token: '%GitHub_auth_token%'
77-
# auth_token: '%git-ptoken-testplugin-into-appveyor%'
65+
# auth_token: '%git-ptoken-testplugin-into-appveyor%'
7866
# artifact: installer,portable
7967
# draft: true
8068
# prerelease: true

ci/circleci-build-mingw.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ set -xe
99
su -c "dnf install -q -y sudo dnf-plugins-core"
1010
sudo dnf builddep -y mingw/fedora/opencpn-deps.spec
1111
rm -rf build; mkdir build; cd build
12+
# For weatherfax builds
13+
#wget https://downloads.sourceforge.net/project/opencpnplugins/opencpn_packaging_data/PVW32Con.exe
14+
#wget https://downloads.sourceforge.net/project/opencpnplugins/opencpn_packaging_data/portaudio-vc12.7z
15+
#7za e portaudio-vc12.7z -o../buildwin -y
16+
#mv PVW32Con.exe ../buildwin/.
1217
cmake -DCMAKE_TOOLCHAIN_FILE=../mingw/fedora/toolchain.cmake ..
1318
make -j2
1419
make package

ci/control

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Build-Depends: debhelper (>= 9),
2121
libwxgtk3.0-gtk3-dev | base-files (<< 10),
2222
libwxgtk-webview3.0-dev | libwxgtk-webview3.0-gtk3-dev | base-files (<< 11),
2323
libwxsvg-dev | base-files (<< 11),
24+
librtlsdr-dev,
2425
portaudio19-dev,
2526
python3-pip,
2627
python3-setuptools

cmake/PluginLocalization.cmake

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,21 @@ message(STATUS "${CMLOC}Starting POTFILE generation")
1414

1515
set(POTFILE ${CMAKE_CURRENT_SOURCE_DIR}/po/POTFILES.in)
1616
file(REMOVE ${POTFILE}.test)
17+
file(WRITE ${POTFILE}.test "")
18+
message(STATUS "${CMLOC}Checking file: ${CMAKE_CURRENT_SOURCE_DIR}/po/${PACKAGE_NAME}.pot")
19+
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/po/${PACKAGE_NAME}.pot)
20+
message(STATUS "${CMLOC}Found: ${CMAKE_CURRENT_SOURCE_DIR}/po/${PACKAGE_NAME}.pot")
21+
else()
22+
file(WRITE ${CMAKE_CURRENT_SOURCE_DIR}/po/${PACKAGE_NAME}.pot "")
23+
message(STATUS "${CMLOC}Creating empty ${CMAKE_CURRENT_SOURCE_DIR}/po/${PACKAGE_NAME}.pot")
24+
endif()
1725
foreach(POTLINE IN ITEMS ${SRCS})
1826
file(APPEND ${POTFILE}.test "${POTLINE}\n")
1927
endforeach(POTLINE)
2028
foreach(POTLINE IN ITEMS ${HDRS})
2129
file(APPEND ${POTFILE}.test "${POTLINE}\n")
2230
endforeach(POTLINE)
2331
# convert crlf to lf for consistency and make copy_if_different work correctly
24-
file(WRITE ${POTFILE}.test "")
2532
configure_file(${POTFILE}.test ${POTFILE}.test NEWLINE_STYLE UNIX)
2633
execute_process(COMMAND ${CMAKE_COMMAND} -E copy_if_different ${POTFILE}.test ${POTFILE} OUTPUT_QUIET ERROR_QUIET)
2734

cmake/in-files/cloudsmith-upload.sh.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ if [ "$TRAVIS" ] || [ "$CIRCLECI" ]; then
193193
cd build_tar
194194
tar -xf $tarball_tar
195195
rm *.tar
196+
rm -rf root
196197
cp ../metadata.xml .
197198
tar -cf build_tarfile.tar *
198199
tar -tf build_tarfile.tar

po/POTFILES.in

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
src/squiddio_pi.h
2+
src/squiddio_pi.cpp
3+
src/squiddioPrefsDialogBase.cpp
4+
src/squiddioPrefsDialogBase.h
5+
src/squiddio_pi_thread.h
6+
src/squiddio_pi_thread.cpp
7+
src/squiddioKaps.cpp
8+
src/sJSON.cpp
9+
src/sJSON.h
10+
src/icons.h
11+
src/icons.cpp
12+
src/logs.cpp
13+
src/logs.h
14+
src/NavObjectCollection.h
15+
src/NavObjectCollection.cpp
16+
src/Poi.h
17+
src/Poi.cpp
18+
src/PoiMan.h
19+
src/PoiMan.cpp
20+
src/Layer.h
21+
src/pugixml.hpp
22+
src/pugixml.cpp
23+
src/ocpn_types.h
24+
src/pugiconfig.hpp
25+
src/Hyperlink.h
26+
src/gpxdocument.h
27+
src/wxJSON/jsonval.cpp
28+
src/wxJSON/jsonreader.cpp
29+
src/wxJSON/json_defs.h
30+
src/wxJSON/jsonreader.h
31+
src/wxJSON/jsonval.h
32+
src/wxJSON/jsonwriter.cpp
33+
src/wxJSON/jsonwriter.h

po/POTFILES.in.test

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
src/squiddio_pi.h
2+
src/squiddio_pi.cpp
3+
src/squiddioPrefsDialogBase.cpp
4+
src/squiddioPrefsDialogBase.h
5+
src/squiddio_pi_thread.h
6+
src/squiddio_pi_thread.cpp
7+
src/squiddioKaps.cpp
8+
src/sJSON.cpp
9+
src/sJSON.h
10+
src/icons.h
11+
src/icons.cpp
12+
src/logs.cpp
13+
src/logs.h
14+
src/NavObjectCollection.h
15+
src/NavObjectCollection.cpp
16+
src/Poi.h
17+
src/Poi.cpp
18+
src/PoiMan.h
19+
src/PoiMan.cpp
20+
src/Layer.h
21+
src/pugixml.hpp
22+
src/pugixml.cpp
23+
src/ocpn_types.h
24+
src/pugiconfig.hpp
25+
src/Hyperlink.h
26+
src/gpxdocument.h
27+
src/wxJSON/jsonval.cpp
28+
src/wxJSON/jsonreader.cpp
29+
src/wxJSON/json_defs.h
30+
src/wxJSON/jsonreader.h
31+
src/wxJSON/jsonval.h
32+
src/wxJSON/jsonwriter.cpp
33+
src/wxJSON/jsonwriter.h

0 commit comments

Comments
 (0)