Tristan Matthews | 0a329cc | 2013-07-17 13:20:14 -0400 | [diff] [blame] | 1 | # |
| 2 | # This is a utility make file that is used to generate BB10 config settings |
| 3 | # from current build settings. The stdout output of this make file can be |
| 4 | # saved to a .pri file which then can be included in app's .pro file. |
| 5 | # |
| 6 | # This make file is invoked by configure-bb10 script to generate pjsip.pri |
| 7 | # file. |
| 8 | # |
| 9 | include build.mak |
| 10 | |
| 11 | # Generate library list (the "-lxxx" options) from list of linked libraries. |
| 12 | PJ_BB_LIBS = $(filter-out -lm -lsocket, $(APP_LDLIBS)) |
| 13 | |
| 14 | # This used to generate the library path list (the "-Lxxx" options) |
| 15 | # We replace the path with "$$PJ_DIR" |
| 16 | PJ_BB_LDFLAGS = $(subst $(PJDIR),\$$\$$PJ_DIR,$(APP_LDFLAGS)) |
| 17 | |
| 18 | all: |
| 19 | @echo PJ_DIR = $(PJDIR) |
| 20 | @echo |
| 21 | @echo 'DEFINES += PJ_AUTOCONF' |
| 22 | @echo |
| 23 | @echo 'PJ_INCLUDEPATH += $$$$quote($$$$PJ_DIR/pjlib/include)' |
| 24 | @echo 'PJ_INCLUDEPATH += $$$$quote($$$$PJ_DIR/pjmedia/include)' |
| 25 | @echo 'PJ_INCLUDEPATH += $$$$quote($$$$PJ_DIR/pjnath/include)' |
| 26 | @echo 'PJ_INCLUDEPATH += $$$$quote($$$$PJ_DIR/pjlib-util/include)' |
| 27 | @echo 'PJ_INCLUDEPATH += $$$$quote($$$$PJ_DIR/pjsip/include)' |
| 28 | @echo |
| 29 | @for token in $(PJ_BB_LDFLAGS); do \ |
| 30 | if echo $$token | grep -- '-L' >> /dev/null; then \ |
| 31 | echo "PJ_LIBPATH += \$$\$$quote($$token)"; \ |
| 32 | fi; \ |
| 33 | done |
| 34 | @echo |
| 35 | @for token in $(PJ_BB_LIBS); do \ |
| 36 | echo PJ_LIBS += $$token; \ |
| 37 | done |
| 38 | @echo |
| 39 | @echo 'INCLUDEPATH += $$$$PJ_INCLUDEPATH' |
| 40 | @echo 'LIBS += $$$$PJ_LIBPATH' |
| 41 | @echo 'LIBS += $$$$PJ_LIBS' |
| 42 | @echo 'LIBS += -lOpenAL -lalut -laudio_manager -lsocket -lasound -lbbsystem -lm' |
| 43 | |
| 44 | |