-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Rasbats <[email protected]>
- Loading branch information
Showing
77 changed files
with
53,723 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
##--------------------------------------------------------------------------- | ||
## Author: Mike Rossiter with massive help from Sean D'Epagnier | ||
## Copyright: | ||
## License: GPLv3 | ||
##--------------------------------------------------------------------------- | ||
|
||
# define minimum cmake version | ||
CMAKE_MINIMUM_REQUIRED(VERSION 2.6.2) | ||
|
||
PROJECT(PhotoLayer_pi) | ||
SET(PACKAGE_NAME PhotoLayer_pi) | ||
SET(VERBOSE_NAME PhotoLayer) | ||
SET(TITLE_NAME PhotoLayer) | ||
SET(CPACK_PACKAGE_CONTACT "Mike Rossiter") | ||
|
||
SET(VERSION_MAJOR "0") | ||
SET(VERSION_MINOR "1") | ||
|
||
IF (MSVC) | ||
INCLUDE_DIRECTORIES(${PLUGIN_SOURCE_DIR}/include/msvc) | ||
ENDIF (MSVC) | ||
|
||
INCLUDE("cmake/PluginConfigure.cmake") | ||
|
||
SET(SRC_PHOTOLAYER | ||
src/PhotoLayer_pi.cpp | ||
src/PhotoLayer_pi.h | ||
src/PhotoLayer.cpp | ||
src/PhotoLayer.h | ||
src/PhotoLayerUI.cpp | ||
src/PhotoLayerUI.h | ||
src/PhotoLayerImage.cpp | ||
src/PhotoLayerImage.h | ||
src/AboutDialog.cpp | ||
src/AboutDialog.h | ||
src/icons.cpp | ||
src/icons.h | ||
src/wximgkap.cpp | ||
src/wximgkap.h | ||
) | ||
|
||
|
||
|
||
|
||
IF(UNIX) | ||
INCLUDE("cmake/FindTinyXML.cmake") | ||
FIND_PACKAGE(TinyXML QUIET) | ||
ENDIF(UNIX) | ||
|
||
IF(TINYXML_FOUND) | ||
message (STATUS "Building with system tinyxml") | ||
INCLUDE_DIRECTORIES(${TINYXML_INCLUDE_DIR}) | ||
ADD_LIBRARY(${PACKAGE_NAME} SHARED ${SRC_PhotoLayer}) | ||
TARGET_LINK_LIBRARIES(${PACKAGE_NAME} ${TINYXML_LIBRARIES}) | ||
ELSE(TINYXML_FOUND) | ||
message (STATUS "Building with embedded tinyxml") | ||
INCLUDE_DIRECTORIES(src/tinyxml/) | ||
SET(SRC_LTINYXML | ||
src/tinyxml/tinyxml.cpp | ||
src/tinyxml/tinyxmlparser.cpp | ||
src/tinyxml/tinyxmlerror.cpp | ||
) | ||
ADD_LIBRARY(${PACKAGE_NAME} SHARED ${SRC_PHOTOLAYER} ${SRC_LTINYXML}) | ||
ENDIF(TINYXML_FOUND) | ||
ADD_DEFINITIONS(-DTIXML_USE_STL) | ||
|
||
|
||
|
||
ADD_DEFINITIONS(-DTIXML_USE_STL) | ||
|
||
|
||
INCLUDE("cmake/PluginInstall.cmake") | ||
INCLUDE("cmake/PluginLocalization.cmake") | ||
INCLUDE("cmake/PluginPackage.cmake") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
Weather Fax Plugin for OpenCPN | ||
======================================= | ||
Implement weather fax ability for opencpn. This includes retrieval via sound card (radio fax) as well as the internet, or local image files. | ||
|
||
Compiling | ||
========= | ||
|
||
|
||
* git clone git://github.com/seandepagnier/weatherfax_pi.git | ||
|
||
|
||
Build as normally: | ||
|
||
* cd .. | ||
* cd build | ||
* cmake .. # To produce a binary compatible with Windows XP, you must set the respective toolset - use 'cmake -T v120_xp ..' | ||
* make | ||
* make install | ||
|
||
Windows Specific Libraries | ||
========================== | ||
The Windows compilation is dependent on these files | ||
|
||
Under windows, you must find the file "opencpn.lib" (Visual Studio) or "libopencpn.dll.a" (mingw) which is built in the build directory after compiling opencpn. This file must be copied to the plugin directory. | ||
|
||
There are also some libraries and an external program needed: | ||
http://sourceforge.net/projects/opencpnplugins/files/opencpn_packaging_data/portaudio-vc12.7z/download | ||
http://sourceforge.net/projects/opencpnplugins/files/opencpn_packaging_data/PVW32Con.exe/download (not an archive, this one just copy to buildwin) | ||
and unpack all these files into the buildwin directory as the compile is dependent on these. | ||
|
||
OSX Specific Libraries | ||
========================== | ||
The OS X compilation is dependent on these files | ||
|
||
Under OS X the port audio library is needed. Install it using ```brew install portaudio``` | ||
There is a zip file containing header and library files: | ||
http://sourceforge.net/projects/opencpnplugins/files/weatherfax_pi/OSXportaudiofiles.zip/download | ||
Download this file and unzip it in the /usr/local directory as the compile is dependent on these. | ||
The make create-pkg command will include the library in the package. | ||
|
||
License | ||
======= | ||
The plugin code is licensed under the terms of the GPL v3+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
SET(PLUGIN_VERSION_MAJOR "1") | ||
SET(PLUGIN_VERSION_MINOR "7") | ||
SET(PLUGIN_VERSION_PATCH "001") | ||
SET(PLUGIN_VERSION_DATE "2017-05-14") |
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.