Commit Graph

121 Commits

Author SHA1 Message Date
Alexander Shalamov
71efb24e2d Bump mapbox-base to 1.2.0 2020-03-23 11:33:06 -04:00
Thiago Marcos P. Santos
26a878a7a0 [build] Include an internal/internal.cmake if exists
Useful for including extra modules in forks.
2020-03-09 19:57:10 +02:00
Thiago Marcos P. Santos
e6024a2e02 [build] Do not do license check on core only builds (#16276)
Users will add more dependencies and the script will break the build.
2020-03-08 17:43:45 +02:00
Thiago Marcos P. Santos
427d785848 [build] Make csscolorparser and parsedate vendors
They have a different license from the rest of the code
and this will make it explicit. Also the script for generating
the license will dectect them correctly.
2020-02-27 18:19:31 +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
Mikhail Pozdnyakov
1399040087 [core] Move mbgl::Pass and mbgl::PassRefPtr to a separate header 2020-02-26 22:31:59 +02:00
Thiago Marcos P. Santos
f105100943 [build] Bump mapbox-base
This will move geojson-vt-cpp and shelf-pack-cpp
to mapbox-base collection of libraries.
2020-02-24 18:19:05 +03:00
Mikhail Pozdnyakov
75f861fe47 [core] Dismiss actors from sprite loader
and get rid of `SpriteLoaderWorker`, use `scheduleAndReplyValue()` API instead.
2020-02-24 14:02:57 +02:00
zmiao
6764ab4675 [core] Move geometry within algorithm to util 2020-02-21 21:39:48 +02:00
Kevin Li
02274e7601 [core] Implement 'in' expression. (#16162)
* Implement in.cpp

* Fix review comments.

* Add expression_equality test for 'in'

* Fix review comments.

* [core] Update changelog.

* [core] Update mapbox-gl-js

* [core] Ignore render-tests/debug/padding

* [core] Update baseline.
2020-02-15 17:36:57 +08:00
Konstantin Käfer
a876c965a5 [core] Store SegmentVectors in ephemeral render objects
We used some shared SegmentVectors, e.g. for drawing raster or background tiles.
In longer running maps, this lead to resource accumulation. By storing the SegmentVectors
and the contained gfx::DrawScope objects, we ensure that resources get released
when the associated render objects vanish.
2020-02-14 17:34:00 +02:00
Juha Alanen
7a9f8027ac [build] Enable ccache for Xcode iOS builds 2020-02-14 12:01:52 +02:00
zmiao
2963afa010 Add support for expression test
Fix polygon within algorithm
Add Unit tests

Fix incorrect metrics folder for ios-render-test-runner job
2020-02-12 12:24:05 +02:00
Thiago Marcos P. Santos
f7fef70e9d [build] Move the next buildsystem to the root
This will make the `next` buildsystem no longer the `next`, but the
`actual`. The idea is to simplify the build, removing scripts, to
make the platform buildsystem generated by CMake more compatible
with IDEs and make development more streamlined. It will also make
cross compilation easier.
2020-02-07 20:12:44 +02:00
Thomas Moenicke
b64ed75444 [build] Adding a build flag to build without GL if needed (#16120)
* [build] Adding a build flag to build without GL if needed

* [build] Moving custom layer to mbgl/gl
2020-02-03 19:10:57 +02:00
Siarhei Fedartsou
e211b40a82 [build] Add WITH_NO_RTTI CMake option to be able to build gl-native with RTTI if needed 2020-01-29 18:44:50 +02: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
Alexander Shalamov
631bc4f6a3 [core] Add native expression test runner 2019-09-04 10:37:50 +03:00
Bruno de Oliveira Abinader
3b0e5a59a2 [core] Implement C++ render test runner 2019-06-25 20:10:21 +03:00
Konstantin Käfer
979433eddb [build] update Boost to 1.69 and remove RTTI 2019-03-13 20:42:30 +01:00
Ander Conselvan de Oliveira
8afb24b539 [build] A build target to check for doxygen documentation coverage
Add a cmake target that builds doxygen documentation and reports on
coverage using doxy-coverage. Script was copied from:

29a0bbf43b
2019-03-13 15:06:56 +02:00
Konstantin Käfer
98cc7c6c5f [build] upgrade minimum CMake version 2019-01-21 17:00:31 +01:00
Jason Wray
9d7b774960 [core, build] Use -Os for RelWithDebInfo darwin builds
This makes a 17% difference in binary size.
2018-12-05 12:34:39 -05:00
Konstantin Käfer
a0b8f01c1b [build] use newer compiler versions for some builds 2018-11-28 14:49:44 +01:00
Bruno de Oliveira Abinader
00c71c89cb [build] Set C++11 ABI on by default 2018-11-26 12:42:14 +02:00
Bruno de Oliveira Abinader
06a51713f6 [build] Set CMAKE_EXPORT_COMPILE_COMMANDS=ON by default 2018-11-26 12:42:14 +02:00
Konstantin Käfer
f30429832e [build] use GLFW as a submodule and update to most recent version
this fixes https://github.com/glfw/glfw/issues/1334 for macOS Mojave
2018-11-21 10:12:59 +01:00
Ander Conselvan de Oliveira
ca21cedb84 [build] Use clcache in appveyor build
clcache is a cache for compiled C and C++ objects similar to ccache but
compatible with Microsoft compilers. Using it should result in faster
builds.
2018-11-01 13:49:15 +02:00
Thiago Marcos P. Santos
69960afb8d [build] Add build system for submodules
Vendorize the submodules and a simple CMake build
system for all them. The dependencies will inherit
compilation options for core.

The goal is to make Mapbox GL Core completely self
contained with a simple offline build.
2018-10-31 18:19:28 +02:00
Konstantin Käfer
282c71e8e9 [core] unify UTF-8/16 conversion to <boost/locale/encoding_utf.hpp> 2018-10-23 12:23:40 +02:00
Konstantin Käfer
30e570aae7 [core] add polyfill for codecvt for STLs that don't have it yet 2018-09-11 11:43:54 +02:00
Konstantin Käfer
679d66f36d [build] use vendored SQLite for LTO benefits + custom compile flags 2018-09-05 12:26:15 +02:00
Konstantin Käfer
1e454642c8 [build] allow WITH_EGL for macOS as well (SwiftShader) and enable EGL for GLFW 2018-08-27 14:07:40 -07:00
Bryan Haber
31bdb74f48 [build] fixed typo in list of configuration types; RelWithDebugInfo should be RelWithDebInfo
- added missing linker flags for Sanitize configuration type
- changed mason's download to use cmake's built-in support instead of directly calling curl
2018-08-20 21:24:12 +02:00
Konstantin Käfer
bded6c65d5 [build] use plain text files for file lists to simplify integration with other build systems 2018-08-20 19:11:31 +02:00
Konstantin Käfer
6e06e55b95 WIP: use expected<T, E> for passing on errors 2018-08-14 17:03:46 -07:00
Ivo van Dongen
946db666b9 [core] support windows compilation with msvc2017 and clang 6 2018-08-07 10:13:19 +03:00
Konstantin Käfer
93d37282d9 [build] organize CMake targets in folders for IDEs 2018-07-17 18:36:17 +02:00
John Firebaugh
ca9ba9cb43 [build] Move all mason_use statements to a single file
So its checksum can be used in a CI cache key name.
2018-07-13 11:50:39 -07:00
Chris Loer
251f5e605f [core, vendor] Create vendored nunicode 1.8.
- Version bump to 1.8 necessary for "unaccent" functionality
- Qt now depends on nunicode, ruling out use of precompiled binaries
2018-07-03 10:03:05 -07:00
Konstantin Käfer
0b305aca7d [linux] statically link the C++ standard library
Most of the STL is header-only anyway, and statically linking it only has a small overhead. On the other hand, it allows us to build more portable executables.
2018-06-04 10:43:21 +02:00
Konstantin Käfer
2694c0df03 [build] disable parts of the build that require node when WITH_NODEJS=OFF is set 2018-05-24 21:50:29 +02:00
Dane Springmeyer
29214902b5 Fix CXX11ABI builds with clang++
The intention of the `WITH_CXX11ABI` option is to allow the user to control toggle whether to compile against the CXX11ABI in libstdc++  (and whether to download a few specific CXX11ABI compatible mason packages as well).

This option is important if you are building binaries (like the node binaries) and you want to support a platform that is older and does not have a recent enough libstdc++ to support the CXX11ABI (like ubuntu:precise, centos6, etc).

But this was broken for clang++ builds due to the use of `MAKE_COMPILER_IS_GNUCXX`. That was preventing the correct flags from being set when using clang++ effectively making the option useless and resulting in the build defaulting to whatever the libstdc++-dev headers default is on the system (which varies per linux distribution based on how libstdc++-dev is packaged).

This fixes the problem by ensuring that clang++ builds still support toggling control over this option.

Note: clang++ > 3.9 supports targeting both the new CXX11ABI in libstdc++ (with `-D_GLIBCXX_USE_CXX11_ABI=1`) and targeting the old one (with `-D_GLIBCXX_USE_CXX11_ABI=0`).
2018-05-02 10:28:40 -07:00
Dane Springmeyer
de8fd3f97b allow disabling -Werror (#11589) 2018-04-19 17:36:19 -04:00
Konstantin Käfer
aba733dc72 [core] update vector-tile dependency to 1.0.1 2018-01-10 22:17:44 -08:00
Thiago Marcos P. Santos
d7d73a26ac [build] Do not override CMake build configuration flags
These flags are set, for instance, by Ninja on Windows.
2018-01-10 21:42:20 +02:00
Thiago Marcos P. Santos
f391271532 [windows][build] Make nodejs/npm optional 2018-01-08 22:58:20 +02:00
Thiago Marcos P. Santos
6a6b451ac0 [core] Bump Boost version to 1.65.1
Fixes a build error when building for Windows with clang.
2018-01-08 22:58:20 +02:00
Bruno de Oliveira Abinader
f2d781ad55 [build] linux-clang39-debug → linux-clang-3.8-libcxx-debug 2017-12-19 12:20:48 +02:00