diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 11 | ||||
-rw-r--r-- | src/wine.c | 2 |
2 files changed, 8 insertions, 5 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 2069d5a..8b36820 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -15,20 +15,23 @@ set(LIBSOURCES ${CMAKE_CURRENT_SOURCE_DIR}/lutris/keyword.h ${CMAKE_CURRENT_SOURCE_DIR}/lutris/runner.h ${CMAKE_CURRENT_SOURCE_DIR}/lutris/task.h + ${CMAKE_CURRENT_SOURCE_DIR}/main.c + ${CMAKE_CURRENT_SOURCE_DIR}/main.h ${CMAKE_CURRENT_SOURCE_DIR}/net.c ${CMAKE_CURRENT_SOURCE_DIR}/net.h ${CMAKE_CURRENT_SOURCE_DIR}/tar.c ${CMAKE_CURRENT_SOURCE_DIR}/tar.h ) +FILE(WRITE ${CMAKE_BINARY_DIR}/base.c "extern int empty;\n") + set(MAINSOURCES - ${CMAKE_CURRENT_SOURCE_DIR}/main.c - ${CMAKE_CURRENT_SOURCE_DIR}/main.h + ${CMAKE_BINARY_DIR}/base.c ) if (NOT WIN32) -set(MAINSOURCES - ${MAINSOURCES} +set(LIBSOURCES + ${LIBSOURCES} ${CMAKE_CURRENT_SOURCE_DIR}/wine.c ${CMAKE_CURRENT_SOURCE_DIR}/wine.h ) @@ -25,7 +25,7 @@ static const struct Command winecmd_commands[] = { }; static const struct Flag winecmd_flags[] = { - { .name = "help", .variant = TWO, .returns = 1, .func = winecmd_help, .description = "show this message"}, + { .name = "help", .variant = TWO, .returns = 1, .func = winecmd_help, .description = "show this message"}, { .name = "no-net", .variant = TWO, .returns = 0, .func = set_no_net, .description = "run commands without commitment"} }; |