Skip to content

Commit 6b8b7ab

Browse files
Enable package build with EXV_USE_SSH=OFF
1 parent 54bc2e2 commit 6b8b7ab

File tree

13 files changed

+75
-0
lines changed

13 files changed

+75
-0
lines changed

src/interface/basicio.i

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
EXCEPTION()
4343

4444
%fragment("EXV_USE_CURL");
45+
%fragment("EXV_USE_SSH");
4546

4647
UNIQUE_PTR(Exiv2::BasicIo);
4748

src/interface/image.i

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ IMPORT_ENUM(MetadataId)
4747
EXCEPTION()
4848

4949
%fragment("EXV_USE_CURL");
50+
%fragment("EXV_USE_SSH");
5051

5152
UNIQUE_PTR(Exiv2::Image);
5253

src/interface/preview.i

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ For Exif thumbnail images see the :py:class:`ExifThumb` class.";
4343
EXCEPTION()
4444

4545
%fragment("EXV_USE_CURL");
46+
%fragment("EXV_USE_SSH");
4647

4748
// Some calls don't raise exceptions
4849
%noexception Exiv2::PreviewImage::__len__;

src/interface/shared/exv_options.i

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,12 @@ namespace Exiv2 {
2424
}
2525
#endif // EXV_USE_CURL
2626
%}
27+
28+
// Fragment to define Exiv2::SshIo if EXV_USE_SSH is OFF
29+
%fragment("EXV_USE_SSH", "header") %{
30+
#ifndef EXV_USE_SSH
31+
namespace Exiv2 {
32+
class SshIo : public RemoteIo {};
33+
}
34+
#endif // EXV_USE_SSH
35+
%}

src/swig-0_27_3/basicio_wrap.cxx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4283,6 +4283,13 @@ namespace Exiv2 {
42834283
#endif // EXV_USE_CURL
42844284

42854285

4286+
#ifndef EXV_USE_SSH
4287+
namespace Exiv2 {
4288+
class SshIo : public RemoteIo {};
4289+
}
4290+
#endif // EXV_USE_SSH
4291+
4292+
42864293
typedef Exiv2::ErrorCode ErrorCode;
42874294

42884295

src/swig-0_27_3/image_wrap.cxx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4334,6 +4334,13 @@ namespace Exiv2 {
43344334
#endif // EXV_USE_CURL
43354335

43364336

4337+
#ifndef EXV_USE_SSH
4338+
namespace Exiv2 {
4339+
class SshIo : public RemoteIo {};
4340+
}
4341+
#endif // EXV_USE_SSH
4342+
4343+
43374344
static bool enableBMFF(bool enable) {
43384345
#ifdef EXV_ENABLE_BMFF
43394346
return Exiv2::enableBMFF(enable);

src/swig-0_27_3/preview_wrap.cxx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4489,6 +4489,13 @@ namespace Exiv2 {
44894489
#endif // EXV_USE_CURL
44904490

44914491

4492+
#ifndef EXV_USE_SSH
4493+
namespace Exiv2 {
4494+
class SshIo : public RemoteIo {};
4495+
}
4496+
#endif // EXV_USE_SSH
4497+
4498+
44924499
namespace swig {
44934500
template <class Type>
44944501
struct noconst_traits {

src/swig-0_27_7/basicio_wrap.cxx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4282,6 +4282,13 @@ namespace Exiv2 {
42824282
#endif // EXV_USE_CURL
42834283

42844284

4285+
#ifndef EXV_USE_SSH
4286+
namespace Exiv2 {
4287+
class SshIo : public RemoteIo {};
4288+
}
4289+
#endif // EXV_USE_SSH
4290+
4291+
42854292
typedef Exiv2::ErrorCode ErrorCode;
42864293

42874294

src/swig-0_27_7/image_wrap.cxx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4333,6 +4333,13 @@ namespace Exiv2 {
43334333
#endif // EXV_USE_CURL
43344334

43354335

4336+
#ifndef EXV_USE_SSH
4337+
namespace Exiv2 {
4338+
class SshIo : public RemoteIo {};
4339+
}
4340+
#endif // EXV_USE_SSH
4341+
4342+
43364343
static bool enableBMFF(bool enable) {
43374344
#ifdef EXV_ENABLE_BMFF
43384345
return Exiv2::enableBMFF(enable);

src/swig-0_27_7/preview_wrap.cxx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4488,6 +4488,13 @@ namespace Exiv2 {
44884488
#endif // EXV_USE_CURL
44894489

44904490

4491+
#ifndef EXV_USE_SSH
4492+
namespace Exiv2 {
4493+
class SshIo : public RemoteIo {};
4494+
}
4495+
#endif // EXV_USE_SSH
4496+
4497+
44914498
namespace swig {
44924499
template <class Type>
44934500
struct noconst_traits {

0 commit comments

Comments
 (0)