Fix build for Xcode.

Regression was introduced in a8d35b67aa.
This commit is contained in:
John Preston 2018-07-11 00:19:52 +03:00
parent 9eb34e496f
commit 81e074115d
4 changed files with 8 additions and 7 deletions

View File

@ -35,7 +35,7 @@ private:
};
struct UserpicData;
struct PeersMap;
class PeersMap;
struct MediaData;
} // namespace details

View File

@ -463,7 +463,7 @@ void EditScans::setupSpecialScans(std::map<SpecialFile, ScanInfo> &&files) {
createSpecialScanRow(scan, scan.file, requiresBothSides);
}
auto label = scan.rowCreated.value(
) | rpl::map([=](bool created) {
) | rpl::map([=, type = type](bool created) {
return Lang::Viewer(uploadKey(type, created));
}) | rpl::flatten_latest(
) | Info::Profile::ToUpperValue();

View File

@ -124,6 +124,12 @@
'dependencies': [
'utils.gyp:Packer',
],
}], [ 'build_mac', {
'mac_bundle': '1',
'mac_bundle_resources': [
'<!@(python -c "for s in \'<@(langpacks)\'.split(\' \'): print(\'<(res_loc)/langs/\' + s + \'.lproj/Localizable.strings\')")',
'../Telegram/Images.xcassets',
],
}],
],
}],

View File

@ -36,11 +36,6 @@
},
},
},
'mac_bundle': '1',
'mac_bundle_resources': [
'<!@(python -c "for s in \'<@(langpacks)\'.split(\' \'): print(\'<(res_loc)/langs/\' + s + \'.lproj/Localizable.strings\')")',
'../Telegram/Images.xcassets',
],
}], [ 'build_macold', {
'xcode_settings': {
'OTHER_CPLUSPLUSFLAGS': [ '-nostdinc++' ],