##// END OF EJS Templates
Changed to qmake build system.
Jeandet Alexis -
r44:81254c2cf763 qt
parent child
Show More
@@ -0,0 +1,18
1
2 TEMPLATE = lib
3 CONFIG -= qt
4 CONFIG += static
5
6 HEADERS += \
7 src/RS232.h
8
9 win32:SOURCES += src/RS232_win.c
10
11 unix:SOURCES += src/RS232_unix.c
12
13 debug:DEFINES+=RS232_debug
14
15 DESTDIR=lib
16
17 OBJECTS_DIR = obj
18
@@ -1,7 +1,6
1 // SOPSUYSI_RS232.h
1 // SOPSUYSI_RS232.h
2 #ifndef RS232_H
2 #ifndef RS232_H
3 #define RS232_H
3 #define RS232_H
4 #define RS232_debug
5
4
6 #define badPortValue -1
5 #define badPortValue -1
7 #define rs232noerr 0
6 #define rs232noerr 0
@@ -8,19 +8,11
8 #include <limits.h>
8 #include <limits.h>
9 #include <stdlib.h>
9 #include <stdlib.h>
10 #include <sys/stat.h>
10 #include <sys/stat.h>
11 #include "rs232config.h"
12
11
13 #ifdef HAVE_TERMIOS_H
14 #include <termios.h>
12 #include <termios.h>
15 #endif
16 #ifdef HAVE_TERMIO_H
17 #include <termio.h>
13 #include <termio.h>
18 #endif
19 #include "RS232.h"
14 #include "RS232.h"
20
15
21 #ifdef HAVE_WINDOWS_H
22 #else
23 #ifdef HAVE_TERMIOS_H
24 rs232speed_t rs232cfspeed(unsigned int BaudeRate);
16 rs232speed_t rs232cfspeed(unsigned int BaudeRate);
25
17
26 rs232port_t rs232open(char* psPortName)
18 rs232port_t rs232open(char* psPortName)
@@ -553,6 +545,4 int rs232safewrite(rs232port_t fd,char*
553 return -1;
545 return -1;
554 }
546 }
555
547
556 #endif
557 #endif //#ifdef HAVE_TERMIOS_H
558
548
@@ -1,4 +1,3
1 #include "rs232config.h"
2 #include <stdio.h>
1 #include <stdio.h>
3 #include <unistd.h>
2 #include <unistd.h>
4 #include <fcntl.h>
3 #include <fcntl.h>
@@ -6,12 +5,10
6 #include <errno.h>
5 #include <errno.h>
7 #include <malloc.h>
6 #include <malloc.h>
8
7
9 #ifdef HAVE_WINDOWS_H
10 #include <windows.h>
8 #include <windows.h>
11 #endif
12 #include "RS232.h"
9 #include "RS232.h"
13
10
14 #ifdef HAVE_WINDOWS_H
11
15
12
16
13
17 int privatedecodeparity(rs232parity Parity )
14 int privatedecodeparity(rs232parity Parity )
@@ -383,4 +380,4 int rs232clearDTR(rs232port_t fd)
383 return -1;
380 return -1;
384 }
381 }
385
382
386 #endif //#ifdef HAVE_WINDOWS_H
383
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
This diff has been collapsed as it changes many lines, (674 lines changed) Show them Hide them
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
This diff has been collapsed as it changes many lines, (732 lines changed) Show them Hide them
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
This diff has been collapsed as it changes many lines, (9585 lines changed) Show them Hide them
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
This diff has been collapsed as it changes many lines, (14851 lines changed) Show them Hide them
1 NO CONTENT: file was removed
NO CONTENT: file was removed
This diff has been collapsed as it changes many lines, (14852 lines changed) Show them Hide them
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
This diff has been collapsed as it changes many lines, (2500 lines changed) Show them Hide them
1 NO CONTENT: file was removed
NO CONTENT: file was removed
This diff has been collapsed as it changes many lines, (597 lines changed) Show them Hide them
1 NO CONTENT: file was removed
NO CONTENT: file was removed
This diff has been collapsed as it changes many lines, (1522 lines changed) Show them Hide them
1 NO CONTENT: file was removed
NO CONTENT: file was removed
This diff has been collapsed as it changes many lines, (1766 lines changed) Show them Hide them
1 NO CONTENT: file was removed
NO CONTENT: file was removed
This diff has been collapsed as it changes many lines, (14852 lines changed) Show them Hide them
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
This diff has been collapsed as it changes many lines, (688 lines changed) Show them Hide them
1 NO CONTENT: file was removed
NO CONTENT: file was removed
This diff has been collapsed as it changes many lines, (527 lines changed) Show them Hide them
1 NO CONTENT: file was removed
NO CONTENT: file was removed
This diff has been collapsed as it changes many lines, (9655 lines changed) Show them Hide them
1 NO CONTENT: file was removed
NO CONTENT: file was removed
This diff has been collapsed as it changes many lines, (7986 lines changed) Show them Hide them
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
This diff has been collapsed as it changes many lines, (604 lines changed) Show them Hide them
1 NO CONTENT: file was removed
NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now