2016-08-10 21:17:04 +02:00
|
|
|
#!/usr/bin/python
|
2019-05-03 10:18:23 +02:00
|
|
|
import realog.debug as debug
|
2016-08-10 21:17:04 +02:00
|
|
|
import lutin.tools as tools
|
|
|
|
import os
|
|
|
|
|
|
|
|
def get_type():
|
|
|
|
return "LIBRARY"
|
|
|
|
|
|
|
|
def get_desc():
|
|
|
|
return "opencv Object detection processing library"
|
|
|
|
|
|
|
|
def get_licence():
|
|
|
|
return "APAPCHE-2"
|
|
|
|
|
|
|
|
def get_maintainer():
|
|
|
|
return ["Maksim Shabunin <maksim.shabunin@itseez.com>"]
|
|
|
|
|
|
|
|
def get_version():
|
|
|
|
return [3,1,0]
|
|
|
|
|
2016-10-04 23:41:29 +02:00
|
|
|
def configure(target, my_module):
|
2016-08-10 21:17:04 +02:00
|
|
|
my_module.add_src_file([
|
|
|
|
'opencv/modules/objdetect/src/detection_based_tracker.cpp',
|
|
|
|
'opencv/modules/objdetect/src/cascadedetect_convert.cpp',
|
|
|
|
#'opencv/modules/objdetect/src/opencl/objdetect_hog.cl',
|
|
|
|
#'opencv/modules/objdetect/src/opencl/cascadedetect.cl',
|
|
|
|
'opencv/modules/objdetect/src/cascadedetect.cpp',
|
|
|
|
'opencv/modules/objdetect/src/haar.cpp',
|
|
|
|
'opencv/modules/objdetect/src/hog.cpp',
|
|
|
|
'opencv/modules/objdetect/src/main.cpp',
|
|
|
|
])
|
|
|
|
|
2016-09-08 21:35:02 +02:00
|
|
|
my_module.add_flag('c++', [
|
2016-08-10 21:17:04 +02:00
|
|
|
"-DCVAPI_EXPORTS",
|
|
|
|
"-D__OPENCV_BUILD=1",
|
|
|
|
"-fsigned-char",
|
|
|
|
"-W",
|
|
|
|
"-Wall",
|
|
|
|
"-Werror=return-type",
|
|
|
|
"-Werror=non-virtual-dtor",
|
|
|
|
"-Werror=address",
|
|
|
|
"-Werror=sequence-point",
|
|
|
|
"-Wformat",
|
|
|
|
"-Werror=format-security",
|
|
|
|
"-Wmissing-declarations",
|
|
|
|
"-Winit-self",
|
|
|
|
"-Wpointer-arith",
|
|
|
|
"-Wshadow",
|
|
|
|
"-Wsign-promo",
|
|
|
|
"-Wno-narrowing",
|
|
|
|
"-Wno-delete-non-virtual-dtor",
|
|
|
|
"-fdiagnostics-show-option",
|
|
|
|
"-Wno-long-long",
|
|
|
|
"-fomit-frame-pointer",
|
|
|
|
"-ffunction-sections",
|
|
|
|
"-fvisibility=hidden",
|
|
|
|
"-fvisibility-inlines-hidden",
|
|
|
|
])
|
|
|
|
my_module.add_header_file(
|
|
|
|
"opencv/modules/objdetect/include/*",
|
|
|
|
recursive=True)
|
2016-09-08 21:35:02 +02:00
|
|
|
my_module.add_depend([
|
2016-08-10 21:17:04 +02:00
|
|
|
'opencv-core',
|
|
|
|
'opencv-imgproc',
|
|
|
|
'opencv-ml'
|
|
|
|
])
|
2016-09-08 21:35:02 +02:00
|
|
|
if "Android" in target.get_type():
|
|
|
|
my_module.add_flag('c++', "-DANDROID")
|
2016-08-10 21:17:04 +02:00
|
|
|
my_module.compile_version("C++", 2003)
|
2016-10-04 23:41:29 +02:00
|
|
|
return True
|
2016-08-10 21:17:04 +02:00
|
|
|
|
|
|
|
|