1ifeq ($(strip $(BOARD_USES_WRS_OMXIL_CORE)),true)
2LOCAL_PATH := $(call my-dir)
3
4ifeq ($(strip $(USE_VIDEO_EFFECT)),true)
5LOCAL_C_FLAGS := -DUSE_VIDEO_EFFECT
6endif
7
8################################################################################
9
10include $(CLEAR_VARS)
11
12ifeq ($(TARGET_HAS_ISV),true)
13LOCAL_CFLAGS += -DTARGET_HAS_ISV
14endif
15
16LOCAL_SHARED_LIBRARIES := \
17    libwrs_omxil_common \
18    libva_videodecoder \
19    liblog \
20    libva \
21    libva-android
22
23LOCAL_C_INCLUDES := \
24    $(TARGET_OUT_HEADERS)/wrs_omxil_core \
25    $(TARGET_OUT_HEADERS)/khronos/openmax \
26    $(TARGET_OUT_HEADERS)/libmix_videodecoder \
27    $(TARGET_OUT_HEADERS)/libva \
28    $(call include-path-for, frameworks-native)/media/hardware \
29    $(call include-path-for, frameworks-native)/media/openmax \
30    $(call include-path-for, libhardware)
31
32PLATFORM_USE_GEN_HW := \
33    baytrail \
34    cherrytrail
35
36ifneq ($(filter $(TARGET_BOARD_PLATFORM),$(PLATFORM_USE_GEN_HW)),)
37LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/ufo
38endif
39
40LOCAL_SRC_FILES := \
41    OMXComponentCodecBase.cpp \
42    OMXVideoDecoderBase.cpp \
43    OMXVideoDecoderAVC.cpp
44
45LOCAL_CFLAGS += -Werror
46LOCAL_MODULE_TAGS := optional
47LOCAL_MODULE := libOMXVideoDecoderAVC
48ifeq ($(TARGET_BOARD_PLATFORM),clovertrail)
49LOCAL_CFLAGS += -DVED_TILING
50endif
51
52ifeq ($(TARGET_BOARD_PLATFORM),merrifield)
53LOCAL_CFLAGS += -DVED_TILING
54endif
55
56ifeq ($(TARGET_BOARD_PLATFORM),moorefield)
57LOCAL_CFLAGS += -DVED_TILING
58LOCAL_CFLAGS += -DUSE_META_DATA
59endif
60
61ifeq ($(TARGET_VPP_USE_GEN),true)
62LOCAL_CFLAGS += -DDEINTERLACE_EXT
63endif
64
65ifeq ($(TARGET_BOARD_PLATFORM),baytrail)
66LOCAL_CFLAGS += -DUSE_GEN_HW
67endif
68
69# TODO: Fix this.
70LOCAL_CFLAGS += -Wno-error=unused-variable
71
72include $(BUILD_SHARED_LIBRARY)
73
74################################################################################
75
76PLATFORM_SUPPORT_VP8 := \
77    merrifield \
78    morganfield \
79    moorefield \
80    baytrail \
81    cherrytrail
82
83ifneq ($(filter $(TARGET_BOARD_PLATFORM),$(PLATFORM_SUPPORT_VP8)),)
84include $(CLEAR_VARS)
85
86ifeq ($(TARGET_HAS_ISV),true)
87LOCAL_CFLAGS += -DTARGET_HAS_ISV
88endif
89
90LOCAL_SHARED_LIBRARIES := \
91    libwrs_omxil_common \
92    libva_videodecoder \
93    liblog \
94    libva \
95    libva-android
96
97LOCAL_C_INCLUDES := \
98    $(TARGET_OUT_HEADERS)/wrs_omxil_core \
99    $(TARGET_OUT_HEADERS)/khronos/openmax \
100    $(TARGET_OUT_HEADERS)/libmix_videodecoder \
101    $(TARGET_OUT_HEADERS)/libva \
102    $(call include-path-for, frameworks-native)/media/hardware \
103    $(call include-path-for, frameworks-native)/media/openmax \
104    $(call include-path-for, libhardware)
105
106LOCAL_SRC_FILES := \
107    OMXComponentCodecBase.cpp \
108    OMXVideoDecoderBase.cpp \
109    OMXVideoDecoderVP8.cpp
110
111LOCAL_CFLAGS += -Werror
112LOCAL_MODULE_TAGS := optional
113LOCAL_MODULE := libOMXVideoDecoderVP8
114
115ifeq ($(TARGET_BOARD_PLATFORM),merrifield)
116LOCAL_CFLAGS += -DVED_TILING
117endif
118
119ifeq ($(TARGET_BOARD_PLATFORM),moorefield)
120LOCAL_CFLAGS += -DVED_TILING
121LOCAL_CFLAGS += -DUSE_META_DATA
122endif
123
124PLATFORM_USE_GEN_HW := \
125    baytrail \
126    cherrytrail
127
128ifneq ($(filter $(TARGET_BOARD_PLATFORM),$(PLATFORM_USE_GEN_HW)),)
129LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/ufo
130endif
131
132ifneq ($(filter $(TARGET_BOARD_PLATFORM),$(PLATFORM_USE_GEN_HW)),)
133LOCAL_CFLAGS += -DUSE_GEN_HW
134endif
135
136ifeq ($(TARGET_BOARD_PLATFORM),baytrail)
137LOCAL_CFLAGS += -DUSE_X_TILE
138endif
139
140# TODO: Fix this.
141LOCAL_CFLAGS += -Wno-error=unused-variable
142
143include $(BUILD_SHARED_LIBRARY)
144endif
145
146################################################################################
147
148# VP9 with SW decode and HW Render
149include $(CLEAR_VARS)
150
151ifeq ($(TARGET_HAS_ISV),true)
152LOCAL_CFLAGS += -DTARGET_HAS_ISV
153endif
154
155LOCAL_SHARED_LIBRARIES := \
156    libwrs_omxil_common \
157    libva_videodecoder \
158    liblog \
159    libva \
160    libva-android \
161    libva-tpi
162
163LOCAL_STATIC_LIBRARIES := \
164    libvpx_internal
165
166LOCAL_C_INCLUDES := \
167    $(TARGET_OUT_HEADERS)/wrs_omxil_core \
168    $(TARGET_OUT_HEADERS)/khronos/openmax \
169    $(TARGET_OUT_HEADERS)/libmix_videodecoder \
170    $(TARGET_OUT_HEADERS)/libva \
171    $(LOCAL_PATH)/libvpx_internal/libvpx \
172    $(LOCAL_PATH)/libvpx_internal/libvpx/vpx_codec \
173    $(LOCAL_PATH)/libvpx_internal/libvpx/vpx_ports \
174    $(call include-path-for, frameworks-native)/media/hardware \
175    $(call include-path-for, frameworks-native)/media/openmax \
176    $(call include-path-for, libhardware)
177
178ifeq ($(TARGET_BOARD_PLATFORM),baytrail)
179LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/ufo
180endif
181
182LOCAL_SRC_FILES := \
183    OMXComponentCodecBase.cpp \
184    OMXVideoDecoderBase.cpp \
185    OMXVideoDecoderVP9HWR.cpp
186
187LOCAL_CFLAGS += -Werror
188LOCAL_MODULE_TAGS := optional
189LOCAL_MODULE := libOMXVideoDecoderVP9HWR
190
191ifeq ($(TARGET_BOARD_PLATFORM),merrifield)
192LOCAL_CFLAGS += -DVED_TILING
193endif
194
195ifeq ($(TARGET_BOARD_PLATFORM),moorefield)
196LOCAL_CFLAGS += -DVED_TILING
197endif
198
199ifeq ($(TARGET_BOARD_PLATFORM),baytrail)
200LOCAL_CFLAGS += -DUSE_GEN_HW
201endif
202
203# TODO: Fix this.
204LOCAL_CFLAGS += -Wno-error=unused-variable
205
206include $(BUILD_SHARED_LIBRARY)
207
208# VP9 hybrid decoder and HW Render
209ifeq ($(TARGET_BOARD_PLATFORM),moorefield)
210include $(CLEAR_VARS)
211ifeq ($(TARGET_HAS_VPP),true)
212LOCAL_CFLAGS += -DTARGET_HAS_VPP
213endif
214LOCAL_SHARED_LIBRARIES := \
215    libwrs_omxil_common \
216    liblog \
217    libva_videodecoder \
218    libdl \
219
220LOCAL_C_INCLUDES := \
221    $(TARGET_OUT_HEADERS)/wrs_omxil_core \
222    $(TARGET_OUT_HEADERS)/khronos/openmax \
223    $(TARGET_OUT_HEADERS)/libmix_videodecoder \
224    $(TARGET_OUT_HEADERS)/libva \
225    $(call include-path-for, frameworks-native)/media/hardware \
226    $(call include-path-for, frameworks-native)/media/openmax \
227    $(call include-path-for, libhardware)
228
229ifeq ($(TARGET_BOARD_PLATFORM),baytrail)
230    LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/ufo
231else
232    LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/pvr/hal
233endif
234
235LOCAL_SRC_FILES := \
236    OMXComponentCodecBase.cpp \
237    OMXVideoDecoderBase.cpp \
238    OMXVideoDecoderVP9Hybrid.cpp
239
240LOCAL_CFLAGS += -Werror
241LOCAL_MODULE_TAGS := optional
242LOCAL_MODULE := libOMXVideoDecoderVP9Hybrid
243
244# OMXVideoDecoderVP9Hybrid.h hides overloaded virtual function FillRenderBuffer.
245LOCAL_CLANG_CFLAGS += -Wno-overloaded-virtual
246
247ifeq ($(TARGET_BOARD_PLATFORM),merrifield)
248LOCAL_CFLAGS += -DVED_TILING
249endif
250
251ifeq ($(TARGET_BOARD_PLATFORM),moorefield)
252LOCAL_CFLAGS += -DVED_TILING
253LOCAL_CFLAGS += -DUSE_META_DATA
254endif
255
256ifeq ($(TARGET_BOARD_PLATFORM),baytrail)
257LOCAL_CFLAGS += -DUSE_GEN_HW
258endif
259
260# TODO: Fix this.
261LOCAL_CFLAGS += -Wno-error=unused-variable
262
263include $(BUILD_SHARED_LIBRARY)
264endif
265
266include $(CLEAR_VARS)
267ifeq ($(TARGET_HAS_ISV),true)
268LOCAL_CFLAGS += -DTARGET_HAS_ISV
269endif
270
271LOCAL_SHARED_LIBRARIES := \
272    libwrs_omxil_common \
273    libva_videodecoder \
274    liblog \
275    libva \
276    libva-android
277
278LOCAL_C_INCLUDES := \
279    $(TARGET_OUT_HEADERS)/wrs_omxil_core \
280    $(TARGET_OUT_HEADERS)/khronos/openmax \
281    $(TARGET_OUT_HEADERS)/libmix_videodecoder \
282    $(TARGET_OUT_HEADERS)/libva \
283    $(call include-path-for, frameworks-native)/media/hardware \
284    $(call include-path-for, frameworks-native)/media/openmax \
285    $(call include-path-for, libhardware)
286
287PLATFORM_USE_GEN_HW := \
288    baytrail \
289    cherrytrail
290
291ifneq ($(filter $(TARGET_BOARD_PLATFORM),$(PLATFORM_USE_GEN_HW)),)
292LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/ufo
293endif
294
295LOCAL_SRC_FILES := \
296    OMXComponentCodecBase.cpp \
297    OMXVideoDecoderBase.cpp \
298    OMXVideoDecoderMPEG4.cpp
299
300LOCAL_CFLAGS += -Werror
301LOCAL_MODULE_TAGS := optional
302LOCAL_MODULE := libOMXVideoDecoderMPEG4
303ifeq ($(TARGET_BOARD_PLATFORM),clovertrail)
304LOCAL_CFLAGS += -DVED_TILING
305endif
306
307ifeq ($(TARGET_BOARD_PLATFORM),merrifield)
308LOCAL_CFLAGS += -DVED_TILING
309endif
310
311ifeq ($(TARGET_BOARD_PLATFORM),moorefield)
312LOCAL_CFLAGS += -DVED_TILING
313LOCAL_CFLAGS += -DUSE_META_DATA
314endif
315
316ifeq ($(TARGET_BOARD_PLATFORM),baytrail)
317LOCAL_CFLAGS += -DUSE_GEN_HW
318endif
319
320# TODO: Fix this.
321LOCAL_CFLAGS += -Wno-error=unused-variable
322
323include $(BUILD_SHARED_LIBRARY)
324
325################################################################################
326
327include $(CLEAR_VARS)
328ifeq ($(TARGET_HAS_ISV),true)
329LOCAL_CFLAGS += -DTARGET_HAS_ISV
330endif
331
332LOCAL_SHARED_LIBRARIES := \
333    libwrs_omxil_common \
334    libva_videodecoder \
335    liblog \
336    libva \
337    libva-android
338
339LOCAL_C_INCLUDES := \
340    $(TARGET_OUT_HEADERS)/wrs_omxil_core \
341    $(TARGET_OUT_HEADERS)/khronos/openmax \
342    $(TARGET_OUT_HEADERS)/libmix_videodecoder \
343    $(TARGET_OUT_HEADERS)/libva \
344    $(call include-path-for, frameworks-native)/media/hardware \
345    $(call include-path-for, frameworks-native)/media/openmax \
346    $(call include-path-for, libhardware)
347
348PLATFORM_USE_GEN_HW := \
349    baytrail \
350    cherrytrail
351
352ifneq ($(filter $(TARGET_BOARD_PLATFORM),$(PLATFORM_USE_GEN_HW)),)
353LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/ufo
354endif
355
356LOCAL_SRC_FILES := \
357    OMXComponentCodecBase.cpp \
358    OMXVideoDecoderBase.cpp \
359    OMXVideoDecoderH263.cpp
360
361LOCAL_CFLAGS += -Werror
362LOCAL_MODULE_TAGS := optional
363LOCAL_MODULE := libOMXVideoDecoderH263
364ifeq ($(TARGET_BOARD_PLATFORM),clovertrail)
365LOCAL_CFLAGS += -DVED_TILING
366endif
367
368ifeq ($(TARGET_BOARD_PLATFORM),merrifield)
369LOCAL_CFLAGS += -DVED_TILING
370endif
371
372ifeq ($(TARGET_BOARD_PLATFORM),moorefield)
373LOCAL_CFLAGS += -DVED_TILING
374LOCAL_CFLAGS += -DUSE_META_DATA
375endif
376
377ifeq ($(TARGET_BOARD_PLATFORM),baytrail)
378LOCAL_CFLAGS += -DUSE_GEN_HW
379endif
380
381# TODO: Fix this.
382LOCAL_CFLAGS += -Wno-error=unused-variable
383
384include $(BUILD_SHARED_LIBRARY)
385
386################################################################################
387
388include $(CLEAR_VARS)
389ifeq ($(TARGET_HAS_ISV),true)
390LOCAL_CFLAGS += -DTARGET_HAS_ISV
391endif
392
393LOCAL_SHARED_LIBRARIES := \
394    libwrs_omxil_common \
395    libva_videodecoder \
396    liblog \
397    libva \
398    libva-android
399
400LOCAL_C_INCLUDES := \
401    $(TARGET_OUT_HEADERS)/wrs_omxil_core \
402    $(TARGET_OUT_HEADERS)/khronos/openmax \
403    $(TARGET_OUT_HEADERS)/libmix_videodecoder \
404    $(TARGET_OUT_HEADERS)/libva \
405    $(call include-path-for, frameworks-native)/media/hardware \
406    $(call include-path-for, frameworks-native)/media/openmax \
407    $(call include-path-for, libhardware)
408
409PLATFORM_USE_GEN_HW := \
410    baytrail \
411    cherrytrail
412
413ifneq ($(filter $(TARGET_BOARD_PLATFORM),$(PLATFORM_USE_GEN_HW)),)
414LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/ufo
415endif
416
417LOCAL_SRC_FILES := \
418    OMXComponentCodecBase.cpp \
419    OMXVideoDecoderBase.cpp \
420    OMXVideoDecoderWMV.cpp
421
422LOCAL_CFLAGS += -Werror
423LOCAL_MODULE_TAGS := optional
424LOCAL_MODULE := libOMXVideoDecoderWMV
425ifeq ($(TARGET_BOARD_PLATFORM),clovertrail)
426LOCAL_CFLAGS += -DVED_TILING
427endif
428
429ifeq ($(TARGET_BOARD_PLATFORM),merrifield)
430LOCAL_CFLAGS += -DVED_TILING
431endif
432
433ifeq ($(TARGET_BOARD_PLATFORM),moorefield)
434LOCAL_CFLAGS += -DVED_TILING
435endif
436
437ifeq ($(TARGET_VPP_USE_GEN),true)
438LOCAL_CFLAGS += -DDEINTERLACE_EXT
439endif
440
441ifeq ($(TARGET_BOARD_PLATFORM),baytrail)
442LOCAL_CFLAGS += -DUSE_GEN_HW
443endif
444
445# TODO: Fix this.
446LOCAL_CFLAGS += -Wno-error=unused-variable
447
448include $(BUILD_SHARED_LIBRARY)
449
450################################################################################
451
452#Build secure AVC video decoder only on supported platforms
453ifeq ($(USE_INTEL_SECURE_AVC),true)
454
455include $(CLEAR_VARS)
456ifeq ($(TARGET_HAS_ISV),true)
457LOCAL_CFLAGS += -DTARGET_HAS_ISV
458endif
459
460LOCAL_SHARED_LIBRARIES := \
461    libwrs_omxil_common \
462    libdrm \
463    libva_videodecoder \
464    liblog \
465    libva \
466    libva-android \
467    libcutils
468
469LOCAL_C_INCLUDES := \
470    $(TARGET_OUT_HEADERS)/wrs_omxil_core \
471    $(TARGET_OUT_HEADERS)/khronos/openmax \
472    $(TARGET_OUT_HEADERS)/libmix_videodecoder \
473    $(TARGET_OUT_HEADERS)/libva \
474    $(TARGET_OUT_HEADERS)/libdrm \
475    $(call include-path-for, frameworks-native)/media/hardware \
476    $(call include-path-for, frameworks-native)/media/openmax \
477    $(call include-path-for, libhardware)
478
479LOCAL_SRC_FILES := \
480    OMXComponentCodecBase.cpp \
481    OMXVideoDecoderBase.cpp
482
483ifeq ($(TARGET_BOARD_PLATFORM),moorefield)
484LOCAL_SRC_FILES += \
485    securevideo/moorefield/OMXVideoDecoderAVCSecure.cpp \
486    securevideo/moorefield/drm_vendor_api.c
487LOCAL_CFLAGS += -DVED_TILING
488LOCAL_CFLAGS += -DUSE_META_DATA
489LOCAL_SHARED_LIBRARIES += libdl
490endif
491
492LOCAL_CFLAGS += -Werror
493LOCAL_MODULE_TAGS := optional
494LOCAL_MODULE := libOMXVideoDecoderAVCSecure
495
496# TODO: Fix this.
497LOCAL_CFLAGS += -Wno-error=unused-variable
498
499include $(BUILD_SHARED_LIBRARY)
500
501endif #USE_INTEL_SECURE_AVC
502
503################################################################################
504PLATFORM_SUPPORT_MPEG2 := \
505    moorefield
506
507ifneq ($(filter $(TARGET_BOARD_PLATFORM),$(PLATFORM_SUPPORT_MPEG2)),)
508include $(CLEAR_VARS)
509
510ifeq ($(TARGET_HAS_ISV),true)
511LOCAL_CFLAGS += -DTARGET_HAS_ISV
512endif
513
514LOCAL_CPPFLAGS :=
515LOCAL_LDFLAGS :=
516
517LOCAL_SHARED_LIBRARIES := \
518    libwrs_omxil_common \
519    libva_videodecoder \
520    liblog \
521    libva \
522    libva-android
523
524LOCAL_C_INCLUDES := \
525    $(TARGET_OUT_HEADERS)/wrs_omxil_core \
526    $(TARGET_OUT_HEADERS)/khronos/openmax \
527    $(TARGET_OUT_HEADERS)/libmix_videodecoder \
528    $(TARGET_OUT_HEADERS)/libva \
529    $(call include-path-for, frameworks-native)/media/hardware \
530    $(call include-path-for, frameworks-native)/media/openmax
531
532LOCAL_SRC_FILES := \
533    OMXComponentCodecBase.cpp\
534    OMXVideoDecoderBase.cpp\
535    OMXVideoDecoderMPEG2.cpp
536
537LOCAL_MODULE_TAGS := optional
538LOCAL_MODULE := libOMXVideoDecoderMPEG2
539
540ifeq ($(TARGET_BOARD_PLATFORM),merrifield)
541LOCAL_CFLAGS += -DVED_TILING
542endif
543
544ifeq ($(TARGET_BOARD_PLATFORM),moorefield)
545LOCAL_CFLAGS += -DVED_TILING
546LOCAL_CFLAGS += -DUSE_META_DATA
547endif
548
549# TODO: Fix this.
550LOCAL_CFLAGS += -Wno-error=unused-variable
551
552include $(BUILD_SHARED_LIBRARY)
553endif
554
555################################################################################
556
557include $(CLEAR_VARS)
558ifeq ($(TARGET_HAS_ISV),true)
559LOCAL_CFLAGS += -DTARGET_HAS_ISV
560endif
561
562LOCAL_SHARED_LIBRARIES := \
563    libwrs_omxil_common \
564    liblog \
565    libva_videoencoder \
566    libva \
567    libva-android \
568    libva-tpi \
569    libutils \
570    libcutils \
571    libhardware \
572    libintelmetadatabuffer
573
574LOCAL_C_INCLUDES := \
575    $(TARGET_OUT_HEADERS)/wrs_omxil_core \
576    $(TARGET_OUT_HEADERS)/khronos/openmax \
577    $(TARGET_OUT_HEADERS)/libmix_videoencoder \
578    $(TARGET_OUT_HEADERS)/libva \
579    $(call include-path-for, frameworks-native)/media/hardware \
580    $(call include-path-for, frameworks-native)/media/openmax \
581
582LOCAL_SRC_FILES := \
583    OMXComponentCodecBase.cpp \
584    OMXVideoEncoderBase.cpp \
585    OMXVideoEncoderAVC.cpp
586
587LOCAL_CFLAGS += $(LOCAL_C_FLAGS)
588LOCAL_CFLAGS += -Werror
589LOCAL_MODULE_TAGS := optional
590LOCAL_MODULE := libOMXVideoEncoderAVC
591include $(BUILD_SHARED_LIBRARY)
592
593################################################################################
594
595include $(CLEAR_VARS)
596ifeq ($(TARGET_HAS_ISV),true)
597LOCAL_CFLAGS += -DTARGET_HAS_ISV
598endif
599
600LOCAL_SHARED_LIBRARIES := \
601    libwrs_omxil_common \
602    liblog \
603    libva_videoencoder \
604    libva \
605    libva-android \
606    libva-tpi \
607    libutils \
608    libcutils \
609    libhardware \
610    libintelmetadatabuffer
611
612LOCAL_C_INCLUDES := \
613    $(TARGET_OUT_HEADERS)/wrs_omxil_core \
614    $(TARGET_OUT_HEADERS)/khronos/openmax \
615    $(TARGET_OUT_HEADERS)/libmix_videoencoder \
616    $(TARGET_OUT_HEADERS)/libva \
617    $(call include-path-for, frameworks-native)/media/hardware \
618    $(call include-path-for, frameworks-native)/media/openmax \
619
620LOCAL_SRC_FILES := \
621    OMXComponentCodecBase.cpp \
622    OMXVideoEncoderBase.cpp \
623    OMXVideoEncoderH263.cpp
624
625LOCAL_CFLAGS += $(LOCAL_C_FLAGS)
626
627ifeq ($(SW_MPEG4_ENCODER),true)
628    LOCAL_CFLAGS += -DSYNC_MODE
629endif
630LOCAL_CFLAGS += -Werror
631LOCAL_MODULE_TAGS := optional
632LOCAL_MODULE := libOMXVideoEncoderH263
633include $(BUILD_SHARED_LIBRARY)
634
635################################################################################
636
637include $(CLEAR_VARS)
638ifeq ($(TARGET_HAS_ISV),true)
639LOCAL_CFLAGS += -DTARGET_HAS_ISV
640endif
641
642LOCAL_SHARED_LIBRARIES := \
643    libwrs_omxil_common \
644    liblog \
645    libva_videoencoder \
646    libva \
647    libva-android \
648    libva-tpi \
649    libutils \
650    libcutils \
651    libhardware \
652    libintelmetadatabuffer
653
654LOCAL_C_INCLUDES := \
655    $(TARGET_OUT_HEADERS)/wrs_omxil_core \
656    $(TARGET_OUT_HEADERS)/khronos/openmax \
657    $(TARGET_OUT_HEADERS)/libmix_videoencoder \
658    $(TARGET_OUT_HEADERS)/libva \
659    $(call include-path-for, frameworks-native)/media/hardware \
660    $(call include-path-for, frameworks-native)/media/openmax \
661
662LOCAL_SRC_FILES := \
663    OMXComponentCodecBase.cpp \
664    OMXVideoEncoderBase.cpp \
665    OMXVideoEncoderMPEG4.cpp
666
667LOCAL_CFLAGS += $(LOCAL_C_FLAGS)
668
669LOCAL_CFLAGS += -Werror
670LOCAL_MODULE_TAGS := optional
671LOCAL_MODULE := libOMXVideoEncoderMPEG4
672include $(BUILD_SHARED_LIBRARY)
673
674################################################################################
675
676include $(CLEAR_VARS)
677ifeq ($(TARGET_HAS_ISV),true)
678LOCAL_CFLAGS += -DTARGET_HAS_ISV
679endif
680
681LOCAL_SHARED_LIBRARIES := \
682    libwrs_omxil_common \
683    libva_videodecoder \
684    liblog \
685    libva \
686    libva-android
687
688LOCAL_C_INCLUDES := \
689    $(TARGET_OUT_HEADERS)/wrs_omxil_core \
690    $(TARGET_OUT_HEADERS)/khronos/openmax \
691    $(TARGET_OUT_HEADERS)/libmix_videodecoder \
692    $(TARGET_OUT_HEADERS)/libva \
693    $(call include-path-for, frameworks-native)/media/hardware \
694    $(call include-path-for, frameworks-native)/media/openmax \
695    $(call include-path-for, libhardware)
696
697LOCAL_SRC_FILES := \
698    OMXComponentCodecBase.cpp \
699    OMXVideoDecoderBase.cpp \
700    OMXVideoDecoderPAVC.cpp
701
702LOCAL_CFLAGS += -Werror
703LOCAL_MODULE_TAGS := optional
704LOCAL_MODULE := libOMXVideoDecoderPAVC
705ifeq ($(TARGET_BOARD_PLATFORM),clovertrail)
706LOCAL_CFLAGS += -DVED_TILING
707endif
708
709ifeq ($(TARGET_BOARD_PLATFORM),merrifield)
710LOCAL_CFLAGS += -DVED_TILING
711endif
712
713ifeq ($(TARGET_BOARD_PLATFORM),moorefield)
714LOCAL_CFLAGS += -DVED_TILING
715endif
716
717# TODO: Fix this.
718LOCAL_CFLAGS += -Wno-error=unused-variable
719
720include $(BUILD_SHARED_LIBRARY)
721
722################################################################################
723
724include $(CLEAR_VARS)
725ifeq ($(TARGET_HAS_ISV),true)
726LOCAL_CFLAGS += -DTARGET_HAS_ISV
727endif
728
729LOCAL_SHARED_LIBRARIES := \
730    libwrs_omxil_common \
731    liblog \
732    libva_videoencoder \
733    libva \
734    libva-android \
735    libva-tpi \
736    libutils \
737    libcutils \
738    libhardware \
739    libintelmetadatabuffer
740
741LOCAL_C_INCLUDES := \
742    $(TARGET_OUT_HEADERS)/wrs_omxil_core \
743    $(TARGET_OUT_HEADERS)/khronos/openmax \
744    $(TARGET_OUT_HEADERS)/libmix_videoencoder \
745    $(TARGET_OUT_HEADERS)/libva \
746    $(call include-path-for, frameworks-native)/media/hardware \
747    $(call include-path-for, frameworks-native)/media/openmax \
748
749LOCAL_SRC_FILES := \
750    OMXComponentCodecBase.cpp \
751    OMXVideoEncoderBase.cpp \
752    OMXVideoEncoderVP8.cpp
753
754LOCAL_CFLAGS += $(LOCAL_C_FLAGS)
755LOCAL_CFLAGS += -Werror
756LOCAL_MODULE_TAGS := optional
757LOCAL_MODULE := libOMXVideoEncoderVP8
758include $(BUILD_SHARED_LIBRARY)
759
760endif # ifeq ($(strip $(BOARD_USES_WRS_OMXIL_CORE)),true)
761