File tree Expand file tree Collapse file tree 3 files changed +27
-17
lines changed
UnigineEditorPlugin_Python3Scripting Expand file tree Collapse file tree 3 files changed +27
-17
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ Windows (Visual Studio 2017):
5151```
5252> cd my_project
5353> cd UnigineEditorPlugin_Python3Scripting
54- > PCBuild\build .bat
54+ > build_python .bat
5555```
5656
5757### step 4: build plugin
@@ -63,10 +63,20 @@ $ cd UnigineEditorPlugin_Python3Scripting
6363$ python3 build_plugin.py
6464```
6565
66+ Windows:
67+ ``` bash
68+ $ cd my_project
69+ $ cd UnigineEditorPlugin_Python3Scripting
70+ $ python3 build_plugin.py
71+ ```
72+
6673### step 5: run editor
6774
6875After this call ` ./launch_editor.sh ` or launch editor from ` UNIGINE SDK Browser `
6976
77+ After this call ` ./launch_editor.bat `
78+
79+
7080## Helpful links
7181
7282- https://www.codeproject.com/Articles/820116/Embedding-Python-program-in-a-C-Cplusplus-code
Original file line number Diff line number Diff line change @@ -92,30 +92,27 @@ if (CMAKE_BUILD_TYPE MATCHES "Debug")
9292 DEBUG
9393 QT_DEBUG
9494 )
95-
96- set_target_properties (${proj_name}
97- PROPERTIES
98- RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR} /../bin/editor_debug/
99- LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR} /../bin/editor_debug/
100- ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR} /../lib/editor_debug/
101- CXX_VISIBILITY_PRESET hidden
102- )
10395else ()
10496 target_compile_definitions (${proj_name}
10597 PRIVATE
10698 NDEBUG
10799 QT_NO_DEBUG
108100 )
109-
110- set_target_properties (${proj_name}
111- PROPERTIES
112- RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR} /../bin/editor/
113- LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR} /../bin/editor/
114- ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR} /../lib/editor/
115- CXX_VISIBILITY_PRESET hidden
116- )
117101endif ()
118102
103+
104+ set_target_properties (${proj_name}
105+ PROPERTIES
106+ RUNTIME_OUTPUT_DIRECTORY_RELEASE ${PROJECT_SOURCE_DIR} /../bin/editor/
107+ LIBRARY_OUTPUT_DIRECTORY_RELEASE ${PROJECT_SOURCE_DIR} /../bin/editor/
108+ # ARCHIVE_OUTPUT_DIRECTORY_RELEASE ${PROJECT_SOURCE_DIR}/../lib/editor/
109+ RUNTIME_OUTPUT_DIRECTORY_DEBUG ${PROJECT_SOURCE_DIR} /../bin/editor_debug/
110+ LIBRARY_OUTPUT_DIRECTORY_DEBUG ${PROJECT_SOURCE_DIR} /../bin/editor_debug/
111+ # ARCHIVE_OUTPUT_DIRECTORY_DEBUG ${PROJECT_SOURCE_DIR}/../lib/editor_debug/
112+ C_VISIBILITY_PRESET hidden
113+ CXX_VISIBILITY_PRESET hidden
114+ )
115+
119116target_link_libraries (${proj_name}
120117 PRIVATE
121118 Unigine::CompilerFlags
Original file line number Diff line number Diff line change 4848os .chdir ("UnigineEditorPlugin_Python3Scripting" )
4949
5050for _cmd in build_commands :
51+ print ("Starting... " + _cmd ["name" ])
5152 ret = os .system (_cmd ["command" ])
5253 if ret != 0 :
54+ print ("Failed... " + _cmd ["name" ])
5355 sys .exit (- 1 )
56+ print ("Done. " + _cmd ["name" ] + "\n \n -----\n \n " )
You can’t perform that action at this time.
0 commit comments