Ignore:
Timestamp:
Dec 19, 2019 2:57:20 AM (4 years ago)
Author:
nanang
Message:

Fix #2256: Mini refactored Android configure script:

  • added CXXFLAGS & LDFLAGS parsing (from ndk-build output), CXXFLAGS was set to CFLAGS.
  • updated WebRTC instruction set to use SSE2, was generic, for Android emulator (x86 ABI).
  • updated C++ library/STL backend to use c++_shared, somehow '-lc++_static' is ignored after the refactor, also the official NDK docs mentions that c++_static may cause undefined behavior for app with multiple shared libraries (note pjsua2 app may use other shared libraries).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/samples/android_sample/jni/Android.mk

    r5932 r6120  
    22 
    33include $(CLEAR_VARS) 
    4  
    54LOCAL_MODULE    := dummy_static 
    6 LOCAL_SRC_FILES := dummy.c 
    7  
     5LOCAL_SRC_FILES := dummy.c dummy2.cc 
    86include $(BUILD_STATIC_LIBRARY) 
    97 
     
    119LOCAL_MODULE    := dummy_shared 
    1210LOCAL_STATIC_LIBRARIES := dummy_static 
    13 LOCAL_SRC_FILES := dummy.c 
    14  
     11LOCAL_SRC_FILES := dummy.c dummy2.cc 
    1512include $(BUILD_SHARED_LIBRARY) 
Note: See TracChangeset for help on using the changeset viewer.