Ignore:
Timestamp:
Jul 15, 2013 5:34:14 AM (11 years ago)
Author:
bennylp
Message:
  • Attempt to autodetect JDK dir. If JAVA_HOME env is set, then it will be used. Otherwise it will try to locate JDK dir by finding the location of "javac".
  • Produce libpjsua.so on non-Windows (not sure if this works on Mac)
  • Hardcoded path for Linux in swig_gen.py
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/jni/pjsip-apps/src/jni/swig_gen.py

    r4557 r4563  
    1414#SOURCE_PATH  = PJ_ROOT_PATH + "pjlib/include/pj/types.h" 
    1515 
    16 # CPP (C preprocessor) settings, CPP is needed by pycparser. 
    17 CPP_PATH         = 'C:/devs/bin/cpp.exe' if sys.platform == 'win32' else 'cpp' 
     16# CPP is needed by pycparser. 
     17if sys.platform == 'win32': 
     18        PYCPARSER_DIR="C:/devs/tools/pycparser" 
     19        CPP_PATH='C:/devs/bin/cpp.exe' 
     20else: 
     21        PYCPARSER_DIR="/home/bennylp/Desktop/opt/src/pycparser-master" 
     22        CPP_PATH='cpp' 
     23 
     24# CPP (C preprocessor) settings 
    1825CPP_CFLAGS   = [ 
    19         r'-DPJ_AUTOCONF', 
    20         r'-DCC_DUMMY', 
    21         r'-Djmp_buf=int', 
    22         r'-IC:/devs/tools/pycparser/utils/fake_libc_include', 
     26        '-DPJ_AUTOCONF', 
     27        '-DCC_DUMMY', 
     28        '-U__GNUC__', 
     29        '-Djmp_buf=int', 
     30        '-I' + PYCPARSER_DIR + '/utils/fake_libc_include', 
    2331        "-I" + PJ_ROOT_PATH + "pjlib/include", 
    2432        "-I" + PJ_ROOT_PATH + "pjlib-util/include", 
Note: See TracChangeset for help on using the changeset viewer.