#######################################################################
# Most common types, constants and functions for video handling.
#
# Copyright (C) 2010 Starbuck<starbuck@labdv.com>
#######################################################################

TEMPLATE = lib

CONFIG += staticlib create_prl
TARGET = video

# Paths
DEPENDPATH += .
INCLUDEPATH += .

CONFIG( debug, debug|release) {

	# debug
	CONFIG -= release

	win32 {
		INCLUDEPATH += ../../ext/include
		INCLUDEPATH += ../../msvc/ext

		DESTDIR = ../../build/win32/debug/lib
		OBJECTS_DIR = ../../tmp/win32/debug/video/obj
		UI_DIR = ../../tmp/win32/debug/video/ui
		MOC_DIR = ../../tmp/win32/debug/video/moc
	}

	unix: !macx {
		DESTDIR = ../../build/unix/debug/lib
		# Namespace doesn't work witk library
		# OBJECTS_DIR = ../../tmp/unix/debug/video/obj
		OBJECTS_DIR = ../../build/unix/debug/lib
		UI_DIR = ../../tmp/unix/debug/video/ui
		MOC_DIR = ../../tmp/unix/debug/video/moc
	}

	macx {
		DESTDIR = ../../build/macx/debug/lib
		OBJECTS_DIR = ../../tmp/macx/debug/video/obj
		UI_DIR = ../../tmp/macx/debug/video/ui
		MOC_DIR = ../../tmp/macx/debug/video/moc
	}

} else {

	# release
	CONFIG -= debug

	win32 {
		INCLUDEPATH += ../../ext/include
		INCLUDEPATH += ../../msvc/ext

		DESTDIR = ../../build/win32/release/lib
		OBJECTS_DIR = ../../tmp/win32/release/video/obj
		UI_DIR = ../../tmp/win32/release/video/ui
		MOC_DIR = ../../tmp/win32/release/video/moc
	}

	unix: !macx {
		DESTDIR = ../../build/unix/release/lib
		# Namespace doesn't work with library
		# OBJECTS_DIR = ../../tmp/unix/release/video/obj
		OBJECTS_DIR = ../../build/unix/release/lib
		UI_DIR = ../../tmp/unix/release/video/ui
		MOC_DIR = ../../tmp/unix/release/video/moc
	}

	macx {
		DESTDIR = ../../build/macx/release/lib
		OBJECTS_DIR = ../../tmp/macx/release/video/obj
		UI_DIR = ../../tmp/macx/release/video/ui
		MOC_DIR = ../../tmp/macx/release/video/moc
	}

}

#######################################################################
# Input
include( video.input.pro )
