fix regression of build with no hot reload
This commit is contained in:
parent
d85d9880fb
commit
0f03c18806
@ -211,9 +211,6 @@ function(use_townengine target sources output_directory data_dir)
|
|||||||
|
|
||||||
# launcher binary, loads game and engine shared library
|
# launcher binary, loads game and engine shared library
|
||||||
add_executable(${target}_app ${TOWNENGINE_ROOT_DIR}/townengine/null.c)
|
add_executable(${target}_app ${TOWNENGINE_ROOT_DIR}/townengine/null.c)
|
||||||
set_target_properties(${target}_app PROPERTIES
|
|
||||||
OUTPUT_NAME launcher
|
|
||||||
LIBRARY_OUTPUT_DIRECTORY ${output_directory})
|
|
||||||
|
|
||||||
# put libtownengine.so alongside the binary
|
# put libtownengine.so alongside the binary
|
||||||
set_target_properties(${TOWNENGINE_TARGET} PROPERTIES
|
set_target_properties(${TOWNENGINE_TARGET} PROPERTIES
|
||||||
@ -222,6 +219,10 @@ function(use_townengine target sources output_directory data_dir)
|
|||||||
add_executable(${target}_app ${sources})
|
add_executable(${target}_app ${sources})
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
set_target_properties(${target}_app PROPERTIES
|
||||||
|
OUTPUT_NAME launcher
|
||||||
|
LIBRARY_OUTPUT_DIRECTORY ${output_directory})
|
||||||
|
|
||||||
# system libraries
|
# system libraries
|
||||||
find_library(MATH_LIBRARY m)
|
find_library(MATH_LIBRARY m)
|
||||||
if (MATH_LIBRARY)
|
if (MATH_LIBRARY)
|
||||||
|
@ -478,6 +478,10 @@ static void hot_reload_callback(XWATCHER_FILE_EVENT event,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
static void load_game_shared_object(void) {}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user