##// END OF EJS Templates
Started Win32 support!
Alexis Jeandet -
r76:ece3fc8f42f2 dev_alexis
parent child
Show More
1 NO CONTENT: new file 100644, binary diff hidden
@@ -0,0 +1,29
1 #
2 # qmake configuration for stm32f4
3 #
4 #
5
6 MAKEFILE_GENERATOR = UNIX
7 TARGET_PLATFORM = unix
8 TEMPLATE = app
9 CONFIG += libuc2 warn_on release incremental
10 QT +=
11 QMAKE_INCREMENTAL_STYLE = sublib
12
13 include(../common/linux.conf)
14
15
16
17
18 load(qt_config)
19
20
21
22
23
24
25
26
27
28
29
@@ -0,0 +1,42
1 /****************************************************************************
2 **
3 ** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
4 ** Contact: http://www.qt-project.org/legal
5 **
6 ** This file is part of the qmake spec of the Qt Toolkit.
7 **
8 ** $QT_BEGIN_LICENSE:LGPL$
9 ** Commercial License Usage
10 ** Licensees holding valid commercial Qt licenses may use this file in
11 ** accordance with the commercial license agreement provided with the
12 ** Software or, alternatively, in accordance with the terms contained in
13 ** a written agreement between you and Digia. For licensing terms and
14 ** conditions see http://qt.digia.com/licensing. For further information
15 ** use the contact form at http://qt.digia.com/contact-us.
16 **
17 ** GNU Lesser General Public License Usage
18 ** Alternatively, this file may be used under the terms of the GNU Lesser
19 ** General Public License version 2.1 as published by the Free Software
20 ** Foundation and appearing in the file LICENSE.LGPL included in the
21 ** packaging of this file. Please review the following information to
22 ** ensure the GNU Lesser General Public License version 2.1 requirements
23 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
24 **
25 ** In addition, as a special exception, Digia gives you certain additional
26 ** rights. These rights are described in the Digia Qt LGPL Exception
27 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
28 **
29 ** GNU General Public License Usage
30 ** Alternatively, this file may be used under the terms of the GNU
31 ** General Public License version 3.0 as published by the Free Software
32 ** Foundation and appearing in the file LICENSE.GPL included in the
33 ** packaging of this file. Please review the following information to
34 ** ensure the GNU General Public License version 3.0 requirements will be
35 ** met: http://www.gnu.org/copyleft/gpl.html.
36 **
37 **
38 ** $QT_END_LICENSE$
39 **
40 ****************************************************************************/
41
42 //#include "../linux-g++/qplatformdefs.h"
@@ -0,0 +1,4
1 QMAKESPEC_ORIGINAL=C:/libuc2/mkspecs/win32-g++
2
3 include(../win32-g++/qmake.conf)
4
@@ -0,0 +1,2
1 #include "../win32-g++/qplatformdefs.h"
2
@@ -0,0 +1,75
1 #
2 # qmake configuration for win32-g++
3 #
4 # Written for MinGW
5 #
6 # Cross compile example for i686-w64-mingw32-g++:
7 # configure -xplatform win32-g++ -device-option CROSS_COMPILE=i686-w64-mingw32-
8 #
9
10 MAKEFILE_GENERATOR = MINGW
11
12 load(device_config)
13
14 equals(QMAKE_HOST.os, Windows): EXE_SUFFIX = .exe
15
16 TEMPLATE = app
17 CONFIG += libuc2 warn_on release incremental
18 QT +=
19
20
21 QMAKE_EXT_OBJ = .o
22 QMAKE_EXT_RES = _res.o
23
24 QMAKE_LEX = flex
25 QMAKE_LEXFLAGS =
26 QMAKE_YACC = byacc
27 QMAKE_YACCFLAGS = -d
28
29 QMAKE_INCDIR =
30 QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS]
31 QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS]
32
33 QMAKE_PREFIX_STATICLIB = lib
34 QMAKE_EXTENSION_STATICLIB = a
35
36 QMAKE_RUN_CC = $(CC) -c $(CFLAGS) $(INCPATH) -o $obj $src
37 QMAKE_RUN_CC_IMP = $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<
38 QMAKE_RUN_CXX = $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $obj $src
39 QMAKE_RUN_CXX_IMP = $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
40
41
42 !isEmpty(QMAKE_SH) {
43 MINGW_IN_SHELL = 1
44 QMAKE_DIR_SEP = /
45 QMAKE_QMAKE ~= s,\\\\,/,
46 QMAKE_COPY = cp
47 QMAKE_COPY_DIR = cp -r
48 QMAKE_MOVE = mv
49 QMAKE_DEL_FILE = rm
50 QMAKE_MKDIR = mkdir -p
51 QMAKE_DEL_DIR = rmdir
52 QMAKE_CHK_DIR_EXISTS = test -d
53 } else {
54 QMAKE_COPY = copy /y
55 QMAKE_COPY_DIR = xcopy /s /q /y /i
56 QMAKE_MOVE = move
57 QMAKE_DEL_FILE = del
58 QMAKE_MKDIR = mkdir
59 QMAKE_DEL_DIR = rmdir
60 QMAKE_CHK_DIR_EXISTS = if not exist
61 }
62
63 QMAKE_MOC = $$[QT_INSTALL_BINS]$${DIR_SEPARATOR}moc$${EXE_SUFFIX}
64 QMAKE_UIC = $$[QT_INSTALL_BINS]$${DIR_SEPARATOR}uic$${EXE_SUFFIX}
65 QMAKE_IDC = $$[QT_INSTALL_BINS]$${DIR_SEPARATOR}idc$${EXE_SUFFIX}
66 QMAKE_RCC = $$[QT_INSTALL_BINS]$${DIR_SEPARATOR}rcc$${EXE_SUFFIX}
67
68 QMAKE_IDL = midl
69 QMAKE_LIB = $${CROSS_COMPILE}ar -ru
70 QMAKE_RC = $${CROSS_COMPILE}windres
71 QMAKE_ZIP = zip -r -9
72
73 QMAKE_STRIP = $${CROSS_COMPILE}strip
74 QMAKE_STRIPFLAGS_LIB += --strip-unneeded
75 load(qt_config)
@@ -0,0 +1,159
1 /****************************************************************************
2 **
3 ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
4 ** Contact: http://www.qt-project.org/legal
5 **
6 ** This file is part of the qmake spec of the Qt Toolkit.
7 **
8 ** $QT_BEGIN_LICENSE:LGPL$
9 ** Commercial License Usage
10 ** Licensees holding valid commercial Qt licenses may use this file in
11 ** accordance with the commercial license agreement provided with the
12 ** Software or, alternatively, in accordance with the terms contained in
13 ** a written agreement between you and Digia. For licensing terms and
14 ** conditions see http://qt.digia.com/licensing. For further information
15 ** use the contact form at http://qt.digia.com/contact-us.
16 **
17 ** GNU Lesser General Public License Usage
18 ** Alternatively, this file may be used under the terms of the GNU Lesser
19 ** General Public License version 2.1 as published by the Free Software
20 ** Foundation and appearing in the file LICENSE.LGPL included in the
21 ** packaging of this file. Please review the following information to
22 ** ensure the GNU Lesser General Public License version 2.1 requirements
23 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
24 **
25 ** In addition, as a special exception, Digia gives you certain additional
26 ** rights. These rights are described in the Digia Qt LGPL Exception
27 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
28 **
29 ** GNU General Public License Usage
30 ** Alternatively, this file may be used under the terms of the GNU
31 ** General Public License version 3.0 as published by the Free Software
32 ** Foundation and appearing in the file LICENSE.GPL included in the
33 ** packaging of this file. Please review the following information to
34 ** ensure the GNU General Public License version 3.0 requirements will be
35 ** met: http://www.gnu.org/copyleft/gpl.html.
36 **
37 **
38 ** $QT_END_LICENSE$
39 **
40 ****************************************************************************/
41
42 #ifndef QPLATFORMDEFS_H
43 #define QPLATFORMDEFS_H
44
45 #ifdef UNICODE
46 #ifndef _UNICODE
47 #define _UNICODE
48 #endif
49 #endif
50
51 // Get Qt defines/settings
52
53 #include "qglobal.h"
54
55 #include <tchar.h>
56 #include <io.h>
57 #include <direct.h>
58 #include <stdio.h>
59 #include <fcntl.h>
60 #include <errno.h>
61 #include <sys/stat.h>
62 #include <stdlib.h>
63 #include <qt_windows.h>
64 #include <limits.h>
65
66 #if !defined(_WIN32_WINNT) || (_WIN32_WINNT-0 < 0x0500)
67 typedef enum {
68 NameUnknown = 0,
69 NameFullyQualifiedDN = 1,
70 NameSamCompatible = 2,
71 NameDisplay = 3,
72 NameUniqueId = 6,
73 NameCanonical = 7,
74 NameUserPrincipal = 8,
75 NameCanonicalEx = 9,
76 NameServicePrincipal = 10,
77 NameDnsDomain = 12
78 } EXTENDED_NAME_FORMAT, *PEXTENDED_NAME_FORMAT;
79 #endif
80
81 #define Q_FS_FAT
82 #ifdef QT_LARGEFILE_SUPPORT
83 #define QT_STATBUF struct _stati64 // non-ANSI defs
84 #define QT_STATBUF4TSTAT struct _stati64 // non-ANSI defs
85 #define QT_STAT ::_stati64
86 #define QT_FSTAT ::_fstati64
87 #else
88 #define QT_STATBUF struct _stat // non-ANSI defs
89 #define QT_STATBUF4TSTAT struct _stat // non-ANSI defs
90 #define QT_STAT ::_stat
91 #define QT_FSTAT ::_fstat
92 #endif
93 #define QT_STAT_REG _S_IFREG
94 #define QT_STAT_DIR _S_IFDIR
95 #define QT_STAT_MASK _S_IFMT
96 #if defined(_S_IFLNK)
97 # define QT_STAT_LNK _S_IFLNK
98 #endif
99 #define QT_FILENO _fileno
100 #define QT_OPEN ::_open
101 #define QT_CLOSE ::_close
102 #ifdef QT_LARGEFILE_SUPPORT
103 #define QT_LSEEK ::_lseeki64
104 #ifndef UNICODE
105 #define QT_TSTAT ::_stati64
106 #else
107 #define QT_TSTAT ::_wstati64
108 #endif
109 #else
110 #define QT_LSEEK ::_lseek
111 #ifndef UNICODE
112 #define QT_TSTAT ::_stat
113 #else
114 #define QT_TSTAT ::_wstat
115 #endif
116 #endif
117 #define QT_READ ::_read
118 #define QT_WRITE ::_write
119 #define QT_ACCESS ::_access
120 #define QT_GETCWD ::_getcwd
121 #define QT_CHDIR ::_chdir
122 #define QT_MKDIR ::_mkdir
123 #define QT_RMDIR ::_rmdir
124 #define QT_OPEN_LARGEFILE 0
125 #define QT_OPEN_RDONLY _O_RDONLY
126 #define QT_OPEN_WRONLY _O_WRONLY
127 #define QT_OPEN_RDWR _O_RDWR
128 #define QT_OPEN_CREAT _O_CREAT
129 #define QT_OPEN_TRUNC _O_TRUNC
130 #define QT_OPEN_APPEND _O_APPEND
131 #if defined(O_TEXT)
132 # define QT_OPEN_TEXT _O_TEXT
133 # define QT_OPEN_BINARY _O_BINARY
134 #endif
135
136 #include "../common/c89/qplatformdefs.h"
137
138 #ifdef QT_LARGEFILE_SUPPORT
139 #undef QT_FSEEK
140 #undef QT_FTELL
141 #undef QT_OFF_T
142
143 #define QT_FSEEK ::fseeko64
144 #define QT_FTELL ::ftello64
145 #define QT_OFF_T off64_t
146 #endif
147
148 #define QT_SIGNAL_ARGS int
149
150 #define QT_VSNPRINTF ::_vsnprintf
151 #define QT_SNPRINTF ::_snprintf
152
153 # define F_OK 0
154 # define X_OK 1
155 # define W_OK 2
156 # define R_OK 4
157
158
159 #endif // QPLATFORMDEFS_H
@@ -42,7 +42,7 contains( TEMPLATE, app ) {
42 42
43 43 QMAKE_LFLAGS= -mlittle-endian -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -std=c99 -T $$[QT_INSTALL_PREFIX]/mkspecs/features/stm32f4/$$LDSCRIPT
44 44
45
45
46 46
47 47 SOURCES +=$$[QT_INSTALL_PREFIX]/mkspecs/features/stm32f4/syscalls.c
48 48 SOURCES +=$$[QT_INSTALL_PREFIX]/mkspecs/features/stm32f4/fs.c
@@ -59,8 +59,6 contains( TEMPLATE, app ) {
59 59
60 60
61 61
62 #include(../../common/libuc2libs.conf)
63
64 62 }
65 63
66 64
1 NO CONTENT: file was removed
1 NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now