File tree 3 files changed +27
-17
lines changed
UnigineEditorPlugin_Python3Scripting
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):
51
51
```
52
52
> cd my_project
53
53
> cd UnigineEditorPlugin_Python3Scripting
54
- > PCBuild\build .bat
54
+ > build_python .bat
55
55
```
56
56
57
57
### step 4: build plugin
@@ -63,10 +63,20 @@ $ cd UnigineEditorPlugin_Python3Scripting
63
63
$ python3 build_plugin.py
64
64
```
65
65
66
+ Windows:
67
+ ``` bash
68
+ $ cd my_project
69
+ $ cd UnigineEditorPlugin_Python3Scripting
70
+ $ python3 build_plugin.py
71
+ ```
72
+
66
73
### step 5: run editor
67
74
68
75
After this call ` ./launch_editor.sh ` or launch editor from ` UNIGINE SDK Browser `
69
76
77
+ After this call ` ./launch_editor.bat `
78
+
79
+
70
80
## Helpful links
71
81
72
82
- 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")
92
92
DEBUG
93
93
QT_DEBUG
94
94
)
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
- )
103
95
else ()
104
96
target_compile_definitions (${proj_name}
105
97
PRIVATE
106
98
NDEBUG
107
99
QT_NO_DEBUG
108
100
)
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
- )
117
101
endif ()
118
102
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
+
119
116
target_link_libraries (${proj_name}
120
117
PRIVATE
121
118
Unigine::CompilerFlags
Original file line number Diff line number Diff line change 48
48
os .chdir ("UnigineEditorPlugin_Python3Scripting" )
49
49
50
50
for _cmd in build_commands :
51
+ print ("Starting... " + _cmd ["name" ])
51
52
ret = os .system (_cmd ["command" ])
52
53
if ret != 0 :
54
+ print ("Failed... " + _cmd ["name" ])
53
55
sys .exit (- 1 )
56
+ print ("Done. " + _cmd ["name" ] + "\n \n -----\n \n " )
You can’t perform that action at this time.
0 commit comments