]> rtime.felk.cvut.cz Git - frescor/demo.git/blob - build/config.target
ffmpeg compilation reworked
[frescor/demo.git] / build / config.target
1 # -*- makefile -*-
2 # Config file for compilation by OMK for AQuoSA/Linux OS target
3
4 ifeq ($(RELATIVE_DIR:ffmpeg%=ffmpeg),ffmpeg)
5 # Allow building ffmpeg by OMK
6
7 define FFMPEG_OMKIZE
8 lib_LIBRARIES:=$(NAME)
9 $(NAME)_SOURCES:=$(OBJS:%.o=%.c) $(OBJS-y:%.o=%.c) $(OBJS-yes:%.o=%.c)
10 renamed_include_HEADERS:=$(foreach h,$(HEADERS),$(h)->lib$(NAME)/$(h) )
11 INCLUDES += -I $(srcdir)/..
12 endef
13
14 $(SOURCES_DIR)/Makefile.omk: $(SOURCES_DIR)/Makefile $(MAKERULES_DIR)/ffmpeg/libswscale
15         @echo "  FFOMK   $@"
16         $(Q)make DEPS="" -C $(SOURCES_DIR) -qp -f $< |sed -ne '/# Pattern-specific Variable Values/,$$ d' -e '/# makefile/,+1 p'|\
17                         sed -e /^define/d -e "/^#/d" -e "/^MAKE/d" > $@
18 #       echo '$(value FFMPEG_OMKIZE)' >> $@ # There is a bug in make
19 ifeq ($(SOURCES_DIR:%/libavcodec=YES),YES)
20         $(Q)echo 'SUBDIRS=x86' >> $@
21 endif
22         $(Q)cat $(MAKERULES_DIR)/Makefile.omk.ffmpeg >> $@
23
24 $(MAKERULES_DIR)/ffmpeg/libavcodec/x86/Makefile:
25         touch $@
26
27 $(MAKERULES_DIR)/ffmpeg/libswscale:
28         ln -sf ../../src/libswscale $@
29 endif
30
31
32 # You can override these variables in config.omk
33 AQUOSA_ROOT ?= $(wildcard /usr/local/aquosa)
34 QTDIR ?= $(wildcard /usr/share/qt4)
35
36 export PLATFORM=AQuoSA
37
38 # Create symbolic links to headers instead of copying them. Useful
39 # during development.
40 LN_HEADERS=y
41
42 # We do not want to overwrite original FRESCOR Makefiles
43 USE_LEAF_MAKEFILES=n
44
45 # For demo, we use FORB's inet protocol, to show how FRESCOR works in a
46 # distributed environment
47 CONFIG_FORB_PROTO_UNIX=n
48 CONFIG_FORB_PROTO_INET_DEFAULT=y
49 CONFIG_AQUOSA=y
50
51 ########################################
52 # Setting of compiler
53 ########################################
54
55 # This doesn't work since mgcc script eats multiple -M options
56 #CC=mgcc
57 #CFLAGS=-Wall -g  -O1  -Wuninitialized -D$(PLATFORM)
58
59 # Instead, we call normal gcc with parameters which mgcc adds
60
61 CFLAGS=$(ARCH_GCC_OPTS) -Wall -Wuninitialized -g -O1 -D_REENTRANT -D$(PLATFORM) -D_XOPEN_SOURCE=600 -D_BSD_SOURCE
62 LDFLAGS=$(ARCH_LD_OPTS) $(LIBS_PATH) $(LIBS)
63 LDFLAGS += '-Wl,-rpath,$$ORIGIN/../lib' -z origin --enable-new-dtags
64
65 IDL_COMPILER = $(OUTPUT_DIR)/$(COMPILED_DIR_NAME)/bin/forb-idl
66
67 FRSH_DISTRIBUTED_MODULE_SUPPORTED=true
68
69 # Disable tests which do not compile with FRSH_FORB
70
71 CONFIG_FRSH_TEST_context_switch=n                             # Needs timespec_operations.h and frsh_os_compatibility.h
72 CONFIG_FRSH_TEST_demo_september2007=n                         # Needs frsh_thread_get_vres_id()
73 CONFIG_FRSH_TEST_demo_september2007_with_signals=n            # Some problem with signal constants and non-int vres_id
74 CONFIG_FRSH_TEST_dl_test=n                                    # Needs different Makefile.omk
75 CONFIG_FRSH_TEST_example_d-ac1_frescor=n                      # Needs int vres_id
76 CONFIG_FRSH_TEST_frsh_shared_obj_test=n                       # Needs eat.h and timespec_operations.h
77 CONFIG_FRSH_TEST_functions=n                                  # Needs timespec_operations.h and frsh_os_compatibility.h
78 CONFIG_FRSH_TEST_jitter_test=n                                # Needs timespec_operations.h and frsh_os_compatibility.h
79 CONFIG_FRSH_TEST_sharedobj_prototype=n                        # Needs frsh_sharedobj_XXX
80 CONFIG_FRSH_TEST_test_bind=n                                  # Needs eat.h and timespec_operations.h
81 CONFIG_FRSH_TEST_test_contract_labels=n                       # Needs eat.h and timespec_operations.h
82 CONFIG_FRSH_TEST_test_eat=n                                   # Needs eat.h
83 CONFIG_FRSH_TEST_test_frsh_performance=n                      # Needs more frsh api - todo
84 CONFIG_FRSH_TEST_test_frsh_renegotiate_async=n                # Needs eat.h and timespec_operations.h
85 CONFIG_FRSH_TEST_test_frsh_synch_obj=n                        # Needs frsh_thread_id_t to be simple type - Aquosa declares it as structure
86 CONFIG_FRSH_TEST_test_memory=n                                # Needs different Makefile.omk and then we will see :)
87 CONFIG_FRSH_TEST_demo_sept07_negotiate_and_send=n             # Needs RTEP
88 CONFIG_FRSH_TEST_demo_sept07_negotiations_limit=n             # Needs RTEP
89 CONFIG_FRSH_TEST_demo_sept07_renegotiate_and_send=n           # Needs RTEP
90 CONFIG_FRSH_TEST_test_endpoints=n                             # Needs RTEP
91 CONFIG_FRSH_TEST_test_frsh_distributed_contract_negotiate=n   # Nedds vres_id to be int
92 CONFIG_FRSH_TEST_test_frsh_distributed_contract_renegotiate=n # Needs RTEP
93 CONFIG_FRSH_TEST_test_frsh_distributed_init=n                 # Needs THE_FRSH_CPU_ID
94 CONFIG_FRSH_TEST_test_frsh_marshal=n                          # Accesses frsh_contract_t fields directly
95 CONFIG_FRSH_TEST_test_frsh_send_receive_basic=n               # Needs RTEP
96 CONFIG_FRSH_TEST_test_get_network_info=n                      # Needs RTEP
97 CONFIG_FRSH_TEST_test_self_bind=n                             # Needs eat.h and timespec_operations.h
98 CONFIG_FRSH_TEST_test_sizes=n                                 # Needs frsh_internal.h - TODO
99 CONFIG_FRSH_TEST_test_spare_capacity=n                        # Needs more frsh api - TODO
100 CONFIG_FRSH_TEST_test_timespec_operations=n                   # Needs timespec_operations.h
101 CONFIG_FRSH_TEST_test_vres_id_bits=n                          # Depends on bit-fields in integer vres_id
102 CONFIG_FSA_TESTS=n                                            # Depends on bit-fields in integer vres_id