Fix examples after regressions.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13781 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
52aef26997
commit
cbb5b711ab
7 changed files with 2601 additions and 26 deletions
|
|
@ -1,7 +1,7 @@
|
|||
TOP = ../..
|
||||
SWIG = $(TOP)/../preinst-swig
|
||||
JAVASCRIPT_EXE = $(TOP)/../Tools/javascript/javascript
|
||||
CXXSRCS = example.cpp
|
||||
CXXSRCS =
|
||||
JSCXXSRCS = $(TOP)/../Tools/javascript/javascript.cxx
|
||||
JS_SCRIPT = runme.js
|
||||
TARGET = example
|
||||
|
|
@ -10,7 +10,7 @@ SWIGOPT = -I$(TOP)/../Lib/javascript -I$(TOP)/../Lib/javascript/jsc
|
|||
|
||||
all::
|
||||
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' javascript_cpp
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' javascript
|
||||
|
||||
clean::
|
||||
$(MAKE) -f $(TOP)/Makefile javascript_clean
|
||||
|
|
|
|||
0
Examples/javascript/pointer/typemaps.i
Normal file
0
Examples/javascript/pointer/typemaps.i
Normal file
|
|
@ -1,7 +1,7 @@
|
|||
TOP = ../..
|
||||
SWIG = $(TOP)/../preinst-swig
|
||||
JAVASCRIPT_EXE = $(TOP)/../Tools/javascript/javascript
|
||||
CXXSRCS = example.cpp
|
||||
SRCS = example.c
|
||||
JSCXXSRCS = $(TOP)/../Tools/javascript/javascript.cxx
|
||||
JS_SCRIPT = runme.js
|
||||
TARGET = example
|
||||
|
|
@ -9,8 +9,8 @@ INTERFACE = example.i
|
|||
SWIGOPT = -I$(TOP)/../Lib/javascript -I$(TOP)/../Lib/javascript/jsc
|
||||
|
||||
all::
|
||||
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' javascript_cpp
|
||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' javascript
|
||||
|
||||
clean::
|
||||
$(MAKE) -f $(TOP)/Makefile javascript_clean
|
||||
|
|
|
|||
10
Examples/javascript/simple/example.cpp → Examples/javascript/simple/example.c
Executable file → Normal file
10
Examples/javascript/simple/example.cpp → Examples/javascript/simple/example.c
Executable file → Normal file
|
|
@ -1,9 +1,3 @@
|
|||
#include <stdlib.h>
|
||||
#include <string>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
using namespace std;
|
||||
|
||||
/* File : example.c */
|
||||
|
||||
/* A global variable */
|
||||
|
|
@ -22,7 +16,3 @@ int gcd(int x, int y) {
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
8
Examples/javascript/simple/example.i
Executable file → Normal file
8
Examples/javascript/simple/example.i
Executable file → Normal file
|
|
@ -1,15 +1,7 @@
|
|||
/* File : example.i */
|
||||
%module example
|
||||
|
||||
%include "std_string.i"
|
||||
|
||||
%inline %{
|
||||
extern int gcd(int x, int y);
|
||||
extern float gcd(float x, float y);
|
||||
extern char* helloString(char* s);
|
||||
extern void delete_helloString(char *newstr);
|
||||
extern std::string helloString(std::string s);
|
||||
extern void bar(int x, int y = 3, int z = 4);
|
||||
|
||||
extern double Foo;
|
||||
%}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
TOP = ../..
|
||||
SWIG = $(TOP)/../preinst-swig
|
||||
JAVASCRIPT_EXE = $(TOP)/../Tools/javascript/javascript
|
||||
CXXSRCS = example.cpp
|
||||
SRCS = example.c
|
||||
JSCXXSRCS = $(TOP)/../Tools/javascript/javascript.cxx
|
||||
JS_SCRIPT = runme.js
|
||||
TARGET = example
|
||||
|
|
@ -9,8 +9,8 @@ INTERFACE = example.i
|
|||
SWIGOPT = -I$(TOP)/../Lib/javascript -I$(TOP)/../Lib/javascript/jsc
|
||||
|
||||
all::
|
||||
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' javascript_cpp
|
||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' javascript
|
||||
|
||||
clean::
|
||||
$(MAKE) -f $(TOP)/Makefile javascript_clean
|
||||
|
|
|
|||
2593
Examples/javascript/variables/example_wrap.c
Normal file
2593
Examples/javascript/variables/example_wrap.c
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue