qtbindings 4.6.3.4 → 4.8.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/KNOWN_ISSUES.txt +19 -5
- data/README.txt +119 -93
- data/Rakefile +28 -27
- data/examples/desktop/systray/window.rb +43 -47
- data/examples/draganddrop/dropsite/dropsitewidget.rb +10 -9
- data/examples/mainwindows/mdi/mainwindow.rb +4 -4
- data/examples/network/broadcastsender/sender.rb +3 -1
- data/examples/qtscribble/scribble.rb +270 -0
- data/examples/ruboids/LICENSE.txt +58 -0
- data/examples/run_all.rb +1 -0
- data/examples/textedit/textedit.rb +150 -0
- data/examples/widgets/scribble/scribblearea.rb +19 -19
- data/ext/cmake/modules/BasicFindPackageVersion.cmake.in +30 -0
- data/ext/cmake/modules/FindLibraryWithDebug.cmake +113 -0
- data/ext/cmake/modules/FindPhonon.cmake +71 -0
- data/ext/cmake/modules/FindQImageBlitz.cmake +51 -0
- data/ext/cmake/modules/FindRuby.cmake +17 -17
- data/ext/cmake/modules/MacroOptionalFindPackage.cmake +6 -26
- data/ext/cmake/modules/MacroWriteBasicCMakeVersionFile.cmake +22 -0
- data/ext/cmake/modules/SmokeConfig.cmake.in +109 -0
- data/ext/generator/cmake/BasicFindPackageVersion.cmake.in +30 -0
- data/ext/generator/cmake/CMakeLists.txt +24 -0
- data/ext/generator/cmake/FindLibraryWithDebug.cmake +113 -0
- data/ext/generator/cmake/FindPhonon.cmake +71 -0
- data/ext/generator/cmake/FindQImageBlitz.cmake +51 -0
- data/ext/generator/cmake/FindQScintilla.cmake +57 -0
- data/ext/generator/cmake/FindQwt5.cmake +104 -0
- data/ext/generator/cmake/HandleImportedTargetsInCMakeRequiredLibraries.cmake +85 -0
- data/ext/generator/cmake/MacroLogFeature.cmake +146 -0
- data/ext/generator/cmake/MacroOptionalAddBindings.cmake +47 -0
- data/ext/generator/cmake/MacroOptionalFindPackage.cmake +28 -0
- data/ext/generator/cmake/MacroWriteBasicCMakeVersionFile.cmake +22 -0
- data/ext/generator/cmake/SmokeConfig.cmake.in +109 -0
- data/ext/generator/config.h +25 -0
- data/ext/generator/generatorpreprocessor.cpp +60 -41
- data/ext/generator/generators/dump/CMakeLists.txt +5 -0
- data/ext/generator/generators/smoke/CMakeLists.txt +5 -0
- data/ext/generator/generators/smoke/globals.h +3 -1
- data/ext/generator/generators/smoke/helpers.cpp +21 -2
- data/ext/generator/generators/smoke/writeSmokeDataFile.cpp +26 -1
- data/ext/generator/main.cpp +5 -1
- data/ext/generator/options.cpp +1 -0
- data/ext/generator/options.h +1 -0
- data/ext/generator/parser/CMakeLists.txt +10 -1
- data/ext/generator/parser/parser.cpp +6 -6
- data/ext/generator/parser/parser.h +2 -12
- data/ext/generator/parser/parsesession.cpp +1 -0
- data/ext/generator/parser/rpp/CMakeLists.txt +6 -0
- data/ext/generator/parser/rpp/chartools.cpp +3 -3
- data/ext/generator/parser/rpp/chartools.h +3 -1
- data/ext/generator/parser/rpp/pp-scanner.cpp +2 -1
- data/ext/generator/parser/rpp/tests/CMakeLists.txt +4 -0
- data/ext/generator/parser/tests/CMakeLists.txt +16 -0
- data/ext/generator/smoke.h +557 -0
- data/ext/generator/smokegen_string.h +43 -0
- data/ext/generator/type.cpp +15 -6
- data/ext/generator/type_compiler.cpp +2 -0
- data/ext/ruby/qtruby/src/qtruby.cpp +147 -143
- data/ext/ruby/qttest/qttesthandlers.cpp +1 -0
- data/ext/smoke/qtcore/QtGuess.txt +23 -25
- data/ext/smoke/qtcore/smokeconfig.xml +1 -0
- data/ext/smoke/qtdbus/smokeconfig.xml +2 -0
- data/ext/smoke/qtgui/smokeconfig.xml +14 -4
- data/ext/smoke/qthelp/smokeconfig.xml +1 -0
- data/ext/smoke/qtmultimedia/smokeconfig.xml +1 -0
- data/ext/smoke/qtnetwork/smokeconfig.xml +2 -0
- data/ext/smoke/qtopengl/smokeconfig.xml +1 -0
- data/ext/smoke/qtsql/smokeconfig.xml +1 -0
- data/ext/smoke/qtsvg/smokeconfig.xml +1 -0
- data/ext/smoke/qtwebkit/smokeconfig.xml +3 -0
- data/extconf.rb +37 -23
- data/lib/Qt/qtruby4.rb +4 -4
- data/lib/Qt4.rb +1 -1
- data/lib/qtbindings_version.rb +2 -2
- metadata +50 -40
@@ -1,7 +1,9 @@
|
|
1
|
+
# needs QTDEFINES_FILE set to work correctly.
|
2
|
+
|
1
3
|
if(NOT QT_DEFINES_FOUND)
|
2
4
|
#Threshold for tests
|
3
5
|
set(QT_NO_DEBUG 16)
|
4
|
-
set(QT_NO_ACCESSIBILITY
|
6
|
+
set(QT_NO_ACCESSIBILITY 16)
|
5
7
|
set(QT_NO_ACTION 5)
|
6
8
|
set(QT_NO_BUTTONGROUP 12)
|
7
9
|
set(QT_NO_CHECKBOX 10)
|
@@ -95,6 +97,7 @@ QT_NO_XML)
|
|
95
97
|
|
96
98
|
# macro is defined in qt-copy/src/qbase.pri but couldn't be found by qtguess, so I append it manually
|
97
99
|
list(APPEND qtdefines "QT_NO_CAST_TO_ASCII")
|
100
|
+
list(APPEND qtdefines "QT_NO_CAST_FROM_ASCII")
|
98
101
|
list(APPEND qtdefines "QT_GUI_LIB")
|
99
102
|
|
100
103
|
# check for MSVC compiler
|
@@ -108,16 +111,10 @@ foreach(test_entry ${define_tests})
|
|
108
111
|
endif(${${test_entry}} GREATER ${qt_test_threshold})
|
109
112
|
endforeach(test_entry ${define_tests})
|
110
113
|
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
else(WIN32)
|
116
|
-
file(STRINGS "${QT_QTCORE_INCLUDE_DIR}/qglobal.h" qglobal_h NEWLINE_CONSUME)
|
117
|
-
file(STRINGS "${QT_QTCORE_INCLUDE_DIR}/qconfig.h" qconfig_h NEWLINE_CONSUME)
|
118
|
-
file(STRINGS "${QT_QTCORE_INCLUDE_DIR}/qfeatures.h" qfeatures_h NEWLINE_CONSUME)
|
119
|
-
endif(WIN32)
|
120
|
-
set(qtheaders "${qglobal_h}\n${qconfig_h}\n${qfeatures_h}")
|
114
|
+
file(STRINGS "${QT_QTCORE_INCLUDE_DIR}/qglobal.h" qglobal_h NEWLINE_CONSUME)
|
115
|
+
file(STRINGS "${QT_QTCORE_INCLUDE_DIR}/qconfig.h" qconfig_h NEWLINE_CONSUME)
|
116
|
+
file(STRINGS "${QT_QTCORE_INCLUDE_DIR}/qfeatures.h" qfeatures_h NEWLINE_CONSUME)
|
117
|
+
set(qtheaders "${qglobal_h}\n${qconfig_h}\n${qfeatures}")
|
121
118
|
string(REGEX REPLACE "\n" ";" qtheaders "${qtheaders}")
|
122
119
|
|
123
120
|
file(REMOVE_RECURSE ${CMAKE_CURRENT_BINARY_DIR}/qtdefines.cpp ${CMAKE_CURRENT_BINARY_DIR}/qtdefines)
|
@@ -139,11 +136,14 @@ if(${qtdefines_run} EQUAL 0)
|
|
139
136
|
list(REMOVE_ITEM qtdefines_output "QT_DEBUG")
|
140
137
|
# message(STATUS "Got defines from Qt headers ${qtdefines_output}")
|
141
138
|
list(APPEND qtdefines ${qtdefines_output})
|
142
|
-
|
139
|
+
if (qtdefines_output)
|
140
|
+
list(REMOVE_ITEM test_targets ${qtdefines_output})
|
141
|
+
endif (qtdefines_output)
|
143
142
|
endif(${qtdefines_run} EQUAL 0)
|
144
143
|
|
145
144
|
message(STATUS "Checking how Qt was built...")
|
146
145
|
message(STATUS "Threshold is set to ${qt_test_threshold}")
|
146
|
+
|
147
147
|
include (HandleImportedTargetsInCMakeRequiredLibraries)
|
148
148
|
set(CMAKE_REQUIRED_INCLUDES ${CMAKE_SYSTEM_INCLUDE_PATH} ${QT_INCLUDE_DIR})
|
149
149
|
set(CMAKE_REQUIRED_LIBRARIES ${QT_QTCORE_LIBRARY} ${QT_QTDBUS_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_QTNETWORK_LIBRARY} ${QT_QTOPENGL_LIBRARY} ${QT_QTXML_LIBRARY} ${QT_QTSVG_LIBRARY})
|
@@ -151,19 +151,12 @@ HANDLE_IMPORTED_TARGETS_IN_CMAKE_REQUIRED_LIBRARIES(_CMAKE_REQUIRED_LIBRARIES)
|
|
151
151
|
|
152
152
|
foreach(test_target ${test_targets})
|
153
153
|
file(REMOVE_RECURSE ${CMAKE_CURRENT_BINARY_DIR}/test-${test_target})
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
else(QT_QTDBUS_FOUND)
|
161
|
-
try_compile(test_result "${CMAKE_CURRENT_BINARY_DIR}/test-${test_target}"
|
162
|
-
${CMAKE_CURRENT_SOURCE_DIR}/tests/test.cpp
|
163
|
-
COMPILE_DEFINITIONS -DTEST_${test_target}
|
164
|
-
CMAKE_FLAGS "-DINCLUDE_DIRECTORIES:STRING=${CMAKE_SYSTEM_INCLUDE_PATH};${QT_INCLUDE_DIR}"
|
165
|
-
"-DLINK_LIBRARIES:STRING=${QT_QTCORE_LIBRARY};${QT_QTGUI_LIBRARY};${QT_QTNETWORK_LIBRARY};${QT_QTOPENGL_LIBRARY};${QT_QTXML_LIBRARY};${QT_QTSVG_LIBRARY}")
|
166
|
-
endif(QT_QTDBUS_FOUND)
|
154
|
+
|
155
|
+
try_compile(test_result "${CMAKE_CURRENT_BINARY_DIR}/test-${test_target}"
|
156
|
+
${CMAKE_CURRENT_SOURCE_DIR}/tests/test.cpp
|
157
|
+
COMPILE_DEFINITIONS -DTEST_${test_target}
|
158
|
+
CMAKE_FLAGS "-DINCLUDE_DIRECTORIES:STRING=${CMAKE_REQUIRED_INCLUDES}"
|
159
|
+
"-DLINK_LIBRARIES:STRING=${_CMAKE_REQUIRED_LIBRARIES}")
|
167
160
|
if(test_result)
|
168
161
|
message(STATUS "${test_target} *Undefined*")
|
169
162
|
else(test_result)
|
@@ -172,6 +165,11 @@ foreach(test_target ${test_targets})
|
|
172
165
|
endif(test_result)
|
173
166
|
endforeach(test_target ${test_targets})
|
174
167
|
|
168
|
+
set(WITH_QT3_SUPPORT OFF CACHE BOOL "Include Qt3 Support members in QtCore and QtGui smoke modules")
|
169
|
+
if(WITH_QT3_SUPPORT)
|
170
|
+
list(APPEND qtdefines "QT3_SUPPORT")
|
171
|
+
endif(WITH_QT3_SUPPORT)
|
172
|
+
|
175
173
|
# string(REGEX REPLACE ";" "\n" qtdefines ${qtdefines})
|
176
174
|
# file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/../qtdefines-ng ${qtdefines})
|
177
175
|
file(REMOVE ${CMAKE_CURRENT_BINARY_DIR}/../qtdefines)
|
@@ -14,7 +14,7 @@
|
|
14
14
|
<typeName>HINSTANCE__</typeName>
|
15
15
|
<typeName>HPALETTE__</typeName>
|
16
16
|
<typeName>HRGN__</typeName>
|
17
|
-
<typeName>HWND__</typeName>
|
17
|
+
<typeName>HWND__</typeName>
|
18
18
|
</scalarTypes>
|
19
19
|
<voidpTypes>
|
20
20
|
<!-- both are classes, but they are represented as Smoke::t_voidp -->
|
@@ -27,7 +27,7 @@
|
|
27
27
|
<typeName>HINSTANCE__</typeName>
|
28
28
|
<typeName>HPALETTE__</typeName>
|
29
29
|
<typeName>HRGN__</typeName>
|
30
|
-
<typeName>HWND__</typeName>
|
30
|
+
<typeName>HWND__</typeName>
|
31
31
|
</voidpTypes>
|
32
32
|
<exclude>
|
33
33
|
<!-- we don't want private stuff in smoke.. -->
|
@@ -46,8 +46,9 @@
|
|
46
46
|
<signature>.*qFrom.*Endian_helper.*</signature>
|
47
47
|
<signature>.*QPixmapData.*</signature>
|
48
48
|
<signature>.*qt_x11_getX11InfoForWindow.*</signature>
|
49
|
+
<!-- OS X internal stuff -->
|
49
50
|
<signature>.*qt_mac_set_cursor.*</signature>
|
50
|
-
<signature>.*QMenu::macMenu.*</signature>
|
51
|
+
<signature>.*QMenu::macMenu\(.*</signature>
|
51
52
|
</exclude>
|
52
53
|
<functions>
|
53
54
|
<!-- include functions starting with 'q' -->
|
@@ -72,9 +73,13 @@
|
|
72
73
|
<class>QAbstractTextDocumentLayout::Selection</class>
|
73
74
|
<class>QAbstractUndoItem</class>
|
74
75
|
<class>QAccessible2</class>
|
76
|
+
<class>QAccessible2::TableModelChange</class>
|
75
77
|
<class>QAccessible2Interface</class>
|
76
78
|
<class>QAccessibleActionInterface</class>
|
77
79
|
<class>QAccessibleApplication</class>
|
80
|
+
<class>QAccessibleBridge</class>
|
81
|
+
<!-- <class>QAccessibleBridgeFactoryInterface</class>
|
82
|
+
<class>QAccessibleBridgePlugin</class> -->
|
78
83
|
<class>QAccessible</class>
|
79
84
|
<class>QAccessibleEditableTextInterface</class>
|
80
85
|
<class>QAccessibleEvent</class>
|
@@ -87,6 +92,8 @@
|
|
87
92
|
<class>QAccessiblePlugin</class>
|
88
93
|
<class>QAccessibleSimpleEditableTextInterface</class>
|
89
94
|
<class>QAccessibleTableInterface</class>
|
95
|
+
<class>QAccessibleTable2Interface</class>
|
96
|
+
<class>QAccessibleTable2CellInterface</class>
|
90
97
|
<class>QAccessibleTextInterface</class>
|
91
98
|
<class>QAccessibleValueInterface</class>
|
92
99
|
<class>QAccessibleWidget</class>
|
@@ -137,7 +144,6 @@
|
|
137
144
|
<class>QDragResponseEvent</class>
|
138
145
|
<class>QDropEvent</class>
|
139
146
|
<class>QErrorMessage</class>
|
140
|
-
<class>QFactoryInterface</class>
|
141
147
|
<class>QFileDialogArgs</class>
|
142
148
|
<class>QFileDialog</class>
|
143
149
|
<class>QFileDialog::Options</class>
|
@@ -160,6 +166,7 @@
|
|
160
166
|
<class>QGesture</class>
|
161
167
|
<class>QGestureEvent</class>
|
162
168
|
<class>QGestureRecognizer</class>
|
169
|
+
<class>QGlyphRun</class>
|
163
170
|
<class>QGradient</class>
|
164
171
|
<class>QGraphicsAnchor</class>
|
165
172
|
<class>QGraphicsAnchorLayout</class>
|
@@ -278,6 +285,7 @@
|
|
278
285
|
<class>QPaintEngine</class>
|
279
286
|
<class>QPaintEngineState</class>
|
280
287
|
<class>QPainter</class>
|
288
|
+
<class>QPainter::PixmapFragment</class>
|
281
289
|
<class>QPainterPath</class>
|
282
290
|
<class>QPainterPath::Element</class>
|
283
291
|
<class>QPainterPathStroker</class>
|
@@ -312,6 +320,7 @@
|
|
312
320
|
<class>QQuaternion</class>
|
313
321
|
<class>QRadialGradient</class>
|
314
322
|
<class>QRadioButton</class>
|
323
|
+
<class>QRawFont</class>
|
315
324
|
<class>QRegExpValidator</class>
|
316
325
|
<class>QRegion</class>
|
317
326
|
<class>QResizeEvent</class>
|
@@ -341,6 +350,7 @@
|
|
341
350
|
<class>QStackedWidget</class>
|
342
351
|
<class>QStandardItem</class>
|
343
352
|
<class>QStandardItemModel</class>
|
353
|
+
<class>QStaticText</class>
|
344
354
|
<class>QStatusBar</class>
|
345
355
|
<class>QStatusTipEvent</class>
|
346
356
|
<class>QStringListModel</class>
|
@@ -15,6 +15,7 @@
|
|
15
15
|
<typeName>QString</typeName>
|
16
16
|
</voidpTypes>
|
17
17
|
<classList>
|
18
|
+
<class>QGraphicsWebView</class>
|
18
19
|
<class>QWebDatabase</class>
|
19
20
|
<class>QWebElement</class>
|
20
21
|
<class>QWebElementCollection</class>
|
@@ -33,11 +34,13 @@
|
|
33
34
|
<class>QWebPage::ErrorPageExtensionReturn</class>
|
34
35
|
<class>QWebPage::ExtensionOption</class>
|
35
36
|
<class>QWebPage::ExtensionReturn</class>
|
37
|
+
<class>QWebPage::ViewportAttributes</class>
|
36
38
|
<class>QWebPluginFactory</class>
|
37
39
|
<class>QWebPluginFactory::ExtensionOption</class>
|
38
40
|
<class>QWebPluginFactory::ExtensionReturn</class>
|
39
41
|
<class>QWebPluginFactory::MimeType</class>
|
40
42
|
<class>QWebPluginFactory::Plugin</class>
|
43
|
+
<class>QWebScriptWorld</class>
|
41
44
|
<class>QWebSecurityOrigin</class>
|
42
45
|
<class>QWebSettings</class>
|
43
46
|
<class>QWebView</class>
|
data/extconf.rb
CHANGED
@@ -12,18 +12,18 @@ macosx = true if platform =~ /darwin/
|
|
12
12
|
ruby_version = '1.9'
|
13
13
|
ruby_version = '1.8' if RUBY_VERSION.split('.')[1].to_i == 8
|
14
14
|
|
15
|
-
|
15
|
+
if windows
|
16
|
+
# README! - Modify this path if you have QT installed somewhere else
|
17
|
+
# or if you have a different version of QT you want to link to.
|
18
|
+
qt_sdk_path = "C:\\Qt\\4.8.3"
|
16
19
|
begin
|
17
|
-
|
20
|
+
File::Stat.new(qt_sdk_path)
|
18
21
|
rescue
|
19
|
-
|
22
|
+
puts "ERROR! QT SDK doesn't exist at #{qt_sdk_path}"
|
23
|
+
exit # Not much we can do if the QT SDK doesn't exist
|
20
24
|
end
|
21
|
-
entries.sort!
|
22
|
-
"C:\\Qt\\" + entries[-1]
|
23
25
|
end
|
24
26
|
|
25
|
-
qt_sdk_path = find_qt_sdk() if windows
|
26
|
-
|
27
27
|
File.open('Makefile', 'w') do |file|
|
28
28
|
if windows
|
29
29
|
file.puts "all: clean build"
|
@@ -34,16 +34,18 @@ File.open('Makefile', 'w') do |file|
|
|
34
34
|
file.puts "\t-mkdir bin\\1.9"
|
35
35
|
file.puts "\t-mkdir bin\\plugins"
|
36
36
|
file.puts "\t-mkdir bin\\plugins\\accessible"
|
37
|
+
file.puts "\t-mkdir bin\\plugins\\bearer"
|
37
38
|
file.puts "\t-mkdir bin\\plugins\\codecs"
|
38
39
|
file.puts "\t-mkdir bin\\plugins\\designer"
|
39
40
|
file.puts "\t-mkdir bin\\plugins\\graphicssystems"
|
40
41
|
file.puts "\t-mkdir bin\\plugins\\iconengines"
|
41
42
|
file.puts "\t-mkdir bin\\plugins\\imageformats"
|
42
43
|
file.puts "\t-mkdir bin\\plugins\\phonon_backend"
|
44
|
+
file.puts "\t-mkdir bin\\plugins\\qmltooling"
|
43
45
|
file.puts "\t-mkdir bin\\plugins\\sqldrivers"
|
44
46
|
file.puts "\t-mkdir lib\\1.8"
|
45
47
|
file.puts "\t-mkdir lib\\1.9"
|
46
|
-
file.puts ""
|
48
|
+
file.puts ""
|
47
49
|
file.puts "clean: makedirs"
|
48
50
|
file.puts "\t-cd ext\\build && rmdir /S /Q CMakeFiles"
|
49
51
|
file.puts "\t-cd ext\\build && rmdir /S /Q generator"
|
@@ -51,18 +53,20 @@ File.open('Makefile', 'w') do |file|
|
|
51
53
|
file.puts "\t-cd ext\\build && rmdir /S /Q ruby"
|
52
54
|
file.puts "\t-cd ext\\build && del /F /Q *"
|
53
55
|
file.puts ""
|
54
|
-
file.puts "distclean: clean"
|
56
|
+
file.puts "distclean: clean"
|
55
57
|
file.puts "\t-cd bin && del /F /Q *.dll"
|
56
58
|
file.puts "\t-cd bin && del /F /Q *.so"
|
57
59
|
file.puts "\t-cd bin && del /F /Q *.exe"
|
58
60
|
file.puts "\t-cd bin\\plugins && del /F /Q *"
|
59
61
|
file.puts "\t-cd bin\\plugins\\accessible && del /F /Q *"
|
62
|
+
file.puts "\t-cd bin\\plugins\\bearer && del /F /Q *"
|
60
63
|
file.puts "\t-cd bin\\plugins\\codecs && del /F /Q *"
|
61
64
|
file.puts "\t-cd bin\\plugins\\designer && del /F /Q *"
|
62
65
|
file.puts "\t-cd bin\\plugins\\graphicssystems && del /F /Q *"
|
63
66
|
file.puts "\t-cd bin\\plugins\\iconengines && del /F /Q *"
|
64
67
|
file.puts "\t-cd bin\\plugins\\imageformats && del /F /Q *"
|
65
68
|
file.puts "\t-cd bin\\plugins\\phonon_backend && del /F /Q *"
|
69
|
+
file.puts "\t-cd bin\\plugins\\qmltooling && del /F /Q *"
|
66
70
|
file.puts "\t-cd bin\\plugins\\sqldrivers && del /F /Q *"
|
67
71
|
file.puts "\t-cd bin\\1.8 && del /F /Q *"
|
68
72
|
file.puts "\t-cd bin\\1.9 && del /F /Q *"
|
@@ -73,7 +77,7 @@ File.open('Makefile', 'w') do |file|
|
|
73
77
|
file.puts ""
|
74
78
|
file.puts "build: makedirs"
|
75
79
|
file.puts "\tset CC=mingw32-gcc.exe"
|
76
|
-
file.puts "\tset CXX=mingw32-g++.exe"
|
80
|
+
file.puts "\tset CXX=mingw32-g++.exe"
|
77
81
|
file.puts "\t-cd ext\\build && \\"
|
78
82
|
file.puts "cmake \\"
|
79
83
|
file.puts "-G \"MinGW Makefiles\" \\"
|
@@ -133,18 +137,22 @@ File.open('Makefile', 'w') do |file|
|
|
133
137
|
file.puts "\t-copy ext\\build\\ruby\\qtruby\\tools\\rbuic\\rbuic4.exe bin\\#{ruby_version}"
|
134
138
|
file.puts ""
|
135
139
|
file.puts "installqt: makedirs"
|
136
|
-
file.puts "\tcopy #{qt_sdk_path}\\
|
140
|
+
file.puts "\tcopy #{qt_sdk_path}\\bin\\*.dll bin"
|
137
141
|
file.puts "\tdel /F /Q bin\\*d4.dll"
|
138
|
-
file.puts "\tcopy #{qt_sdk_path}\\
|
139
|
-
file.puts "\tcopy #{qt_sdk_path}\\
|
140
|
-
file.puts "\tcopy #{qt_sdk_path}\\
|
141
|
-
file.puts "\tcopy #{qt_sdk_path}\\
|
142
|
-
file.puts "\tcopy #{qt_sdk_path}\\
|
143
|
-
file.puts "\tcopy #{qt_sdk_path}\\
|
144
|
-
file.puts "\tcopy #{qt_sdk_path}\\
|
145
|
-
file.puts "\tcopy #{qt_sdk_path}\\
|
142
|
+
file.puts "\tcopy #{qt_sdk_path}\\plugins\\accessible\\*.dll bin\\plugins\\accessible"
|
143
|
+
file.puts "\tcopy #{qt_sdk_path}\\plugins\\bearer\\*.dll bin\\plugins\\bearer"
|
144
|
+
file.puts "\tcopy #{qt_sdk_path}\\plugins\\codecs\\*.dll bin\\plugins\\codecs"
|
145
|
+
file.puts "\tcopy #{qt_sdk_path}\\plugins\\designer\\*.dll bin\\plugins\\designer"
|
146
|
+
file.puts "\tcopy #{qt_sdk_path}\\plugins\\graphicssystems\\*.dll bin\\plugins\\graphicssystems"
|
147
|
+
file.puts "\tcopy #{qt_sdk_path}\\plugins\\iconengines\\*.dll bin\\plugins\\iconengines"
|
148
|
+
file.puts "\tcopy #{qt_sdk_path}\\plugins\\imageformats\\*.dll bin\\plugins\\imageformats"
|
149
|
+
file.puts "\tcopy #{qt_sdk_path}\\plugins\\phonon_backend\\*.dll bin\\plugins\\phonon_backend"
|
150
|
+
file.puts "\tcopy #{qt_sdk_path}\\plugins\\qmltooling\\*.dll bin\\plugins\\qmltooling"
|
151
|
+
file.puts "\tcopy #{qt_sdk_path}\\plugins\\sqldrivers\\*.dll bin\\plugins\\sqldrivers"
|
146
152
|
file.puts "\tdel /F /Q bin\\plugins\\accessible\\*d.dll"
|
147
153
|
file.puts "\tdel /F /Q bin\\plugins\\accessible\\*d4.dll"
|
154
|
+
file.puts "\tdel /F /Q bin\\plugins\\bearer\\*d.dll"
|
155
|
+
file.puts "\tdel /F /Q bin\\plugins\\bearer\\*d4.dll"
|
148
156
|
file.puts "\tdel /F /Q bin\\plugins\\codecs\\*d.dll"
|
149
157
|
file.puts "\tdel /F /Q bin\\plugins\\codecs\\*d4.dll"
|
150
158
|
file.puts "\tdel /F /Q bin\\plugins\\designer\\*d.dll"
|
@@ -157,6 +165,8 @@ File.open('Makefile', 'w') do |file|
|
|
157
165
|
file.puts "\tdel /F /Q bin\\plugins\\imageformats\\*d4.dll"
|
158
166
|
file.puts "\tdel /F /Q bin\\plugins\\phonon_backend\\*d.dll"
|
159
167
|
file.puts "\tdel /F /Q bin\\plugins\\phonon_backend\\*d4.dll"
|
168
|
+
file.puts "\tdel /F /Q bin\\plugins\\qmltooling\\*d.dll"
|
169
|
+
file.puts "\tdel /F /Q bin\\plugins\\qmltooling\\*d4.dll"
|
160
170
|
file.puts "\tdel /F /Q bin\\plugins\\sqldrivers\\*d.dll"
|
161
171
|
file.puts "\tdel /F /Q bin\\plugins\\sqldrivers\\*d4.dll"
|
162
172
|
else
|
@@ -168,15 +178,17 @@ File.open('Makefile', 'w') do |file|
|
|
168
178
|
file.puts "\t-mkdir bin/1.9"
|
169
179
|
file.puts "\t-mkdir bin/plugins"
|
170
180
|
file.puts "\t-mkdir bin/plugins/accessible"
|
181
|
+
file.puts "\t-mkdir bin/plugins/bearer"
|
171
182
|
file.puts "\t-mkdir bin/plugins/codecs"
|
172
183
|
file.puts "\t-mkdir bin/plugins/designer"
|
173
184
|
file.puts "\t-mkdir bin/plugins/graphicssystems"
|
174
185
|
file.puts "\t-mkdir bin/plugins/iconengines"
|
175
186
|
file.puts "\t-mkdir bin/plugins/imageformats"
|
176
187
|
file.puts "\t-mkdir bin/plugins/phonon_backend"
|
188
|
+
file.puts "\t-mkdir bin/plugins/qmltooling"
|
177
189
|
file.puts "\t-mkdir bin/plugins/sqldrivers"
|
178
190
|
file.puts "\t-mkdir lib/1.8"
|
179
|
-
file.puts "\t-mkdir lib/1.9"
|
191
|
+
file.puts "\t-mkdir lib/1.9"
|
180
192
|
file.puts ""
|
181
193
|
file.puts "clean: makedirs"
|
182
194
|
file.puts "\t-cd ext/build; rm -rf CMakeFiles"
|
@@ -191,17 +203,19 @@ File.open('Makefile', 'w') do |file|
|
|
191
203
|
file.puts "\t-cd bin && rm *.exe"
|
192
204
|
file.puts "\t-cd bin/plugins && rm *"
|
193
205
|
file.puts "\t-cd bin/plugins/accessible && rm *"
|
206
|
+
file.puts "\t-cd bin/plugins/bearer && rm *"
|
194
207
|
file.puts "\t-cd bin/plugins/codecs && rm *"
|
195
208
|
file.puts "\t-cd bin/plugins/designer && rm *"
|
196
209
|
file.puts "\t-cd bin/plugins/graphicssystems && rm *"
|
197
210
|
file.puts "\t-cd bin/plugins/iconengines && rm *"
|
198
211
|
file.puts "\t-cd bin/plugins/imageformats && rm *"
|
199
212
|
file.puts "\t-cd bin/plugins/phonon_backend && rm *"
|
213
|
+
file.puts "\t-cd bin/plugins/qmltooling && rm *"
|
200
214
|
file.puts "\t-cd bin/plugins/sqldrivers && rm *"
|
201
215
|
file.puts "\t-cd bin/1.8 && rm *"
|
202
216
|
file.puts "\t-cd bin/1.9 && rm *"
|
203
217
|
file.puts "\t-cd lib/1.8 && rm *"
|
204
|
-
file.puts "\t-cd lib/1.9 && rm *"
|
218
|
+
file.puts "\t-cd lib/1.9 && rm *"
|
205
219
|
file.puts "\t-rm Makefile"
|
206
220
|
file.puts "\t-rm qtbindings-*.gem"
|
207
221
|
file.puts ""
|
@@ -211,7 +225,7 @@ File.open('Makefile', 'w') do |file|
|
|
211
225
|
file.puts "-G \"Unix Makefiles\" \\"
|
212
226
|
if ARGV[0] == '-d'
|
213
227
|
file.puts "-DCMAKE_BUILD_TYPE=Debug \\"
|
214
|
-
end
|
228
|
+
end
|
215
229
|
file.puts "-Wno-dev \\"
|
216
230
|
file.puts "-DENABLE_SMOKE=on \\"
|
217
231
|
file.puts "-DENABLE_QTCORE_SMOKE=on \\"
|
@@ -235,7 +249,7 @@ File.open('Makefile', 'w') do |file|
|
|
235
249
|
file.puts "-DENABLE_QTTEST=on \\"
|
236
250
|
file.puts ".."
|
237
251
|
file.puts "\tcd ext/build; make"
|
238
|
-
file.puts ""
|
252
|
+
file.puts ""
|
239
253
|
file.puts "install: makedirs"
|
240
254
|
if macosx
|
241
255
|
file.puts "\t-cp ext/build/smoke/smokeapi/smokeapi bin/#{ruby_version}"
|