[platform] Separate the location_service lib #9981

Open
Ferenc- wants to merge 2 commits from separate-locationservice-lib into master
Ferenc- commented 2025-01-01 04:26:10 +00:00 (Migrated from github.com)
Fixes https://git.omaps.dev/organicmaps/organicmaps/issues/9728 An alternative to https://git.omaps.dev/organicmaps/organicmaps/pulls/9731
biodranik (Migrated from github.com) reviewed 2025-01-01 04:26:10 +00:00
biodranik (Migrated from github.com) reviewed 2025-01-19 23:41:26 +00:00
biodranik (Migrated from github.com) commented 2025-01-19 23:34:20 +00:00
  1. What was the original intent in supporting SKIP_QT_GUI (SKIP_DESKTOP) flag? Is it still valid/important? Can this flag be dropped completely in favor of an explicit target list when building binaries? A cleaner find_package(Qt6) approach may be needed (e.g. do it only if the related target is built).
  2. Why is location service considered as "GUI" module here?
1. What was the original intent in supporting SKIP_QT_GUI (SKIP_DESKTOP) flag? Is it still valid/important? Can this flag be dropped completely in favor of an explicit target list when building binaries? A cleaner find_package(Qt6) approach may be needed (e.g. do it only if the related target is built). 2. Why is location service considered as "GUI" module here?
biodranik (Migrated from github.com) commented 2025-01-19 23:40:14 +00:00

Are these options repeated somewhere? Would it be better to set globally CMAKE_OBJCXX_FLAGS instead on Mac/iOS?

Are these options repeated somewhere? Would it be better to set globally CMAKE_OBJCXX_FLAGS instead on Mac/iOS?
@ -0,0 +1,28 @@
project(location_service)
biodranik (Migrated from github.com) commented 2025-01-19 23:36:38 +00:00

nit

project(location_service LANGUAGES CXX OBJCXX)
nit ```suggestion project(location_service LANGUAGES CXX OBJCXX) ```
Ferenc- (Migrated from github.com) reviewed 2025-01-28 12:27:11 +00:00
@ -0,0 +1,28 @@
project(location_service)
Ferenc- (Migrated from github.com) commented 2025-01-28 12:27:11 +00:00

CXX is enabled by default and we should not repeat ourselves.
Adding OBJCXX would completely break existing Linux builds, as adding this would force the Linux systems to also install an objective-c++ compiler all of a sudden, for no actual reason, as it is not needed for a Linux build at all. So I don't think that these changes are in our interest.

`CXX` is enabled by default and we should not repeat ourselves. Adding `OBJCXX` would completely break existing Linux builds, as adding this would force the Linux systems to also install an `objective-c++` compiler all of a sudden, for no actual reason, as it is not needed for a Linux build at all. So I don't think that these changes are in our interest.
Ferenc- (Migrated from github.com) reviewed 2025-01-28 12:58:10 +00:00
Ferenc- (Migrated from github.com) commented 2025-01-28 12:58:09 +00:00

Removed.

Removed.
Ferenc- (Migrated from github.com) reviewed 2025-01-28 15:59:57 +00:00
Ferenc- (Migrated from github.com) commented 2025-01-28 15:59:57 +00:00
  1. What was the original intent in supporting SKIP_QT_GUI (SKIP_DESKTOP) flag?

The original intent was to remove the dependency on the Qt "Positioning" component when not needed for example when building the generator_tool, pointed out by you in organicmaps/organicmaps#5823 (comment)

Is it still valid/important?

The intent of reducing the dependency is still valid and important.

Can this flag be dropped completely in favor of an explicit target list when building binaries?

Most probably the answer is yes. And we would need to answer a whole lot of more questions, like how to properly build the generator_tool target because currently it is a complete mess IMHO. And such a refactor is not the topic of this PR.

Why is location service considered as "GUI" module here?
Very simple, because only GUI can possibly make real use of the location service at the moment. That I don't forsee chaning, but it is true that after some thorough refactoring probably a different variable would be here if any.

> 1. What was the original intent in supporting SKIP_QT_GUI (SKIP_DESKTOP) flag? The original intent was to remove the dependency on the Qt "Positioning" component when not needed for example when building the `generator_tool`, pointed out by you in https://git.omaps.dev/organicmaps/organicmaps/pulls/5823#issuecomment-1722211350 > Is it still valid/important? The intent of reducing the dependency is still valid and important. > Can this flag be dropped completely in favor of an explicit target list when building binaries? Most probably the answer is yes. And we would need to answer a whole lot of more questions, like how to properly build the generator_tool target because currently it is a complete mess IMHO. And such a refactor is not the topic of this PR. > Why is location service considered as "GUI" module here? Very simple, because only GUI can possibly make real use of the location service at the moment. That I don't forsee chaning, but it is true that after some thorough refactoring probably a different variable would be here if any.
pastk approved these changes 2025-02-27 15:00:27 +00:00
vng (Migrated from github.com) approved these changes 2025-02-28 15:59:29 +00:00
This repo is archived. You cannot comment on pull requests.
No labels
Accessibility
Accessibility
Address
Address
Android
Android
Android Auto
Android Auto
Android Automotive (AAOS)
Android Automotive (AAOS)
API
API
AppGallery
AppGallery
AppStore
AppStore
Battery and Performance
Battery and Performance
Blocker
Blocker
Bookmarks and Tracks
Bookmarks and Tracks
Borders
Borders
Bug
Bug
Build
Build
CarPlay
CarPlay
Classificator
Classificator
Community
Community
Core
Core
CrashReports
CrashReports
Cycling
Cycling
Desktop
Desktop
DevEx
DevEx
DevOps
DevOps
dev_sandbox
dev_sandbox
Directions
Directions
Documentation
Documentation
Downloader
Downloader
Drape
Drape
Driving
Driving
Duplicate
Duplicate
Editor
Editor
Elevation
Elevation
Enhancement
Enhancement
Epic
Epic
External Map Datasets
External Map Datasets
F-Droid
F-Droid
Fonts
Fonts
Frequently User Reported
Frequently User Reported
Fund
Fund
Generator
Generator
Good first issue
Good first issue
Google Play
Google Play
GPS
GPS
GSoC
GSoC
iCloud
iCloud
Icons
Icons
iOS
iOS
Legal
Legal
Linux Desktop
Linux Desktop
Linux packaging
Linux packaging
Linux Phone
Linux Phone
Mac OS
Mac OS
Map Data
Map Data
Metro
Metro
Navigation
Navigation
Need Feedback
Need Feedback
Night Mode
Night Mode
NLnet 2024-06-281
NLnet 2024-06-281
No Feature Parity
No Feature Parity
Opening Hours
Opening Hours
Outdoors
Outdoors
POI Info
POI Info
Privacy
Privacy
Public Transport
Public Transport
Raw Idea
Raw Idea
Refactoring
Refactoring
Regional
Regional
Regression
Regression
Releases
Releases
RoboTest
RoboTest
Route Planning
Route Planning
Routing
Routing
Ruler
Ruler
Search
Search
Security
Security
Styles
Styles
Tests
Tests
Track Recording
Track Recording
Translations
Translations
TTS
TTS
UI
UI
UX
UX
Walk Navigation
Walk Navigation
Watches
Watches
Web
Web
Wikipedia
Wikipedia
Windows
Windows
Won't fix
Won't fix
World Map
World Map
No milestone
No project
No assignees
2 participants
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: organicmaps/organicmaps-tmp#9981
No description provided.