Skip to content

Commit 257ee74

Browse files
committed
Renamed TimerCallback.i -> utils.i
1 parent 67bb7a1 commit 257ee74

File tree

5 files changed

+13
-17
lines changed

5 files changed

+13
-17
lines changed

Diff for: pysimavr/swig/SConstruct

+5-6
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ envCPP = envBase.Clone(
4242

4343
#######################################
4444
# swig simavr
45-
########################################
45+
#######################################
4646
def filtered_glob(env, pattern, omit=[],
4747
ondisk=True, source=False, strings=False):
4848
return filter(
@@ -111,7 +111,7 @@ def part(name):
111111

112112
#######################################
113113
# swig parts
114-
########################################
114+
#######################################
115115
part('sgm7')
116116
part('ledrow')
117117
part('inverter')
@@ -124,12 +124,11 @@ part('uart_buff')
124124

125125
#######################################
126126
# swig utils
127-
########################################
127+
#######################################
128128
swig_utils = envCPP.SharedLibrary(
129129
'utils',
130-
source=[Dir(UTILS).File('TimerCallback.cpp'),
131-
Dir(SWIG).File('TimerCallback.i')
132-
#, Dir(SWIG).File('_simavr.so')
130+
source=[Glob(UTILS + '/*.cpp'),
131+
Dir(SWIG).File('utils.i'),
133132
],
134133
SWIGFLAGS=['-python', '-c++'],
135134
SHLIBPREFIX="_",
File renamed without changes.

Diff for: pysimavr/swig/TimerCallback_wrap.cc renamed to pysimavr/swig/utils_wrap.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -3772,7 +3772,7 @@ SWIG_From_unsigned_SS_long_SS_long (unsigned long long value)
37723772
* C++ director class methods
37733773
* --------------------------------------------------- */
37743774

3775-
#include "TimerCallback_wrap.h"
3775+
#include "utils_wrap.h"
37763776

37773777
SwigDirector_TimerCallback::SwigDirector_TimerCallback(PyObject *self, avr_t *avr): TimerCallback(avr), Swig::Director(self) {
37783778
SWIG_DIRECTOR_RGTR((TimerCallback *)this, this);
File renamed without changes.

Diff for: setup.py

+7-10
Original file line numberDiff line numberDiff line change
@@ -126,18 +126,15 @@ def part(name):
126126
),
127127
Extension(name='pysimavr.swig._utils',
128128
sources=[
129-
SWIG + '/TimerCallback_wrap.cc',
130-
UTILS + '/TimerCallback.cpp'
131-
],
129+
SWIG + '/utils_wrap.cc',
130+
]
131+
+ files(UTILS, '*.cpp'),
132132
include_dirs=[
133-
SIM, INCLUDE_SIMAVR, INCLUDE_AVR, UTILS
133+
SIM, INCLUDE_SIMAVR, INCLUDE_AVR, UTILS
134134
],
135-
#swig_opts=[
136-
# '-c++'
137-
#],
138-
extra_compile_args=[
139-
#The Fast get feature seems broken in py2.7 (TypeError on avr_t * cast). Disable.
140-
'-DSWIG_PYTHON_SLOW_GETSET_THIS',
135+
define_macros=[
136+
#The Fast get feature seems broken in py2.7 (TypeError on avr_t * cast). Disable.
137+
('SWIG_PYTHON_SLOW_GETSET_THIS', None),
141138
],
142139
),
143140
part('sgm7'),

0 commit comments

Comments
 (0)