File tree 1 file changed +17
-2
lines changed
1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,11 @@ if(NOT CMAKE_CXX_STANDARD)
20
20
endif ()
21
21
22
22
if (NOT FLATCC_EXECUTABLE)
23
- set (FLATCC_EXECUTABLE ${_flatcc_source_dir} /bin/flatcc)
23
+ if (WIN32 )
24
+ set (FLATCC_EXECUTABLE ${_flatcc_source_dir} /bin/${CMAKE_BUILD_TYPE} /flatcc)
25
+ else ()
26
+ set (FLATCC_EXECUTABLE ${_flatcc_source_dir} /bin/flatcc)
27
+ endif ()
24
28
endif ()
25
29
26
30
# Source root directory for executorch.
@@ -159,6 +163,15 @@ file(MAKE_DIRECTORY
159
163
${_program_schema__include_dir} /executorch/devtools/bundled_program
160
164
)
161
165
166
+ message ("Hello" )
167
+ message ("${CMAKE_GENERATOR} " )
168
+
169
+ if (WIN32 )
170
+ set (RM_COMMAND rmdir /s /q)
171
+ else ()
172
+ set (RM_COMMAND rm -rf)
173
+ endif ()
174
+
162
175
add_custom_command (
163
176
OUTPUT ${_etdump_schema__outputs}
164
177
COMMAND
@@ -168,11 +181,13 @@ add_custom_command(
168
181
${FLATCC_EXECUTABLE} -cwr -o
169
182
${_program_schema__include_dir} /executorch/devtools/etdump
170
183
${_etdump_schema__srcs}
171
- COMMAND rm -rf ${_etdump_schema_cleanup_paths}
184
+ COMMAND ${RM_COMMAND} ${_etdump_schema_cleanup_paths}
172
185
DEPENDS ${_etdump_schema_gen_dep}
173
186
COMMENT "Generating etdump headers"
174
187
)
175
188
189
+ unset (RM_COMMAND)
190
+
176
191
add_library (
177
192
etdump ${CMAKE_CURRENT_SOURCE_DIR} /etdump/etdump_flatcc.cpp
178
193
${CMAKE_CURRENT_SOURCE_DIR} /etdump/emitter.cpp
You can’t perform that action at this time.
0 commit comments