| 1 |
# To build, copy this file to gcconfig.pri and then fill in the paths. |
| 2 |
|
| 3 |
# You can define the name of the executable file here. |
| 4 |
# If you do not specify anything then we default to: GoldenCheetah |
| 5 |
#APP_NAME = |
| 6 |
|
| 7 |
# We recommend a debug build for development and a release build for deployment |
| 8 |
#CONFIG += debug |
| 9 |
CONFIG += release |
| 10 |
|
| 11 |
# Uncomment when WebKit is not available (e.g. QT >= 5.6) |
| 12 |
#DEFINES += NOWEBKIT |
| 13 |
|
| 14 |
# Uncomment below if you want an R chart |
| 15 |
# You will need R installed along with the Rcpp and RInside |
| 16 |
# packages. There is an R script in the `util' directory that |
| 17 |
# can be run to install these packages; see it for more info. |
| 18 |
#DEFINES += GC_WANT_R |
| 19 |
|
| 20 |
# Uncomment below if you want Python charting / ML etc |
| 21 |
# You will need Python Development tools installed |
| 22 |
# |
| 23 |
# Libs needed can typically be found by calling e.g |
| 24 |
# python3.6-config --libs |
| 25 |
# |
| 26 |
# below 3 lines work well on Linux style OS |
| 27 |
#DEFINES += GC_WANT_PYTHON |
| 28 |
#PYTHONINCLUDES = -I/usr/include/python3.6 |
| 29 |
#PYTHONLIBS = -L/usr/lib/python3.6/config-3.6m-x86_64-linux-gnu -lpython3.6m |
| 30 |
# below 3 lines work well on Windows |
| 31 |
#DEFINES += GC_WANT_PYTHON |
| 32 |
#PYTHONINCLUDES = -I\"C:\Program Files\Python36\include\" |
| 33 |
#PYTHONLIBS = -L\"C:\Program Files\Python36\libs\" -lpython36 |
| 34 |
#Below work ok on MacOS High Sierra |
| 35 |
#DEFINES += GC_WANT_PYTHON |
| 36 |
#PYTHONINCLUDES = -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m |
| 37 |
#PYTHONLIBS = -L/Library/Frameworks/Python.framework/Versions/3.6/lib -lpython3.6m |
| 38 |
|
| 39 |
# put output into a separate dir |
| 40 |
# to keep main directory clear |
| 41 |
#DESTDIR = . |
| 42 |
#OBJECTS_DIR = ./.obj |
| 43 |
#MOC_DIR = ./.moc |
| 44 |
#RCC_DIR = ./.rcc |
| 45 |
#UI_DIR = ./.ui |
| 46 |
|
| 47 |
# Global conf file name: If you'd like to use a different global config file |
| 48 |
# name than the default (e.g. for testing purposes), set it here. |
| 49 |
#DEFINES += GC_SETTINGS_APP=\\\"GoldenCheetahTest\\\" |
| 50 |
|
| 51 |
# If you want a console window to appear on Windows machines |
| 52 |
# then uncomment the following two lines. |
| 53 |
#CONFIG += console |
| 54 |
#QMAKE_LFLAGS = -mwindows |
| 55 |
|
| 56 |
# To compile translation you need QT tool - lrelease |
| 57 |
# If it is not found using he defaults in src/src.pro |
| 58 |
# then set the full path and filename here. |
| 59 |
QMAKE_LRELEASE = /usr/bin/lrelease |
| 60 |
|
| 61 |
# MSVC needs the WINDOWS KIT libraries for the memory model you are building |
| 62 |
#WINKIT_INSTALL= "C:/Program Files (x86)/Windows Kits/8.1/Lib/winv6.3/um/x64" |
| 63 |
|
| 64 |
# We use g++ on all platforms so switch on auto vectorization amongst other |
| 65 |
# things to speed up looping over ride file points |
| 66 |
QMAKE_CXXFLAGS += -O3 |
| 67 |
|
| 68 |
# Let us know where flex and bison are installed. |
| 69 |
# You may need to specify the full path if things don't work. |
| 70 |
#QMAKE_LEX = flex |
| 71 |
#QMAKE_YACC = bison |
| 72 |
# If you're compiling with nmake and VC then you |
| 73 |
# will likely also use win_flex and win_bison |
| 74 |
# so uncomment below |
| 75 |
#QMAKE_LEX = win_flex |
| 76 |
#QMAKE_YACC = win_bison |
| 77 |
#win32 { |
| 78 |
# QMAKE_YACC = bison --file-prefix=y -t |
| 79 |
# QMAKE_MOVE = cmd /c move |
| 80 |
# QMAKE_DEL_FILE = rm -f |
| 81 |
#} |
| 82 |
|
| 83 |
# If you want SRM download support you must install SRMIO |
| 84 |
# http://www.zuto.de/project/srmio/ |
| 85 |
# Set path to the root of the SRMIO installation |
| 86 |
# If you installed in /usr/local/srmio then set |
| 87 |
# SRMIO_INSTALL = /usr/local/srmio |
| 88 |
# This will automatically set: |
| 89 |
# SRMIO_INCLUDE = $${SRMIO_INSTALL}/include |
| 90 |
# SRMIO_LIBS = $${SRMIO_INSTALL}/lib/libsrmio.a |
| 91 |
# You may override the INCLUDE and LIB files if you like. |
| 92 |
# You *must* define SRMIO_INSTALL to use this feature. |
| 93 |
#SRMIO_INSTALL = |
| 94 |
#SRMIO_INCLUDE = |
| 95 |
#SRMIO_LIBS = |
| 96 |
|
| 97 |
# If you want D2XX device downloads, you need the D2XX libraries |
| 98 |
# http://www.ftdichip.com/Drivers/D2XX.htm |
| 99 |
# Set path to where the D2XX include file (d2xx.h) is located |
| 100 |
# If the files are in /usr/include/d2xx then set |
| 101 |
# D2XX = /usr/include/d2xx |
| 102 |
# If for some reason you need a library to compile d2xx support |
| 103 |
# specify it on the D2XX_LIBS = line. |
| 104 |
# You *must* define D2XX_INCLUDE to use this feature. |
| 105 |
#D2XX_INCLUDE = |
| 106 |
#D2XX_LIBS = |
| 107 |
|
| 108 |
# If you want support for Google Earth .kml files then you need |
| 109 |
# to install the Google libkml library |
| 110 |
# |
| 111 |
# http://code.google.com/p/libkml/ |
| 112 |
# or on Linux sudo apt-get install libkml-dev |
| 113 |
# |
| 114 |
# then set the following variable appropriately |
| 115 |
# to the root of the libs/include path |
| 116 |
#KML_INSTALL = /usr/local |
| 117 |
#KML_INCLUDE = |
| 118 |
#KML_LIBS = |
| 119 |
# Since KML also requires BOOST you will need to install |
| 120 |
# that too and then set BOOST_INCLUDE to that location |
| 121 |
# If the files are in /usr/include/boost then set |
| 122 |
#BOOST_INCLUDE = /usr/include |
| 123 |
#Additionally, on MAC the latest libs also need the following |
| 124 |
#QMAKE_CFLAGS_X86_64 += -mmacosx-version-min=10.7 |
| 125 |
#QMAKE_CXXFLAGS_X86_64 = $$QMAKE_CFLAGS_X86_64 |
| 126 |
#LIBS += -lexpat -luriparser -lminizip |
| 127 |
|
| 128 |
# If you want support for downloading from iCal calendars you will need libical |
| 129 |
# http://sourceforge.net/projects/freeassociation/ |
| 130 |
# Set path to the root of the libical installation |
| 131 |
# If you installed in /usr/local/libical then set |
| 132 |
ICAL_INSTALL = /usr/lib |
| 133 |
# This will automatically set: |
| 134 |
# ICAL_INCLUDE = $${ICAL_INSTALL}/include |
| 135 |
# ICAL_LIBS = $${ICAL_INSTALL}/lib/libical.a |
| 136 |
# You may override the INCLUDE and LIB files if you like. |
| 137 |
# You *must* define ICAL_INSTALL to use this feature. |
| 138 |
#ICAL_INSTALL = |
| 139 |
#ICAL_INCLUDE = |
| 140 |
#ICAL_LIBS = |
| 141 |
|
| 142 |
# If you want support for using USB1 sticks in Train View on Windows |
| 143 |
# then install the SiLabs USBXpress Software Development Kit (SDK) |
| 144 |
# http://www.silabs.com/products/mcu/Pages/USBXpress.aspx |
| 145 |
# and set the following to the 'Host' directory within the SDK |
| 146 |
# USBXPRESS_INSTALL = /c/SiLabs/MCU/USBXpress/USBXpress_API/Host/ |
| 147 |
# You may override the INCLUDE and LIB files if you like. |
| 148 |
# You *must* define USBXPRESS_INSTALL to use this feature. |
| 149 |
#USBXPRESS_INSTALL = |
| 150 |
#USBXPRESS_INCLUDE = |
| 151 |
#USBXPRESS_LIBS = |
| 152 |
|
| 153 |
# If you want support for using USB2 sticks in Train View on Linux or Windows |
| 154 |
# then you need to install libusb (Linux) version 0.1.12 |
| 155 |
# or libusb-win32 (Windows) version 1.2.6.0 |
| 156 |
# For Linux builds download: (There is a copy in the contrib directory) |
| 157 |
# http://prdownloads.sourceforge.net/libusb/libusb-0.1.12.tar.gz |
| 158 |
# For Windows builds download: |
| 159 |
# ttps://sourceforge.net/projects/libusb-win32/files/libusb-win32-releases/1.2.6.0/ |
| 160 |
# You may override the INCLUDE and LIB files if you like. |
| 161 |
# You *must* define LIBUSB_INSTALL to use this feature. |
| 162 |
LIBUSB_INSTALL = /usr/lib |
| 163 |
#LIBUSB_INCLUDE = |
| 164 |
#LIBUSB_LIBS = |
| 165 |
LIBUSB_USE_V_1 = true # don't use on Windows |
| 166 |
|
| 167 |
# if you want video playback on training mode then |
| 168 |
# download and install vlc (videolan) from |
| 169 |
# ftp.videolan.org/pub/vlc/1.1.8 or http://download.videolan.org/vlc/ for |
| 170 |
# your platform there are sdks for Mac and Windows. On Linux you |
| 171 |
# will need to use the latest distro (e.g. Meerkat |
| 172 |
# on Ubuntu) to be sure apt-get installs the latest |
| 173 |
# builds (we need 1.1.8 or higher). |
| 174 |
# Set path to the root of the VLC installation |
| 175 |
# If the are installed in /usr/local/vlc then set |
| 176 |
# VLC_INSTALL = /usr/local/vlc |
| 177 |
# This will automatically set (Windows and Unix): |
| 178 |
# VLC_INCLUDE = $${VLC_INSTALL}/include |
| 179 |
# For Windows |
| 180 |
# VLC_LIBS = $${VLC_INSTALL}/lib/libvlc.dll.a |
| 181 |
# For Unix |
| 182 |
# VLC_LIBS = -lvlc |
| 183 |
# You may override the INCLUDE and LIB files if you like. |
| 184 |
# You *must* define VLC_INSTALL to use this feature. |
| 185 |
#VLC_INSTALL = |
| 186 |
#VLC_INCLUDE = |
| 187 |
#VLC_LIBS = |
| 188 |
|
| 189 |
# *** Mac users NOTE *** |
| 190 |
# On MAC you don't need libvlc since we use the |
| 191 |
# native QTKit (OSX framework) for video playback |
| 192 |
# using Quicktime and on 10.6 or higher Quicktime X |
| 193 |
# |
| 194 |
|
| 195 |
# if you want to resample with high fidelity we can use the |
| 196 |
# libsamplerate libraries, this is used in RideFile::resample() |
| 197 |
# if you don't resample (e.g. export or merge with new recording |
| 198 |
# intervals) then don't bother. |
| 199 |
# |
| 200 |
# Mainly tested on Linux, compilation on Windows requires |
| 201 |
# some modifications in the build process to build with MSVC2015 |
| 202 |
# Code is available at: http://www.mega-nerd.com/SRC/ |
| 203 |
# |
| 204 |
#SAMPLERATE_INSTALL = /usr/local |
| 205 |
#SAMPLERATE_INCLUDE = /usr/local/include |
| 206 |
#SAMPLERATE_LIBS = /usr/local/lib/libsamplerate.a |
| 207 |
|
| 208 |
# If your system has PKG_CONFIG, QT can use this to get dependent libraries. |
| 209 |
# Add the names of libraries with PKG_CONFIG information. |
| 210 |
# eg. PKGCONFIG = oauth libical |
| 211 |
# Uncomment the following two lines to enable. |
| 212 |
#CONFIG += link_pkgconfig |
| 213 |
#PKGCONFIG = |
| 214 |
|
| 215 |
# If your QT build includes its own local compress libs |
| 216 |
# then you should comment the line below, otherwise you |
| 217 |
# will need to have the compress libraries installed |
| 218 |
# separately. |
| 219 |
#LIBZ_INCLUDE = |
| 220 |
LIBZ_LIBS = -lz |
| 221 |
|
| 222 |
macx { |
| 223 |
# Uncomment this line to build with OS X Tiger support on a Leopard system: |
| 224 |
#QMAKE_MAC_SDK=/Developer/SDKs/MacOSX10.4u.sdk |
| 225 |
|
| 226 |
# Uncomment this line to build a OS X universal binary: |
| 227 |
#CONFIG+=x86 ppc |
| 228 |
|
| 229 |
# Uncomment this line if you have SDK 10.7 or higher |
| 230 |
#DEFINES += GC_HAVE_LION |
| 231 |
|
| 232 |
#uncomment below if you are running on the 10.9 developer preview |
| 233 |
#INCLUDEPATH += /Library/Developer/CommandLineTools/SDKs/MacOSX10.9.sdk/usr/include/ |
| 234 |
} |
| 235 |
|
| 236 |
# uncomment below for R integration via webservices |
| 237 |
#HTPATH = ../httpserver |
| 238 |
|
| 239 |
#if you want a 'robot' to test realtime code without having |
| 240 |
#to get on your trainer and ride then uncomment below |
| 241 |
#DEFINES += GC_WANT_ROBOT |
| 242 |
|
| 243 |
#if you have a version of mingw that properly provides |
| 244 |
#the Dwmapi.h header then uncomment this line |
| 245 |
#DEFINES += GC_HAVE_DWM |
| 246 |
|
| 247 |
# USING THE DROPBOX API |
| 248 |
# register your app at https://www.dropbox.com/developers/apps and |
| 249 |
# make sure the redirect_uri for the app includes the url: |
| 250 |
# https://goldencheetah.github.io/blank.html and full permissions |
| 251 |
# are granted. Then set the client # and secret in the two defines |
| 252 |
# below replacing the xxxxxxxxxxxxxx with the actual values. |
| 253 |
#DEFINES += GC_DROPBOX_CLIENT_ID=\\\"xxxxxxxxxxxxxxx\\\" |
| 254 |
#DEFINES += GC_DROPBOX_CLIENT_SECRET=\\\"xxxxxxxxxxxxxxx\\\" |
| 255 |
|
| 256 |
# if you have your own MAPQUEST KEY |
| 257 |
#DEFINES += GC_MAPQUESTAPI_KEY=\\\"xxxxxxxxxxxxxxxxxxxxxx\\\" |
| 258 |
|
| 259 |
# USING THE WITHINGS API (http://oauth.withings.com/api) |
| 260 |
#DEFINES += GC_WITHINGS_CONSUMER_KEY=\\\"xxxxxxxxxxxxxxx\\\" |
| 261 |
#DEFINES += GC_WITHINGS_CONSUMER_SECRET=\\\"xxxxxxxxxxxxxxx\\\" |
| 262 |
|
| 263 |
# What video playback do you want? |
| 264 |
DEFINES += GC_VIDEO_NONE # dont add any video playback support |
| 265 |
#DEFINES += GC_VIDEO_QUICKTIME # mac only and the default |
| 266 |
#DEFINES += GC_VIDEO_QT5 # use QT5 qvideowidget if QT > 5.2.1 |
| 267 |
#DEFINES += GC_VIDEO_VLC # use VideoLan library needs VLC_INSTALL defined above |
| 268 |
#DEFINES += GC_VIDEO_AV # use AV Foundation on Mac now QTKit is deprecated |
| 269 |
|
| 270 |
|
| 271 |
# Using the GoldenCheetah/CloudDB feature (with a private CloudDB instance) |
| 272 |
# requires that you have a running instance of CloudDB on Google App Engine |
| 273 |
# (for details on CloudDB please check the documentation here: https://github.com/GoldenCheetah/CloudDB |
| 274 |
#DEFINES +=GC_CLOUD_DB_BASIC_AUTH= |
| 275 |
#DEFINES +=GC_CLOUD_DB_APP_NAME= |
| 276 |
#CloudDB = active |