Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ademco_hb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
captainwong
ademco_hb
Commits
d630422f
Commit
d630422f
authored
Dec 06, 2023
by
captainwong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix swig build
parent
bd0995ff
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
42 deletions
+46
-42
libademco.swig
swig/libademco.swig
+45
-41
mk_examples.sh
tools/mk_examples.sh
+1
-1
No files found.
swig/libademco.swig
View file @
d630422f
%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"
tools/mk_examples.sh
View file @
d630422f
...
...
@@ -9,7 +9,7 @@ cd $CURRENT_DIR
./examples.bat
mkdir
-p
dist/examples/x86
cp
"/h/dev/AlarmCenterTestTools/Release/直连型主机模拟器V1.1
5
.exe"
dist/examples/x86/
cp
"/h/dev/AlarmCenterTestTools/Release/直连型主机模拟器V1.1
6
.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/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment