Commit d630422f authored by captainwong's avatar captainwong

fix swig build

parent bd0995ff
%module libademco %module libademco
%include "constraints.i" %include "constraints.i"
%include "typemaps.i" %include "typemaps.i"
%include "cpointer.i" %include "cpointer.i"
%include "stdint.i" %include "stdint.i"
#ifdef SWIGJAVA #ifdef SWIGJAVA
%include "arrays_java.i"; %include "arrays_java.i";
%include "enums.swg" /*NB: requires JDK-1.5+ %include "enums.swg" /*NB: requires JDK-1.5+
See: http://www.swig.org/Doc1.3/Java.html#enumerations */ See: http://www.swig.org/Doc1.3/Java.html#enumerations */
#elif defined SWIGCSHARP #elif defined SWIGCSHARP
%include "arrays_csharp.i"; %include "arrays_csharp.i";
#endif #endif
%{ %{
/* Includes the header in the wrapper code */ /* Includes the header in the wrapper code */
#include "../hb_com.h" #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) #ifdef SWIGJAVA
JAVA_ARRAYS_IMPL(uint8_t, jbyte, Byte, Uint8) // from arrays_java.i (signed char)
JAVA_ARRAYS_TYPEMAPS(uint8_t, byte, jbyte, Uint8, "[B") JAVA_ARRAYS_DECL(uint8_t, jbyte, Byte, Uint8)
%apply uint8_t[] { uint8_t* } JAVA_ARRAYS_IMPL(uint8_t, jbyte, Byte, Uint8)
JAVA_ARRAYS_TYPEMAPS(uint8_t, byte, jbyte, Uint8, "[B")
#elif defined SWIGCSHARP %apply uint8_t[] { uint8_t* }
%apply uint8_t INPUT[] {const uint8_t*}
%apply uint8_t OUTPUT[] {uint8_t*} #elif defined SWIGCSHARP
#endif %apply uint8_t INPUT[] {const uint8_t*}
%apply uint8_t OUTPUT[] {uint8_t*}
%pointer_functions(int, intp); #endif
%pointer_functions(uint16_t, uint16p);
%pointer_functions(uint32_t, uint32p); %pointer_functions(int, intp);
%pointer_functions(size_t, size_tp); %pointer_functions(uint16_t, uint16p);
%pointer_functions(uint32_t, uint32p);
/* Parse the header file to generate wrappers */ %pointer_functions(size_t, size_tp);
%include "../ademco.h"
%include "../hb_com.h" /* 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 ...@@ -9,7 +9,7 @@ cd $CURRENT_DIR
./examples.bat ./examples.bat
mkdir -p dist/examples/x86 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 "/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/Win32/Release/server_demo.exe dist/examples/x86/
cp ../examples/Release/httprelay.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