Merge branch 'master' of https://github.com/mapnik/mapnik into feature/cmake-static
This commit is contained in:
commit
65dde2cce3
5 changed files with 71 additions and 6 deletions
23
.github/workflows/macos.yml
vendored
23
.github/workflows/macos.yml
vendored
|
@ -21,7 +21,7 @@ on:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
VCPKG_BINARY_SOURCES: "clear;nuget,GitHub,readwrite"
|
VCPKG_BINARY_SOURCES: "clear;nuget,GitHub,readwrite"
|
||||||
VCPKG_NUGET_REPOSITORY: https://github.com/mapnik/mapnik/vcpkg-cache.git
|
VCPKG_NUGET_REPOSITORY: https://github.com/mapnik/vcpkg-cache.git
|
||||||
UPDATE: 1
|
UPDATE: 1
|
||||||
preset: macos-ci
|
preset: macos-ci
|
||||||
mono: mono
|
mono: mono
|
||||||
|
@ -51,6 +51,7 @@ jobs:
|
||||||
run: ./vcpkg/bootstrap-vcpkg.sh
|
run: ./vcpkg/bootstrap-vcpkg.sh
|
||||||
|
|
||||||
- name: "Setup NuGet Credentials"
|
- name: "Setup NuGet Credentials"
|
||||||
|
if: ${{ !(github.event_name == 'pull_request' || github.repository != 'mapnik/mapnik') }}
|
||||||
shell: "bash"
|
shell: "bash"
|
||||||
run: >
|
run: >
|
||||||
${{ env.mono }} `./vcpkg/vcpkg fetch nuget | tail -n 1`
|
${{ env.mono }} `./vcpkg/vcpkg fetch nuget | tail -n 1`
|
||||||
|
@ -62,11 +63,31 @@ jobs:
|
||||||
-password "${{ secrets.NUGET_REGISTRY_PAT }}"
|
-password "${{ secrets.NUGET_REGISTRY_PAT }}"
|
||||||
|
|
||||||
- name: "Setup NuGet apikey"
|
- name: "Setup NuGet apikey"
|
||||||
|
if: ${{ !(github.event_name == 'pull_request' || github.repository != 'mapnik/mapnik') }}
|
||||||
shell: "bash"
|
shell: "bash"
|
||||||
run: >
|
run: >
|
||||||
${{ env.mono }} `./vcpkg/vcpkg fetch nuget | tail -n 1`
|
${{ env.mono }} `./vcpkg/vcpkg fetch nuget | tail -n 1`
|
||||||
setapikey "${{ secrets.NUGET_REGISTRY_PAT }}" -Source "${{ inputs.NUGET_REGISTRY }}"
|
setapikey "${{ secrets.NUGET_REGISTRY_PAT }}" -Source "${{ inputs.NUGET_REGISTRY }}"
|
||||||
|
|
||||||
|
- name: "Setup NuGet Credentials READONLY"
|
||||||
|
if: ${{ github.event_name == 'pull_request' || github.repository != 'mapnik/mapnik' }}
|
||||||
|
shell: "bash"
|
||||||
|
run: >
|
||||||
|
${{ env.mono }} `./vcpkg/vcpkg fetch nuget | tail -n 1`
|
||||||
|
sources add
|
||||||
|
-source "${{ inputs.NUGET_REGISTRY }}"
|
||||||
|
-storepasswordincleartext
|
||||||
|
-name "GitHub"
|
||||||
|
-username "${{ github.actor }}"
|
||||||
|
-password "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
|
||||||
|
- name: "Setup NuGet apikey READONLY"
|
||||||
|
if: ${{ github.event_name == 'pull_request' || github.repository != 'mapnik/mapnik' }}
|
||||||
|
shell: "bash"
|
||||||
|
run: >
|
||||||
|
${{ env.mono }} `./vcpkg/vcpkg fetch nuget | tail -n 1`
|
||||||
|
setapikey "${{ secrets.GITHUB_TOKEN }}" -Source "${{ inputs.NUGET_REGISTRY }}"
|
||||||
|
|
||||||
- name: Configure CMake
|
- name: Configure CMake
|
||||||
run: cmake -DCMAKE_TOOLCHAIN_FILE=./vcpkg/scripts/buildsystems/vcpkg.cmake -DUSE_MEMORY_MAPPED_FILE=${{ inputs.USE_MEMORY_MAPPED_FILE }} --preset=${{ env.preset }}
|
run: cmake -DCMAKE_TOOLCHAIN_FILE=./vcpkg/scripts/buildsystems/vcpkg.cmake -DUSE_MEMORY_MAPPED_FILE=${{ inputs.USE_MEMORY_MAPPED_FILE }} --preset=${{ env.preset }}
|
||||||
|
|
||||||
|
|
23
.github/workflows/ubuntu.yml
vendored
23
.github/workflows/ubuntu.yml
vendored
|
@ -21,7 +21,7 @@ on:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
VCPKG_BINARY_SOURCES: "clear;nuget,GitHub,readwrite"
|
VCPKG_BINARY_SOURCES: "clear;nuget,GitHub,readwrite"
|
||||||
VCPKG_NUGET_REPOSITORY: https://github.com/mapnik/mapnik/vcpkg-cache.git
|
VCPKG_NUGET_REPOSITORY: https://github.com/mapnik/vcpkg-cache.git
|
||||||
UPDATE: 1
|
UPDATE: 1
|
||||||
preset: linux-ci
|
preset: linux-ci
|
||||||
mono: mono
|
mono: mono
|
||||||
|
@ -67,6 +67,7 @@ jobs:
|
||||||
run: ./vcpkg/bootstrap-vcpkg.sh
|
run: ./vcpkg/bootstrap-vcpkg.sh
|
||||||
|
|
||||||
- name: "Setup NuGet Credentials"
|
- name: "Setup NuGet Credentials"
|
||||||
|
if: ${{ !(github.event_name == 'pull_request' || github.repository != 'mapnik/mapnik') }}
|
||||||
shell: "bash"
|
shell: "bash"
|
||||||
run: >
|
run: >
|
||||||
${{ env.mono }} `./vcpkg/vcpkg fetch nuget | tail -n 1`
|
${{ env.mono }} `./vcpkg/vcpkg fetch nuget | tail -n 1`
|
||||||
|
@ -78,11 +79,31 @@ jobs:
|
||||||
-password "${{ secrets.NUGET_REGISTRY_PAT }}"
|
-password "${{ secrets.NUGET_REGISTRY_PAT }}"
|
||||||
|
|
||||||
- name: "Setup NuGet apikey"
|
- name: "Setup NuGet apikey"
|
||||||
|
if: ${{ !(github.event_name == 'pull_request' || github.repository != 'mapnik/mapnik') }}
|
||||||
shell: "bash"
|
shell: "bash"
|
||||||
run: >
|
run: >
|
||||||
${{ env.mono }} `./vcpkg/vcpkg fetch nuget | tail -n 1`
|
${{ env.mono }} `./vcpkg/vcpkg fetch nuget | tail -n 1`
|
||||||
setapikey "${{ secrets.NUGET_REGISTRY_PAT }}" -Source "${{ inputs.NUGET_REGISTRY }}"
|
setapikey "${{ secrets.NUGET_REGISTRY_PAT }}" -Source "${{ inputs.NUGET_REGISTRY }}"
|
||||||
|
|
||||||
|
- name: "Setup NuGet Credentials READONLY"
|
||||||
|
if: ${{ github.event_name == 'pull_request' || github.repository != 'mapnik/mapnik' }}
|
||||||
|
shell: "bash"
|
||||||
|
run: >
|
||||||
|
`./vcpkg/vcpkg fetch nuget | tail -n 1`
|
||||||
|
sources add
|
||||||
|
-source "${{ inputs.NUGET_REGISTRY }}"
|
||||||
|
-storepasswordincleartext
|
||||||
|
-name "GitHub"
|
||||||
|
-username "${{ github.actor }}"
|
||||||
|
-password "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
|
||||||
|
- name: "Setup NuGet apikey READONLY"
|
||||||
|
if: ${{ github.event_name == 'pull_request' || github.repository != 'mapnik/mapnik' }}
|
||||||
|
shell: "bash"
|
||||||
|
run: >
|
||||||
|
`./vcpkg/vcpkg fetch nuget | tail -n 1`
|
||||||
|
setapikey "${{ secrets.GITHUB_TOKEN }}" -Source "${{ inputs.NUGET_REGISTRY }}"
|
||||||
|
|
||||||
- name: Configure CMake
|
- name: Configure CMake
|
||||||
run: cmake -DCMAKE_TOOLCHAIN_FILE=./vcpkg/scripts/buildsystems/vcpkg.cmake -DUSE_MEMORY_MAPPED_FILE=${{ inputs.USE_MEMORY_MAPPED_FILE }} --preset=${{ env.preset }}
|
run: cmake -DCMAKE_TOOLCHAIN_FILE=./vcpkg/scripts/buildsystems/vcpkg.cmake -DUSE_MEMORY_MAPPED_FILE=${{ inputs.USE_MEMORY_MAPPED_FILE }} --preset=${{ env.preset }}
|
||||||
|
|
||||||
|
|
21
.github/workflows/windows.yml
vendored
21
.github/workflows/windows.yml
vendored
|
@ -53,6 +53,7 @@ jobs:
|
||||||
run: ./vcpkg/bootstrap-vcpkg.bat
|
run: ./vcpkg/bootstrap-vcpkg.bat
|
||||||
|
|
||||||
- name: "Setup NuGet Credentials"
|
- name: "Setup NuGet Credentials"
|
||||||
|
if: ${{ !(github.event_name == 'pull_request' || github.repository != 'mapnik/mapnik') }}
|
||||||
shell: "bash"
|
shell: "bash"
|
||||||
run: >
|
run: >
|
||||||
`./vcpkg/vcpkg fetch nuget | tail -n 1`
|
`./vcpkg/vcpkg fetch nuget | tail -n 1`
|
||||||
|
@ -64,11 +65,31 @@ jobs:
|
||||||
-password "${{ secrets.NUGET_REGISTRY_PAT }}"
|
-password "${{ secrets.NUGET_REGISTRY_PAT }}"
|
||||||
|
|
||||||
- name: "Setup NuGet apikey"
|
- name: "Setup NuGet apikey"
|
||||||
|
if: ${{ !(github.event_name == 'pull_request' || github.repository != 'mapnik/mapnik') }}
|
||||||
shell: "bash"
|
shell: "bash"
|
||||||
run: >
|
run: >
|
||||||
`./vcpkg/vcpkg fetch nuget | tail -n 1`
|
`./vcpkg/vcpkg fetch nuget | tail -n 1`
|
||||||
setapikey "${{ secrets.NUGET_REGISTRY_PAT }}" -Source "${{ inputs.NUGET_REGISTRY }}"
|
setapikey "${{ secrets.NUGET_REGISTRY_PAT }}" -Source "${{ inputs.NUGET_REGISTRY }}"
|
||||||
|
|
||||||
|
- name: "Setup NuGet Credentials READONLY"
|
||||||
|
if: ${{ github.event_name == 'pull_request' || github.repository != 'mapnik/mapnik' }}
|
||||||
|
shell: "bash"
|
||||||
|
run: >
|
||||||
|
`./vcpkg/vcpkg fetch nuget | tail -n 1`
|
||||||
|
sources add
|
||||||
|
-source "${{ inputs.NUGET_REGISTRY }}"
|
||||||
|
-storepasswordincleartext
|
||||||
|
-name "GitHub"
|
||||||
|
-username "${{ github.actor }}"
|
||||||
|
-password "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
|
||||||
|
- name: "Setup NuGet apikey READONLY"
|
||||||
|
if: ${{ github.event_name == 'pull_request' || github.repository != 'mapnik/mapnik' }}
|
||||||
|
shell: "bash"
|
||||||
|
run: >
|
||||||
|
`./vcpkg/vcpkg fetch nuget | tail -n 1`
|
||||||
|
setapikey "${{ secrets.GITHUB_TOKEN }}" -Source "${{ inputs.NUGET_REGISTRY }}"
|
||||||
|
|
||||||
- name: Configure CMake
|
- name: Configure CMake
|
||||||
run: cmake -DCMAKE_TOOLCHAIN_FILE=${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake -DUSE_MEMORY_MAPPED_FILE=${{ inputs.USE_MEMORY_MAPPED_FILE }} --preset ${{env.preset}}
|
run: cmake -DCMAKE_TOOLCHAIN_FILE=${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake -DUSE_MEMORY_MAPPED_FILE=${{ inputs.USE_MEMORY_MAPPED_FILE }} --preset ${{env.preset}}
|
||||||
|
|
||||||
|
|
|
@ -191,7 +191,8 @@
|
||||||
],
|
],
|
||||||
"cacheVariables": {
|
"cacheVariables": {
|
||||||
"INSTALL_DEPENDENCIES": "ON",
|
"INSTALL_DEPENDENCIES": "ON",
|
||||||
"ADDITIONAL_LIBARIES_PATHS": "${sourceDir}/build/${presetName}/vcpkg_installed/x64-windows/bin"
|
"ADDITIONAL_LIBARIES_PATHS": "${sourceDir}/build/${presetName}/vcpkg_installed/x64-windows/bin",
|
||||||
|
"VCPKG_INSTALL_OPTIONS": "--debug"
|
||||||
},
|
},
|
||||||
"environment": {
|
"environment": {
|
||||||
"PROJ_LIB": "${sourceDir}/build/${presetName}/vcpkg_installed/x64-windows/share/proj4"
|
"PROJ_LIB": "${sourceDir}/build/${presetName}/vcpkg_installed/x64-windows/share/proj4"
|
||||||
|
@ -206,7 +207,8 @@
|
||||||
"ci-options"
|
"ci-options"
|
||||||
],
|
],
|
||||||
"cacheVariables": {
|
"cacheVariables": {
|
||||||
"CMAKE_CXX_FLAGS": "--coverage"
|
"CMAKE_CXX_FLAGS": "--coverage",
|
||||||
|
"VCPKG_INSTALL_OPTIONS": "--debug"
|
||||||
},
|
},
|
||||||
"environment": {
|
"environment": {
|
||||||
"PROJ_LIB": "${sourceDir}/build/${presetName}/vcpkg_installed/x64-linux/share/proj4"
|
"PROJ_LIB": "${sourceDir}/build/${presetName}/vcpkg_installed/x64-linux/share/proj4"
|
||||||
|
@ -222,7 +224,8 @@
|
||||||
"ci-options"
|
"ci-options"
|
||||||
],
|
],
|
||||||
"cacheVariables": {
|
"cacheVariables": {
|
||||||
"CMAKE_CXX_FLAGS": "-fprofile-arcs -ftest-coverage"
|
"CMAKE_CXX_FLAGS": "-fprofile-arcs -ftest-coverage",
|
||||||
|
"VCPKG_INSTALL_OPTIONS": "--debug"
|
||||||
},
|
},
|
||||||
"environment": {
|
"environment": {
|
||||||
"PROJ_LIB": "${sourceDir}/build/${presetName}/vcpkg_installed/x64-osx/share/proj4"
|
"PROJ_LIB": "${sourceDir}/build/${presetName}/vcpkg_installed/x64-osx/share/proj4"
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#ifndef MAPNIK_WARNING_HPP
|
#ifndef MAPNIK_WARNING_HPP
|
||||||
#define MAPNIK_WARNING_HPP
|
#define MAPNIK_WARNING_HPP
|
||||||
|
|
||||||
// clang-format off
|
// clang-format off
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
#define MAPNIK_DISABLE_WARNING_PUSH __pragma(warning( push ))
|
#define MAPNIK_DISABLE_WARNING_PUSH __pragma(warning( push ))
|
||||||
|
|
Loading…
Add table
Reference in a new issue