Commit Graph

683 Commits

Author SHA1 Message Date
Thiago Marcos P. Santos
aa2e8fbb6a [build] Move to Ubuntu Eoan
Disco has reached EOL and apt-get fails.
2020-04-16 19:31:23 +03:00
Juha Alanen
3a91597c5d [benchmark] Add script for comparing benchmark results to baseline
Benchmark will fail if the average time is more than 5% higher
than the baseline.
2020-04-15 19:11:28 +03:00
Andrew Hay Kurtz
0c95acf103 Enable 'circle-sort-key' layout property 2020-04-14 22:30:40 +03:00
Gali Nelle
209857f8ac Fix LocationIndicator Layer
This changes image size properties to be scales instead of pixel sizes.
The commit also adds fixes for handling image updates with the same ID,
adds tests for expressions in paint properties, as well as tests for using images
with pixel ratio greater than 1.
Finally it moves image-tilt-displacement and perspective-compensation properties
from layout to paint properties, and includes other minor cleanups.
2020-04-10 00:15:43 +03:00
Gali Nelle
8e581c88ea Make location indicator bearing a paint property
This change introduces a new property type, Rotation, that uses
a custom interpolator, and that is currently applied to
all style properties named "bearing", with a period attribute.
2020-04-08 14:00:26 +03:00
Gali Nelle
9a55c282fe Add LocationIndicatorLayer
New key is "G" in mbgl-glfw, cycling between no puck, centered
in the viewport and positioned in Tokyo.
2020-04-08 14:00:26 +03:00
zmiao
bf4c7340f3 [build] Fix undefined behavour sanitizer (#16375)
* [build] Fix integer overflow runtime error for core part

Temporarily remove circle ci UBSAN build precondition

* [build] Enable all of the ubsans

[build] Check runtime error

[build] Update UBSAN_OPTION

* [build] Add UBSAN blacklist

[build] Ignore system libraries

[build] Ignore vendor library

* [build] Fix implicit conversion runtime error in core

* [build] Fix division by zero runtime error

* [build] Add unfixed error to ubsan blacklist

* [build] Make UBSAN halt on error

Revert "Temporary remove build precondition"

* [build] Fix division by zero error

* [build] Make UBSAN officially work without FIXME prefix

* [build] Fix implicit conversion from int64_t to uint64_t

* [build] Rename style test json file name

* Address review findings
2020-04-07 16:30:30 +03:00
Thiago Marcos P. Santos
b7728d222c [build] Make the docker image smaller
It could be made even smaller by splitting Android and Linux
builds, but so far CircleCI is handling it fine.
2020-04-02 13:11:41 +03:00
Thiago Marcos P. Santos
3e173e1b71 [build] Deprecated GCC 4.9 and set the minimum to GCC 5 2020-03-23 20:05:40 +02:00
Thiago Marcos P. Santos
ef19a33866 [build] Trigger the downstream CI and get the status back
Allows triggering a pipeline at any other repository
passing parameters.
2020-03-20 13:59:23 +02:00
Thiago Marcos P. Santos
7d77a55fe0 [build] Bump docker
Allow building with OpenGL ES 2.0 headers on Linux.
2020-03-14 03:08:54 +02:00
Thiago Marcos P. Santos
242b719f0c [build] Generate the LICENSE.md for mbgl-core
Add a script that for everything we link against
mbgl-core, it will check the license and generate
a file all the dependencies listed with the respective
authors, project urls and license.
2020-02-27 18:19:31 +02:00
Juha Alanen
b756ff8e14 [build][ios] Move iOS specific ccache scripts to platform directory 2020-02-27 10:09:35 +02:00
Juha Alanen
7a9f8027ac [build] Enable ccache for Xcode iOS builds 2020-02-14 12:01:52 +02:00
Thiago Marcos P. Santos
47f2b20435 [build] Remove unused files
Buck build is no longer needed, neither is the previous
CMake buildsystem.
2020-02-07 20:12:44 +02:00
Andrew Hay Kurtz
da4eb01bc7 [core] Enable 'line-sort-key' and 'fill-sort-key' layout properties (#15839)
- Generate style code for 'line-sort-key' and 'symbol-sort-key'

- Add new layout properties to FillLayer::Impl, FillBucket, and FillLayerFactory

- Fix consistency of paint and layout properties type alias usage in FillBucket, LineBucket

- Add optional feature sorting to fill and line Layout creation

- Enable node render tests for fill-sort-key and line-sort-key

- Fix FillBucket test construction

- Prefer emplace_back to push_back for PatternFeature container

- Fix buggy static_cast for PatternFeature indices

- Maintain sort of features as they are created

- Switch pattern layout features container to list from vector for better insert performance

- Fix formatting expected by sanity check

- Use subclass PatternLayoutSorted to work around lack of template functions

- Fix to retain source order for features with equivalent sort keys during sorting

- [core] Fix clang-format

- [core] Address review comments

- [core] Pass inserting strategy class at compile time

- [core] Use sorted strategy only if sort key is defined in layout

- [core] Update style generator

- [core] Merge PatternLayout and PatternLayoutSorted classes

  - Use static methods for inserter strategies
  - Merge PatternLayout and PatternLayoutSorted classes
2019-12-17 14:25:19 +02:00
Vladimir Agafonkin
9d2de382bf [build] remove obsolete code in shader generation (#14906) 2019-12-11 13:58:35 +02:00
Alexander Shalamov
84ec379477 [core] Turn off clang format for generated shaded code 2019-12-02 17:11:49 +02:00
Alexander Shalamov
26bf566f53 [core] Use new 'SymbolTextAndIcon' program to draw icons in text 2019-12-02 17:11:49 +02:00
Thiago Marcos P. Santos
656bc9c8bb [build] Run Valgrind instead of Memory Sanitizer
Memory Sanitizer requires all the dependencies, including
libstdc++ to be compiled with Memory Sanitizer, otherwise
we will get tons of false positives.
2019-11-20 13:56:48 +02:00
Alexander Shalamov
c6f3cc8b60 [core] Implement image expression (#15877)
* [core] Bump gl-js version
* [core] Implement image expression
* [core] Use new image expression
* [core] Coerce image expression to / from string
* [core] Serialize evaluated image
* [core] Pass available images to layout
* [core] Pass images to evaluation context
* [core] Set available flag value based on image availability
* [core] Allow image coercion to boolean to indicate image availability
* [core] Coalesce image expression
* [core] Add image expression to next build system
* [core] Align serialization format and evaluated type with gl-js
* [core] Add images to expression evaluation method
* [core] Add support for Image expression to expression test runner
* [core] Unskip image expression tests
* [core] Update unit tests
* [core] Use image expression in annotation manager
* [core] Add string to ImageExpression conversion
* [core] Add image expression to expression dsl
* [core] Convert tokens for implicitly created Image literal
* [core] Fix clang format
* [core] Split generated style code lines that are over 120 characters
* [core] Add unit test for image expression equality
* [core] Add image property expression evaluation unit test
* [core] Unskip image expression render test
* [core] Skip 'in' expression tests
* [core] Ignore fill-pattern/update-feature-state render test
* [core] Rename Image::serialize to Image::toValue
2019-11-11 18:20:01 +02:00
Mikko Pulkki
4176b28a77 [Linux] Remove CA certificate bundle 2019-11-11 10:11:49 +02:00
Mikhail Pozdnyakov
55e18a6f81 [core] Use expected.hpp from mapbox-base 2019-11-08 11:27:30 +02:00
Thiago Marcos P. Santos
1cfd0c4e92 [build] Bump CI docker image
This version includes gcloud, needed to run
android firebase tests.
2019-10-23 14:29:18 +03:00
Konstantin Käfer
8206ce0e02 [core] map image type to string until we have a dedicated implementation 2019-10-14 18:46:12 +02:00
Mikhail Pozdnyakov
2b834001cc [core] type aliases and conversion traits for mapbox::base::Value 2019-09-26 11:57:39 +03:00
Dan Swick
8bbc4a2178 [android, build] Generalize docs deployment script and add Android docs deployment to circle config (#15299) 2019-09-18 12:44:18 -07:00
Thiago Marcos P. Santos
f6bb784439 [build] CI config
Run it in parallel with the old build system. This will offer
a migration path and make sure we keep everything working at
the cost of running many CI bots. New stuff is prefixed with "next".

Appveyor already got migrated to the next buildsystem.

After merging, we will follow-up removing duplicated core bots.
2019-09-17 12:28:55 +03:00
Thiago Marcos P. Santos
102a07cc63 [build] Remove CXX11 flag
No longer needed after we vendorized so many deps.
2019-09-11 11:33:34 +03:00
Mikhail Pozdnyakov
151ea331f8 [core] Use mapbox::base::TypeWrapper instead of utils::peer 2019-09-10 11:51:17 +03:00
Mikhail Pozdnyakov
5207a36074 [core, ios, macos] SDK objects should hold weak pointers to the core style objects (#15539) 2019-09-09 23:55:38 -04:00
Mikhail Pozdnyakov
26ea9798b7 [build] Use rapidjson from mapbox-base 2019-09-02 14:09:08 +03:00
Mikhail Pozdnyakov
02c9918b83 [build] Use pixelmatch-cpp from mapbox-base 2019-09-02 14:09:08 +03:00
Mikhail Pozdnyakov
899287b4ad [build] Use filesystem from mapbox-base 2019-09-02 14:09:08 +03:00
Mikhail Pozdnyakov
805eede8c4 [build] Use args from mapbox-base 2019-09-02 14:09:08 +03:00
Mikhail Pozdnyakov
4af4081fcf [build] Use jni.hpp from mapbox-base 2019-09-02 14:09:08 +03:00
Mikhail Pozdnyakov
0edc50561f [build] Use geojson.hpp from mapbox-base 2019-09-02 14:09:08 +03:00
Mikhail Pozdnyakov
d4ef66c7b0 [build] Use kdbush.hpp from mapbox-base 2019-09-02 14:09:08 +03:00
Mikhail Pozdnyakov
0c0b82dc27 [build] Use supercluster.hpp from mapbox-base 2019-09-02 14:09:08 +03:00
Mikhail Pozdnyakov
ef124e9331 [build] Bump mapbox-base version 2019-09-02 14:09:08 +03:00
Jason Wray
f8901e2b10 [build] Look further back for branch merge base 2019-08-13 14:43:11 -07:00
Jason Wray
bc09cdbf76 [build] Fix pluralization nit 2019-08-08 18:21:28 -07:00
Jason Wray
a3a661e846 [build] Skip CI jobs if there are no relevant changed files 2019-08-08 15:35:56 -07:00
Mikhail Pozdnyakov
04309e01ce [core] Switch test build to googletest git submodule 2019-08-01 13:54:28 +03:00
Bruno de Oliveira Abinader
6f0cda8c8b [build] Use mapbox-base optional 2019-07-29 18:36:08 +03:00
Bruno de Oliveira Abinader
b5980bda75 [build] Replace geometry.hpp/variant with mapbox-base 2019-07-26 17:43:18 +03:00
Thiago Marcos P. Santos
1aa4776dc1 [tests] Bump GL JS to run render test for #15139
https://github.com/mapbox/mapbox-gl-js/pull/8510
2019-07-19 15:17:00 +02:00
Bruno de Oliveira Abinader
8367c2ed5c [core] Added vendor/filesystem 2019-06-25 20:10:21 +03:00
Julian Rex
823670ea35 [ios, macos] Optionally include a developer xcconfig file in generated config.xcconfig file. (#14766) 2019-06-14 16:47:48 -04:00
Konstantin Käfer
844299f1c3 [build] remove roundtrip through <experimental/optional> when using optional 2019-06-12 12:04:07 +02:00