libragephoto: add option to enable ABI wrapper
This commit is contained in:
		
							parent
							
								
									4dceb52fe7
								
							
						
					
					
						commit
						dca2e9fe59
					
				
					 2 changed files with 14 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -219,6 +219,14 @@ if(FLATPAK_BUILD)
 | 
			
		|||
    )
 | 
			
		||||
endif()
 | 
			
		||||
 | 
			
		||||
option(RAGEPHOTO_ABI_WRAPPER "Use libragephoto's ABI wrapper" OFF)
 | 
			
		||||
if(RAGEPHOTO_ABI_WRAPPER)
 | 
			
		||||
    set(RAGEPHOTO_C_API ON CACHE BOOL "Build libragephoto with C API support" FORCE)
 | 
			
		||||
    list(APPEND GTA5VIEW_DEFINES
 | 
			
		||||
        -DRAGEPHOTO_USE_ABI_WRAPPER
 | 
			
		||||
    )
 | 
			
		||||
endif()
 | 
			
		||||
 | 
			
		||||
option(WITH_DONATE "Donate menu option and donation dialog" OFF)
 | 
			
		||||
if(WITH_DONATE)
 | 
			
		||||
    set(DONATE_ADDRESSES "" CACHE STRING "Donation addresses")
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -19,7 +19,12 @@
 | 
			
		|||
#ifndef SNAPMATICPICTURE_H
 | 
			
		||||
#define SNAPMATICPICTURE_H
 | 
			
		||||
 | 
			
		||||
#include "RagePhoto.h"
 | 
			
		||||
#ifdef RAGEPHOTO_USE_ABI_WRAPPER
 | 
			
		||||
#include <RagePhotoA.h>
 | 
			
		||||
typedef RagePhotoA RagePhoto;
 | 
			
		||||
#else
 | 
			
		||||
#include <RagePhoto.h>
 | 
			
		||||
#endif
 | 
			
		||||
#include <QStringList>
 | 
			
		||||
#include <QJsonObject>
 | 
			
		||||
#include <QDateTime>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue