From ced61914c49cefd521091cf1d82193df37f17163 Mon Sep 17 00:00:00 2001 From: wheremyfoodat <44909372+wheremyfoodat@users.noreply.github.com> Date: Sun, 9 Jul 2023 22:26:56 +0300 Subject: [PATCH] Add HTTP server CMake option for Pokemon Bot --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 016b2a59..2ea7c222 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,6 +21,7 @@ option(DISABLE_PANIC_DEV "Make a build with fewer and less intrusive asserts" OF option(GPU_DEBUG_INFO "Enable additional GPU debugging info" OFF) option(ENABLE_LTO "Enable link-time optimization" OFF) option(ENABLE_USER_BUILD "Make a user-facing build. These builds have various assertions disabled, LTO, and more" OFF) +option(ENABLE_HTTP_SERVER "Enable HTTP server. Used for Discord bot support" OFF) include_directories(${PROJECT_SOURCE_DIR}/include/) include_directories(${PROJECT_SOURCE_DIR}/include/kernel) @@ -186,3 +187,7 @@ endif() if(ENABLE_USER_BUILD OR DISABLE_PANIC_DEV) target_compile_definitions(Alber PRIVATE PANDA3DS_LIMITED_PANICS=1) endif() + +if(ENABLE_HTTP_SERVER) + target_compile(Alber PRIVATE PANDA3DS_ENABLE_HTTP_SERVER=1) +endif()