Changeset 4711
- Timestamp:
- Jan 23, 2014 2:28:41 AM (11 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/build.mak.in
r4705 r4711 173 173 -I$(PJDIR)/pjsip/include 174 174 export APP_CXXFLAGS := $(APP_CFLAGS) 175 # x x x x x x x x x x x x x x x x x x x x x x x x176 #177 # FIX THIS178 #179 # pjsua2 is c++ library hence maybe needs to be put in separate180 # variables. it will also require -lstdc++ or -static-libstdc++181 # x x x x x x x x x x x x x x x x x x x x x x x x182 175 export APP_LDFLAGS := -L$(PJDIR)/pjlib/lib\ 183 176 -L$(PJDIR)/pjlib-util/lib\ … … 187 180 -L$(PJDIR)/third_party/lib\ 188 181 $(PJ_VIDEO_LDFLAGS) \ 189 -static-libstdc++ \190 182 @LDFLAGS@ 191 192 # x x x x x x x x x x x x x x x x x x x x x x x x 193 # 194 # FIX THIS 195 # 196 # pjsua2 is c++ library hence maybe needs to be put in separate 197 # variables. it will also require -lstdc++ 198 # x x x x x x x x x x x x x x x x x x x x x x x x 183 export APP_LDXXFLAGS := $(APP_LDFLAGS) \ 184 -static-libstdc++ 185 199 186 export APP_LIB_FILES = \ 200 $(PJ_DIR)/pjsip/lib/libpjsua2-$(LIB_SUFFIX) \201 187 $(PJ_DIR)/pjsip/lib/libpjsua-$(LIB_SUFFIX) \ 202 188 $(PJ_DIR)/pjsip/lib/libpjsip-ua-$(LIB_SUFFIX) \ … … 211 197 $(APP_THIRD_PARTY_LIB_FILES) \ 212 198 $(PJ_DIR)/pjlib/lib/libpj-$(LIB_SUFFIX) 199 export APP_LIBXX_FILES = \ 200 $(PJ_DIR)/pjsip/lib/libpjsua2-$(LIB_SUFFIX) \ 201 $(APP_LIB_FILES) 213 202 214 203 ifeq ($(PJ_SHARED_LIBRARIES),) … … 239 228 export PJSUA2_LIB_LDLIB := -lpjsua2 240 229 241 APP_LIB_FILES += $(PJ_DIR)/pjsip/lib/libpjsua.$(SHLIB_SUFFIX).$(PJ_VERSION_MAJOR) $(PJ_DIR)/pjsip/lib/libpjsua.$(SHLIB_SUFFIX) \230 export ADD_LIB_FILES := $(PJ_DIR)/pjsip/lib/libpjsua.$(SHLIB_SUFFIX).$(PJ_VERSION_MAJOR) $(PJ_DIR)/pjsip/lib/libpjsua.$(SHLIB_SUFFIX) \ 242 231 $(PJ_DIR)/pjsip/lib/libpjsip-ua.$(SHLIB_SUFFIX).$(PJ_VERSION_MAJOR) $(PJ_DIR)/pjsip/lib/libpjsip-ua.$(SHLIB_SUFFIX) \ 243 232 $(PJ_DIR)/pjsip/lib/libpjsip-simple.$(SHLIB_SUFFIX).$(PJ_VERSION_MAJOR) $(PJ_DIR)/pjsip/lib/libpjsip-simple.$(SHLIB_SUFFIX) \ … … 250 239 $(PJ_DIR)/pjlib-util/lib/libpjlib-util.$(SHLIB_SUFFIX).$(PJ_VERSION_MAJOR) $(PJ_DIR)/pjlib-util/lib/libpjlib-util.$(SHLIB_SUFFIX) \ 251 240 $(PJ_DIR)/pjlib/lib/libpj.$(SHLIB_SUFFIX).$(PJ_VERSION_MAJOR) $(PJ_DIR)/pjlib/lib/libpj.$(SHLIB_SUFFIX) 252 endif 253 254 export APP_LDLIBS := $(PJSUA2_LIB_LDLIB) \ 255 $(PJSUA_LIB_LDLIB) \ 241 242 APP_LIB_FILES += $(ADD_LIB_FILES) 243 244 APP_LIBXX_FILES += $(PJ_DIR)/pjsip/lib/libpjsua2.$(SHLIB_SUFFIX).$(PJ_VERSION_MAJOR) $(PJ_DIR)/pjsip/lib/libpjsua2.$(SHLIB_SUFFIX) \ 245 $(ADD_LIB_FILES) 246 endif 247 248 export APP_LDLIBS := $(PJSUA_LIB_LDLIB) \ 256 249 $(PJSIP_UA_LDLIB) \ 257 250 $(PJSIP_SIMPLE_LDLIB) \ … … 267 260 $(PJLIB_LDLIB) \ 268 261 @LIBS@ 262 export APP_LDXXLIBS := $(PJSUA2_LIB_LDLIB) \ 263 -lstdc++ \ 264 $(APP_LDLIBS) 269 265 270 266 # Here are the variabels to use if application is using the library … … 275 271 export PJ_CXXFLAGS := $(APP_CXXFLAGS) 276 272 export PJ_LDFLAGS := $(APP_LDFLAGS) 273 export PJ_LDXXFLAGS := $(APP_LDXXFLAGS) 277 274 export PJ_LDLIBS := $(APP_LDLIBS) 275 export PJ_LDXXLIBS := $(APP_LDXXLIBS) 278 276 export PJ_LIB_FILES := $(APP_LIB_FILES) 277 export PJ_LIBXX_FILES := $(APP_LIBXX_FILES) 279 278 280 279 # And here are the variables to use if application is using the -
pjproject/trunk/pjsip-apps/build/Makefile
r4704 r4711 59 59 60 60 export CC_OUT CC AR RANLIB HOST_MV HOST_RM HOST_RMDIR HOST_MKDIR OBJEXT LD LDOUT 61 ############################################################################### 62 # Main entry 63 # 64 # 65 # x x x x x x x x x x x x x x x x x x x x x x x x 66 # 67 # FIX THIS 68 # 69 # x x x x x x x x x x x x x x x x x x x x x x x x 70 TARGETS := $(BINDIR)/$(PJSUA_EXE) $(BINDIR)/$(PJSYSTEST_EXE) samples 61 62 TARGETS := $(PJSUA_EXE) $(PJSYSTEST_EXE) samples 71 63 72 64 all: $(TARGETS) -
pjproject/trunk/pjsip-apps/build/Samples.mak
r4705 r4711 11 11 export _CXXFLAGS:= $(PJ_CXXFLAGS) 12 12 export _LDFLAGS := $(PJ_LDFLAGS) $(PJ_LDLIBS) $(LDFLAGS) 13 export _LDXXFLAGS := $(PJ_LDXXFLAGS) $(PJ_LDXXLIBS) $(LDFLAGS) 13 14 14 15 SRCDIR := ../src/samples … … 30 31 pjsip-perf \ 31 32 pcaputil \ 32 pjsua2_demo \33 33 playfile \ 34 34 playsine \ … … 48 48 vid_streamutil 49 49 50 PJSUA2_SAMPLES := pjsua2_demo 51 50 52 EXES := $(foreach file, $(SAMPLES), $(file)$(HOST_EXE)) 53 PJSUA2_EXES := $(foreach file, $(PJSUA2_SAMPLES), $(file)$(HOST_EXE)) 51 54 52 55 .PHONY: $(EXES) 56 .PHONY: $(PJSUA2_EXES) 53 57 54 all: $(EXES) 58 all: $(EXES) $(PJSUA2_EXES) 55 59 56 60 $(EXES): 57 $(MAKE) --no-print-directory -f $(RULES_MAK) SAMPLE_SRCDIR=$(SRCDIR) SAMPLE_OBJS=$@.o SAMPLE_CFLAGS="$(_CFLAGS)" SAMPLE_CXXFLAGS="$(_CXXFLAGS)" SAMPLE_LDFLAGS="$(_LDFLAGS) -lstdc++" SAMPLE_EXE=$@ APP=SAMPLE app=sample $(subst /,$(HOST_PSEP),$(BINDIR)/$@) 61 $(MAKE) --no-print-directory -f $(RULES_MAK) SAMPLE_SRCDIR=$(SRCDIR) SAMPLE_OBJS=$@.o SAMPLE_CFLAGS="$(_CFLAGS)" SAMPLE_CXXFLAGS="$(_CXXFLAGS)" SAMPLE_LDFLAGS="$(_LDFLAGS)" SAMPLE_EXE=$@ APP=SAMPLE app=sample $(subst /,$(HOST_PSEP),$(BINDIR)/$@) 62 63 $(PJSUA2_EXES): 64 $(MAKE) --no-print-directory -f $(RULES_MAK) PJSUA2_SAMPLE_SRCDIR=$(SRCDIR) PJSUA2_SAMPLE_OBJS=$@.o PJSUA2_SAMPLE_CFLAGS="$(_CFLAGS)" PJSUA2_SAMPLE_CXXFLAGS="$(_CXXFLAGS)" PJSUA2_SAMPLE_LDFLAGS="$(_LDXXFLAGS)" PJSUA2_SAMPLE_EXE=$@ APP=PJSUA2_SAMPLE app=pjsua2_sample $(subst /,$(HOST_PSEP),$(BINDIR)/$@) 58 65 59 66 depend: -
pjproject/trunk/pjsip-apps/src/swig/java/Makefile
r4704 r4711 1 1 include ../../../../build.mak 2 include ../../../../build/common.mak 2 3 3 4 ifneq ($(findstring android,$(TARGET_NAME)),) … … 49 50 MY_JNI_CFLAGS = -fPIC 50 51 MY_JNI_LDFLAGS = -L$(MY_JDK)/lib 51 ifeq ($(OS),darwin)52 MY_JNI_LDFLAGS := $(MY_JNI_LDFLAGS) -Wl,-soname,pjsua2.so53 endif54 52 ifeq ($(OS),android) 55 53 MY_JNI_CFLAGS := $(MY_JNI_CFLAGS) -D__ANDROID__ … … 68 66 endif 69 67 MY_JNI_CFLAGS := $(MY_JNI_CFLAGS) -I$(MY_JDK)/include -I$(MY_JDK)/include/win32 \ 70 -I$(MY_JDK)/include/linux -I .68 -I$(MY_JDK)/include/linux -I$(MY_JDK)/include/darwin -I. 71 69 72 70 # Build settings 73 MY_CFLAGS = $(PJ_C FLAGS) $(MY_JNI_CFLAGS)74 MY_LDFLAGS = $(PJ_LD FLAGS) -lpjsua2-$(TARGET_NAME) $(PJ_LDLIBS) $(MY_JNI_LDFLAGS)71 MY_CFLAGS = $(PJ_CXXFLAGS) $(MY_JNI_CFLAGS) $(CFLAGS) 72 MY_LDFLAGS = $(PJ_LDXXFLAGS) $(PJ_LDXXLIBS) $(MY_JNI_LDFLAGS) $(LDFLAGS) 75 73 MY_PACKAGE_NAME = org.pjsip.pjsua2 76 74 ifeq ($(OS),android) -
pjproject/trunk/pjsip/build/Makefile
r4705 r4711 152 152 export PJSUA2_TEST_CFLAGS += $(_CFLAGS) $(PJ_VIDEO_CFLAGS) 153 153 export PJSUA2_TEST_CXXFLAGS = $(PJSUA2_LIB_CFLAGS) 154 export PJSUA2_TEST_LDFLAGS += -lpjsua2-$(TARGET_NAME) -lstdc++ $(PJ_LDFLAGS) $(PJ_LDLIBS) $(LDFLAGS)154 export PJSUA2_TEST_LDFLAGS += $(PJ_LDXXFLAGS) $(PJ_LDXXLIBS) $(LDFLAGS) 155 155 export PJSUA2_TEST_EXE := pjsua2-test-$(TARGET_NAME)$(HOST_EXE) 156 156
Note: See TracChangeset
for help on using the changeset viewer.