Commit d630422f authored by captainwong's avatar captainwong

fix swig build

parent bd0995ff
%module libademco
%include "constraints.i"
%include "typemaps.i"
%include "cpointer.i"
%include "stdint.i"
#ifdef SWIGJAVA
%include "arrays_java.i";
%include "enums.swg" /*NB: requires JDK-1.5+
See: http://www.swig.org/Doc1.3/Java.html#enumerations */
#elif defined SWIGCSHARP
%include "arrays_csharp.i";
#endif
%{
/* Includes the header in the wrapper code */
#include "../hb_com.h"
%}
#ifdef SWIGJAVA
// from arrays_java.i (signed char)
JAVA_ARRAYS_DECL(uint8_t, jbyte, Byte, Uint8)
JAVA_ARRAYS_IMPL(uint8_t, jbyte, Byte, Uint8)
JAVA_ARRAYS_TYPEMAPS(uint8_t, byte, jbyte, Uint8, "[B")
%apply uint8_t[] { uint8_t* }
#elif defined SWIGCSHARP
%apply uint8_t INPUT[] {const uint8_t*}
%apply uint8_t OUTPUT[] {uint8_t*}
#endif
%pointer_functions(int, intp);
%pointer_functions(uint16_t, uint16p);
%pointer_functions(uint32_t, uint32p);
%pointer_functions(size_t, size_tp);
/* Parse the header file to generate wrappers */
%include "../ademco.h"
%include "../hb_com.h"
%module libademco
%include "constraints.i"
%include "typemaps.i"
%include "cpointer.i"
%include "stdint.i"
#ifdef SWIGJAVA
%include "arrays_java.i";
%include "enums.swg" /*NB: requires JDK-1.5+
See: http://www.swig.org/Doc1.3/Java.html#enumerations */
#elif defined SWIGCSHARP
%include "arrays_csharp.i";
#endif
%{
/* Includes the header in the wrapper code */
#include "../ademco_config.h"
#include "../ademco_version.h"
#include "../hb_com.h"
%}
#ifdef SWIGJAVA
// from arrays_java.i (signed char)
JAVA_ARRAYS_DECL(uint8_t, jbyte, Byte, Uint8)
JAVA_ARRAYS_IMPL(uint8_t, jbyte, Byte, Uint8)
JAVA_ARRAYS_TYPEMAPS(uint8_t, byte, jbyte, Uint8, "[B")
%apply uint8_t[] { uint8_t* }
#elif defined SWIGCSHARP
%apply uint8_t INPUT[] {const uint8_t*}
%apply uint8_t OUTPUT[] {uint8_t*}
#endif
%pointer_functions(int, intp);
%pointer_functions(uint16_t, uint16p);
%pointer_functions(uint32_t, uint32p);
%pointer_functions(size_t, size_tp);
/* Parse the header file to generate wrappers */
%include "../ademco_config.h"
%include "../ademco_version.h"
%include "../ademco.h"
%include "../hb_com.h"
......@@ -9,7 +9,7 @@ cd $CURRENT_DIR
./examples.bat
mkdir -p dist/examples/x86
cp "/h/dev/AlarmCenterTestTools/Release/直连型主机模拟器V1.15.exe" dist/examples/x86/
cp "/h/dev/AlarmCenterTestTools/Release/直连型主机模拟器V1.16.exe" dist/examples/x86/
cp "/g/dev_libs/curl-7.87.0/builds/libcurl-vc14-x86-release-dll-ipv6-sspi-schannel/bin/libcurl.dll" dist/examples/x86/
cp ../examples/Win32/Release/server_demo.exe dist/examples/x86/
cp ../examples/Release/httprelay.exe dist/examples/x86/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment