merge webgl
authorunc0rr
Wed, 19 Jun 2013 00:52:39 +0400
branchwebgl
changeset 9267 dbd18257be8f
parent 9264 21df1a0ec9ed (current diff)
parent 9259 872dd30deb7b (diff)
child 9270 a9b9ebd3d3be
merge
project_files/hwc/CMakeLists.txt
--- a/project_files/hwc/CMakeLists.txt	Wed Jun 19 00:52:21 2013 +0400
+++ b/project_files/hwc/CMakeLists.txt	Wed Jun 19 00:52:39 2013 +0400
@@ -27,6 +27,11 @@
 list(REMOVE_ITEM engine_sources_pas "${CMAKE_SOURCE_DIR}/hedgewars/pas2cRedo.pas")
 list(REMOVE_ITEM engine_sources_pas "${CMAKE_SOURCE_DIR}/hedgewars/hwLibrary.pas")
 
+#remove and readd hwengine so that it is compiled first, compiling every other file in the process
+list(REMOVE_ITEM engine_sources_pas ${CMAKE_SOURCE_DIR}/hedgewars/hwengine.pas)
+list(APPEND engine_sources_pas ${CMAKE_SOURCE_DIR}/hedgewars/hwengine.pas)
+
+#process files .pas -> .c
 foreach(sourcefile ${engine_sources_pas})
     get_filename_component(sourcename ${sourcefile} NAME_WE) #drops .pas
     list(APPEND engine_sources "${CMAKE_CURRENT_BINARY_DIR}/${sourcename}.c")