Jeroen Massar
4a8619349a
Debug reminder: how to get more verbose details out of cmake
...
Signed-off-by: Jeroen Massar <jeroen@massar.ch>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-03-16 08:59:37 -07:00
Dirk Hohndel
a64eef7f82
Android build: automate setting the right version number
...
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-03-05 17:14:33 -08:00
Tomaz Canabrava
219299dc01
Correctly handle SubsurfaceMobile
...
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-01-08 08:04:24 -08:00
Tomaz Canabrava
89eed5d36e
Untangle Library Linkage
...
with the adittion of gpslistmodel/location, the libraries
qt-models had a direct dependency on subsurface-core, and
subsurface-core had a direct dependency on qt-models, this is
bad.
Moving a bit of code around I'v managed to clean this out, and
also to clear a bit of uneeded code (GpsTracker and gpsTracker where
basically the same thing.)
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-01-08 08:04:04 -08:00
Dirk Hohndel
a7f8a7574e
Create GpsListModel in order to be able to display GPS fixes
...
This will allow us to visualize the GPS fixes that are currently stored in the
QML UI.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-01-07 21:29:05 -08:00
Dirk Hohndel
0f31102020
Don't try to install Grantlee files when building Subsurface-mobile on Mac
...
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-01-07 10:22:31 -08:00
Miika Turkia
164d2f8c07
Enable BT_SUPPORT compilation flag
...
We need to enable the BT_SUPPORT compilation flag to get the support
built in.
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-01-04 10:00:44 -08:00
Dirk Hohndel
98fb625667
Cmake: only need Marble/Grantlee/Manual for desktop version
...
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-30 09:55:24 -08:00
Dirk Hohndel
b87df3ecaa
Cmake: don't add the BT_SUPPORT define too early
...
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-21 10:53:55 -08:00
Dirk Hohndel
c819d40c19
Cmake: don't use wildcards when deleting debug components
...
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-19 22:09:31 -08:00
Dirk Hohndel
c7278cd9ed
Cmake: adjust dlllist.cmake to no longer be created on the fly
...
Because of this a bunch of variables need to be passed in and the quoting
changes in rather subtle ways.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-17 15:59:15 -08:00
Dirk Hohndel
88d5fc0fbc
Cmake: more use of SUBSURFACE_TARGET and more complete macdepoyqt args
...
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-17 11:50:41 -08:00
Dirk Hohndel
7c095419f7
Cmake: consistently use SUBSURFACE_TARGET and get the capitalization right
...
Also clean up a bit of the whitespace mess right where I'm making changes
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-17 11:49:58 -08:00
Tomaz Canabrava
13573915b6
Fix CMake to not add Facebook on Android
...
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-17 11:48:15 -08:00
Tomaz Canabrava
8abbcc5598
Add the correct target on the Android build
...
The android build could be the Desktop and the Mobile app,
we cannot force it to be the mobile.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-17 11:47:50 -08:00
Tomaz Canabrava
92d1dbe3fd
Build on android is a shared library
...
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-17 10:17:51 -08:00
Tomaz Canabrava
9626b8ad84
Simplify IF for OSX handling
...
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-17 10:17:39 -08:00
Dirk Hohndel
d4184f852d
Cmake: bring back the QtXml hack and other Mac changes
...
The hack in commit c8be04edad
("Mac build: move the QtXml hack into Cmake")
had been lost in the latest cmake rewrite.
Similarly, the modified BUNDLE info and the manual QML deployment.
Strangely this still doesn't correctly create a Subsurface-mobile.app on Mac.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-16 15:33:30 -08:00
Dirk Hohndel
5672d3f567
Cmake: indentation fix
...
I split this out as separate commit so that the previous commit becomes easier
to read.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-16 14:27:27 -08:00
Dirk Hohndel
060b5e2189
Cmake: fix install
...
This had not been updated since the change of direction that we would support
building Mobile and Desktop on all supported platforms.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-16 14:25:38 -08:00
Dirk Hohndel
44990671f1
Cmake: correctly read in the enabled translations
...
FILE READ doesn't do what we want. It's the STRINGS command that considers \n
as whitespace and gets the correct result.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-16 14:24:47 -08:00
Dirk Hohndel
ec48e9ce5a
Cmake: fix QtQuick component designator
...
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-16 14:03:31 -08:00
Dirk Hohndel
607a601559
Cmake: fix another Mobile/Desktop confusion
...
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-16 10:41:28 -08:00
Dirk Hohndel
23265f31b5
Cmake: fix Application/Executable confusion
...
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-16 09:48:20 -08:00
Tomaz Canabrava
b8483a1e6c
Fixed cached variable
...
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
2015-12-16 09:23:15 -08:00
Tomaz Canabrava
5acfc8c632
Fix targets on mobile and desktop
...
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
2015-12-16 09:23:02 -08:00
Tomaz Canabrava
c3493fa141
Fix some broken-by-design code
...
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
2015-12-16 09:21:28 -08:00
Tomaz Canabrava
27bf6f68f6
Create targets MobileApplication and DesktopApplication
...
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
2015-12-16 09:21:23 -08:00
Tomaz Canabrava
89658cc291
Remove checking the Platform and the App Type,
...
The check must be done, but not on the way I tried to do.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
2015-12-16 09:21:14 -08:00
Tomaz Canabrava
85946700eb
Complain if no Correct App version was passed to be build
...
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
2015-12-16 09:21:07 -08:00
Tomaz Canabrava
3462da19fd
Finish things
...
i hope
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
2015-12-16 08:02:16 -08:00
Tomaz Canabrava
6087c246c4
Read the translations from the translations file
...
instead of hardcoding everything on the main cmake
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
2015-12-16 08:01:48 -08:00
Tomaz Canabrava
30999a6898
Move run on build dir code out of the main cmake
...
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
2015-12-16 08:01:48 -08:00
Tomaz Canabrava
cc6875d39e
Rework the dependencies on the Android platform
...
We where able to build the android-mobile on desktop and the desktop on
android, now I allow only mobile on android and desktop on desktop.
this is to make the cmake clear, and we can also use the emulator on
the android platform, so nothing is really lost.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
2015-12-16 08:01:46 -08:00
Tomaz Canabrava
9079701176
Move adding -lpthread
...
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
2015-12-16 08:01:16 -08:00
Tomaz Canabrava
320cfccd71
Change the way we handle targets
...
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
2015-12-16 08:00:57 -08:00
Tomaz Canabrava
47a985b0c7
correct android usage
...
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
2015-12-16 08:00:57 -08:00
Tomaz Canabrava
b6eb865803
Issue an error when no platform is found
...
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
2015-12-16 08:00:56 -08:00
Tomaz Canabrava
aaafaade5e
Use a single variable to handle the extra Qt stuff
...
It's easier to debug what's wrong this way
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
2015-12-16 08:00:31 -08:00
Tomaz Canabrava
24f0abe347
Remove commented out code
...
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
2015-12-16 08:00:31 -08:00
Tomaz Canabrava
32714faf24
Remove the Dll finding code from within the Main CMake
...
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
2015-12-16 08:00:31 -08:00
Tomaz Canabrava
c7a3cb68f5
We don't need the same test twice for the same thing.
...
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
2015-12-16 08:00:31 -08:00
Tomaz Canabrava
4ae0ce0c60
Code Cleanup
...
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
2015-12-16 08:00:31 -08:00
Tomaz Canabrava
b33059e08b
We don't support insource builds anymore
...
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
2015-12-16 08:00:31 -08:00
Tomaz Canabrava
6948859678
Move include directories a bit down below
...
Better to follow the CMake logic and se those near the
sources
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
2015-12-16 08:00:31 -08:00
Tomaz Canabrava
957f5532b8
Move OSX code to OSX IF
...
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
2015-12-16 08:00:30 -08:00
Tomaz Canabrava
2637b5c3f1
Rework Options order, add SUBSURFACE_TARGET_PLATFORM flag.
...
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
2015-12-16 08:00:04 -08:00
Tomaz Canabrava
f26df4f80a
Move Handling of user manual to Modules directory
...
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
2015-12-16 07:59:37 -08:00
Tomaz Canabrava
268fbf3fb1
Handle VersionGeneration outside of the main CMakeFile
...
This is actually a good change: we used to write a new
CMake file in configure time just to move it outside of the
source to the build dir at compile time. Now this file is
pre-created and it's only moved.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
2015-12-16 07:59:37 -08:00
Tomaz Canabrava
f60e86b19c
Move FTDI and Grantlee configuration out of CMakeLists.txt
...
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
2015-12-16 07:59:36 -08:00