-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #691 from openmobilemaps/develop
Map-9: Develop
- Loading branch information
Showing
360 changed files
with
39,967 additions
and
1,958 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,15 @@ | ||
name: Maven build JVM | ||
on: | ||
pull_request: | ||
branches: [ main, develop, release/** ] | ||
|
||
jobs: | ||
build: | ||
name: Build JVM Project | ||
uses: UbiqueInnovation/workflows-backend/.github/workflows/mvn_install.yml@main | ||
with: | ||
ref_name: ${{ github.sha }} | ||
checkout_submodules: recursive | ||
parent_pom: jvm/pom.xml | ||
install_apt_packages: "cmake make clang libgl-dev libgles-dev libosmesa6-dev" | ||
use_mvn_central: true |
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,65 @@ | ||
name: Maven build and deploy JVM | ||
on: | ||
push: | ||
tags: | ||
- '*' | ||
workflow_dispatch: | ||
inputs: | ||
package_version: | ||
description: 'Custom version to use for maven package. Defaults to `git describe`.' | ||
required: false | ||
|
||
jobs: | ||
build: | ||
name: Build JVM package and deploy to Maven repo | ||
# Based on: UbiqueInnovation/workflows-backend/.github/workflows/mvn_package_deploy.yml@feature/alt-deployment-repository | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
submodules: recursive | ||
|
||
- name: Set up JDK | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '21' | ||
distribution: 'temurin' | ||
|
||
- name: Cache Maven packages | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: ${{ runner.os }}-m2- | ||
|
||
- name: Install build dependency apt packages | ||
run: | | ||
sudo apt install cmake make clang libgl-dev libgles-dev libosmesa6-dev | ||
- name: Create custom artifactory settings.xml | ||
uses: whelk-io/maven-settings-xml-action@9dc09b23833fa9aa7f27b63db287951856f3433d | ||
with: | ||
servers: '[{"id": "ubique-artifactory", "username": "${{ secrets.UB_ARTIFACTORY_USER}}", "password": "${{ secrets.UB_ARTIFACTORY_PASSWORD }}"}]' | ||
repositories: '[{"id" : "ubique-artifactory", "url" : "${{ secrets.UB_ARTIFACTORY_URL }}${{ secrets.UB_ARTIFACTORY_REPO_BACKEND }}"}]' | ||
|
||
|
||
- name: Set custom VERSION from workflow dispatch input | ||
if: ${{ inputs.package_version }} | ||
run: echo "VERSION=${{ inputs.package_version }}" >> $GITHUB_ENV | ||
|
||
- name: Set VERSION with git describe | ||
if: ${{ ! inputs.package_version }} | ||
run: echo "VERSION=$(git describe --tags --always)" >> $GITHUB_ENV | ||
|
||
- name: Set version | ||
run: | | ||
set -x | ||
# Strip leading `v` from VERSION | ||
# Replace all characters in `\/:"<>|?*` by `-` in VERSION | ||
VERSION=$(echo "$VERSION" | sed 's/[\/:"<>|?*]/-/g;s/^v//;') | ||
mvn -f jvm/pom.xml versions:set -DnewVersion=$VERSION | ||
mvn -f jvm/pom.xml versions:commit | ||
- name: Build and deploy package | ||
run: mvn -f jvm/pom.xml deploy -DskipTests -DaltDeploymentRepository="ubique-artifactory::${{ secrets.UB_ARTIFACTORY_URL }}${{ secrets.UB_ARTIFACTORY_REPO_BACKEND }}" |
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
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,83 @@ | ||
cmake_minimum_required(VERSION 3.24.0) | ||
project(mapscore | ||
LANGUAGES CXX | ||
) | ||
|
||
#### | ||
# mapscore OpenGL "proper", i.e. the C++ implementation without language bindings | ||
#### | ||
file(GLOB_RECURSE mapscore_SRC | ||
"shared/*.cpp" | ||
"android/src/main/cpp/graphics/*.cpp" | ||
) | ||
|
||
add_library(mapscore STATIC ${mapscore_SRC}) | ||
|
||
find_package(OpenGL) | ||
|
||
target_include_directories(mapscore PRIVATE | ||
external/protozero/protozero/include/ | ||
external/vtzero/vtzero/include/ | ||
external/earcut/earcut/include/mapbox/ | ||
shared/src | ||
shared/src/external/pugixml | ||
shared/src/external/gpc | ||
shared/src/logger | ||
shared/src/graphics | ||
shared/src/graphics/helpers | ||
shared/src/map | ||
shared/src/map/camera | ||
shared/src/map/controls | ||
shared/src/map/coordinates | ||
shared/src/map/layers | ||
shared/src/map/layers/objects | ||
shared/src/map/layers/tiled | ||
shared/src/map/layers/tiled/raster | ||
shared/src/map/layers/tiled/wmts | ||
shared/src/map/layers/tiled/vector | ||
shared/src/map/layers/tiled/vector/geojson | ||
shared/src/map/layers/tiled/vector/geojson/geojsonvt | ||
shared/src/map/layers/tiled/vector/tiles | ||
shared/src/map/layers/tiled/vector/tiles/raster | ||
shared/src/map/layers/tiled/vector/tiles/polygon | ||
shared/src/map/layers/tiled/vector/tiles/line | ||
shared/src/map/layers/tiled/vector/sourcemanagers | ||
shared/src/map/layers/tiled/vector/sublayers | ||
shared/src/map/layers/tiled/vector/sublayers/raster | ||
shared/src/map/layers/tiled/vector/sublayers/line | ||
shared/src/map/layers/tiled/vector/sublayers/polygon | ||
shared/src/map/layers/tiled/vector/sublayers/symbol | ||
shared/src/map/layers/tiled/vector/sublayers/background | ||
shared/src/map/layers/tiled/vector/symbol | ||
shared/src/map/layers/tiled/vector/description | ||
shared/src/map/layers/tiled/vector/parsing | ||
shared/src/map/layers/polygon | ||
shared/src/map/layers/icon | ||
shared/src/map/layers/line | ||
shared/src/map/layers/text | ||
shared/src/map/scheduling | ||
shared/src/utils | ||
android/src/main/cpp | ||
android/src/main/cpp/graphics | ||
android/src/main/cpp/graphics/objects | ||
android/src/main/cpp/graphics/shader | ||
android/src/main/cpp/utils | ||
) | ||
target_include_directories(mapscore PUBLIC | ||
shared/public | ||
external/djinni/support-lib/ | ||
external/djinni/support-lib/cpp | ||
) | ||
set_property( | ||
SOURCE shared/src/logger/Logger.cpp | ||
APPEND | ||
PROPERTY COMPILE_DEFINITIONS | ||
$<$<CONFIG:Debug>:LOG_LEVEL=4> # LogTrace | ||
$<$<CONFIG:Release>:LOG_LEVEL=1>) # LogWarning | ||
target_compile_definitions(mapscore PRIVATE OPENMOBILEMAPS_GL=1) | ||
target_compile_features(mapscore PRIVATE cxx_std_20) | ||
target_compile_options(mapscore PRIVATE -Werror -Wno-deprecated -Wno-reorder -fPIC) # fPIC so we can "embed" into shared mapscore_jni | ||
target_link_libraries(mapscore ${OPENGL_LIBRARIES}) | ||
|
||
add_subdirectory(standalone) | ||
add_subdirectory(jvm) |
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
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
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
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
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
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
Oops, something went wrong.