File tree 2 files changed +14
-4
lines changed
2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -175,6 +175,16 @@ To update oniguruma
175
175
git subtree pull --prefix vendor/oniguruma/oniguruma https://github.com/kkos/oniguruma master --squash
176
176
```
177
177
178
+ Build with minGW
179
+ ----------------
180
+
181
+ ``` powershell
182
+ # Sample to build with MinGW on Qt (-DCMAKE_PREFIX_PATH=you cmake path)
183
+ cmake -G "MinGW Makefiles" -DCMAKE_PREFIX_PATH="C:\Qt\6.8.0\mingw_64\lib\cmake\" .
184
+ cmake --build .
185
+ ```
186
+
187
+
178
188
Contributing
179
189
------------
180
190
Original file line number Diff line number Diff line change 2
2
SET (ONIG_DIR "${CMAKE_CURRENT_SOURCE_DIR} /oniguruma" )
3
3
4
4
IF (NOT WIN32 )
5
+ message (STATUS "ONIGURUMA Unix Like - patch and configure" )
5
6
EXECUTE_PROCESS (
6
7
COMMAND "cp -Rp ${CMAKE_CURRENT_SOURCE_DIR} /patch/* ${ONIG_DIR} "
7
8
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
@@ -14,10 +15,9 @@ IF(NOT WIN32)
14
15
ENDIF (NOT WIN32 )
15
16
16
17
IF (WIN32 )
17
- EXECUTE_PROCESS (
18
- COMMAND "xcopy /s /e /Y/ I -Rp ${CMAKE_CURRENT_SOURCE_DIR} /patch/* ${ONIG_DIR} && copy ${ONIG_DIR} /src/config.h.windows.in ${ONIG_DIR} /src/config.h"
19
- WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
20
- )
18
+ message (STATUS "ONIGURUMA Win32 - patch and copy config.h" )
19
+ file (COPY ${CMAKE_CURRENT_SOURCE_DIR} /patch/ DESTINATION ${CMAKE_CURRENT_SOURCE_DIR} /oniguruma/)
20
+ file (COPY_FILE ${CMAKE_CURRENT_SOURCE_DIR} /oniguruma/src/config.h.windows.in ${CMAKE_CURRENT_SOURCE_DIR} /oniguruma/src/config.h)
21
21
ENDIF (WIN32 )
22
22
23
23
You can’t perform that action at this time.
0 commit comments