• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1lib_LTLIBRARIES = libxcam_ocl.la
2
3XCAMOCL_CXXFLAGS = $(XCAM_CXXFLAGS)
4XCAMOCL_LIBS = -ldl  \
5    $(NULL)
6
7XCAMOCL_CXXFLAGS += \
8    $(LIBCL_CFLAGS)               \
9    -I$(top_srcdir)/xcore         \
10    -I$(top_srcdir)/modules       \
11    -I$(top_builddir)/clx_kernel  \
12    $(NULL)
13
14XCAMOCL_LIBS += \
15    $(LIBCL_LIBS)  \
16    $(NULL)
17
18if HAVE_LIBDRM
19XCAMOCL_CXXFLAGS += $(LIBDRM_CFLAGS)
20XCAMOCL_LIBS += \
21    -ldrm_intel     \
22    $(LIBDRM_LIBS)  \
23    $(NULL)
24endif
25
26if HAVE_OPENCV
27XCAMOCL_CXXFLAGS += $(OPENCV_CFLAGS)
28XCAMOCL_LIBS += $(OPENCV_LIBS)
29endif
30
31xcam_ocl_sources = \
32    cl_argument.cpp                    \
33    cl_context.cpp                     \
34    cl_device.cpp                      \
35    cl_kernel.cpp                      \
36    cl_memory.cpp                      \
37    cl_event.cpp                       \
38    cl_utils.cpp                       \
39    cl_image_handler.cpp               \
40    cl_image_processor.cpp             \
41    cl_3a_image_processor.cpp          \
42    cl_post_image_processor.cpp        \
43    cl_multi_image_handler.cpp         \
44    cl_csc_image_processor.cpp         \
45    cl_3a_stats_context.cpp            \
46    cl_demo_handler.cpp                \
47    cl_blender.cpp                     \
48    cl_pyramid_blender.cpp             \
49    cl_geo_map_handler.cpp             \
50    cl_csc_handler.cpp                 \
51    cl_tnr_handler.cpp                 \
52    cl_defog_dcp_handler.cpp           \
53    cl_bayer_pipe_handler.cpp          \
54    cl_bayer_basic_handler.cpp         \
55    cl_yuv_pipe_handler.cpp            \
56    cl_rgb_pipe_handler.cpp            \
57    cl_tonemapping_handler.cpp         \
58    cl_newtonemapping_handler.cpp      \
59    cl_fisheye_handler.cpp             \
60    cl_image_scaler.cpp                \
61    cl_image_360_stitch.cpp            \
62    cl_retinex_handler.cpp             \
63    cl_gauss_handler.cpp               \
64    cl_wavelet_denoise_handler.cpp     \
65    cl_newwavelet_denoise_handler.cpp  \
66    cl_wire_frame_handler.cpp          \
67    cl_3d_denoise_handler.cpp          \
68    cl_image_warp_handler.cpp          \
69    cl_video_stabilizer.cpp            \
70    cl_video_buffer.cpp                \
71    priority_buffer_queue.cpp          \
72    $(NULL)
73
74if HAVE_OPENCV
75xcam_ocl_sources += cv_context.cpp
76xcam_ocl_sources += cv_base_class.cpp
77xcam_ocl_sources += cv_image_process_helper.cpp
78xcam_ocl_sources += cv_image_sharp.cpp
79xcam_ocl_sources += cv_edgetaper.cpp
80xcam_ocl_sources += cv_wiener_filter.cpp
81xcam_ocl_sources += cv_feature_match.cpp
82xcam_ocl_sources += cv_image_deblurring.cpp
83endif
84
85if HAVE_LIBDRM
86xcam_ocl_sources += intel/cl_intel_context.cpp
87xcam_ocl_sources += intel/cl_va_memory.cpp
88xcam_ocl_sources += cl_image_bo_buffer.cpp
89endif
90
91libxcam_ocl_la_SOURCES = \
92    $(xcam_ocl_sources)    \
93    $(NULL)
94
95libxcam_ocl_la_CXXFLAGS = \
96    $(XCAMOCL_CXXFLAGS)   \
97    $(NULL)
98
99libxcam_ocl_la_LIBADD = \
100    $(top_builddir)/xcore/libxcam_core.la \
101    $(XCAMOCL_LIBS)                       \
102    $(NULL)
103
104libxcam_ocl_la_LDFLAGS = \
105    $(XCAM_LT_LDFLAGS) \
106    $(PTHREAD_LDFLAGS) \
107    $(NULL)
108
109libxcam_oclincludedir = $(includedir)/xcam/ocl
110
111nobase_libxcam_oclinclude_HEADERS = \
112    cl_argument.h                   \
113    cl_context.h                    \
114    cl_event.h                      \
115    cl_device.h                     \
116    cl_memory.h                     \
117    cl_kernel.h                     \
118    cl_utils.h                      \
119    cl_image_handler.h              \
120    cl_image_processor.h            \
121    priority_buffer_queue.h         \
122    cl_3a_image_processor.h         \
123    cl_3a_stats_context.h           \
124    cl_rgb_pipe_handler.h           \
125    cl_bayer_basic_handler.h        \
126    cl_bayer_pipe_handler.h         \
127    cl_demo_handler.h               \
128    cl_tonemapping_handler.h        \
129    cl_newtonemapping_handler.h     \
130    cl_csc_handler.h                \
131    cl_csc_image_processor.h        \
132    cl_yuv_pipe_handler.h           \
133    cl_tnr_handler.h                \
134    cl_post_image_processor.h       \
135    cl_multi_image_handler.h        \
136    cl_3d_denoise_handler.h         \
137    cl_defog_dcp_handler.h          \
138    cl_fisheye_handler.h            \
139    cl_gauss_handler.h              \
140    cl_geo_map_handler.h            \
141    cl_image_scaler.h               \
142    cl_image_warp_handler.h         \
143    cl_image_360_stitch.h           \
144    cl_blender.h                    \
145    cl_retinex_handler.h            \
146    cl_wavelet_denoise_handler.h    \
147    cl_newwavelet_denoise_handler.h \
148    cl_wire_frame_handler.h         \
149    cl_video_stabilizer.h           \
150    cl_video_buffer.h               \
151    $(NULL)
152
153if HAVE_OPENCV
154nobase_libxcam_oclinclude_HEADERS += cv_context.h
155nobase_libxcam_oclinclude_HEADERS += cv_base_class.h
156nobase_libxcam_oclinclude_HEADERS += cv_image_process_helper.h
157nobase_libxcam_oclinclude_HEADERS += cv_image_sharp.h
158nobase_libxcam_oclinclude_HEADERS += cv_edgetaper.h
159nobase_libxcam_oclinclude_HEADERS += cv_wiener_filter.h
160nobase_libxcam_oclinclude_HEADERS += cv_feature_match.h
161nobase_libxcam_oclinclude_HEADERS += cv_image_deblurring.h
162endif
163
164if HAVE_LIBDRM
165nobase_libxcam_oclinclude_HEADERS += intel/cl_intel_context.h
166nobase_libxcam_oclinclude_HEADERS += intel/cl_va_memory.h
167nobase_libxcam_oclinclude_HEADERS += cl_image_bo_buffer.h
168endif
169
170noinst_HEADERS =                    \
171    cl_pyramid_blender.h            \
172    $(NULL)
173
174
175libxcam_ocl_la_LIBTOOLFLAGS = --tag=disable-static
176