aboutsummaryrefslogtreecommitdiff
path: root/engines/2way/sample_app/command_line/build/make/local.mk
blob: 4bf162592970f5fc2cce960ed0e7403eaa9403f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
# Get the current local path as the first operation
LOCAL_PATH := $(call get_makefile_dir)

# Clear out the variables used in the local makefiles
include $(MK)/clear.mk

TARGET := pv2way_console_app

ifdef twoway_config
include $(call process_include_list,$(LOCAL_PATH),$(twoway_config)).mk
endif

include $(LOCAL_PATH)/2way_$(HOST_ARCH).mk


XCXXFLAGS += $(FLAG_COMPILE_WARNINGS_AS_ERRORS)




XINCDIRS +=  ../../../src \
  ../../../../../../engines/2way/sample_app/include \
  ../../../../../../engines/2way/sample_app/pv2waysample/include \
  ../../../../../../engines/common/include \
  ../../../../../../protocols/systems/common/include \
  ../../../../test/include \
  ../../../../../../protocols/systems/tools/general/common/include 

SRCDIR := ../../src
INCSRCDIR := ../../include 

SRCS := main.cpp \
        pv_2way_console_source_and_sinks.cpp \
        console_engine_handler.cpp \
	../../pv2waysample/src/testcaseparser.cpp \
	../../../../../protocols/systems/tools/general/common/src/test_utility.cpp  

SRCS += $(EXTRA_SRCS)

BASE_LIBS = pv2waysample \
	pv2wayengine \
	pv324m 

END_LIBS = \
	pvclientserversocketnode \
	pvfileoutputnode \
	pvmediainputnode \
	pvmediaoutputnode \
	pvmiofileinput \
	pvmiofileoutput \
	pvmf \
	colorconvert \
	pvencoder_gsmamr \
	pvdecoder_gsmamr \
	pvmediadatastruct \
	pv_amr_nb_common_lib \
	pvamrwbdecoder \
	pvmp4decoder \
	pvm4vencoder \
        pvavcdecoder \
        pvavch264enc \
        pv_avc_common_lib \
	pvcommsionode \
	pvmio_comm_loopback \
	pvgeneraltools \
	pvthreadmessaging \
	pvmimeutils \
        pvlogger \
        osclio \
        unit_test \
        osclio \
	osclproc \
	osclutil \
	osclmemory \
	osclerror \
	osclbase

ifeq ($(pv2wayengine_lib),y)
# OMX libraries
LIBS =  \
   pvomxvideodecnode \
   pvomxaudiodecnode \
   pvomxencnode \
   pvomxbasedecnode \
   omx_common_lib \
   omx_avc_component_lib \
   omx_m4v_component_lib \
   omx_amr_component_lib \
   omx_amrenc_component_lib \
   omx_m4venc_component_lib \
   omx_avcenc_component_lib \
   omx_baseclass_lib \
   m4v_config \
   pvomx_proxy_lib \
   omx_queue_lib \
   pv_config_parser \
   getactualaacconfig \
   pvlatmpayloadparser \
   pvgendatastruct \
   osclregcli \
   osclregserv \
   threadsafe_callback_ao 

FULL_LIBS := $(BASE_LIBS) + $(LIBS) + $(END_LIBS)

else
ifeq ($(pv2wayengine_lib),m)
FULL_LIBS =  opencore_2way \
   pv2waysample \
   pvomxvideodecnode \
   pvomxaudiodecnode \
   pvomxencnode \
   pvomxbasedecnode \
   omx_common_lib \
   omx_avc_component_lib \
   omx_m4v_component_lib \
   omx_m4venc_component_lib \
   omx_avcenc_component_lib \
   omx_baseclass_lib \
   pvomx_proxy_lib \
   omx_queue_lib \
   unit_test \
   opencore_common

endif
endif

LIBS := $(FULL_LIBS)


SYSLIBS += $(SYS_THREAD_LIB)
SYSLIBS += $(SYS_SOCKET_LIB)

include $(MK)/prog.mk

 
#look in 2way_$(HOST_ARCH).mk for values
run_2way_console: $(REALTARGET) default
	$(quiet) ${RM} -rf $(TWOWAY_TEST_DIR_CON)
	$(quiet) ${MKDIR} -p $(TWOWAY_TEST_DIR_CON)
	$(quiet) $(CP) $(SRC_ROOT)/engines/2way/src/pvlogcfg.txt $(TWOWAY_TEST_DIR_CON)
	$(quiet) $(CP) ${BUILD_ROOT}/bin/${BUILD_ARCH}/$(TWOWAY_TARGET_CON) $(TWOWAY_TEST_DIR_CON)
	$(quiet) $(CP) -r $(SRC_ROOT)/engines/2way/sample_app/data/* $(TWOWAY_TEST_DIR_CON)
	$(quiet) cd $(TWOWAY_TEST_DIR_CON) && $(TWOWAYFULL_TARGET_CON)