From 7d2c186d9ba3bd6438ae4afab349b8c0c795cef6 Mon Sep 17 00:00:00 2001 From: Jan200101 Date: Sun, 1 Aug 2021 14:01:39 +0200 Subject: update min cmake, add wine to lib, make base empty --- src/CMakeLists.txt | 11 +++++++---- src/wine.c | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) (limited to 'src') 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 ) diff --git a/src/wine.c b/src/wine.c index cf3bc7e..16c342f 100644 --- a/src/wine.c +++ b/src/wine.c @@ -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"} }; -- cgit v1.2.3