Home | History | Annotate | Download | only in ocl
      1 lib_LTLIBRARIES = libxcam_ocl.la
      2 
      3 XCAMOCL_CXXFLAGS = $(XCAM_CXXFLAGS)
      4 XCAMOCL_LIBS = -ldl  \
      5     $(NULL)
      6 
      7 XCAMOCL_CXXFLAGS += \
      8     $(LIBCL_CFLAGS)               \
      9     -I$(top_srcdir)/xcore         \
     10     -I$(top_srcdir)/modules       \
     11     -I$(top_builddir)/clx_kernel  \
     12     $(NULL)
     13 
     14 XCAMOCL_LIBS += \
     15     $(LIBCL_LIBS)  \
     16     $(NULL)
     17 
     18 if HAVE_LIBDRM
     19 XCAMOCL_CXXFLAGS += $(LIBDRM_CFLAGS)
     20 XCAMOCL_LIBS += \
     21     -ldrm_intel     \
     22     $(LIBDRM_LIBS)  \
     23     $(NULL)
     24 endif
     25 
     26 if HAVE_OPENCV
     27 XCAMOCL_CXXFLAGS += $(OPENCV_CFLAGS)
     28 XCAMOCL_LIBS += $(OPENCV_LIBS)
     29 endif
     30 
     31 xcam_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 
     74 if HAVE_OPENCV
     75 xcam_ocl_sources += cv_context.cpp
     76 xcam_ocl_sources += cv_base_class.cpp
     77 xcam_ocl_sources += cv_image_process_helper.cpp
     78 xcam_ocl_sources += cv_image_sharp.cpp
     79 xcam_ocl_sources += cv_edgetaper.cpp
     80 xcam_ocl_sources += cv_wiener_filter.cpp
     81 xcam_ocl_sources += cv_feature_match.cpp
     82 xcam_ocl_sources += cv_image_deblurring.cpp
     83 endif
     84 
     85 if HAVE_LIBDRM
     86 xcam_ocl_sources += intel/cl_intel_context.cpp
     87 xcam_ocl_sources += intel/cl_va_memory.cpp
     88 xcam_ocl_sources += cl_image_bo_buffer.cpp
     89 endif
     90 
     91 libxcam_ocl_la_SOURCES = \
     92     $(xcam_ocl_sources)    \
     93     $(NULL)
     94 
     95 libxcam_ocl_la_CXXFLAGS = \
     96     $(XCAMOCL_CXXFLAGS)   \
     97     $(NULL)
     98 
     99 libxcam_ocl_la_LIBADD = \
    100     $(top_builddir)/xcore/libxcam_core.la \
    101     $(XCAMOCL_LIBS)                       \
    102     $(NULL)
    103 
    104 libxcam_ocl_la_LDFLAGS = \
    105     $(XCAM_LT_LDFLAGS) \
    106     $(PTHREAD_LDFLAGS) \
    107     $(NULL)
    108 
    109 libxcam_oclincludedir = $(includedir)/xcam/ocl
    110 
    111 nobase_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 
    153 if HAVE_OPENCV
    154 nobase_libxcam_oclinclude_HEADERS += cv_context.h
    155 nobase_libxcam_oclinclude_HEADERS += cv_base_class.h
    156 nobase_libxcam_oclinclude_HEADERS += cv_image_process_helper.h
    157 nobase_libxcam_oclinclude_HEADERS += cv_image_sharp.h
    158 nobase_libxcam_oclinclude_HEADERS += cv_edgetaper.h
    159 nobase_libxcam_oclinclude_HEADERS += cv_wiener_filter.h
    160 nobase_libxcam_oclinclude_HEADERS += cv_feature_match.h
    161 nobase_libxcam_oclinclude_HEADERS += cv_image_deblurring.h
    162 endif
    163 
    164 if HAVE_LIBDRM
    165 nobase_libxcam_oclinclude_HEADERS += intel/cl_intel_context.h
    166 nobase_libxcam_oclinclude_HEADERS += intel/cl_va_memory.h
    167 nobase_libxcam_oclinclude_HEADERS += cl_image_bo_buffer.h
    168 endif
    169 
    170 noinst_HEADERS =                    \
    171     cl_pyramid_blender.h            \
    172     $(NULL)
    173 
    174 
    175 libxcam_ocl_la_LIBTOOLFLAGS = --tag=disable-static
    176