Skip to content

Commit

Permalink
Merge pull request #1429 from Framstag/fix_unity_build
Browse files Browse the repository at this point in the history
Fix unity build and Co.
  • Loading branch information
Framstag committed May 13, 2023
2 parents 8adcfe4 + 5db914c commit ba5e6f4
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_and test_on_ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
jobs:
build_cmake:
name: cmake
runs-on: macos-10.15
runs-on: macos-12
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build_and test_on_osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
jobs:
build_meson:
name: meson
runs-on: macos-10.15
runs-on: macos-12
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -32,7 +32,7 @@ jobs:

build_cmake:
name: cmake
runs-on: macos-10.15
runs-on: macos-12
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
3 changes: 1 addition & 2 deletions libosmscout-import/src/protobuf/meson.build
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
if protobufDep.found() and protocCmd.found()
protoGen = generator(protocCmd,
output : ['@BASENAME@.pb.cc', '@BASENAME@.pb.h'],
arguments : ['--cpp_out=@BUILD_DIR@','--proto_path=@SOURCE_DIR@/libosmscout-import/src/protobuf','@INPUT@'])
arguments : ['--proto_path=@CURRENT_SOURCE_DIR@', '--cpp_out=@BUILD_DIR@','@INPUT@'])

protoSrc = protoGen.process('fileformat.proto', 'osmformat.proto')
else
protoSrc = []
endif

3 changes: 2 additions & 1 deletion libosmscout-map-iosx/include/meson.build
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
osmscoutmapiosxIncDir = include_directories('.')

osmscoutmapiosxHeader = [
'osmscoutmapiosx/MapPainterIOS.h'
'osmscoutmapiosx/MapPainterIOS.h',
'osmscoutmapiosx/SymbolRendererIOS.h'
]

if meson.version().version_compare('>=0.63.0')
Expand Down
1 change: 1 addition & 0 deletions libosmscout-map-iosx/src/meson.build
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
osmscoutmapiosxSrc = [
'src/osmscout/MapPainterIOS.mm',
'src/osmscout/SymbolRendererIOS.mm'
]


4 changes: 2 additions & 2 deletions libosmscout-map/include/osmscoutmap/BatchMapPainter.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef OSMSCOUT_MAP_BATCHAPPAINTER_H
#define OSMSCOUT_MAP_BATCHMAPPAINTER_H
#ifndef OSMSCOUT_MAP_BATCH_MAP_PAINTER_H
#define OSMSCOUT_MAP_BATCH_MAP_PAINTER_H

/*
This source is part of the libosmscout-map library
Expand Down
2 changes: 1 addition & 1 deletion libosmscout-map/include/osmscoutmap/MapPainter.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ namespace osmscout {
ProcessAreas = 4, //!< Process (complex) areas for rendering
ProcessRoutes = 5, //!< Process routes for rendering
AfterPreprocessing = 6, //!< Additional postprocessing
Prerender = 7, //!< Implementation specific preparison
Prerender = 7, //!< Implementation specific preparation
DrawBaseMapTiles = 8, //!< Draw unknown/sea/land tiles and tiles with "coastlines" from base map
DrawGroundTiles = 9, //!< Same as previous, but from main database
DrawOSMTileGrids = 10, //!< If special style exists, renders grid corresponding to OSM tiles
Expand Down
3 changes: 1 addition & 2 deletions libosmscout/include/osmscout/util/Base64.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* licensed under terms of MIT license
*/

#include <cstdint>
#include <string>
#include <sstream>
#include <iostream>
Expand All @@ -18,7 +19,6 @@ namespace osmscout {

static inline std::string Base64Encode(const std::vector<char> &in)
{

std::string out;

uint32_t val = 0;
Expand All @@ -45,7 +45,6 @@ namespace osmscout {

static inline std::vector<char> Base64Decode(const std::string &in)
{

std::vector<char> out;

std::vector<int> T(256, -1);
Expand Down
2 changes: 1 addition & 1 deletion libosmscout/include/osmscout/util/LaneTurn.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/

#include <cstddef>
#include <cstdint>
#include <string>

#include <osmscout/CoreImportExport.h>
Expand Down
2 changes: 2 additions & 0 deletions maps/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
/*.zip
/*.poly
/*.shp
/*/*.hgt

# Libosmscout Databases
/*/*.txt
Expand All @@ -15,6 +16,7 @@
/*/*.idmap
/*/*.tmp
/*/*.html
/*/*.dot

# Shapefiles
/*/*.cpg
Expand Down

0 comments on commit ba5e6f4

Please sign in to comment.