Skip to content

Commit 0c4230d

Browse files
authored
SDK for UnrealをMacでビルドしたときに警告がたくさん出る問題を修正 (Synesthesias#156)
* Unreal SDKビルド時にターゲット違いで警告が大量に出るのを出ないようにした * inline由来の警告を減らす * 同上 * 同上
1 parent e58b9ca commit 0c4230d

File tree

5 files changed

+58
-26
lines changed

5 files changed

+58
-26
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ endif()
8181

8282
set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64" CACHE STRING "" FORCE)
8383

84+
if(NOT IOS)
85+
# このバージョン数値は Unreal Engine と合わせないと Unreal SDK ビルド時に大量の警告が出ます
86+
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.15)
87+
endif()
88+
8489
project("libplateau")
8590

8691
set(LIBPLATEAU_BINARY_DIR ${libplateau_BINARY_DIR}/bin)

include/plateau/basemap/vector_tile_downloader.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class LIBPLATEAU_EXPORT VectorTileDownloader {
7676
static const std::string& getDefaultUrl();
7777

7878
private:
79-
static inline std::string default_url_ = "http://cyberjapandata.gsi.go.jp/xyz/std/{z}/{x}/{y}.png";
79+
static const std::string default_url_;
8080

8181
std::string url_;
8282
std::string destination_;

include/plateau/dataset/i_dataset_accessor.h

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -18,31 +18,6 @@ namespace plateau::dataset {
1818
: name_(std::move(name)) {
1919
}
2020

21-
//! 建築物、建築物部分、建築物付属物及びこれらの境界面
22-
inline static const std::string bldg = "bldg";
23-
//! 道路
24-
inline static const std::string tran = "tran";
25-
//! 都市計画決定情報
26-
inline static const std::string urf = "urf";
27-
//! 土地利用
28-
inline static const std::string luse = "luse";
29-
//! 都市設備
30-
inline static const std::string frn = "frn";
31-
//! 植生
32-
inline static const std::string veg = "veg";
33-
//! 起伏
34-
inline static const std::string dem = "dem";
35-
//! 洪水浸水想定区域
36-
inline static const std::string fld = "fld";
37-
//! 津波浸水想定
38-
inline static const std::string tnm = "tnm";
39-
//! 土砂災害警戒区域
40-
inline static const std::string lsld = "lsld";
41-
//! 高潮浸水想定区域
42-
inline static const std::string htd = "htd";
43-
//! 内水浸水想定区域
44-
inline static const std::string ifld = "ifld";
45-
4621
static PredefinedCityModelPackage getPackage(const std::string& folder_name);
4722
static CityModelPackageInfo getPackageInfo(const std::string& folder_name);
4823

@@ -60,6 +35,31 @@ namespace plateau::dataset {
6035

6136
private:
6237
std::string name_;
38+
39+
//! 建築物、建築物部分、建築物付属物及びこれらの境界面
40+
static const std::string bldg;
41+
//! 道路
42+
static const std::string tran;
43+
//! 都市計画決定情報
44+
static const std::string urf;
45+
//! 土地利用
46+
static const std::string luse;
47+
//! 都市設備
48+
static const std::string frn;
49+
//! 植生
50+
static const std::string veg;
51+
//! 起伏
52+
static const std::string dem;
53+
//! 洪水浸水想定区域
54+
static const std::string fld;
55+
//! 津波浸水想定
56+
static const std::string tnm;
57+
//! 土砂災害警戒区域
58+
static const std::string lsld;
59+
//! 高潮浸水想定区域
60+
static const std::string htd;
61+
//! 内水浸水想定区域
62+
static const std::string ifld;
6363
};
6464

6565
class LIBPLATEAU_EXPORT IDatasetAccessor {

src/basemap/vector_tile_downloader.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
namespace fs = std::filesystem;
1010

11+
const std::string VectorTileDownloader::default_url_ = "http://cyberjapandata.gsi.go.jp/xyz/std/{z}/{x}/{y}.png";
12+
1113
VectorTileDownloader::VectorTileDownloader(
1214
const std::string& destination,
1315
const plateau::geometry::Extent& extent,

src/dataset/local_dataset_accessor.cpp

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,31 @@ namespace plateau::dataset {
1111
namespace fs = std::filesystem;
1212
using namespace geometry;
1313

14+
//! 建築物、建築物部分、建築物付属物及びこれらの境界面
15+
const std::string UdxSubFolder::bldg = "bldg";
16+
//! 道路
17+
const std::string UdxSubFolder::tran = "tran";
18+
//! 都市計画決定情報
19+
const std::string UdxSubFolder::urf = "urf";
20+
//! 土地利用
21+
const std::string UdxSubFolder::luse = "luse";
22+
//! 都市設備
23+
const std::string UdxSubFolder::frn = "frn";
24+
//! 植生
25+
const std::string UdxSubFolder::veg = "veg";
26+
//! 起伏
27+
const std::string UdxSubFolder::dem = "dem";
28+
//! 洪水浸水想定区域
29+
const std::string UdxSubFolder::fld = "fld";
30+
//! 津波浸水想定
31+
const std::string UdxSubFolder::tnm = "tnm";
32+
//! 土砂災害警戒区域
33+
const std::string UdxSubFolder::lsld = "lsld";
34+
//! 高潮浸水想定区域
35+
const std::string UdxSubFolder::htd = "htd";
36+
//! 内水浸水想定区域
37+
const std::string UdxSubFolder::ifld = "ifld";
38+
1439
PredefinedCityModelPackage UdxSubFolder::getPackage(const std::string& folder_name) {
1540
if (folder_name == bldg) return PredefinedCityModelPackage::Building;
1641
if (folder_name == tran) return PredefinedCityModelPackage::Road;

0 commit comments

Comments
 (0)