Refactor build system.
This commit is contained in:
		
							
								
								
									
										15
									
								
								common/common.pri
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								common/common.pri
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
			
		||||
INCLUDEPATH += $$PWD
 | 
			
		||||
DEPENDPATH += $$PWD
 | 
			
		||||
 | 
			
		||||
!android {
 | 
			
		||||
    PKGCONFIG += libvitamtp
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
!DISABLE_FFMPEG {
 | 
			
		||||
    PKGCONFIG += libavformat libavcodec libavutil libswscale
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
unix|win32: LIBS += -L ../common/ -lqcma_common
 | 
			
		||||
 | 
			
		||||
win32:!win32-g++: PRE_TARGETDEPS += ../common/qcma_common.lib
 | 
			
		||||
else:unix|win32-g++: PRE_TARGETDEPS += ../common/libqcma_common.a
 | 
			
		||||
@@ -1,9 +1,10 @@
 | 
			
		||||
include(../config.pri)
 | 
			
		||||
 | 
			
		||||
TARGET = qcma_common
 | 
			
		||||
QT += core network sql
 | 
			
		||||
 | 
			
		||||
TEMPLATE = lib
 | 
			
		||||
CONFIG += staticlib
 | 
			
		||||
TARGET = qcma_common
 | 
			
		||||
 | 
			
		||||
SOURCES += \
 | 
			
		||||
    capability.cpp \
 | 
			
		||||
@@ -36,12 +37,12 @@ HEADERS += \
 | 
			
		||||
    qlistdb.h \
 | 
			
		||||
    database.h
 | 
			
		||||
 | 
			
		||||
DISABLE_FFMPEG {
 | 
			
		||||
    PKGCONFIG = libvitamtp
 | 
			
		||||
} else {
 | 
			
		||||
PKGCONFIG += libvitamtp
 | 
			
		||||
 | 
			
		||||
!DISABLE_FFMPEG {
 | 
			
		||||
    DEFINES += FFMPEG_ENABLED
 | 
			
		||||
    SOURCES += avdecoder.cpp
 | 
			
		||||
    PKGCONFIG = libvitamtp libavformat libavcodec libavutil libswscale
 | 
			
		||||
    PKGCONFIG += libavformat libavcodec libavutil libswscale
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
OTHER_FILES += \
 | 
			
		||||
 
 | 
			
		||||
@@ -1,2 +0,0 @@
 | 
			
		||||
INCLUDEPATH += $$IN_PWD
 | 
			
		||||
DEPENDPATH += $$IN_PWD
 | 
			
		||||
		Reference in New Issue
	
	Block a user