diff --git a/.gitignore b/.gitignore index 218c6f9..2481f14 100755 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ # Prerequisites *.d - +/build +/CMakeFiles # Compiled Object files *.slo *.lo diff --git a/CMakeCache.txt b/CMakeCache.txt new file mode 100644 index 0000000..2dd35a1 --- /dev/null +++ b/CMakeCache.txt @@ -0,0 +1,327 @@ +# This is the CMakeCache file. +# For build in directory: /my_project/WebServer +# It was generated by CMake: /usr/bin/cmake +# You can edit this file to change values found and used by cmake. +# If you do not want to change any of the values, simply exit the editor. +# If you do want to change a value, simply edit, save, and exit the editor. +# The syntax for the file is as follows: +# KEY:TYPE=VALUE +# KEY is the name of a variable in the cache. +# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!. +# VALUE is the current value for the KEY. + +######################## +# EXTERNAL cache entries +######################## + +//Path to a program. +CMAKE_ADDR2LINE:FILEPATH=/usr/bin/addr2line + +//Path to a program. +CMAKE_AR:FILEPATH=/usr/bin/ar + +//Choose the type of build, options are: None Debug Release RelWithDebInfo +// MinSizeRel ... +CMAKE_BUILD_TYPE:STRING= + +//Enable/Disable color output during build. +CMAKE_COLOR_MAKEFILE:BOOL=ON + +//CXX compiler +CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/c++ + +//A wrapper around 'ar' adding the appropriate '--plugin' option +// for the GCC compiler +CMAKE_CXX_COMPILER_AR:FILEPATH=/usr/bin/gcc-ar-9 + +//A wrapper around 'ranlib' adding the appropriate '--plugin' option +// for the GCC compiler +CMAKE_CXX_COMPILER_RANLIB:FILEPATH=/usr/bin/gcc-ranlib-9 + +//Flags used by the CXX compiler during all build types. +CMAKE_CXX_FLAGS:STRING= + +//Flags used by the CXX compiler during DEBUG builds. +CMAKE_CXX_FLAGS_DEBUG:STRING=-g + +//Flags used by the CXX compiler during MINSIZEREL builds. +CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG + +//Flags used by the CXX compiler during RELEASE builds. +CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG + +//Flags used by the CXX compiler during RELWITHDEBINFO builds. +CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG + +//Path to a program. +CMAKE_DLLTOOL:FILEPATH=CMAKE_DLLTOOL-NOTFOUND + +//Flags used by the linker during all build types. +CMAKE_EXE_LINKER_FLAGS:STRING= + +//Flags used by the linker during DEBUG builds. +CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING= + +//Flags used by the linker during MINSIZEREL builds. +CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING= + +//Flags used by the linker during RELEASE builds. +CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING= + +//Flags used by the linker during RELWITHDEBINFO builds. +CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING= + +//Enable/Disable output of compile commands during generation. +CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=OFF + +//Install path prefix, prepended onto install directories. +CMAKE_INSTALL_PREFIX:PATH=/usr/local + +//Path to a program. +CMAKE_LINKER:FILEPATH=/usr/bin/ld + +//Path to a program. +CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/make + +//Flags used by the linker during the creation of modules during +// all build types. +CMAKE_MODULE_LINKER_FLAGS:STRING= + +//Flags used by the linker during the creation of modules during +// DEBUG builds. +CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING= + +//Flags used by the linker during the creation of modules during +// MINSIZEREL builds. +CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING= + +//Flags used by the linker during the creation of modules during +// RELEASE builds. +CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING= + +//Flags used by the linker during the creation of modules during +// RELWITHDEBINFO builds. +CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING= + +//Path to a program. +CMAKE_NM:FILEPATH=/usr/bin/nm + +//Path to a program. +CMAKE_OBJCOPY:FILEPATH=/usr/bin/objcopy + +//Path to a program. +CMAKE_OBJDUMP:FILEPATH=/usr/bin/objdump + +//Value Computed by CMake +CMAKE_PROJECT_DESCRIPTION:STATIC= + +//Value Computed by CMake +CMAKE_PROJECT_HOMEPAGE_URL:STATIC= + +//Value Computed by CMake +CMAKE_PROJECT_NAME:STATIC=WebServer + +//Path to a program. +CMAKE_RANLIB:FILEPATH=/usr/bin/ranlib + +//Path to a program. +CMAKE_READELF:FILEPATH=/usr/bin/readelf + +//Flags used by the linker during the creation of shared libraries +// during all build types. +CMAKE_SHARED_LINKER_FLAGS:STRING= + +//Flags used by the linker during the creation of shared libraries +// during DEBUG builds. +CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING= + +//Flags used by the linker during the creation of shared libraries +// during MINSIZEREL builds. +CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING= + +//Flags used by the linker during the creation of shared libraries +// during RELEASE builds. +CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING= + +//Flags used by the linker during the creation of shared libraries +// during RELWITHDEBINFO builds. +CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING= + +//If set, runtime paths are not added when installing shared libraries, +// but are added when building. +CMAKE_SKIP_INSTALL_RPATH:BOOL=NO + +//If set, runtime paths are not added when using shared libraries. +CMAKE_SKIP_RPATH:BOOL=NO + +//Flags used by the linker during the creation of static libraries +// during all build types. +CMAKE_STATIC_LINKER_FLAGS:STRING= + +//Flags used by the linker during the creation of static libraries +// during DEBUG builds. +CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING= + +//Flags used by the linker during the creation of static libraries +// during MINSIZEREL builds. +CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING= + +//Flags used by the linker during the creation of static libraries +// during RELEASE builds. +CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING= + +//Flags used by the linker during the creation of static libraries +// during RELWITHDEBINFO builds. +CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING= + +//Path to a program. +CMAKE_STRIP:FILEPATH=/usr/bin/strip + +//If this value is on, makefiles will be generated without the +// .SILENT directive, and all commands will be echoed to the console +// during the make. This is useful for debugging only. With Visual +// Studio IDE projects all commands are done without /nologo. +CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE + +//Value Computed by CMake +WebServer_BINARY_DIR:STATIC=/my_project/WebServer + +//Value Computed by CMake +WebServer_SOURCE_DIR:STATIC=/my_project/WebServer + +//Dependencies for the target +libserver_base_LIB_DEPENDS:STATIC=general;pthread;general;rt; + + +######################## +# INTERNAL cache entries +######################## + +//ADVANCED property for variable: CMAKE_ADDR2LINE +CMAKE_ADDR2LINE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_AR +CMAKE_AR-ADVANCED:INTERNAL=1 +//This is the directory where this CMakeCache.txt was created +CMAKE_CACHEFILE_DIR:INTERNAL=/my_project/WebServer +//Major version of cmake used to create the current loaded cache +CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3 +//Minor version of cmake used to create the current loaded cache +CMAKE_CACHE_MINOR_VERSION:INTERNAL=16 +//Patch version of cmake used to create the current loaded cache +CMAKE_CACHE_PATCH_VERSION:INTERNAL=3 +//ADVANCED property for variable: CMAKE_COLOR_MAKEFILE +CMAKE_COLOR_MAKEFILE-ADVANCED:INTERNAL=1 +//Path to CMake executable. +CMAKE_COMMAND:INTERNAL=/usr/bin/cmake +//Path to cpack program executable. +CMAKE_CPACK_COMMAND:INTERNAL=/usr/bin/cpack +//Path to ctest program executable. +CMAKE_CTEST_COMMAND:INTERNAL=/usr/bin/ctest +//ADVANCED property for variable: CMAKE_CXX_COMPILER +CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_CXX_COMPILER_AR +CMAKE_CXX_COMPILER_AR-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_CXX_COMPILER_RANLIB +CMAKE_CXX_COMPILER_RANLIB-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_CXX_FLAGS +CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_CXX_FLAGS_DEBUG +CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_CXX_FLAGS_MINSIZEREL +CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELEASE +CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELWITHDEBINFO +CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_DLLTOOL +CMAKE_DLLTOOL-ADVANCED:INTERNAL=1 +//Executable file format +CMAKE_EXECUTABLE_FORMAT:INTERNAL=ELF +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS +CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG +CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL +CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE +CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO +CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_EXPORT_COMPILE_COMMANDS +CMAKE_EXPORT_COMPILE_COMMANDS-ADVANCED:INTERNAL=1 +//Name of external makefile project generator. +CMAKE_EXTRA_GENERATOR:INTERNAL= +//Name of generator. +CMAKE_GENERATOR:INTERNAL=Unix Makefiles +//Generator instance identifier. +CMAKE_GENERATOR_INSTANCE:INTERNAL= +//Name of generator platform. +CMAKE_GENERATOR_PLATFORM:INTERNAL= +//Name of generator toolset. +CMAKE_GENERATOR_TOOLSET:INTERNAL= +//Source directory with the top level CMakeLists.txt file for this +// project +CMAKE_HOME_DIRECTORY:INTERNAL=/my_project/WebServer +//Install .so files without execute permission. +CMAKE_INSTALL_SO_NO_EXE:INTERNAL=1 +//ADVANCED property for variable: CMAKE_LINKER +CMAKE_LINKER-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MAKE_PROGRAM +CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS +CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG +CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL +CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE +CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO +CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_NM +CMAKE_NM-ADVANCED:INTERNAL=1 +//number of local generators +CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=5 +//ADVANCED property for variable: CMAKE_OBJCOPY +CMAKE_OBJCOPY-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_OBJDUMP +CMAKE_OBJDUMP-ADVANCED:INTERNAL=1 +//Platform information initialized +CMAKE_PLATFORM_INFO_INITIALIZED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_RANLIB +CMAKE_RANLIB-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_READELF +CMAKE_READELF-ADVANCED:INTERNAL=1 +//Path to CMake installation. +CMAKE_ROOT:INTERNAL=/usr/share/cmake-3.16 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS +CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG +CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL +CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE +CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO +CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH +CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SKIP_RPATH +CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS +CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG +CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL +CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE +CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO +CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STRIP +CMAKE_STRIP-ADVANCED:INTERNAL=1 +//uname command +CMAKE_UNAME:INTERNAL=/usr/bin/uname +//ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE +CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1 + diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f4906fe --- /dev/null +++ b/Makefile @@ -0,0 +1,190 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.16 + +# Default target executed when no arguments are given to make. +default_target: all + +.PHONY : default_target + +# Allow only one "make -f Makefile2" at a time, but pass parallelism. +.NOTPARALLEL: + + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + + +# Remove some rules from gmake that .SUFFIXES does not remove. +SUFFIXES = + +.SUFFIXES: .hpux_make_needs_suffix_list + + +# Suppress display of executed commands. +$(VERBOSE).SILENT: + + +# A target that is always out of date. +cmake_force: + +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /usr/bin/cmake + +# The command to remove a file. +RM = /usr/bin/cmake -E remove -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /my_project/WebServer + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /my_project/WebServer + +#============================================================================= +# Targets provided globally by CMake. + +# Special rule for the target rebuild_cache +rebuild_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..." + /usr/bin/cmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : rebuild_cache + +# Special rule for the target rebuild_cache +rebuild_cache/fast: rebuild_cache + +.PHONY : rebuild_cache/fast + +# Special rule for the target edit_cache +edit_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "No interactive CMake dialog available..." + /usr/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available. +.PHONY : edit_cache + +# Special rule for the target edit_cache +edit_cache/fast: edit_cache + +.PHONY : edit_cache/fast + +# The main all target +all: cmake_check_build_system + $(CMAKE_COMMAND) -E cmake_progress_start /my_project/WebServer/CMakeFiles /my_project/WebServer/CMakeFiles/progress.marks + $(MAKE) -f CMakeFiles/Makefile2 all + $(CMAKE_COMMAND) -E cmake_progress_start /my_project/WebServer/CMakeFiles 0 +.PHONY : all + +# The main clean target +clean: + $(MAKE) -f CMakeFiles/Makefile2 clean +.PHONY : clean + +# The main clean target +clean/fast: clean + +.PHONY : clean/fast + +# Prepare targets for installation. +preinstall: all + $(MAKE) -f CMakeFiles/Makefile2 preinstall +.PHONY : preinstall + +# Prepare targets for installation. +preinstall/fast: + $(MAKE) -f CMakeFiles/Makefile2 preinstall +.PHONY : preinstall/fast + +# clear depends +depend: + $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 +.PHONY : depend + +#============================================================================= +# Target rules for targets named WebServer + +# Build rule for target. +WebServer: cmake_check_build_system + $(MAKE) -f CMakeFiles/Makefile2 WebServer +.PHONY : WebServer + +# fast build rule for target. +WebServer/fast: + $(MAKE) -f WebServer/CMakeFiles/WebServer.dir/build.make WebServer/CMakeFiles/WebServer.dir/build +.PHONY : WebServer/fast + +#============================================================================= +# Target rules for targets named libserver_base + +# Build rule for target. +libserver_base: cmake_check_build_system + $(MAKE) -f CMakeFiles/Makefile2 libserver_base +.PHONY : libserver_base + +# fast build rule for target. +libserver_base/fast: + $(MAKE) -f WebServer/base/CMakeFiles/libserver_base.dir/build.make WebServer/base/CMakeFiles/libserver_base.dir/build +.PHONY : libserver_base/fast + +#============================================================================= +# Target rules for targets named LoggingTest + +# Build rule for target. +LoggingTest: cmake_check_build_system + $(MAKE) -f CMakeFiles/Makefile2 LoggingTest +.PHONY : LoggingTest + +# fast build rule for target. +LoggingTest/fast: + $(MAKE) -f WebServer/base/tests/CMakeFiles/LoggingTest.dir/build.make WebServer/base/tests/CMakeFiles/LoggingTest.dir/build +.PHONY : LoggingTest/fast + +#============================================================================= +# Target rules for targets named HTTPClient + +# Build rule for target. +HTTPClient: cmake_check_build_system + $(MAKE) -f CMakeFiles/Makefile2 HTTPClient +.PHONY : HTTPClient + +# fast build rule for target. +HTTPClient/fast: + $(MAKE) -f WebServer/tests/CMakeFiles/HTTPClient.dir/build.make WebServer/tests/CMakeFiles/HTTPClient.dir/build +.PHONY : HTTPClient/fast + +# Help Target +help: + @echo "The following are some of the valid targets for this Makefile:" + @echo "... all (the default if no target is provided)" + @echo "... clean" + @echo "... depend" + @echo "... rebuild_cache" + @echo "... edit_cache" + @echo "... WebServer" + @echo "... libserver_base" + @echo "... LoggingTest" + @echo "... HTTPClient" +.PHONY : help + + + +#============================================================================= +# Special targets to cleanup operation of make. + +# Special rule to run CMake to check the build system integrity. +# No rule that depends on this can have commands that come from listfiles +# because they might be regenerated. +cmake_check_build_system: + $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 +.PHONY : cmake_check_build_system + diff --git a/WebServer.log b/WebServer.log new file mode 100644 index 0000000..e3985ca --- /dev/null +++ b/WebServer.log @@ -0,0 +1,11 @@ +2022-09-02 18:03:44 +New connection from 127.0.0.1:53348 -- /my_project/WebServer/WebServer/Server.cpp:45 +2022-09-02 18:04:32 +New connection from 127.0.0.1:53350 -- /my_project/WebServer/WebServer/Server.cpp:45 +2022-09-02 18:04:32 +Request: GET / HTTP/1.1 +Host: localhost:8085 +User-Agent: curl/7.68.0 +Accept: */* + + -- /my_project/WebServer/WebServer/HttpData.cpp:160 diff --git a/WebServer/CMakeFiles/CMakeDirectoryInformation.cmake b/WebServer/CMakeFiles/CMakeDirectoryInformation.cmake new file mode 100644 index 0000000..b61e7c8 --- /dev/null +++ b/WebServer/CMakeFiles/CMakeDirectoryInformation.cmake @@ -0,0 +1,16 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.16 + +# Relative path conversion top directories. +set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/my_project/WebServer") +set(CMAKE_RELATIVE_PATH_TOP_BINARY "/my_project/WebServer") + +# Force unix paths in dependencies. +set(CMAKE_FORCE_UNIX_PATHS 1) + + +# The C and CXX include file regular expressions for this directory. +set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") +set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") +set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) +set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) diff --git a/WebServer/CMakeFiles/WebServer.dir/CXX.includecache b/WebServer/CMakeFiles/WebServer.dir/CXX.includecache new file mode 100644 index 0000000..8dd3306 --- /dev/null +++ b/WebServer/CMakeFiles/WebServer.dir/CXX.includecache @@ -0,0 +1,362 @@ +#IncludeRegexLine: ^[ ]*[#%][ ]*(include|import)[ ]*[<"]([^">]+)([">]) + +#IncludeRegexScan: ^.*$ + +#IncludeRegexComplain: ^$ + +#IncludeRegexTransform: + +/my_project/WebServer/WebServer/Channel.cpp +Channel.h +/my_project/WebServer/WebServer/Channel.h +unistd.h +- +cstdlib +- +iostream +- +queue +- +Epoll.h +/my_project/WebServer/WebServer/Epoll.h +EventLoop.h +/my_project/WebServer/WebServer/EventLoop.h +Util.h +/my_project/WebServer/WebServer/Util.h + +/my_project/WebServer/WebServer/Channel.h +sys/epoll.h +- +sys/epoll.h +- +functional +- +memory +- +string +- +unordered_map +- +Timer.h +/my_project/WebServer/WebServer/Timer.h + +/my_project/WebServer/WebServer/Epoll.cpp +Epoll.h +/my_project/WebServer/WebServer/Epoll.h +assert.h +- +errno.h +- +netinet/in.h +- +string.h +- +sys/epoll.h +- +sys/socket.h +- +deque +- +queue +- +Util.h +/my_project/WebServer/WebServer/Util.h +base/Logging.h +/my_project/WebServer/WebServer/base/Logging.h +arpa/inet.h +- +iostream +- + +/my_project/WebServer/WebServer/Epoll.h +sys/epoll.h +- +memory +- +unordered_map +- +vector +- +Channel.h +/my_project/WebServer/WebServer/Channel.h +HttpData.h +/my_project/WebServer/WebServer/HttpData.h +Timer.h +/my_project/WebServer/WebServer/Timer.h + +/my_project/WebServer/WebServer/EventLoop.cpp +EventLoop.h +/my_project/WebServer/WebServer/EventLoop.h +sys/epoll.h +- +sys/eventfd.h +- +iostream +- +Util.h +/my_project/WebServer/WebServer/Util.h +base/Logging.h +/my_project/WebServer/WebServer/base/Logging.h + +/my_project/WebServer/WebServer/EventLoop.h +functional +- +memory +- +vector +- +Channel.h +/my_project/WebServer/WebServer/Channel.h +Epoll.h +/my_project/WebServer/WebServer/Epoll.h +Util.h +/my_project/WebServer/WebServer/Util.h +base/CurrentThread.h +/my_project/WebServer/WebServer/base/CurrentThread.h +base/Logging.h +/my_project/WebServer/WebServer/base/Logging.h +base/Thread.h +/my_project/WebServer/WebServer/base/Thread.h +iostream +- + +/my_project/WebServer/WebServer/EventLoopThread.cpp +EventLoopThread.h +/my_project/WebServer/WebServer/EventLoopThread.h +functional +- + +/my_project/WebServer/WebServer/EventLoopThread.h +EventLoop.h +/my_project/WebServer/WebServer/EventLoop.h +base/Condition.h +/my_project/WebServer/WebServer/base/Condition.h +base/MutexLock.h +/my_project/WebServer/WebServer/base/MutexLock.h +base/Thread.h +/my_project/WebServer/WebServer/base/Thread.h +base/noncopyable.h +/my_project/WebServer/WebServer/base/noncopyable.h + +/my_project/WebServer/WebServer/EventLoopThreadPool.cpp +EventLoopThreadPool.h +/my_project/WebServer/WebServer/EventLoopThreadPool.h + +/my_project/WebServer/WebServer/EventLoopThreadPool.h +memory +- +vector +- +EventLoopThread.h +/my_project/WebServer/WebServer/EventLoopThread.h +base/Logging.h +/my_project/WebServer/WebServer/base/Logging.h +base/noncopyable.h +/my_project/WebServer/WebServer/base/noncopyable.h + +/my_project/WebServer/WebServer/HttpData.cpp +HttpData.h +/my_project/WebServer/WebServer/HttpData.h +fcntl.h +- +sys/mman.h +- +sys/stat.h +- +iostream +- +Channel.h +/my_project/WebServer/WebServer/Channel.h +EventLoop.h +/my_project/WebServer/WebServer/EventLoop.h +Util.h +/my_project/WebServer/WebServer/Util.h +time.h +/my_project/WebServer/WebServer/time.h + +/my_project/WebServer/WebServer/HttpData.h +sys/epoll.h +- +unistd.h +- +functional +- +map +- +memory +- +string +- +unordered_map +- +Timer.h +/my_project/WebServer/WebServer/Timer.h + +/my_project/WebServer/WebServer/Main.cpp +getopt.h +- +string +- +EventLoop.h +/my_project/WebServer/WebServer/EventLoop.h +Server.h +/my_project/WebServer/WebServer/Server.h +base/Logging.h +/my_project/WebServer/WebServer/base/Logging.h + +/my_project/WebServer/WebServer/Server.cpp +Server.h +/my_project/WebServer/WebServer/Server.h +arpa/inet.h +- +netinet/in.h +- +sys/socket.h +- +functional +- +Util.h +/my_project/WebServer/WebServer/Util.h +base/Logging.h +/my_project/WebServer/WebServer/base/Logging.h + +/my_project/WebServer/WebServer/Server.h +memory +- +Channel.h +/my_project/WebServer/WebServer/Channel.h +EventLoop.h +/my_project/WebServer/WebServer/EventLoop.h +EventLoopThreadPool.h +/my_project/WebServer/WebServer/EventLoopThreadPool.h + +/my_project/WebServer/WebServer/Timer.cpp +Timer.h +/my_project/WebServer/WebServer/Timer.h +sys/time.h +- +unistd.h +- +queue +- + +/my_project/WebServer/WebServer/Timer.h +unistd.h +- +deque +- +memory +- +queue +- +HttpData.h +/my_project/WebServer/WebServer/HttpData.h +base/MutexLock.h +/my_project/WebServer/WebServer/base/MutexLock.h +base/noncopyable.h +/my_project/WebServer/WebServer/base/noncopyable.h + +/my_project/WebServer/WebServer/Util.cpp +Util.h +/my_project/WebServer/WebServer/Util.h +errno.h +- +fcntl.h +- +netinet/in.h +- +netinet/tcp.h +- +signal.h +- +string.h +- +sys/socket.h +- +unistd.h +- + +/my_project/WebServer/WebServer/Util.h +cstdlib +- +string +- + +/my_project/WebServer/WebServer/base/Condition.h +errno.h +- +pthread.h +- +pthread.h +- +time.h +- +cstdint +- +MutexLock.h +/my_project/WebServer/WebServer/base/MutexLock.h +noncopyable.h +/my_project/WebServer/WebServer/base/noncopyable.h + +/my_project/WebServer/WebServer/base/CountDownLatch.h +Condition.h +/my_project/WebServer/WebServer/base/Condition.h +MutexLock.h +/my_project/WebServer/WebServer/base/MutexLock.h +noncopyable.h +/my_project/WebServer/WebServer/base/noncopyable.h + +/my_project/WebServer/WebServer/base/CurrentThread.h +stdint.h +- + +/my_project/WebServer/WebServer/base/LogStream.h +assert.h +- +string.h +- +string +- +noncopyable.h +/my_project/WebServer/WebServer/base/noncopyable.h + +/my_project/WebServer/WebServer/base/Logging.h +pthread.h +- +stdio.h +- +string.h +- +string +- +LogStream.h +/my_project/WebServer/WebServer/base/LogStream.h + +/my_project/WebServer/WebServer/base/MutexLock.h +pthread.h +- +cstdio +- +noncopyable.h +/my_project/WebServer/WebServer/base/noncopyable.h + +/my_project/WebServer/WebServer/base/Thread.h +pthread.h +- +sys/syscall.h +- +unistd.h +- +functional +- +memory +- +string +- +CountDownLatch.h +/my_project/WebServer/WebServer/base/CountDownLatch.h +noncopyable.h +/my_project/WebServer/WebServer/base/noncopyable.h + +/my_project/WebServer/WebServer/base/noncopyable.h + diff --git a/WebServer/CMakeFiles/WebServer.dir/DependInfo.cmake b/WebServer/CMakeFiles/WebServer.dir/DependInfo.cmake new file mode 100644 index 0000000..043d819 --- /dev/null +++ b/WebServer/CMakeFiles/WebServer.dir/DependInfo.cmake @@ -0,0 +1,31 @@ +# The set of languages for which implicit dependencies are needed: +set(CMAKE_DEPENDS_LANGUAGES + "CXX" + ) +# The set of files for implicit dependencies of each language: +set(CMAKE_DEPENDS_CHECK_CXX + "/my_project/WebServer/WebServer/Channel.cpp" "/my_project/WebServer/WebServer/CMakeFiles/WebServer.dir/Channel.cpp.o" + "/my_project/WebServer/WebServer/Epoll.cpp" "/my_project/WebServer/WebServer/CMakeFiles/WebServer.dir/Epoll.cpp.o" + "/my_project/WebServer/WebServer/EventLoop.cpp" "/my_project/WebServer/WebServer/CMakeFiles/WebServer.dir/EventLoop.cpp.o" + "/my_project/WebServer/WebServer/EventLoopThread.cpp" "/my_project/WebServer/WebServer/CMakeFiles/WebServer.dir/EventLoopThread.cpp.o" + "/my_project/WebServer/WebServer/EventLoopThreadPool.cpp" "/my_project/WebServer/WebServer/CMakeFiles/WebServer.dir/EventLoopThreadPool.cpp.o" + "/my_project/WebServer/WebServer/HttpData.cpp" "/my_project/WebServer/WebServer/CMakeFiles/WebServer.dir/HttpData.cpp.o" + "/my_project/WebServer/WebServer/Main.cpp" "/my_project/WebServer/WebServer/CMakeFiles/WebServer.dir/Main.cpp.o" + "/my_project/WebServer/WebServer/Server.cpp" "/my_project/WebServer/WebServer/CMakeFiles/WebServer.dir/Server.cpp.o" + "/my_project/WebServer/WebServer/Timer.cpp" "/my_project/WebServer/WebServer/CMakeFiles/WebServer.dir/Timer.cpp.o" + "/my_project/WebServer/WebServer/Util.cpp" "/my_project/WebServer/WebServer/CMakeFiles/WebServer.dir/Util.cpp.o" + ) +set(CMAKE_CXX_COMPILER_ID "GNU") + +# The include file search paths: +set(CMAKE_CXX_TARGET_INCLUDE_PATH + "base" + ) + +# Targets to which this target links. +set(CMAKE_TARGET_LINKED_INFO_FILES + "/my_project/WebServer/WebServer/base/CMakeFiles/libserver_base.dir/DependInfo.cmake" + ) + +# Fortran module output directory. +set(CMAKE_Fortran_TARGET_MODULE_DIR "") diff --git a/WebServer/CMakeFiles/WebServer.dir/build.make b/WebServer/CMakeFiles/WebServer.dir/build.make new file mode 100644 index 0000000..3ff1ae5 --- /dev/null +++ b/WebServer/CMakeFiles/WebServer.dir/build.make @@ -0,0 +1,234 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.16 + +# Delete rule output on recipe failure. +.DELETE_ON_ERROR: + + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + + +# Remove some rules from gmake that .SUFFIXES does not remove. +SUFFIXES = + +.SUFFIXES: .hpux_make_needs_suffix_list + + +# Suppress display of executed commands. +$(VERBOSE).SILENT: + + +# A target that is always out of date. +cmake_force: + +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /usr/bin/cmake + +# The command to remove a file. +RM = /usr/bin/cmake -E remove -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /my_project/WebServer + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /my_project/WebServer + +# Include any dependencies generated for this target. +include WebServer/CMakeFiles/WebServer.dir/depend.make + +# Include the progress variables for this target. +include WebServer/CMakeFiles/WebServer.dir/progress.make + +# Include the compile flags for this target's objects. +include WebServer/CMakeFiles/WebServer.dir/flags.make + +WebServer/CMakeFiles/WebServer.dir/Channel.cpp.o: WebServer/CMakeFiles/WebServer.dir/flags.make +WebServer/CMakeFiles/WebServer.dir/Channel.cpp.o: WebServer/Channel.cpp + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/my_project/WebServer/CMakeFiles --progress-num=$(CMAKE_PROGRESS_1) "Building CXX object WebServer/CMakeFiles/WebServer.dir/Channel.cpp.o" + cd /my_project/WebServer/WebServer && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/WebServer.dir/Channel.cpp.o -c /my_project/WebServer/WebServer/Channel.cpp + +WebServer/CMakeFiles/WebServer.dir/Channel.cpp.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/WebServer.dir/Channel.cpp.i" + cd /my_project/WebServer/WebServer && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /my_project/WebServer/WebServer/Channel.cpp > CMakeFiles/WebServer.dir/Channel.cpp.i + +WebServer/CMakeFiles/WebServer.dir/Channel.cpp.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/WebServer.dir/Channel.cpp.s" + cd /my_project/WebServer/WebServer && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /my_project/WebServer/WebServer/Channel.cpp -o CMakeFiles/WebServer.dir/Channel.cpp.s + +WebServer/CMakeFiles/WebServer.dir/Epoll.cpp.o: WebServer/CMakeFiles/WebServer.dir/flags.make +WebServer/CMakeFiles/WebServer.dir/Epoll.cpp.o: WebServer/Epoll.cpp + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/my_project/WebServer/CMakeFiles --progress-num=$(CMAKE_PROGRESS_2) "Building CXX object WebServer/CMakeFiles/WebServer.dir/Epoll.cpp.o" + cd /my_project/WebServer/WebServer && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/WebServer.dir/Epoll.cpp.o -c /my_project/WebServer/WebServer/Epoll.cpp + +WebServer/CMakeFiles/WebServer.dir/Epoll.cpp.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/WebServer.dir/Epoll.cpp.i" + cd /my_project/WebServer/WebServer && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /my_project/WebServer/WebServer/Epoll.cpp > CMakeFiles/WebServer.dir/Epoll.cpp.i + +WebServer/CMakeFiles/WebServer.dir/Epoll.cpp.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/WebServer.dir/Epoll.cpp.s" + cd /my_project/WebServer/WebServer && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /my_project/WebServer/WebServer/Epoll.cpp -o CMakeFiles/WebServer.dir/Epoll.cpp.s + +WebServer/CMakeFiles/WebServer.dir/EventLoop.cpp.o: WebServer/CMakeFiles/WebServer.dir/flags.make +WebServer/CMakeFiles/WebServer.dir/EventLoop.cpp.o: WebServer/EventLoop.cpp + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/my_project/WebServer/CMakeFiles --progress-num=$(CMAKE_PROGRESS_3) "Building CXX object WebServer/CMakeFiles/WebServer.dir/EventLoop.cpp.o" + cd /my_project/WebServer/WebServer && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/WebServer.dir/EventLoop.cpp.o -c /my_project/WebServer/WebServer/EventLoop.cpp + +WebServer/CMakeFiles/WebServer.dir/EventLoop.cpp.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/WebServer.dir/EventLoop.cpp.i" + cd /my_project/WebServer/WebServer && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /my_project/WebServer/WebServer/EventLoop.cpp > CMakeFiles/WebServer.dir/EventLoop.cpp.i + +WebServer/CMakeFiles/WebServer.dir/EventLoop.cpp.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/WebServer.dir/EventLoop.cpp.s" + cd /my_project/WebServer/WebServer && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /my_project/WebServer/WebServer/EventLoop.cpp -o CMakeFiles/WebServer.dir/EventLoop.cpp.s + +WebServer/CMakeFiles/WebServer.dir/EventLoopThread.cpp.o: WebServer/CMakeFiles/WebServer.dir/flags.make +WebServer/CMakeFiles/WebServer.dir/EventLoopThread.cpp.o: WebServer/EventLoopThread.cpp + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/my_project/WebServer/CMakeFiles --progress-num=$(CMAKE_PROGRESS_4) "Building CXX object WebServer/CMakeFiles/WebServer.dir/EventLoopThread.cpp.o" + cd /my_project/WebServer/WebServer && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/WebServer.dir/EventLoopThread.cpp.o -c /my_project/WebServer/WebServer/EventLoopThread.cpp + +WebServer/CMakeFiles/WebServer.dir/EventLoopThread.cpp.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/WebServer.dir/EventLoopThread.cpp.i" + cd /my_project/WebServer/WebServer && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /my_project/WebServer/WebServer/EventLoopThread.cpp > CMakeFiles/WebServer.dir/EventLoopThread.cpp.i + +WebServer/CMakeFiles/WebServer.dir/EventLoopThread.cpp.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/WebServer.dir/EventLoopThread.cpp.s" + cd /my_project/WebServer/WebServer && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /my_project/WebServer/WebServer/EventLoopThread.cpp -o CMakeFiles/WebServer.dir/EventLoopThread.cpp.s + +WebServer/CMakeFiles/WebServer.dir/EventLoopThreadPool.cpp.o: WebServer/CMakeFiles/WebServer.dir/flags.make +WebServer/CMakeFiles/WebServer.dir/EventLoopThreadPool.cpp.o: WebServer/EventLoopThreadPool.cpp + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/my_project/WebServer/CMakeFiles --progress-num=$(CMAKE_PROGRESS_5) "Building CXX object WebServer/CMakeFiles/WebServer.dir/EventLoopThreadPool.cpp.o" + cd /my_project/WebServer/WebServer && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/WebServer.dir/EventLoopThreadPool.cpp.o -c /my_project/WebServer/WebServer/EventLoopThreadPool.cpp + +WebServer/CMakeFiles/WebServer.dir/EventLoopThreadPool.cpp.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/WebServer.dir/EventLoopThreadPool.cpp.i" + cd /my_project/WebServer/WebServer && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /my_project/WebServer/WebServer/EventLoopThreadPool.cpp > CMakeFiles/WebServer.dir/EventLoopThreadPool.cpp.i + +WebServer/CMakeFiles/WebServer.dir/EventLoopThreadPool.cpp.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/WebServer.dir/EventLoopThreadPool.cpp.s" + cd /my_project/WebServer/WebServer && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /my_project/WebServer/WebServer/EventLoopThreadPool.cpp -o CMakeFiles/WebServer.dir/EventLoopThreadPool.cpp.s + +WebServer/CMakeFiles/WebServer.dir/HttpData.cpp.o: WebServer/CMakeFiles/WebServer.dir/flags.make +WebServer/CMakeFiles/WebServer.dir/HttpData.cpp.o: WebServer/HttpData.cpp + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/my_project/WebServer/CMakeFiles --progress-num=$(CMAKE_PROGRESS_6) "Building CXX object WebServer/CMakeFiles/WebServer.dir/HttpData.cpp.o" + cd /my_project/WebServer/WebServer && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/WebServer.dir/HttpData.cpp.o -c /my_project/WebServer/WebServer/HttpData.cpp + +WebServer/CMakeFiles/WebServer.dir/HttpData.cpp.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/WebServer.dir/HttpData.cpp.i" + cd /my_project/WebServer/WebServer && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /my_project/WebServer/WebServer/HttpData.cpp > CMakeFiles/WebServer.dir/HttpData.cpp.i + +WebServer/CMakeFiles/WebServer.dir/HttpData.cpp.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/WebServer.dir/HttpData.cpp.s" + cd /my_project/WebServer/WebServer && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /my_project/WebServer/WebServer/HttpData.cpp -o CMakeFiles/WebServer.dir/HttpData.cpp.s + +WebServer/CMakeFiles/WebServer.dir/Main.cpp.o: WebServer/CMakeFiles/WebServer.dir/flags.make +WebServer/CMakeFiles/WebServer.dir/Main.cpp.o: WebServer/Main.cpp + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/my_project/WebServer/CMakeFiles --progress-num=$(CMAKE_PROGRESS_7) "Building CXX object WebServer/CMakeFiles/WebServer.dir/Main.cpp.o" + cd /my_project/WebServer/WebServer && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/WebServer.dir/Main.cpp.o -c /my_project/WebServer/WebServer/Main.cpp + +WebServer/CMakeFiles/WebServer.dir/Main.cpp.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/WebServer.dir/Main.cpp.i" + cd /my_project/WebServer/WebServer && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /my_project/WebServer/WebServer/Main.cpp > CMakeFiles/WebServer.dir/Main.cpp.i + +WebServer/CMakeFiles/WebServer.dir/Main.cpp.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/WebServer.dir/Main.cpp.s" + cd /my_project/WebServer/WebServer && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /my_project/WebServer/WebServer/Main.cpp -o CMakeFiles/WebServer.dir/Main.cpp.s + +WebServer/CMakeFiles/WebServer.dir/Server.cpp.o: WebServer/CMakeFiles/WebServer.dir/flags.make +WebServer/CMakeFiles/WebServer.dir/Server.cpp.o: WebServer/Server.cpp + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/my_project/WebServer/CMakeFiles --progress-num=$(CMAKE_PROGRESS_8) "Building CXX object WebServer/CMakeFiles/WebServer.dir/Server.cpp.o" + cd /my_project/WebServer/WebServer && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/WebServer.dir/Server.cpp.o -c /my_project/WebServer/WebServer/Server.cpp + +WebServer/CMakeFiles/WebServer.dir/Server.cpp.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/WebServer.dir/Server.cpp.i" + cd /my_project/WebServer/WebServer && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /my_project/WebServer/WebServer/Server.cpp > CMakeFiles/WebServer.dir/Server.cpp.i + +WebServer/CMakeFiles/WebServer.dir/Server.cpp.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/WebServer.dir/Server.cpp.s" + cd /my_project/WebServer/WebServer && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /my_project/WebServer/WebServer/Server.cpp -o CMakeFiles/WebServer.dir/Server.cpp.s + +WebServer/CMakeFiles/WebServer.dir/Timer.cpp.o: WebServer/CMakeFiles/WebServer.dir/flags.make +WebServer/CMakeFiles/WebServer.dir/Timer.cpp.o: WebServer/Timer.cpp + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/my_project/WebServer/CMakeFiles --progress-num=$(CMAKE_PROGRESS_9) "Building CXX object WebServer/CMakeFiles/WebServer.dir/Timer.cpp.o" + cd /my_project/WebServer/WebServer && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/WebServer.dir/Timer.cpp.o -c /my_project/WebServer/WebServer/Timer.cpp + +WebServer/CMakeFiles/WebServer.dir/Timer.cpp.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/WebServer.dir/Timer.cpp.i" + cd /my_project/WebServer/WebServer && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /my_project/WebServer/WebServer/Timer.cpp > CMakeFiles/WebServer.dir/Timer.cpp.i + +WebServer/CMakeFiles/WebServer.dir/Timer.cpp.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/WebServer.dir/Timer.cpp.s" + cd /my_project/WebServer/WebServer && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /my_project/WebServer/WebServer/Timer.cpp -o CMakeFiles/WebServer.dir/Timer.cpp.s + +WebServer/CMakeFiles/WebServer.dir/Util.cpp.o: WebServer/CMakeFiles/WebServer.dir/flags.make +WebServer/CMakeFiles/WebServer.dir/Util.cpp.o: WebServer/Util.cpp + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/my_project/WebServer/CMakeFiles --progress-num=$(CMAKE_PROGRESS_10) "Building CXX object WebServer/CMakeFiles/WebServer.dir/Util.cpp.o" + cd /my_project/WebServer/WebServer && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/WebServer.dir/Util.cpp.o -c /my_project/WebServer/WebServer/Util.cpp + +WebServer/CMakeFiles/WebServer.dir/Util.cpp.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/WebServer.dir/Util.cpp.i" + cd /my_project/WebServer/WebServer && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /my_project/WebServer/WebServer/Util.cpp > CMakeFiles/WebServer.dir/Util.cpp.i + +WebServer/CMakeFiles/WebServer.dir/Util.cpp.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/WebServer.dir/Util.cpp.s" + cd /my_project/WebServer/WebServer && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /my_project/WebServer/WebServer/Util.cpp -o CMakeFiles/WebServer.dir/Util.cpp.s + +# Object files for target WebServer +WebServer_OBJECTS = \ +"CMakeFiles/WebServer.dir/Channel.cpp.o" \ +"CMakeFiles/WebServer.dir/Epoll.cpp.o" \ +"CMakeFiles/WebServer.dir/EventLoop.cpp.o" \ +"CMakeFiles/WebServer.dir/EventLoopThread.cpp.o" \ +"CMakeFiles/WebServer.dir/EventLoopThreadPool.cpp.o" \ +"CMakeFiles/WebServer.dir/HttpData.cpp.o" \ +"CMakeFiles/WebServer.dir/Main.cpp.o" \ +"CMakeFiles/WebServer.dir/Server.cpp.o" \ +"CMakeFiles/WebServer.dir/Timer.cpp.o" \ +"CMakeFiles/WebServer.dir/Util.cpp.o" + +# External object files for target WebServer +WebServer_EXTERNAL_OBJECTS = + +WebServer/WebServer: WebServer/CMakeFiles/WebServer.dir/Channel.cpp.o +WebServer/WebServer: WebServer/CMakeFiles/WebServer.dir/Epoll.cpp.o +WebServer/WebServer: WebServer/CMakeFiles/WebServer.dir/EventLoop.cpp.o +WebServer/WebServer: WebServer/CMakeFiles/WebServer.dir/EventLoopThread.cpp.o +WebServer/WebServer: WebServer/CMakeFiles/WebServer.dir/EventLoopThreadPool.cpp.o +WebServer/WebServer: WebServer/CMakeFiles/WebServer.dir/HttpData.cpp.o +WebServer/WebServer: WebServer/CMakeFiles/WebServer.dir/Main.cpp.o +WebServer/WebServer: WebServer/CMakeFiles/WebServer.dir/Server.cpp.o +WebServer/WebServer: WebServer/CMakeFiles/WebServer.dir/Timer.cpp.o +WebServer/WebServer: WebServer/CMakeFiles/WebServer.dir/Util.cpp.o +WebServer/WebServer: WebServer/CMakeFiles/WebServer.dir/build.make +WebServer/WebServer: WebServer/base/libserver_base.a +WebServer/WebServer: WebServer/CMakeFiles/WebServer.dir/link.txt + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --bold --progress-dir=/my_project/WebServer/CMakeFiles --progress-num=$(CMAKE_PROGRESS_11) "Linking CXX executable WebServer" + cd /my_project/WebServer/WebServer && $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/WebServer.dir/link.txt --verbose=$(VERBOSE) + +# Rule to build all files generated by this target. +WebServer/CMakeFiles/WebServer.dir/build: WebServer/WebServer + +.PHONY : WebServer/CMakeFiles/WebServer.dir/build + +WebServer/CMakeFiles/WebServer.dir/clean: + cd /my_project/WebServer/WebServer && $(CMAKE_COMMAND) -P CMakeFiles/WebServer.dir/cmake_clean.cmake +.PHONY : WebServer/CMakeFiles/WebServer.dir/clean + +WebServer/CMakeFiles/WebServer.dir/depend: + cd /my_project/WebServer && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /my_project/WebServer /my_project/WebServer/WebServer /my_project/WebServer /my_project/WebServer/WebServer /my_project/WebServer/WebServer/CMakeFiles/WebServer.dir/DependInfo.cmake --color=$(COLOR) +.PHONY : WebServer/CMakeFiles/WebServer.dir/depend + diff --git a/WebServer/CMakeFiles/WebServer.dir/cmake_clean.cmake b/WebServer/CMakeFiles/WebServer.dir/cmake_clean.cmake new file mode 100644 index 0000000..c6e0d91 --- /dev/null +++ b/WebServer/CMakeFiles/WebServer.dir/cmake_clean.cmake @@ -0,0 +1,19 @@ +file(REMOVE_RECURSE + "CMakeFiles/WebServer.dir/Channel.cpp.o" + "CMakeFiles/WebServer.dir/Epoll.cpp.o" + "CMakeFiles/WebServer.dir/EventLoop.cpp.o" + "CMakeFiles/WebServer.dir/EventLoopThread.cpp.o" + "CMakeFiles/WebServer.dir/EventLoopThreadPool.cpp.o" + "CMakeFiles/WebServer.dir/HttpData.cpp.o" + "CMakeFiles/WebServer.dir/Main.cpp.o" + "CMakeFiles/WebServer.dir/Server.cpp.o" + "CMakeFiles/WebServer.dir/Timer.cpp.o" + "CMakeFiles/WebServer.dir/Util.cpp.o" + "WebServer" + "WebServer.pdb" +) + +# Per-language clean rules from dependency scanning. +foreach(lang CXX) + include(CMakeFiles/WebServer.dir/cmake_clean_${lang}.cmake OPTIONAL) +endforeach() diff --git a/WebServer/CMakeFiles/WebServer.dir/depend.internal b/WebServer/CMakeFiles/WebServer.dir/depend.internal new file mode 100644 index 0000000..98f312e --- /dev/null +++ b/WebServer/CMakeFiles/WebServer.dir/depend.internal @@ -0,0 +1,144 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.16 + +WebServer/CMakeFiles/WebServer.dir/Channel.cpp.o + /my_project/WebServer/WebServer/Channel.cpp + /my_project/WebServer/WebServer/Channel.h + /my_project/WebServer/WebServer/Epoll.h + /my_project/WebServer/WebServer/EventLoop.h + /my_project/WebServer/WebServer/HttpData.h + /my_project/WebServer/WebServer/Timer.h + /my_project/WebServer/WebServer/Util.h + /my_project/WebServer/WebServer/base/Condition.h + /my_project/WebServer/WebServer/base/CountDownLatch.h + /my_project/WebServer/WebServer/base/CurrentThread.h + /my_project/WebServer/WebServer/base/LogStream.h + /my_project/WebServer/WebServer/base/Logging.h + /my_project/WebServer/WebServer/base/MutexLock.h + /my_project/WebServer/WebServer/base/Thread.h + /my_project/WebServer/WebServer/base/noncopyable.h +WebServer/CMakeFiles/WebServer.dir/Epoll.cpp.o + /my_project/WebServer/WebServer/Channel.h + /my_project/WebServer/WebServer/Epoll.cpp + /my_project/WebServer/WebServer/Epoll.h + /my_project/WebServer/WebServer/HttpData.h + /my_project/WebServer/WebServer/Timer.h + /my_project/WebServer/WebServer/Util.h + /my_project/WebServer/WebServer/base/LogStream.h + /my_project/WebServer/WebServer/base/Logging.h + /my_project/WebServer/WebServer/base/MutexLock.h + /my_project/WebServer/WebServer/base/noncopyable.h +WebServer/CMakeFiles/WebServer.dir/EventLoop.cpp.o + /my_project/WebServer/WebServer/Channel.h + /my_project/WebServer/WebServer/Epoll.h + /my_project/WebServer/WebServer/EventLoop.cpp + /my_project/WebServer/WebServer/EventLoop.h + /my_project/WebServer/WebServer/HttpData.h + /my_project/WebServer/WebServer/Timer.h + /my_project/WebServer/WebServer/Util.h + /my_project/WebServer/WebServer/base/Condition.h + /my_project/WebServer/WebServer/base/CountDownLatch.h + /my_project/WebServer/WebServer/base/CurrentThread.h + /my_project/WebServer/WebServer/base/LogStream.h + /my_project/WebServer/WebServer/base/Logging.h + /my_project/WebServer/WebServer/base/MutexLock.h + /my_project/WebServer/WebServer/base/Thread.h + /my_project/WebServer/WebServer/base/noncopyable.h +WebServer/CMakeFiles/WebServer.dir/EventLoopThread.cpp.o + /my_project/WebServer/WebServer/Channel.h + /my_project/WebServer/WebServer/Epoll.h + /my_project/WebServer/WebServer/EventLoop.h + /my_project/WebServer/WebServer/EventLoopThread.cpp + /my_project/WebServer/WebServer/EventLoopThread.h + /my_project/WebServer/WebServer/HttpData.h + /my_project/WebServer/WebServer/Timer.h + /my_project/WebServer/WebServer/Util.h + /my_project/WebServer/WebServer/base/Condition.h + /my_project/WebServer/WebServer/base/CountDownLatch.h + /my_project/WebServer/WebServer/base/CurrentThread.h + /my_project/WebServer/WebServer/base/LogStream.h + /my_project/WebServer/WebServer/base/Logging.h + /my_project/WebServer/WebServer/base/MutexLock.h + /my_project/WebServer/WebServer/base/Thread.h + /my_project/WebServer/WebServer/base/noncopyable.h +WebServer/CMakeFiles/WebServer.dir/EventLoopThreadPool.cpp.o + /my_project/WebServer/WebServer/Channel.h + /my_project/WebServer/WebServer/Epoll.h + /my_project/WebServer/WebServer/EventLoop.h + /my_project/WebServer/WebServer/EventLoopThread.h + /my_project/WebServer/WebServer/EventLoopThreadPool.cpp + /my_project/WebServer/WebServer/EventLoopThreadPool.h + /my_project/WebServer/WebServer/HttpData.h + /my_project/WebServer/WebServer/Timer.h + /my_project/WebServer/WebServer/Util.h + /my_project/WebServer/WebServer/base/Condition.h + /my_project/WebServer/WebServer/base/CountDownLatch.h + /my_project/WebServer/WebServer/base/CurrentThread.h + /my_project/WebServer/WebServer/base/LogStream.h + /my_project/WebServer/WebServer/base/Logging.h + /my_project/WebServer/WebServer/base/MutexLock.h + /my_project/WebServer/WebServer/base/Thread.h + /my_project/WebServer/WebServer/base/noncopyable.h +WebServer/CMakeFiles/WebServer.dir/HttpData.cpp.o + /my_project/WebServer/WebServer/Channel.h + /my_project/WebServer/WebServer/Epoll.h + /my_project/WebServer/WebServer/EventLoop.h + /my_project/WebServer/WebServer/HttpData.cpp + /my_project/WebServer/WebServer/HttpData.h + /my_project/WebServer/WebServer/Timer.h + /my_project/WebServer/WebServer/Util.h + /my_project/WebServer/WebServer/base/Condition.h + /my_project/WebServer/WebServer/base/CountDownLatch.h + /my_project/WebServer/WebServer/base/CurrentThread.h + /my_project/WebServer/WebServer/base/LogStream.h + /my_project/WebServer/WebServer/base/Logging.h + /my_project/WebServer/WebServer/base/MutexLock.h + /my_project/WebServer/WebServer/base/Thread.h + /my_project/WebServer/WebServer/base/noncopyable.h +WebServer/CMakeFiles/WebServer.dir/Main.cpp.o + /my_project/WebServer/WebServer/Channel.h + /my_project/WebServer/WebServer/Epoll.h + /my_project/WebServer/WebServer/EventLoop.h + /my_project/WebServer/WebServer/EventLoopThread.h + /my_project/WebServer/WebServer/EventLoopThreadPool.h + /my_project/WebServer/WebServer/HttpData.h + /my_project/WebServer/WebServer/Main.cpp + /my_project/WebServer/WebServer/Server.h + /my_project/WebServer/WebServer/Timer.h + /my_project/WebServer/WebServer/Util.h + /my_project/WebServer/WebServer/base/Condition.h + /my_project/WebServer/WebServer/base/CountDownLatch.h + /my_project/WebServer/WebServer/base/CurrentThread.h + /my_project/WebServer/WebServer/base/LogStream.h + /my_project/WebServer/WebServer/base/Logging.h + /my_project/WebServer/WebServer/base/MutexLock.h + /my_project/WebServer/WebServer/base/Thread.h + /my_project/WebServer/WebServer/base/noncopyable.h +WebServer/CMakeFiles/WebServer.dir/Server.cpp.o + /my_project/WebServer/WebServer/Channel.h + /my_project/WebServer/WebServer/Epoll.h + /my_project/WebServer/WebServer/EventLoop.h + /my_project/WebServer/WebServer/EventLoopThread.h + /my_project/WebServer/WebServer/EventLoopThreadPool.h + /my_project/WebServer/WebServer/HttpData.h + /my_project/WebServer/WebServer/Server.cpp + /my_project/WebServer/WebServer/Server.h + /my_project/WebServer/WebServer/Timer.h + /my_project/WebServer/WebServer/Util.h + /my_project/WebServer/WebServer/base/Condition.h + /my_project/WebServer/WebServer/base/CountDownLatch.h + /my_project/WebServer/WebServer/base/CurrentThread.h + /my_project/WebServer/WebServer/base/LogStream.h + /my_project/WebServer/WebServer/base/Logging.h + /my_project/WebServer/WebServer/base/MutexLock.h + /my_project/WebServer/WebServer/base/Thread.h + /my_project/WebServer/WebServer/base/noncopyable.h +WebServer/CMakeFiles/WebServer.dir/Timer.cpp.o + /my_project/WebServer/WebServer/HttpData.h + /my_project/WebServer/WebServer/Timer.cpp + /my_project/WebServer/WebServer/Timer.h + /my_project/WebServer/WebServer/base/MutexLock.h + /my_project/WebServer/WebServer/base/noncopyable.h +WebServer/CMakeFiles/WebServer.dir/Util.cpp.o + /my_project/WebServer/WebServer/Util.cpp + /my_project/WebServer/WebServer/Util.h diff --git a/WebServer/CMakeFiles/WebServer.dir/depend.make b/WebServer/CMakeFiles/WebServer.dir/depend.make new file mode 100644 index 0000000..eeca471 --- /dev/null +++ b/WebServer/CMakeFiles/WebServer.dir/depend.make @@ -0,0 +1,144 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.16 + +WebServer/CMakeFiles/WebServer.dir/Channel.cpp.o: WebServer/Channel.cpp +WebServer/CMakeFiles/WebServer.dir/Channel.cpp.o: WebServer/Channel.h +WebServer/CMakeFiles/WebServer.dir/Channel.cpp.o: WebServer/Epoll.h +WebServer/CMakeFiles/WebServer.dir/Channel.cpp.o: WebServer/EventLoop.h +WebServer/CMakeFiles/WebServer.dir/Channel.cpp.o: WebServer/HttpData.h +WebServer/CMakeFiles/WebServer.dir/Channel.cpp.o: WebServer/Timer.h +WebServer/CMakeFiles/WebServer.dir/Channel.cpp.o: WebServer/Util.h +WebServer/CMakeFiles/WebServer.dir/Channel.cpp.o: WebServer/base/Condition.h +WebServer/CMakeFiles/WebServer.dir/Channel.cpp.o: WebServer/base/CountDownLatch.h +WebServer/CMakeFiles/WebServer.dir/Channel.cpp.o: WebServer/base/CurrentThread.h +WebServer/CMakeFiles/WebServer.dir/Channel.cpp.o: WebServer/base/LogStream.h +WebServer/CMakeFiles/WebServer.dir/Channel.cpp.o: WebServer/base/Logging.h +WebServer/CMakeFiles/WebServer.dir/Channel.cpp.o: WebServer/base/MutexLock.h +WebServer/CMakeFiles/WebServer.dir/Channel.cpp.o: WebServer/base/Thread.h +WebServer/CMakeFiles/WebServer.dir/Channel.cpp.o: WebServer/base/noncopyable.h + +WebServer/CMakeFiles/WebServer.dir/Epoll.cpp.o: WebServer/Channel.h +WebServer/CMakeFiles/WebServer.dir/Epoll.cpp.o: WebServer/Epoll.cpp +WebServer/CMakeFiles/WebServer.dir/Epoll.cpp.o: WebServer/Epoll.h +WebServer/CMakeFiles/WebServer.dir/Epoll.cpp.o: WebServer/HttpData.h +WebServer/CMakeFiles/WebServer.dir/Epoll.cpp.o: WebServer/Timer.h +WebServer/CMakeFiles/WebServer.dir/Epoll.cpp.o: WebServer/Util.h +WebServer/CMakeFiles/WebServer.dir/Epoll.cpp.o: WebServer/base/LogStream.h +WebServer/CMakeFiles/WebServer.dir/Epoll.cpp.o: WebServer/base/Logging.h +WebServer/CMakeFiles/WebServer.dir/Epoll.cpp.o: WebServer/base/MutexLock.h +WebServer/CMakeFiles/WebServer.dir/Epoll.cpp.o: WebServer/base/noncopyable.h + +WebServer/CMakeFiles/WebServer.dir/EventLoop.cpp.o: WebServer/Channel.h +WebServer/CMakeFiles/WebServer.dir/EventLoop.cpp.o: WebServer/Epoll.h +WebServer/CMakeFiles/WebServer.dir/EventLoop.cpp.o: WebServer/EventLoop.cpp +WebServer/CMakeFiles/WebServer.dir/EventLoop.cpp.o: WebServer/EventLoop.h +WebServer/CMakeFiles/WebServer.dir/EventLoop.cpp.o: WebServer/HttpData.h +WebServer/CMakeFiles/WebServer.dir/EventLoop.cpp.o: WebServer/Timer.h +WebServer/CMakeFiles/WebServer.dir/EventLoop.cpp.o: WebServer/Util.h +WebServer/CMakeFiles/WebServer.dir/EventLoop.cpp.o: WebServer/base/Condition.h +WebServer/CMakeFiles/WebServer.dir/EventLoop.cpp.o: WebServer/base/CountDownLatch.h +WebServer/CMakeFiles/WebServer.dir/EventLoop.cpp.o: WebServer/base/CurrentThread.h +WebServer/CMakeFiles/WebServer.dir/EventLoop.cpp.o: WebServer/base/LogStream.h +WebServer/CMakeFiles/WebServer.dir/EventLoop.cpp.o: WebServer/base/Logging.h +WebServer/CMakeFiles/WebServer.dir/EventLoop.cpp.o: WebServer/base/MutexLock.h +WebServer/CMakeFiles/WebServer.dir/EventLoop.cpp.o: WebServer/base/Thread.h +WebServer/CMakeFiles/WebServer.dir/EventLoop.cpp.o: WebServer/base/noncopyable.h + +WebServer/CMakeFiles/WebServer.dir/EventLoopThread.cpp.o: WebServer/Channel.h +WebServer/CMakeFiles/WebServer.dir/EventLoopThread.cpp.o: WebServer/Epoll.h +WebServer/CMakeFiles/WebServer.dir/EventLoopThread.cpp.o: WebServer/EventLoop.h +WebServer/CMakeFiles/WebServer.dir/EventLoopThread.cpp.o: WebServer/EventLoopThread.cpp +WebServer/CMakeFiles/WebServer.dir/EventLoopThread.cpp.o: WebServer/EventLoopThread.h +WebServer/CMakeFiles/WebServer.dir/EventLoopThread.cpp.o: WebServer/HttpData.h +WebServer/CMakeFiles/WebServer.dir/EventLoopThread.cpp.o: WebServer/Timer.h +WebServer/CMakeFiles/WebServer.dir/EventLoopThread.cpp.o: WebServer/Util.h +WebServer/CMakeFiles/WebServer.dir/EventLoopThread.cpp.o: WebServer/base/Condition.h +WebServer/CMakeFiles/WebServer.dir/EventLoopThread.cpp.o: WebServer/base/CountDownLatch.h +WebServer/CMakeFiles/WebServer.dir/EventLoopThread.cpp.o: WebServer/base/CurrentThread.h +WebServer/CMakeFiles/WebServer.dir/EventLoopThread.cpp.o: WebServer/base/LogStream.h +WebServer/CMakeFiles/WebServer.dir/EventLoopThread.cpp.o: WebServer/base/Logging.h +WebServer/CMakeFiles/WebServer.dir/EventLoopThread.cpp.o: WebServer/base/MutexLock.h +WebServer/CMakeFiles/WebServer.dir/EventLoopThread.cpp.o: WebServer/base/Thread.h +WebServer/CMakeFiles/WebServer.dir/EventLoopThread.cpp.o: WebServer/base/noncopyable.h + +WebServer/CMakeFiles/WebServer.dir/EventLoopThreadPool.cpp.o: WebServer/Channel.h +WebServer/CMakeFiles/WebServer.dir/EventLoopThreadPool.cpp.o: WebServer/Epoll.h +WebServer/CMakeFiles/WebServer.dir/EventLoopThreadPool.cpp.o: WebServer/EventLoop.h +WebServer/CMakeFiles/WebServer.dir/EventLoopThreadPool.cpp.o: WebServer/EventLoopThread.h +WebServer/CMakeFiles/WebServer.dir/EventLoopThreadPool.cpp.o: WebServer/EventLoopThreadPool.cpp +WebServer/CMakeFiles/WebServer.dir/EventLoopThreadPool.cpp.o: WebServer/EventLoopThreadPool.h +WebServer/CMakeFiles/WebServer.dir/EventLoopThreadPool.cpp.o: WebServer/HttpData.h +WebServer/CMakeFiles/WebServer.dir/EventLoopThreadPool.cpp.o: WebServer/Timer.h +WebServer/CMakeFiles/WebServer.dir/EventLoopThreadPool.cpp.o: WebServer/Util.h +WebServer/CMakeFiles/WebServer.dir/EventLoopThreadPool.cpp.o: WebServer/base/Condition.h +WebServer/CMakeFiles/WebServer.dir/EventLoopThreadPool.cpp.o: WebServer/base/CountDownLatch.h +WebServer/CMakeFiles/WebServer.dir/EventLoopThreadPool.cpp.o: WebServer/base/CurrentThread.h +WebServer/CMakeFiles/WebServer.dir/EventLoopThreadPool.cpp.o: WebServer/base/LogStream.h +WebServer/CMakeFiles/WebServer.dir/EventLoopThreadPool.cpp.o: WebServer/base/Logging.h +WebServer/CMakeFiles/WebServer.dir/EventLoopThreadPool.cpp.o: WebServer/base/MutexLock.h +WebServer/CMakeFiles/WebServer.dir/EventLoopThreadPool.cpp.o: WebServer/base/Thread.h +WebServer/CMakeFiles/WebServer.dir/EventLoopThreadPool.cpp.o: WebServer/base/noncopyable.h + +WebServer/CMakeFiles/WebServer.dir/HttpData.cpp.o: WebServer/Channel.h +WebServer/CMakeFiles/WebServer.dir/HttpData.cpp.o: WebServer/Epoll.h +WebServer/CMakeFiles/WebServer.dir/HttpData.cpp.o: WebServer/EventLoop.h +WebServer/CMakeFiles/WebServer.dir/HttpData.cpp.o: WebServer/HttpData.cpp +WebServer/CMakeFiles/WebServer.dir/HttpData.cpp.o: WebServer/HttpData.h +WebServer/CMakeFiles/WebServer.dir/HttpData.cpp.o: WebServer/Timer.h +WebServer/CMakeFiles/WebServer.dir/HttpData.cpp.o: WebServer/Util.h +WebServer/CMakeFiles/WebServer.dir/HttpData.cpp.o: WebServer/base/Condition.h +WebServer/CMakeFiles/WebServer.dir/HttpData.cpp.o: WebServer/base/CountDownLatch.h +WebServer/CMakeFiles/WebServer.dir/HttpData.cpp.o: WebServer/base/CurrentThread.h +WebServer/CMakeFiles/WebServer.dir/HttpData.cpp.o: WebServer/base/LogStream.h +WebServer/CMakeFiles/WebServer.dir/HttpData.cpp.o: WebServer/base/Logging.h +WebServer/CMakeFiles/WebServer.dir/HttpData.cpp.o: WebServer/base/MutexLock.h +WebServer/CMakeFiles/WebServer.dir/HttpData.cpp.o: WebServer/base/Thread.h +WebServer/CMakeFiles/WebServer.dir/HttpData.cpp.o: WebServer/base/noncopyable.h + +WebServer/CMakeFiles/WebServer.dir/Main.cpp.o: WebServer/Channel.h +WebServer/CMakeFiles/WebServer.dir/Main.cpp.o: WebServer/Epoll.h +WebServer/CMakeFiles/WebServer.dir/Main.cpp.o: WebServer/EventLoop.h +WebServer/CMakeFiles/WebServer.dir/Main.cpp.o: WebServer/EventLoopThread.h +WebServer/CMakeFiles/WebServer.dir/Main.cpp.o: WebServer/EventLoopThreadPool.h +WebServer/CMakeFiles/WebServer.dir/Main.cpp.o: WebServer/HttpData.h +WebServer/CMakeFiles/WebServer.dir/Main.cpp.o: WebServer/Main.cpp +WebServer/CMakeFiles/WebServer.dir/Main.cpp.o: WebServer/Server.h +WebServer/CMakeFiles/WebServer.dir/Main.cpp.o: WebServer/Timer.h +WebServer/CMakeFiles/WebServer.dir/Main.cpp.o: WebServer/Util.h +WebServer/CMakeFiles/WebServer.dir/Main.cpp.o: WebServer/base/Condition.h +WebServer/CMakeFiles/WebServer.dir/Main.cpp.o: WebServer/base/CountDownLatch.h +WebServer/CMakeFiles/WebServer.dir/Main.cpp.o: WebServer/base/CurrentThread.h +WebServer/CMakeFiles/WebServer.dir/Main.cpp.o: WebServer/base/LogStream.h +WebServer/CMakeFiles/WebServer.dir/Main.cpp.o: WebServer/base/Logging.h +WebServer/CMakeFiles/WebServer.dir/Main.cpp.o: WebServer/base/MutexLock.h +WebServer/CMakeFiles/WebServer.dir/Main.cpp.o: WebServer/base/Thread.h +WebServer/CMakeFiles/WebServer.dir/Main.cpp.o: WebServer/base/noncopyable.h + +WebServer/CMakeFiles/WebServer.dir/Server.cpp.o: WebServer/Channel.h +WebServer/CMakeFiles/WebServer.dir/Server.cpp.o: WebServer/Epoll.h +WebServer/CMakeFiles/WebServer.dir/Server.cpp.o: WebServer/EventLoop.h +WebServer/CMakeFiles/WebServer.dir/Server.cpp.o: WebServer/EventLoopThread.h +WebServer/CMakeFiles/WebServer.dir/Server.cpp.o: WebServer/EventLoopThreadPool.h +WebServer/CMakeFiles/WebServer.dir/Server.cpp.o: WebServer/HttpData.h +WebServer/CMakeFiles/WebServer.dir/Server.cpp.o: WebServer/Server.cpp +WebServer/CMakeFiles/WebServer.dir/Server.cpp.o: WebServer/Server.h +WebServer/CMakeFiles/WebServer.dir/Server.cpp.o: WebServer/Timer.h +WebServer/CMakeFiles/WebServer.dir/Server.cpp.o: WebServer/Util.h +WebServer/CMakeFiles/WebServer.dir/Server.cpp.o: WebServer/base/Condition.h +WebServer/CMakeFiles/WebServer.dir/Server.cpp.o: WebServer/base/CountDownLatch.h +WebServer/CMakeFiles/WebServer.dir/Server.cpp.o: WebServer/base/CurrentThread.h +WebServer/CMakeFiles/WebServer.dir/Server.cpp.o: WebServer/base/LogStream.h +WebServer/CMakeFiles/WebServer.dir/Server.cpp.o: WebServer/base/Logging.h +WebServer/CMakeFiles/WebServer.dir/Server.cpp.o: WebServer/base/MutexLock.h +WebServer/CMakeFiles/WebServer.dir/Server.cpp.o: WebServer/base/Thread.h +WebServer/CMakeFiles/WebServer.dir/Server.cpp.o: WebServer/base/noncopyable.h + +WebServer/CMakeFiles/WebServer.dir/Timer.cpp.o: WebServer/HttpData.h +WebServer/CMakeFiles/WebServer.dir/Timer.cpp.o: WebServer/Timer.cpp +WebServer/CMakeFiles/WebServer.dir/Timer.cpp.o: WebServer/Timer.h +WebServer/CMakeFiles/WebServer.dir/Timer.cpp.o: WebServer/base/MutexLock.h +WebServer/CMakeFiles/WebServer.dir/Timer.cpp.o: WebServer/base/noncopyable.h + +WebServer/CMakeFiles/WebServer.dir/Util.cpp.o: WebServer/Util.cpp +WebServer/CMakeFiles/WebServer.dir/Util.cpp.o: WebServer/Util.h + diff --git a/WebServer/CMakeFiles/WebServer.dir/flags.make b/WebServer/CMakeFiles/WebServer.dir/flags.make new file mode 100644 index 0000000..cb57489 --- /dev/null +++ b/WebServer/CMakeFiles/WebServer.dir/flags.make @@ -0,0 +1,10 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.16 + +# compile CXX with g++ +CXX_FLAGS = -g -Wall -std=c++11 -D_PTHREADS -Wno-unused-parameter -O0 + +CXX_DEFINES = + +CXX_INCLUDES = -I/my_project/WebServer/base + diff --git a/WebServer/CMakeFiles/WebServer.dir/link.txt b/WebServer/CMakeFiles/WebServer.dir/link.txt new file mode 100644 index 0000000..e65ebf6 --- /dev/null +++ b/WebServer/CMakeFiles/WebServer.dir/link.txt @@ -0,0 +1 @@ +g++ -g -Wall -std=c++11 -D_PTHREADS -Wno-unused-parameter -O0 -rdynamic CMakeFiles/WebServer.dir/Channel.cpp.o CMakeFiles/WebServer.dir/Epoll.cpp.o CMakeFiles/WebServer.dir/EventLoop.cpp.o CMakeFiles/WebServer.dir/EventLoopThread.cpp.o CMakeFiles/WebServer.dir/EventLoopThreadPool.cpp.o CMakeFiles/WebServer.dir/HttpData.cpp.o CMakeFiles/WebServer.dir/Main.cpp.o CMakeFiles/WebServer.dir/Server.cpp.o CMakeFiles/WebServer.dir/Timer.cpp.o CMakeFiles/WebServer.dir/Util.cpp.o -o WebServer base/libserver_base.a -lpthread -lrt diff --git a/WebServer/CMakeFiles/WebServer.dir/progress.make b/WebServer/CMakeFiles/WebServer.dir/progress.make new file mode 100644 index 0000000..e6cbfe3 --- /dev/null +++ b/WebServer/CMakeFiles/WebServer.dir/progress.make @@ -0,0 +1,12 @@ +CMAKE_PROGRESS_1 = 5 +CMAKE_PROGRESS_2 = 6 +CMAKE_PROGRESS_3 = 7 +CMAKE_PROGRESS_4 = 8 +CMAKE_PROGRESS_5 = 9 +CMAKE_PROGRESS_6 = 10 +CMAKE_PROGRESS_7 = 11 +CMAKE_PROGRESS_8 = 12 +CMAKE_PROGRESS_9 = 13 +CMAKE_PROGRESS_10 = 14 +CMAKE_PROGRESS_11 = 15 + diff --git a/WebServer/CMakeFiles/progress.marks b/WebServer/CMakeFiles/progress.marks new file mode 100644 index 0000000..4099407 --- /dev/null +++ b/WebServer/CMakeFiles/progress.marks @@ -0,0 +1 @@ +23 diff --git a/WebServer/Channel.h b/WebServer/Channel.h index c48c77c..f1dfc7d 100755 --- a/WebServer/Channel.h +++ b/WebServer/Channel.h @@ -11,7 +11,10 @@ class EventLoop; class HttpData; - +/** + * @brief 和客户端通信的包装类,和会和一个事件循环关联 + * + */ class Channel { private: typedef std::function CallBack; diff --git a/WebServer/EventLoop.cpp b/WebServer/EventLoop.cpp index a43d01e..5332299 100755 --- a/WebServer/EventLoop.cpp +++ b/WebServer/EventLoop.cpp @@ -36,9 +36,15 @@ EventLoop::EventLoop() t_loopInThisThread = this; } // pwakeupChannel_->setEvents(EPOLLIN | EPOLLET | EPOLLONESHOT); + pwakeupChannel_->setEvents(EPOLLIN | EPOLLET); + + //wakeup channel pwakeupChannel_->setReadHandler(bind(&EventLoop::handleRead, this)); + + pwakeupChannel_->setConnHandler(bind(&EventLoop::handleConn, this)); + poller_->epoll_add(pwakeupChannel_, 0); } @@ -99,8 +105,10 @@ void EventLoop::loop() { while (!quit_) { // cout << "doing" << endl; ret.clear(); + //epoll ,io轮询 ret = poller_->poll(); eventHandling_ = true; + //处理读写事件,交由channel来处理具体的业务,epoll只负责轮询 for (auto& it : ret) it->handleEvents(); eventHandling_ = false; doPendingFunctors(); diff --git a/WebServer/EventLoop.h b/WebServer/EventLoop.h index f712bb9..ccf9d83 100755 --- a/WebServer/EventLoop.h +++ b/WebServer/EventLoop.h @@ -14,19 +14,26 @@ #include using namespace std; - +/** + * @brief 事件循环器,下面使用epoll来实现,还有一些队列的处理 + * + */ class EventLoop { public: typedef std::function Functor; EventLoop(); ~EventLoop(); + //时间循环,poller,也是subreactor void loop(); + void quit(); void runInLoop(Functor&& cb); void queueInLoop(Functor&& cb); bool isInLoopThread() const { return threadId_ == CurrentThread::tid(); } void assertInLoopThread() { assert(isInLoopThread()); } void shutdown(shared_ptr channel) { shutDownWR(channel->getFd()); } + + void removeFromPoller(shared_ptr channel) { // shutDownWR(channel->getFd()); poller_->epoll_del(channel); @@ -41,6 +48,7 @@ class EventLoop { private: // 声明顺序 wakeupFd_ > pwakeupChannel_ bool looping_; + //Epoll的包装类 shared_ptr poller_; int wakeupFd_; bool quit_; diff --git a/WebServer/Main.cpp b/WebServer/Main.cpp index fc76799..c09c7ee 100755 --- a/WebServer/Main.cpp +++ b/WebServer/Main.cpp @@ -9,7 +9,7 @@ int main(int argc, char *argv[]) { int threadNum = 4; - int port = 80; + int port = 8085; std::string logPath = "./WebServer.log"; // parse args @@ -37,14 +37,19 @@ int main(int argc, char *argv[]) { break; } } + Logger::setLogFileName(logPath); // STL库在多线程上应用 #ifndef _PTHREADS LOG << "_PTHREADS is not defined !"; #endif + //创建Eventloop EventLoop mainLoop; + //创建Server Server myHTTPServer(&mainLoop, threadNum, port); + //启动server myHTTPServer.start(); + //main线程运行,防止main退出 mainLoop.loop(); return 0; } diff --git a/WebServer/Makefile b/WebServer/Makefile old mode 100755 new mode 100644 index 0bc2eea..fcb99d6 --- a/WebServer/Makefile +++ b/WebServer/Makefile @@ -1,45 +1,450 @@ -# MAINSOURCE代表含有main入口函数的cpp文件,因为含有测试代码, -# 所以要为多个目标编译,这里把Makefile写的通用了一点, -# 以后加东西Makefile不用做多少改动 -MAINSOURCE := Main.cpp base/tests/LoggingTest.cpp tests/HTTPClient.cpp -# MAINOBJS := $(patsubst %.cpp,%.o,$(MAINSOURCE)) -SOURCE := $(wildcard *.cpp base/*.cpp tests/*.cpp) -override SOURCE := $(filter-out $(MAINSOURCE),$(SOURCE)) -OBJS := $(patsubst %.cpp,%.o,$(SOURCE)) - -TARGET := WebServer -CC := g++ -LIBS := -lpthread -INCLUDE:= -I./usr/local/lib -CFLAGS := -std=c++11 -g -Wall -O3 -D_PTHREADS -CXXFLAGS:= $(CFLAGS) - -# Test object -SUBTARGET1 := LoggingTest -SUBTARGET2 := HTTPClient - -.PHONY : objs clean veryclean rebuild all tests debug -all : $(TARGET) $(SUBTARGET1) $(SUBTARGET2) -objs : $(OBJS) -rebuild: veryclean all - -tests : $(SUBTARGET1) $(SUBTARGET2) -clean : - find . -name '*.o' | xargs rm -f -veryclean : - find . -name '*.o' | xargs rm -f - find . -name $(TARGET) | xargs rm -f - find . -name $(SUBTARGET1) | xargs rm -f - find . -name $(SUBTARGET2) | xargs rm -f -debug: - @echo $(SOURCE) - -$(TARGET) : $(OBJS) Main.o - $(CC) $(CXXFLAGS) -o $@ $^ $(LDFLAGS) $(LIBS) -# $@代表目标,这里是$(TARGET) - -$(SUBTARGET1) : $(OBJS) base/tests/LoggingTest.o - $(CC) $(CXXFLAGS) -o $@ $^ $(LDFLAGS) $(LIBS) - -$(SUBTARGET2) : $(OBJS) tests/HTTPClient.o - $(CC) $(CXXFLAGS) -o $@ $^ $(LDFLAGS) $(LIBS) +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.16 + +# Default target executed when no arguments are given to make. +default_target: all + +.PHONY : default_target + +# Allow only one "make -f Makefile2" at a time, but pass parallelism. +.NOTPARALLEL: + + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + + +# Remove some rules from gmake that .SUFFIXES does not remove. +SUFFIXES = + +.SUFFIXES: .hpux_make_needs_suffix_list + + +# Suppress display of executed commands. +$(VERBOSE).SILENT: + + +# A target that is always out of date. +cmake_force: + +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /usr/bin/cmake + +# The command to remove a file. +RM = /usr/bin/cmake -E remove -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /my_project/WebServer + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /my_project/WebServer + +#============================================================================= +# Targets provided globally by CMake. + +# Special rule for the target rebuild_cache +rebuild_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..." + /usr/bin/cmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : rebuild_cache + +# Special rule for the target rebuild_cache +rebuild_cache/fast: rebuild_cache + +.PHONY : rebuild_cache/fast + +# Special rule for the target edit_cache +edit_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "No interactive CMake dialog available..." + /usr/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available. +.PHONY : edit_cache + +# Special rule for the target edit_cache +edit_cache/fast: edit_cache + +.PHONY : edit_cache/fast + +# The main all target +all: cmake_check_build_system + cd /my_project/WebServer && $(CMAKE_COMMAND) -E cmake_progress_start /my_project/WebServer/CMakeFiles /my_project/WebServer/WebServer/CMakeFiles/progress.marks + cd /my_project/WebServer && $(MAKE) -f CMakeFiles/Makefile2 WebServer/all + $(CMAKE_COMMAND) -E cmake_progress_start /my_project/WebServer/CMakeFiles 0 +.PHONY : all + +# The main clean target +clean: + cd /my_project/WebServer && $(MAKE) -f CMakeFiles/Makefile2 WebServer/clean +.PHONY : clean + +# The main clean target +clean/fast: clean + +.PHONY : clean/fast + +# Prepare targets for installation. +preinstall: all + cd /my_project/WebServer && $(MAKE) -f CMakeFiles/Makefile2 WebServer/preinstall +.PHONY : preinstall + +# Prepare targets for installation. +preinstall/fast: + cd /my_project/WebServer && $(MAKE) -f CMakeFiles/Makefile2 WebServer/preinstall +.PHONY : preinstall/fast + +# clear depends +depend: + cd /my_project/WebServer && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 +.PHONY : depend + +# Convenience name for target. +WebServer/CMakeFiles/WebServer.dir/rule: + cd /my_project/WebServer && $(MAKE) -f CMakeFiles/Makefile2 WebServer/CMakeFiles/WebServer.dir/rule +.PHONY : WebServer/CMakeFiles/WebServer.dir/rule + +# Convenience name for target. +WebServer: WebServer/CMakeFiles/WebServer.dir/rule + +.PHONY : WebServer + +# fast build rule for target. +WebServer/fast: + cd /my_project/WebServer && $(MAKE) -f WebServer/CMakeFiles/WebServer.dir/build.make WebServer/CMakeFiles/WebServer.dir/build +.PHONY : WebServer/fast + +Channel.o: Channel.cpp.o + +.PHONY : Channel.o + +# target to build an object file +Channel.cpp.o: + cd /my_project/WebServer && $(MAKE) -f WebServer/CMakeFiles/WebServer.dir/build.make WebServer/CMakeFiles/WebServer.dir/Channel.cpp.o +.PHONY : Channel.cpp.o + +Channel.i: Channel.cpp.i + +.PHONY : Channel.i + +# target to preprocess a source file +Channel.cpp.i: + cd /my_project/WebServer && $(MAKE) -f WebServer/CMakeFiles/WebServer.dir/build.make WebServer/CMakeFiles/WebServer.dir/Channel.cpp.i +.PHONY : Channel.cpp.i + +Channel.s: Channel.cpp.s + +.PHONY : Channel.s + +# target to generate assembly for a file +Channel.cpp.s: + cd /my_project/WebServer && $(MAKE) -f WebServer/CMakeFiles/WebServer.dir/build.make WebServer/CMakeFiles/WebServer.dir/Channel.cpp.s +.PHONY : Channel.cpp.s + +Epoll.o: Epoll.cpp.o + +.PHONY : Epoll.o + +# target to build an object file +Epoll.cpp.o: + cd /my_project/WebServer && $(MAKE) -f WebServer/CMakeFiles/WebServer.dir/build.make WebServer/CMakeFiles/WebServer.dir/Epoll.cpp.o +.PHONY : Epoll.cpp.o + +Epoll.i: Epoll.cpp.i + +.PHONY : Epoll.i + +# target to preprocess a source file +Epoll.cpp.i: + cd /my_project/WebServer && $(MAKE) -f WebServer/CMakeFiles/WebServer.dir/build.make WebServer/CMakeFiles/WebServer.dir/Epoll.cpp.i +.PHONY : Epoll.cpp.i + +Epoll.s: Epoll.cpp.s + +.PHONY : Epoll.s + +# target to generate assembly for a file +Epoll.cpp.s: + cd /my_project/WebServer && $(MAKE) -f WebServer/CMakeFiles/WebServer.dir/build.make WebServer/CMakeFiles/WebServer.dir/Epoll.cpp.s +.PHONY : Epoll.cpp.s + +EventLoop.o: EventLoop.cpp.o + +.PHONY : EventLoop.o + +# target to build an object file +EventLoop.cpp.o: + cd /my_project/WebServer && $(MAKE) -f WebServer/CMakeFiles/WebServer.dir/build.make WebServer/CMakeFiles/WebServer.dir/EventLoop.cpp.o +.PHONY : EventLoop.cpp.o + +EventLoop.i: EventLoop.cpp.i + +.PHONY : EventLoop.i + +# target to preprocess a source file +EventLoop.cpp.i: + cd /my_project/WebServer && $(MAKE) -f WebServer/CMakeFiles/WebServer.dir/build.make WebServer/CMakeFiles/WebServer.dir/EventLoop.cpp.i +.PHONY : EventLoop.cpp.i + +EventLoop.s: EventLoop.cpp.s + +.PHONY : EventLoop.s + +# target to generate assembly for a file +EventLoop.cpp.s: + cd /my_project/WebServer && $(MAKE) -f WebServer/CMakeFiles/WebServer.dir/build.make WebServer/CMakeFiles/WebServer.dir/EventLoop.cpp.s +.PHONY : EventLoop.cpp.s + +EventLoopThread.o: EventLoopThread.cpp.o + +.PHONY : EventLoopThread.o + +# target to build an object file +EventLoopThread.cpp.o: + cd /my_project/WebServer && $(MAKE) -f WebServer/CMakeFiles/WebServer.dir/build.make WebServer/CMakeFiles/WebServer.dir/EventLoopThread.cpp.o +.PHONY : EventLoopThread.cpp.o + +EventLoopThread.i: EventLoopThread.cpp.i + +.PHONY : EventLoopThread.i + +# target to preprocess a source file +EventLoopThread.cpp.i: + cd /my_project/WebServer && $(MAKE) -f WebServer/CMakeFiles/WebServer.dir/build.make WebServer/CMakeFiles/WebServer.dir/EventLoopThread.cpp.i +.PHONY : EventLoopThread.cpp.i + +EventLoopThread.s: EventLoopThread.cpp.s + +.PHONY : EventLoopThread.s + +# target to generate assembly for a file +EventLoopThread.cpp.s: + cd /my_project/WebServer && $(MAKE) -f WebServer/CMakeFiles/WebServer.dir/build.make WebServer/CMakeFiles/WebServer.dir/EventLoopThread.cpp.s +.PHONY : EventLoopThread.cpp.s + +EventLoopThreadPool.o: EventLoopThreadPool.cpp.o + +.PHONY : EventLoopThreadPool.o + +# target to build an object file +EventLoopThreadPool.cpp.o: + cd /my_project/WebServer && $(MAKE) -f WebServer/CMakeFiles/WebServer.dir/build.make WebServer/CMakeFiles/WebServer.dir/EventLoopThreadPool.cpp.o +.PHONY : EventLoopThreadPool.cpp.o + +EventLoopThreadPool.i: EventLoopThreadPool.cpp.i + +.PHONY : EventLoopThreadPool.i + +# target to preprocess a source file +EventLoopThreadPool.cpp.i: + cd /my_project/WebServer && $(MAKE) -f WebServer/CMakeFiles/WebServer.dir/build.make WebServer/CMakeFiles/WebServer.dir/EventLoopThreadPool.cpp.i +.PHONY : EventLoopThreadPool.cpp.i + +EventLoopThreadPool.s: EventLoopThreadPool.cpp.s + +.PHONY : EventLoopThreadPool.s + +# target to generate assembly for a file +EventLoopThreadPool.cpp.s: + cd /my_project/WebServer && $(MAKE) -f WebServer/CMakeFiles/WebServer.dir/build.make WebServer/CMakeFiles/WebServer.dir/EventLoopThreadPool.cpp.s +.PHONY : EventLoopThreadPool.cpp.s + +HttpData.o: HttpData.cpp.o + +.PHONY : HttpData.o + +# target to build an object file +HttpData.cpp.o: + cd /my_project/WebServer && $(MAKE) -f WebServer/CMakeFiles/WebServer.dir/build.make WebServer/CMakeFiles/WebServer.dir/HttpData.cpp.o +.PHONY : HttpData.cpp.o + +HttpData.i: HttpData.cpp.i + +.PHONY : HttpData.i + +# target to preprocess a source file +HttpData.cpp.i: + cd /my_project/WebServer && $(MAKE) -f WebServer/CMakeFiles/WebServer.dir/build.make WebServer/CMakeFiles/WebServer.dir/HttpData.cpp.i +.PHONY : HttpData.cpp.i + +HttpData.s: HttpData.cpp.s + +.PHONY : HttpData.s + +# target to generate assembly for a file +HttpData.cpp.s: + cd /my_project/WebServer && $(MAKE) -f WebServer/CMakeFiles/WebServer.dir/build.make WebServer/CMakeFiles/WebServer.dir/HttpData.cpp.s +.PHONY : HttpData.cpp.s + +Main.o: Main.cpp.o + +.PHONY : Main.o + +# target to build an object file +Main.cpp.o: + cd /my_project/WebServer && $(MAKE) -f WebServer/CMakeFiles/WebServer.dir/build.make WebServer/CMakeFiles/WebServer.dir/Main.cpp.o +.PHONY : Main.cpp.o + +Main.i: Main.cpp.i + +.PHONY : Main.i + +# target to preprocess a source file +Main.cpp.i: + cd /my_project/WebServer && $(MAKE) -f WebServer/CMakeFiles/WebServer.dir/build.make WebServer/CMakeFiles/WebServer.dir/Main.cpp.i +.PHONY : Main.cpp.i + +Main.s: Main.cpp.s + +.PHONY : Main.s + +# target to generate assembly for a file +Main.cpp.s: + cd /my_project/WebServer && $(MAKE) -f WebServer/CMakeFiles/WebServer.dir/build.make WebServer/CMakeFiles/WebServer.dir/Main.cpp.s +.PHONY : Main.cpp.s + +Server.o: Server.cpp.o + +.PHONY : Server.o + +# target to build an object file +Server.cpp.o: + cd /my_project/WebServer && $(MAKE) -f WebServer/CMakeFiles/WebServer.dir/build.make WebServer/CMakeFiles/WebServer.dir/Server.cpp.o +.PHONY : Server.cpp.o + +Server.i: Server.cpp.i + +.PHONY : Server.i + +# target to preprocess a source file +Server.cpp.i: + cd /my_project/WebServer && $(MAKE) -f WebServer/CMakeFiles/WebServer.dir/build.make WebServer/CMakeFiles/WebServer.dir/Server.cpp.i +.PHONY : Server.cpp.i + +Server.s: Server.cpp.s + +.PHONY : Server.s + +# target to generate assembly for a file +Server.cpp.s: + cd /my_project/WebServer && $(MAKE) -f WebServer/CMakeFiles/WebServer.dir/build.make WebServer/CMakeFiles/WebServer.dir/Server.cpp.s +.PHONY : Server.cpp.s + +Timer.o: Timer.cpp.o + +.PHONY : Timer.o + +# target to build an object file +Timer.cpp.o: + cd /my_project/WebServer && $(MAKE) -f WebServer/CMakeFiles/WebServer.dir/build.make WebServer/CMakeFiles/WebServer.dir/Timer.cpp.o +.PHONY : Timer.cpp.o + +Timer.i: Timer.cpp.i + +.PHONY : Timer.i + +# target to preprocess a source file +Timer.cpp.i: + cd /my_project/WebServer && $(MAKE) -f WebServer/CMakeFiles/WebServer.dir/build.make WebServer/CMakeFiles/WebServer.dir/Timer.cpp.i +.PHONY : Timer.cpp.i + +Timer.s: Timer.cpp.s + +.PHONY : Timer.s + +# target to generate assembly for a file +Timer.cpp.s: + cd /my_project/WebServer && $(MAKE) -f WebServer/CMakeFiles/WebServer.dir/build.make WebServer/CMakeFiles/WebServer.dir/Timer.cpp.s +.PHONY : Timer.cpp.s + +Util.o: Util.cpp.o + +.PHONY : Util.o + +# target to build an object file +Util.cpp.o: + cd /my_project/WebServer && $(MAKE) -f WebServer/CMakeFiles/WebServer.dir/build.make WebServer/CMakeFiles/WebServer.dir/Util.cpp.o +.PHONY : Util.cpp.o + +Util.i: Util.cpp.i + +.PHONY : Util.i + +# target to preprocess a source file +Util.cpp.i: + cd /my_project/WebServer && $(MAKE) -f WebServer/CMakeFiles/WebServer.dir/build.make WebServer/CMakeFiles/WebServer.dir/Util.cpp.i +.PHONY : Util.cpp.i + +Util.s: Util.cpp.s + +.PHONY : Util.s + +# target to generate assembly for a file +Util.cpp.s: + cd /my_project/WebServer && $(MAKE) -f WebServer/CMakeFiles/WebServer.dir/build.make WebServer/CMakeFiles/WebServer.dir/Util.cpp.s +.PHONY : Util.cpp.s + +# Help Target +help: + @echo "The following are some of the valid targets for this Makefile:" + @echo "... all (the default if no target is provided)" + @echo "... clean" + @echo "... depend" + @echo "... rebuild_cache" + @echo "... edit_cache" + @echo "... WebServer" + @echo "... Channel.o" + @echo "... Channel.i" + @echo "... Channel.s" + @echo "... Epoll.o" + @echo "... Epoll.i" + @echo "... Epoll.s" + @echo "... EventLoop.o" + @echo "... EventLoop.i" + @echo "... EventLoop.s" + @echo "... EventLoopThread.o" + @echo "... EventLoopThread.i" + @echo "... EventLoopThread.s" + @echo "... EventLoopThreadPool.o" + @echo "... EventLoopThreadPool.i" + @echo "... EventLoopThreadPool.s" + @echo "... HttpData.o" + @echo "... HttpData.i" + @echo "... HttpData.s" + @echo "... Main.o" + @echo "... Main.i" + @echo "... Main.s" + @echo "... Server.o" + @echo "... Server.i" + @echo "... Server.s" + @echo "... Timer.o" + @echo "... Timer.i" + @echo "... Timer.s" + @echo "... Util.o" + @echo "... Util.i" + @echo "... Util.s" +.PHONY : help + + + +#============================================================================= +# Special targets to cleanup operation of make. + +# Special rule to run CMake to check the build system integrity. +# No rule that depends on this can have commands that come from listfiles +# because they might be regenerated. +cmake_check_build_system: + cd /my_project/WebServer && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 +.PHONY : cmake_check_build_system + diff --git a/WebServer/Server.cpp b/WebServer/Server.cpp index 5f39a95..158e178 100755 --- a/WebServer/Server.cpp +++ b/WebServer/Server.cpp @@ -13,6 +13,7 @@ Server::Server(EventLoop *loop, int threadNum, int port) threadNum_(threadNum), eventLoopThreadPool_(new EventLoopThreadPool(loop_, threadNum)), started_(false), + //acceptor,main reactor acceptChannel_(new Channel(loop_)), port_(port), listenFd_(socket_bind_listen(port_)) { @@ -28,9 +29,15 @@ void Server::start() { eventLoopThreadPool_->start(); // acceptChannel_->setEvents(EPOLLIN | EPOLLET | EPOLLONESHOT); acceptChannel_->setEvents(EPOLLIN | EPOLLET); + //有new connection 进来 acceptChannel_->setReadHandler(bind(&Server::handNewConn, this)); + + //处理当前连接 acceptChannel_->setConnHandler(bind(&Server::handThisConn, this)); + + //poller 表示epoll , io多路复用 loop_->addToPoller(acceptChannel_, 0); + //运行变量 started_ = true; } @@ -39,8 +46,10 @@ void Server::handNewConn() { memset(&client_addr, 0, sizeof(struct sockaddr_in)); socklen_t client_addr_len = sizeof(client_addr); int accept_fd = 0; + //socket编程,接受连接 while ((accept_fd = accept(listenFd_, (struct sockaddr *)&client_addr, &client_addr_len)) > 0) { + //在线程池中取一个事件循环器 EventLoop *loop = eventLoopThreadPool_->getNextLoop(); LOG << "New connection from " << inet_ntoa(client_addr.sin_addr) << ":" << ntohs(client_addr.sin_port); @@ -71,6 +80,7 @@ void Server::handNewConn() { shared_ptr req_info(new HttpData(loop, accept_fd)); req_info->getChannel()->setHolder(req_info); + //加入这个事件循环中 loop->queueInLoop(std::bind(&HttpData::newEvent, req_info)); } acceptChannel_->setEvents(EPOLLIN | EPOLLET); diff --git a/WebServer/Server.h b/WebServer/Server.h index 57f8f74..325f1b8 100755 --- a/WebServer/Server.h +++ b/WebServer/Server.h @@ -5,7 +5,10 @@ #include "Channel.h" #include "EventLoop.h" #include "EventLoopThreadPool.h" - +/** + * @brief server 包装类 + * + */ class Server { public: Server(EventLoop *loop, int threadNum, int port); @@ -16,11 +19,17 @@ class Server { void handThisConn() { loop_->updatePoller(acceptChannel_); } private: + //主线程事件轮询,和accept Channel_关联 EventLoop *loop_; + int threadNum_; + std::unique_ptr eventLoopThreadPool_; + bool started_; + //main reactor std::shared_ptr acceptChannel_; + int port_; int listenFd_; static const int MAXFDS = 100000; diff --git a/WebServer/WebServer b/WebServer/WebServer new file mode 100755 index 0000000..60d84ee Binary files /dev/null and b/WebServer/WebServer differ diff --git a/WebServer/WebServer.log b/WebServer/WebServer.log new file mode 100644 index 0000000..e2d743b --- /dev/null +++ b/WebServer/WebServer.log @@ -0,0 +1,2 @@ +2022-09-02 17:59:17 +New connection from 127.0.0.1:53342 -- /my_project/WebServer/WebServer/Server.cpp:45 diff --git a/WebServer/base/CMakeFiles/CMakeDirectoryInformation.cmake b/WebServer/base/CMakeFiles/CMakeDirectoryInformation.cmake new file mode 100644 index 0000000..b61e7c8 --- /dev/null +++ b/WebServer/base/CMakeFiles/CMakeDirectoryInformation.cmake @@ -0,0 +1,16 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.16 + +# Relative path conversion top directories. +set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/my_project/WebServer") +set(CMAKE_RELATIVE_PATH_TOP_BINARY "/my_project/WebServer") + +# Force unix paths in dependencies. +set(CMAKE_FORCE_UNIX_PATHS 1) + + +# The C and CXX include file regular expressions for this directory. +set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") +set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") +set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) +set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) diff --git a/WebServer/base/CMakeFiles/libserver_base.dir/CXX.includecache b/WebServer/base/CMakeFiles/libserver_base.dir/CXX.includecache new file mode 100644 index 0000000..67a538e --- /dev/null +++ b/WebServer/base/CMakeFiles/libserver_base.dir/CXX.includecache @@ -0,0 +1,228 @@ +#IncludeRegexLine: ^[ ]*[#%][ ]*(include|import)[ ]*[<"]([^">]+)([">]) + +#IncludeRegexScan: ^.*$ + +#IncludeRegexComplain: ^$ + +#IncludeRegexTransform: + +/my_project/WebServer/WebServer/base/AsyncLogging.cpp +AsyncLogging.h +/my_project/WebServer/WebServer/base/AsyncLogging.h +assert.h +- +stdio.h +- +unistd.h +- +functional +- +LogFile.h +/my_project/WebServer/WebServer/base/LogFile.h + +/my_project/WebServer/WebServer/base/AsyncLogging.h +functional +- +string +- +vector +- +CountDownLatch.h +/my_project/WebServer/WebServer/base/CountDownLatch.h +LogStream.h +/my_project/WebServer/WebServer/base/LogStream.h +MutexLock.h +/my_project/WebServer/WebServer/base/MutexLock.h +Thread.h +/my_project/WebServer/WebServer/base/Thread.h +noncopyable.h +/my_project/WebServer/WebServer/base/noncopyable.h + +/my_project/WebServer/WebServer/base/Condition.h +errno.h +- +pthread.h +- +pthread.h +- +time.h +- +cstdint +- +MutexLock.h +/my_project/WebServer/WebServer/base/MutexLock.h +noncopyable.h +/my_project/WebServer/WebServer/base/noncopyable.h + +/my_project/WebServer/WebServer/base/CountDownLatch.cpp +CountDownLatch.h +/my_project/WebServer/WebServer/base/CountDownLatch.h + +/my_project/WebServer/WebServer/base/CountDownLatch.h +Condition.h +/my_project/WebServer/WebServer/base/Condition.h +MutexLock.h +/my_project/WebServer/WebServer/base/MutexLock.h +noncopyable.h +/my_project/WebServer/WebServer/base/noncopyable.h + +/my_project/WebServer/WebServer/base/CurrentThread.h +stdint.h +- + +/my_project/WebServer/WebServer/base/FileUtil.cpp +FileUtil.h +/my_project/WebServer/WebServer/base/FileUtil.h +assert.h +- +errno.h +- +fcntl.h +- +stdio.h +- +sys/stat.h +- +unistd.h +- + +/my_project/WebServer/WebServer/base/FileUtil.h +string +- +noncopyable.h +/my_project/WebServer/WebServer/base/noncopyable.h + +/my_project/WebServer/WebServer/base/LogFile.cpp +LogFile.h +/my_project/WebServer/WebServer/base/LogFile.h +assert.h +- +stdio.h +- +time.h +- +FileUtil.h +/my_project/WebServer/WebServer/base/FileUtil.h + +/my_project/WebServer/WebServer/base/LogFile.h +memory +- +string +- +FileUtil.h +/my_project/WebServer/WebServer/base/FileUtil.h +MutexLock.h +/my_project/WebServer/WebServer/base/MutexLock.h +noncopyable.h +/my_project/WebServer/WebServer/base/noncopyable.h + +/my_project/WebServer/WebServer/base/LogStream.cpp +LogStream.h +/my_project/WebServer/WebServer/base/LogStream.h +assert.h +- +stdint.h +- +stdio.h +- +string.h +- +algorithm +- +limits +- + +/my_project/WebServer/WebServer/base/LogStream.h +assert.h +- +string.h +- +string +- +noncopyable.h +/my_project/WebServer/WebServer/base/noncopyable.h + +/my_project/WebServer/WebServer/base/Logging.cpp +Logging.h +/my_project/WebServer/WebServer/base/Logging.h +CurrentThread.h +/my_project/WebServer/WebServer/base/CurrentThread.h +Thread.h +/my_project/WebServer/WebServer/base/Thread.h +AsyncLogging.h +/my_project/WebServer/WebServer/base/AsyncLogging.h +assert.h +- +iostream +- +time.h +- +sys/time.h +- + +/my_project/WebServer/WebServer/base/Logging.h +pthread.h +- +stdio.h +- +string.h +- +string +- +LogStream.h +/my_project/WebServer/WebServer/base/LogStream.h + +/my_project/WebServer/WebServer/base/MutexLock.h +pthread.h +- +cstdio +- +noncopyable.h +/my_project/WebServer/WebServer/base/noncopyable.h + +/my_project/WebServer/WebServer/base/Thread.cpp +Thread.h +/my_project/WebServer/WebServer/base/Thread.h +assert.h +- +errno.h +- +linux/unistd.h +- +stdint.h +- +stdio.h +- +sys/prctl.h +- +sys/types.h +- +unistd.h +- +memory +- +CurrentThread.h +/my_project/WebServer/WebServer/base/CurrentThread.h +iostream +- + +/my_project/WebServer/WebServer/base/Thread.h +pthread.h +- +sys/syscall.h +- +unistd.h +- +functional +- +memory +- +string +- +CountDownLatch.h +/my_project/WebServer/WebServer/base/CountDownLatch.h +noncopyable.h +/my_project/WebServer/WebServer/base/noncopyable.h + +/my_project/WebServer/WebServer/base/noncopyable.h + diff --git a/WebServer/base/CMakeFiles/libserver_base.dir/DependInfo.cmake b/WebServer/base/CMakeFiles/libserver_base.dir/DependInfo.cmake new file mode 100644 index 0000000..349d0a6 --- /dev/null +++ b/WebServer/base/CMakeFiles/libserver_base.dir/DependInfo.cmake @@ -0,0 +1,27 @@ +# The set of languages for which implicit dependencies are needed: +set(CMAKE_DEPENDS_LANGUAGES + "CXX" + ) +# The set of files for implicit dependencies of each language: +set(CMAKE_DEPENDS_CHECK_CXX + "/my_project/WebServer/WebServer/base/AsyncLogging.cpp" "/my_project/WebServer/WebServer/base/CMakeFiles/libserver_base.dir/AsyncLogging.cpp.o" + "/my_project/WebServer/WebServer/base/CountDownLatch.cpp" "/my_project/WebServer/WebServer/base/CMakeFiles/libserver_base.dir/CountDownLatch.cpp.o" + "/my_project/WebServer/WebServer/base/FileUtil.cpp" "/my_project/WebServer/WebServer/base/CMakeFiles/libserver_base.dir/FileUtil.cpp.o" + "/my_project/WebServer/WebServer/base/LogFile.cpp" "/my_project/WebServer/WebServer/base/CMakeFiles/libserver_base.dir/LogFile.cpp.o" + "/my_project/WebServer/WebServer/base/LogStream.cpp" "/my_project/WebServer/WebServer/base/CMakeFiles/libserver_base.dir/LogStream.cpp.o" + "/my_project/WebServer/WebServer/base/Logging.cpp" "/my_project/WebServer/WebServer/base/CMakeFiles/libserver_base.dir/Logging.cpp.o" + "/my_project/WebServer/WebServer/base/Thread.cpp" "/my_project/WebServer/WebServer/base/CMakeFiles/libserver_base.dir/Thread.cpp.o" + ) +set(CMAKE_CXX_COMPILER_ID "GNU") + +# The include file search paths: +set(CMAKE_CXX_TARGET_INCLUDE_PATH + "base" + ) + +# Targets to which this target links. +set(CMAKE_TARGET_LINKED_INFO_FILES + ) + +# Fortran module output directory. +set(CMAKE_Fortran_TARGET_MODULE_DIR "") diff --git a/WebServer/base/CMakeFiles/libserver_base.dir/build.make b/WebServer/base/CMakeFiles/libserver_base.dir/build.make new file mode 100644 index 0000000..7a2a6fe --- /dev/null +++ b/WebServer/base/CMakeFiles/libserver_base.dir/build.make @@ -0,0 +1,189 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.16 + +# Delete rule output on recipe failure. +.DELETE_ON_ERROR: + + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + + +# Remove some rules from gmake that .SUFFIXES does not remove. +SUFFIXES = + +.SUFFIXES: .hpux_make_needs_suffix_list + + +# Suppress display of executed commands. +$(VERBOSE).SILENT: + + +# A target that is always out of date. +cmake_force: + +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /usr/bin/cmake + +# The command to remove a file. +RM = /usr/bin/cmake -E remove -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /my_project/WebServer + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /my_project/WebServer + +# Include any dependencies generated for this target. +include WebServer/base/CMakeFiles/libserver_base.dir/depend.make + +# Include the progress variables for this target. +include WebServer/base/CMakeFiles/libserver_base.dir/progress.make + +# Include the compile flags for this target's objects. +include WebServer/base/CMakeFiles/libserver_base.dir/flags.make + +WebServer/base/CMakeFiles/libserver_base.dir/AsyncLogging.cpp.o: WebServer/base/CMakeFiles/libserver_base.dir/flags.make +WebServer/base/CMakeFiles/libserver_base.dir/AsyncLogging.cpp.o: WebServer/base/AsyncLogging.cpp + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/my_project/WebServer/CMakeFiles --progress-num=$(CMAKE_PROGRESS_1) "Building CXX object WebServer/base/CMakeFiles/libserver_base.dir/AsyncLogging.cpp.o" + cd /my_project/WebServer/WebServer/base && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/libserver_base.dir/AsyncLogging.cpp.o -c /my_project/WebServer/WebServer/base/AsyncLogging.cpp + +WebServer/base/CMakeFiles/libserver_base.dir/AsyncLogging.cpp.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/libserver_base.dir/AsyncLogging.cpp.i" + cd /my_project/WebServer/WebServer/base && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /my_project/WebServer/WebServer/base/AsyncLogging.cpp > CMakeFiles/libserver_base.dir/AsyncLogging.cpp.i + +WebServer/base/CMakeFiles/libserver_base.dir/AsyncLogging.cpp.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/libserver_base.dir/AsyncLogging.cpp.s" + cd /my_project/WebServer/WebServer/base && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /my_project/WebServer/WebServer/base/AsyncLogging.cpp -o CMakeFiles/libserver_base.dir/AsyncLogging.cpp.s + +WebServer/base/CMakeFiles/libserver_base.dir/CountDownLatch.cpp.o: WebServer/base/CMakeFiles/libserver_base.dir/flags.make +WebServer/base/CMakeFiles/libserver_base.dir/CountDownLatch.cpp.o: WebServer/base/CountDownLatch.cpp + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/my_project/WebServer/CMakeFiles --progress-num=$(CMAKE_PROGRESS_2) "Building CXX object WebServer/base/CMakeFiles/libserver_base.dir/CountDownLatch.cpp.o" + cd /my_project/WebServer/WebServer/base && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/libserver_base.dir/CountDownLatch.cpp.o -c /my_project/WebServer/WebServer/base/CountDownLatch.cpp + +WebServer/base/CMakeFiles/libserver_base.dir/CountDownLatch.cpp.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/libserver_base.dir/CountDownLatch.cpp.i" + cd /my_project/WebServer/WebServer/base && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /my_project/WebServer/WebServer/base/CountDownLatch.cpp > CMakeFiles/libserver_base.dir/CountDownLatch.cpp.i + +WebServer/base/CMakeFiles/libserver_base.dir/CountDownLatch.cpp.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/libserver_base.dir/CountDownLatch.cpp.s" + cd /my_project/WebServer/WebServer/base && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /my_project/WebServer/WebServer/base/CountDownLatch.cpp -o CMakeFiles/libserver_base.dir/CountDownLatch.cpp.s + +WebServer/base/CMakeFiles/libserver_base.dir/FileUtil.cpp.o: WebServer/base/CMakeFiles/libserver_base.dir/flags.make +WebServer/base/CMakeFiles/libserver_base.dir/FileUtil.cpp.o: WebServer/base/FileUtil.cpp + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/my_project/WebServer/CMakeFiles --progress-num=$(CMAKE_PROGRESS_3) "Building CXX object WebServer/base/CMakeFiles/libserver_base.dir/FileUtil.cpp.o" + cd /my_project/WebServer/WebServer/base && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/libserver_base.dir/FileUtil.cpp.o -c /my_project/WebServer/WebServer/base/FileUtil.cpp + +WebServer/base/CMakeFiles/libserver_base.dir/FileUtil.cpp.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/libserver_base.dir/FileUtil.cpp.i" + cd /my_project/WebServer/WebServer/base && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /my_project/WebServer/WebServer/base/FileUtil.cpp > CMakeFiles/libserver_base.dir/FileUtil.cpp.i + +WebServer/base/CMakeFiles/libserver_base.dir/FileUtil.cpp.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/libserver_base.dir/FileUtil.cpp.s" + cd /my_project/WebServer/WebServer/base && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /my_project/WebServer/WebServer/base/FileUtil.cpp -o CMakeFiles/libserver_base.dir/FileUtil.cpp.s + +WebServer/base/CMakeFiles/libserver_base.dir/LogFile.cpp.o: WebServer/base/CMakeFiles/libserver_base.dir/flags.make +WebServer/base/CMakeFiles/libserver_base.dir/LogFile.cpp.o: WebServer/base/LogFile.cpp + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/my_project/WebServer/CMakeFiles --progress-num=$(CMAKE_PROGRESS_4) "Building CXX object WebServer/base/CMakeFiles/libserver_base.dir/LogFile.cpp.o" + cd /my_project/WebServer/WebServer/base && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/libserver_base.dir/LogFile.cpp.o -c /my_project/WebServer/WebServer/base/LogFile.cpp + +WebServer/base/CMakeFiles/libserver_base.dir/LogFile.cpp.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/libserver_base.dir/LogFile.cpp.i" + cd /my_project/WebServer/WebServer/base && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /my_project/WebServer/WebServer/base/LogFile.cpp > CMakeFiles/libserver_base.dir/LogFile.cpp.i + +WebServer/base/CMakeFiles/libserver_base.dir/LogFile.cpp.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/libserver_base.dir/LogFile.cpp.s" + cd /my_project/WebServer/WebServer/base && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /my_project/WebServer/WebServer/base/LogFile.cpp -o CMakeFiles/libserver_base.dir/LogFile.cpp.s + +WebServer/base/CMakeFiles/libserver_base.dir/Logging.cpp.o: WebServer/base/CMakeFiles/libserver_base.dir/flags.make +WebServer/base/CMakeFiles/libserver_base.dir/Logging.cpp.o: WebServer/base/Logging.cpp + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/my_project/WebServer/CMakeFiles --progress-num=$(CMAKE_PROGRESS_5) "Building CXX object WebServer/base/CMakeFiles/libserver_base.dir/Logging.cpp.o" + cd /my_project/WebServer/WebServer/base && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/libserver_base.dir/Logging.cpp.o -c /my_project/WebServer/WebServer/base/Logging.cpp + +WebServer/base/CMakeFiles/libserver_base.dir/Logging.cpp.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/libserver_base.dir/Logging.cpp.i" + cd /my_project/WebServer/WebServer/base && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /my_project/WebServer/WebServer/base/Logging.cpp > CMakeFiles/libserver_base.dir/Logging.cpp.i + +WebServer/base/CMakeFiles/libserver_base.dir/Logging.cpp.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/libserver_base.dir/Logging.cpp.s" + cd /my_project/WebServer/WebServer/base && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /my_project/WebServer/WebServer/base/Logging.cpp -o CMakeFiles/libserver_base.dir/Logging.cpp.s + +WebServer/base/CMakeFiles/libserver_base.dir/LogStream.cpp.o: WebServer/base/CMakeFiles/libserver_base.dir/flags.make +WebServer/base/CMakeFiles/libserver_base.dir/LogStream.cpp.o: WebServer/base/LogStream.cpp + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/my_project/WebServer/CMakeFiles --progress-num=$(CMAKE_PROGRESS_6) "Building CXX object WebServer/base/CMakeFiles/libserver_base.dir/LogStream.cpp.o" + cd /my_project/WebServer/WebServer/base && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/libserver_base.dir/LogStream.cpp.o -c /my_project/WebServer/WebServer/base/LogStream.cpp + +WebServer/base/CMakeFiles/libserver_base.dir/LogStream.cpp.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/libserver_base.dir/LogStream.cpp.i" + cd /my_project/WebServer/WebServer/base && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /my_project/WebServer/WebServer/base/LogStream.cpp > CMakeFiles/libserver_base.dir/LogStream.cpp.i + +WebServer/base/CMakeFiles/libserver_base.dir/LogStream.cpp.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/libserver_base.dir/LogStream.cpp.s" + cd /my_project/WebServer/WebServer/base && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /my_project/WebServer/WebServer/base/LogStream.cpp -o CMakeFiles/libserver_base.dir/LogStream.cpp.s + +WebServer/base/CMakeFiles/libserver_base.dir/Thread.cpp.o: WebServer/base/CMakeFiles/libserver_base.dir/flags.make +WebServer/base/CMakeFiles/libserver_base.dir/Thread.cpp.o: WebServer/base/Thread.cpp + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/my_project/WebServer/CMakeFiles --progress-num=$(CMAKE_PROGRESS_7) "Building CXX object WebServer/base/CMakeFiles/libserver_base.dir/Thread.cpp.o" + cd /my_project/WebServer/WebServer/base && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/libserver_base.dir/Thread.cpp.o -c /my_project/WebServer/WebServer/base/Thread.cpp + +WebServer/base/CMakeFiles/libserver_base.dir/Thread.cpp.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/libserver_base.dir/Thread.cpp.i" + cd /my_project/WebServer/WebServer/base && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /my_project/WebServer/WebServer/base/Thread.cpp > CMakeFiles/libserver_base.dir/Thread.cpp.i + +WebServer/base/CMakeFiles/libserver_base.dir/Thread.cpp.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/libserver_base.dir/Thread.cpp.s" + cd /my_project/WebServer/WebServer/base && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /my_project/WebServer/WebServer/base/Thread.cpp -o CMakeFiles/libserver_base.dir/Thread.cpp.s + +# Object files for target libserver_base +libserver_base_OBJECTS = \ +"CMakeFiles/libserver_base.dir/AsyncLogging.cpp.o" \ +"CMakeFiles/libserver_base.dir/CountDownLatch.cpp.o" \ +"CMakeFiles/libserver_base.dir/FileUtil.cpp.o" \ +"CMakeFiles/libserver_base.dir/LogFile.cpp.o" \ +"CMakeFiles/libserver_base.dir/Logging.cpp.o" \ +"CMakeFiles/libserver_base.dir/LogStream.cpp.o" \ +"CMakeFiles/libserver_base.dir/Thread.cpp.o" + +# External object files for target libserver_base +libserver_base_EXTERNAL_OBJECTS = + +WebServer/base/libserver_base.a: WebServer/base/CMakeFiles/libserver_base.dir/AsyncLogging.cpp.o +WebServer/base/libserver_base.a: WebServer/base/CMakeFiles/libserver_base.dir/CountDownLatch.cpp.o +WebServer/base/libserver_base.a: WebServer/base/CMakeFiles/libserver_base.dir/FileUtil.cpp.o +WebServer/base/libserver_base.a: WebServer/base/CMakeFiles/libserver_base.dir/LogFile.cpp.o +WebServer/base/libserver_base.a: WebServer/base/CMakeFiles/libserver_base.dir/Logging.cpp.o +WebServer/base/libserver_base.a: WebServer/base/CMakeFiles/libserver_base.dir/LogStream.cpp.o +WebServer/base/libserver_base.a: WebServer/base/CMakeFiles/libserver_base.dir/Thread.cpp.o +WebServer/base/libserver_base.a: WebServer/base/CMakeFiles/libserver_base.dir/build.make +WebServer/base/libserver_base.a: WebServer/base/CMakeFiles/libserver_base.dir/link.txt + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --bold --progress-dir=/my_project/WebServer/CMakeFiles --progress-num=$(CMAKE_PROGRESS_8) "Linking CXX static library libserver_base.a" + cd /my_project/WebServer/WebServer/base && $(CMAKE_COMMAND) -P CMakeFiles/libserver_base.dir/cmake_clean_target.cmake + cd /my_project/WebServer/WebServer/base && $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/libserver_base.dir/link.txt --verbose=$(VERBOSE) + +# Rule to build all files generated by this target. +WebServer/base/CMakeFiles/libserver_base.dir/build: WebServer/base/libserver_base.a + +.PHONY : WebServer/base/CMakeFiles/libserver_base.dir/build + +WebServer/base/CMakeFiles/libserver_base.dir/clean: + cd /my_project/WebServer/WebServer/base && $(CMAKE_COMMAND) -P CMakeFiles/libserver_base.dir/cmake_clean.cmake +.PHONY : WebServer/base/CMakeFiles/libserver_base.dir/clean + +WebServer/base/CMakeFiles/libserver_base.dir/depend: + cd /my_project/WebServer && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /my_project/WebServer /my_project/WebServer/WebServer/base /my_project/WebServer /my_project/WebServer/WebServer/base /my_project/WebServer/WebServer/base/CMakeFiles/libserver_base.dir/DependInfo.cmake --color=$(COLOR) +.PHONY : WebServer/base/CMakeFiles/libserver_base.dir/depend + diff --git a/WebServer/base/CMakeFiles/libserver_base.dir/cmake_clean.cmake b/WebServer/base/CMakeFiles/libserver_base.dir/cmake_clean.cmake new file mode 100644 index 0000000..b1d5cc0 --- /dev/null +++ b/WebServer/base/CMakeFiles/libserver_base.dir/cmake_clean.cmake @@ -0,0 +1,16 @@ +file(REMOVE_RECURSE + "CMakeFiles/libserver_base.dir/AsyncLogging.cpp.o" + "CMakeFiles/libserver_base.dir/CountDownLatch.cpp.o" + "CMakeFiles/libserver_base.dir/FileUtil.cpp.o" + "CMakeFiles/libserver_base.dir/LogFile.cpp.o" + "CMakeFiles/libserver_base.dir/LogStream.cpp.o" + "CMakeFiles/libserver_base.dir/Logging.cpp.o" + "CMakeFiles/libserver_base.dir/Thread.cpp.o" + "libserver_base.a" + "libserver_base.pdb" +) + +# Per-language clean rules from dependency scanning. +foreach(lang CXX) + include(CMakeFiles/libserver_base.dir/cmake_clean_${lang}.cmake OPTIONAL) +endforeach() diff --git a/WebServer/base/CMakeFiles/libserver_base.dir/cmake_clean_target.cmake b/WebServer/base/CMakeFiles/libserver_base.dir/cmake_clean_target.cmake new file mode 100644 index 0000000..a733ac6 --- /dev/null +++ b/WebServer/base/CMakeFiles/libserver_base.dir/cmake_clean_target.cmake @@ -0,0 +1,3 @@ +file(REMOVE_RECURSE + "libserver_base.a" +) diff --git a/WebServer/base/CMakeFiles/libserver_base.dir/depend.internal b/WebServer/base/CMakeFiles/libserver_base.dir/depend.internal new file mode 100644 index 0000000..9373380 --- /dev/null +++ b/WebServer/base/CMakeFiles/libserver_base.dir/depend.internal @@ -0,0 +1,53 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.16 + +WebServer/base/CMakeFiles/libserver_base.dir/AsyncLogging.cpp.o + /my_project/WebServer/WebServer/base/AsyncLogging.cpp + /my_project/WebServer/WebServer/base/AsyncLogging.h + /my_project/WebServer/WebServer/base/Condition.h + /my_project/WebServer/WebServer/base/CountDownLatch.h + /my_project/WebServer/WebServer/base/FileUtil.h + /my_project/WebServer/WebServer/base/LogFile.h + /my_project/WebServer/WebServer/base/LogStream.h + /my_project/WebServer/WebServer/base/MutexLock.h + /my_project/WebServer/WebServer/base/Thread.h + /my_project/WebServer/WebServer/base/noncopyable.h +WebServer/base/CMakeFiles/libserver_base.dir/CountDownLatch.cpp.o + /my_project/WebServer/WebServer/base/Condition.h + /my_project/WebServer/WebServer/base/CountDownLatch.cpp + /my_project/WebServer/WebServer/base/CountDownLatch.h + /my_project/WebServer/WebServer/base/MutexLock.h + /my_project/WebServer/WebServer/base/noncopyable.h +WebServer/base/CMakeFiles/libserver_base.dir/FileUtil.cpp.o + /my_project/WebServer/WebServer/base/FileUtil.cpp + /my_project/WebServer/WebServer/base/FileUtil.h + /my_project/WebServer/WebServer/base/noncopyable.h +WebServer/base/CMakeFiles/libserver_base.dir/LogFile.cpp.o + /my_project/WebServer/WebServer/base/FileUtil.h + /my_project/WebServer/WebServer/base/LogFile.cpp + /my_project/WebServer/WebServer/base/LogFile.h + /my_project/WebServer/WebServer/base/MutexLock.h + /my_project/WebServer/WebServer/base/noncopyable.h +WebServer/base/CMakeFiles/libserver_base.dir/LogStream.cpp.o + /my_project/WebServer/WebServer/base/LogStream.cpp + /my_project/WebServer/WebServer/base/LogStream.h + /my_project/WebServer/WebServer/base/noncopyable.h +WebServer/base/CMakeFiles/libserver_base.dir/Logging.cpp.o + /my_project/WebServer/WebServer/base/AsyncLogging.h + /my_project/WebServer/WebServer/base/Condition.h + /my_project/WebServer/WebServer/base/CountDownLatch.h + /my_project/WebServer/WebServer/base/CurrentThread.h + /my_project/WebServer/WebServer/base/LogStream.h + /my_project/WebServer/WebServer/base/Logging.cpp + /my_project/WebServer/WebServer/base/Logging.h + /my_project/WebServer/WebServer/base/MutexLock.h + /my_project/WebServer/WebServer/base/Thread.h + /my_project/WebServer/WebServer/base/noncopyable.h +WebServer/base/CMakeFiles/libserver_base.dir/Thread.cpp.o + /my_project/WebServer/WebServer/base/Condition.h + /my_project/WebServer/WebServer/base/CountDownLatch.h + /my_project/WebServer/WebServer/base/CurrentThread.h + /my_project/WebServer/WebServer/base/MutexLock.h + /my_project/WebServer/WebServer/base/Thread.cpp + /my_project/WebServer/WebServer/base/Thread.h + /my_project/WebServer/WebServer/base/noncopyable.h diff --git a/WebServer/base/CMakeFiles/libserver_base.dir/depend.make b/WebServer/base/CMakeFiles/libserver_base.dir/depend.make new file mode 100644 index 0000000..f31512c --- /dev/null +++ b/WebServer/base/CMakeFiles/libserver_base.dir/depend.make @@ -0,0 +1,53 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.16 + +WebServer/base/CMakeFiles/libserver_base.dir/AsyncLogging.cpp.o: WebServer/base/AsyncLogging.cpp +WebServer/base/CMakeFiles/libserver_base.dir/AsyncLogging.cpp.o: WebServer/base/AsyncLogging.h +WebServer/base/CMakeFiles/libserver_base.dir/AsyncLogging.cpp.o: WebServer/base/Condition.h +WebServer/base/CMakeFiles/libserver_base.dir/AsyncLogging.cpp.o: WebServer/base/CountDownLatch.h +WebServer/base/CMakeFiles/libserver_base.dir/AsyncLogging.cpp.o: WebServer/base/FileUtil.h +WebServer/base/CMakeFiles/libserver_base.dir/AsyncLogging.cpp.o: WebServer/base/LogFile.h +WebServer/base/CMakeFiles/libserver_base.dir/AsyncLogging.cpp.o: WebServer/base/LogStream.h +WebServer/base/CMakeFiles/libserver_base.dir/AsyncLogging.cpp.o: WebServer/base/MutexLock.h +WebServer/base/CMakeFiles/libserver_base.dir/AsyncLogging.cpp.o: WebServer/base/Thread.h +WebServer/base/CMakeFiles/libserver_base.dir/AsyncLogging.cpp.o: WebServer/base/noncopyable.h + +WebServer/base/CMakeFiles/libserver_base.dir/CountDownLatch.cpp.o: WebServer/base/Condition.h +WebServer/base/CMakeFiles/libserver_base.dir/CountDownLatch.cpp.o: WebServer/base/CountDownLatch.cpp +WebServer/base/CMakeFiles/libserver_base.dir/CountDownLatch.cpp.o: WebServer/base/CountDownLatch.h +WebServer/base/CMakeFiles/libserver_base.dir/CountDownLatch.cpp.o: WebServer/base/MutexLock.h +WebServer/base/CMakeFiles/libserver_base.dir/CountDownLatch.cpp.o: WebServer/base/noncopyable.h + +WebServer/base/CMakeFiles/libserver_base.dir/FileUtil.cpp.o: WebServer/base/FileUtil.cpp +WebServer/base/CMakeFiles/libserver_base.dir/FileUtil.cpp.o: WebServer/base/FileUtil.h +WebServer/base/CMakeFiles/libserver_base.dir/FileUtil.cpp.o: WebServer/base/noncopyable.h + +WebServer/base/CMakeFiles/libserver_base.dir/LogFile.cpp.o: WebServer/base/FileUtil.h +WebServer/base/CMakeFiles/libserver_base.dir/LogFile.cpp.o: WebServer/base/LogFile.cpp +WebServer/base/CMakeFiles/libserver_base.dir/LogFile.cpp.o: WebServer/base/LogFile.h +WebServer/base/CMakeFiles/libserver_base.dir/LogFile.cpp.o: WebServer/base/MutexLock.h +WebServer/base/CMakeFiles/libserver_base.dir/LogFile.cpp.o: WebServer/base/noncopyable.h + +WebServer/base/CMakeFiles/libserver_base.dir/LogStream.cpp.o: WebServer/base/LogStream.cpp +WebServer/base/CMakeFiles/libserver_base.dir/LogStream.cpp.o: WebServer/base/LogStream.h +WebServer/base/CMakeFiles/libserver_base.dir/LogStream.cpp.o: WebServer/base/noncopyable.h + +WebServer/base/CMakeFiles/libserver_base.dir/Logging.cpp.o: WebServer/base/AsyncLogging.h +WebServer/base/CMakeFiles/libserver_base.dir/Logging.cpp.o: WebServer/base/Condition.h +WebServer/base/CMakeFiles/libserver_base.dir/Logging.cpp.o: WebServer/base/CountDownLatch.h +WebServer/base/CMakeFiles/libserver_base.dir/Logging.cpp.o: WebServer/base/CurrentThread.h +WebServer/base/CMakeFiles/libserver_base.dir/Logging.cpp.o: WebServer/base/LogStream.h +WebServer/base/CMakeFiles/libserver_base.dir/Logging.cpp.o: WebServer/base/Logging.cpp +WebServer/base/CMakeFiles/libserver_base.dir/Logging.cpp.o: WebServer/base/Logging.h +WebServer/base/CMakeFiles/libserver_base.dir/Logging.cpp.o: WebServer/base/MutexLock.h +WebServer/base/CMakeFiles/libserver_base.dir/Logging.cpp.o: WebServer/base/Thread.h +WebServer/base/CMakeFiles/libserver_base.dir/Logging.cpp.o: WebServer/base/noncopyable.h + +WebServer/base/CMakeFiles/libserver_base.dir/Thread.cpp.o: WebServer/base/Condition.h +WebServer/base/CMakeFiles/libserver_base.dir/Thread.cpp.o: WebServer/base/CountDownLatch.h +WebServer/base/CMakeFiles/libserver_base.dir/Thread.cpp.o: WebServer/base/CurrentThread.h +WebServer/base/CMakeFiles/libserver_base.dir/Thread.cpp.o: WebServer/base/MutexLock.h +WebServer/base/CMakeFiles/libserver_base.dir/Thread.cpp.o: WebServer/base/Thread.cpp +WebServer/base/CMakeFiles/libserver_base.dir/Thread.cpp.o: WebServer/base/Thread.h +WebServer/base/CMakeFiles/libserver_base.dir/Thread.cpp.o: WebServer/base/noncopyable.h + diff --git a/WebServer/base/CMakeFiles/libserver_base.dir/flags.make b/WebServer/base/CMakeFiles/libserver_base.dir/flags.make new file mode 100644 index 0000000..cb57489 --- /dev/null +++ b/WebServer/base/CMakeFiles/libserver_base.dir/flags.make @@ -0,0 +1,10 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.16 + +# compile CXX with g++ +CXX_FLAGS = -g -Wall -std=c++11 -D_PTHREADS -Wno-unused-parameter -O0 + +CXX_DEFINES = + +CXX_INCLUDES = -I/my_project/WebServer/base + diff --git a/WebServer/base/CMakeFiles/libserver_base.dir/link.txt b/WebServer/base/CMakeFiles/libserver_base.dir/link.txt new file mode 100644 index 0000000..6a37a40 --- /dev/null +++ b/WebServer/base/CMakeFiles/libserver_base.dir/link.txt @@ -0,0 +1,2 @@ +/usr/bin/ar qc libserver_base.a CMakeFiles/libserver_base.dir/AsyncLogging.cpp.o CMakeFiles/libserver_base.dir/CountDownLatch.cpp.o CMakeFiles/libserver_base.dir/FileUtil.cpp.o CMakeFiles/libserver_base.dir/LogFile.cpp.o CMakeFiles/libserver_base.dir/Logging.cpp.o CMakeFiles/libserver_base.dir/LogStream.cpp.o CMakeFiles/libserver_base.dir/Thread.cpp.o +/usr/bin/ranlib libserver_base.a diff --git a/WebServer/base/CMakeFiles/libserver_base.dir/progress.make b/WebServer/base/CMakeFiles/libserver_base.dir/progress.make new file mode 100644 index 0000000..8646085 --- /dev/null +++ b/WebServer/base/CMakeFiles/libserver_base.dir/progress.make @@ -0,0 +1,9 @@ +CMAKE_PROGRESS_1 = 16 +CMAKE_PROGRESS_2 = 17 +CMAKE_PROGRESS_3 = 18 +CMAKE_PROGRESS_4 = 19 +CMAKE_PROGRESS_5 = 20 +CMAKE_PROGRESS_6 = 21 +CMAKE_PROGRESS_7 = 22 +CMAKE_PROGRESS_8 = 23 + diff --git a/WebServer/base/CMakeFiles/progress.marks b/WebServer/base/CMakeFiles/progress.marks new file mode 100644 index 0000000..f599e28 --- /dev/null +++ b/WebServer/base/CMakeFiles/progress.marks @@ -0,0 +1 @@ +10 diff --git a/WebServer/base/Makefile b/WebServer/base/Makefile new file mode 100644 index 0000000..228295b --- /dev/null +++ b/WebServer/base/Makefile @@ -0,0 +1,360 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.16 + +# Default target executed when no arguments are given to make. +default_target: all + +.PHONY : default_target + +# Allow only one "make -f Makefile2" at a time, but pass parallelism. +.NOTPARALLEL: + + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + + +# Remove some rules from gmake that .SUFFIXES does not remove. +SUFFIXES = + +.SUFFIXES: .hpux_make_needs_suffix_list + + +# Suppress display of executed commands. +$(VERBOSE).SILENT: + + +# A target that is always out of date. +cmake_force: + +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /usr/bin/cmake + +# The command to remove a file. +RM = /usr/bin/cmake -E remove -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /my_project/WebServer + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /my_project/WebServer + +#============================================================================= +# Targets provided globally by CMake. + +# Special rule for the target rebuild_cache +rebuild_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..." + /usr/bin/cmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : rebuild_cache + +# Special rule for the target rebuild_cache +rebuild_cache/fast: rebuild_cache + +.PHONY : rebuild_cache/fast + +# Special rule for the target edit_cache +edit_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "No interactive CMake dialog available..." + /usr/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available. +.PHONY : edit_cache + +# Special rule for the target edit_cache +edit_cache/fast: edit_cache + +.PHONY : edit_cache/fast + +# The main all target +all: cmake_check_build_system + cd /my_project/WebServer && $(CMAKE_COMMAND) -E cmake_progress_start /my_project/WebServer/CMakeFiles /my_project/WebServer/WebServer/base/CMakeFiles/progress.marks + cd /my_project/WebServer && $(MAKE) -f CMakeFiles/Makefile2 WebServer/base/all + $(CMAKE_COMMAND) -E cmake_progress_start /my_project/WebServer/CMakeFiles 0 +.PHONY : all + +# The main clean target +clean: + cd /my_project/WebServer && $(MAKE) -f CMakeFiles/Makefile2 WebServer/base/clean +.PHONY : clean + +# The main clean target +clean/fast: clean + +.PHONY : clean/fast + +# Prepare targets for installation. +preinstall: all + cd /my_project/WebServer && $(MAKE) -f CMakeFiles/Makefile2 WebServer/base/preinstall +.PHONY : preinstall + +# Prepare targets for installation. +preinstall/fast: + cd /my_project/WebServer && $(MAKE) -f CMakeFiles/Makefile2 WebServer/base/preinstall +.PHONY : preinstall/fast + +# clear depends +depend: + cd /my_project/WebServer && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 +.PHONY : depend + +# Convenience name for target. +WebServer/base/CMakeFiles/libserver_base.dir/rule: + cd /my_project/WebServer && $(MAKE) -f CMakeFiles/Makefile2 WebServer/base/CMakeFiles/libserver_base.dir/rule +.PHONY : WebServer/base/CMakeFiles/libserver_base.dir/rule + +# Convenience name for target. +libserver_base: WebServer/base/CMakeFiles/libserver_base.dir/rule + +.PHONY : libserver_base + +# fast build rule for target. +libserver_base/fast: + cd /my_project/WebServer && $(MAKE) -f WebServer/base/CMakeFiles/libserver_base.dir/build.make WebServer/base/CMakeFiles/libserver_base.dir/build +.PHONY : libserver_base/fast + +AsyncLogging.o: AsyncLogging.cpp.o + +.PHONY : AsyncLogging.o + +# target to build an object file +AsyncLogging.cpp.o: + cd /my_project/WebServer && $(MAKE) -f WebServer/base/CMakeFiles/libserver_base.dir/build.make WebServer/base/CMakeFiles/libserver_base.dir/AsyncLogging.cpp.o +.PHONY : AsyncLogging.cpp.o + +AsyncLogging.i: AsyncLogging.cpp.i + +.PHONY : AsyncLogging.i + +# target to preprocess a source file +AsyncLogging.cpp.i: + cd /my_project/WebServer && $(MAKE) -f WebServer/base/CMakeFiles/libserver_base.dir/build.make WebServer/base/CMakeFiles/libserver_base.dir/AsyncLogging.cpp.i +.PHONY : AsyncLogging.cpp.i + +AsyncLogging.s: AsyncLogging.cpp.s + +.PHONY : AsyncLogging.s + +# target to generate assembly for a file +AsyncLogging.cpp.s: + cd /my_project/WebServer && $(MAKE) -f WebServer/base/CMakeFiles/libserver_base.dir/build.make WebServer/base/CMakeFiles/libserver_base.dir/AsyncLogging.cpp.s +.PHONY : AsyncLogging.cpp.s + +CountDownLatch.o: CountDownLatch.cpp.o + +.PHONY : CountDownLatch.o + +# target to build an object file +CountDownLatch.cpp.o: + cd /my_project/WebServer && $(MAKE) -f WebServer/base/CMakeFiles/libserver_base.dir/build.make WebServer/base/CMakeFiles/libserver_base.dir/CountDownLatch.cpp.o +.PHONY : CountDownLatch.cpp.o + +CountDownLatch.i: CountDownLatch.cpp.i + +.PHONY : CountDownLatch.i + +# target to preprocess a source file +CountDownLatch.cpp.i: + cd /my_project/WebServer && $(MAKE) -f WebServer/base/CMakeFiles/libserver_base.dir/build.make WebServer/base/CMakeFiles/libserver_base.dir/CountDownLatch.cpp.i +.PHONY : CountDownLatch.cpp.i + +CountDownLatch.s: CountDownLatch.cpp.s + +.PHONY : CountDownLatch.s + +# target to generate assembly for a file +CountDownLatch.cpp.s: + cd /my_project/WebServer && $(MAKE) -f WebServer/base/CMakeFiles/libserver_base.dir/build.make WebServer/base/CMakeFiles/libserver_base.dir/CountDownLatch.cpp.s +.PHONY : CountDownLatch.cpp.s + +FileUtil.o: FileUtil.cpp.o + +.PHONY : FileUtil.o + +# target to build an object file +FileUtil.cpp.o: + cd /my_project/WebServer && $(MAKE) -f WebServer/base/CMakeFiles/libserver_base.dir/build.make WebServer/base/CMakeFiles/libserver_base.dir/FileUtil.cpp.o +.PHONY : FileUtil.cpp.o + +FileUtil.i: FileUtil.cpp.i + +.PHONY : FileUtil.i + +# target to preprocess a source file +FileUtil.cpp.i: + cd /my_project/WebServer && $(MAKE) -f WebServer/base/CMakeFiles/libserver_base.dir/build.make WebServer/base/CMakeFiles/libserver_base.dir/FileUtil.cpp.i +.PHONY : FileUtil.cpp.i + +FileUtil.s: FileUtil.cpp.s + +.PHONY : FileUtil.s + +# target to generate assembly for a file +FileUtil.cpp.s: + cd /my_project/WebServer && $(MAKE) -f WebServer/base/CMakeFiles/libserver_base.dir/build.make WebServer/base/CMakeFiles/libserver_base.dir/FileUtil.cpp.s +.PHONY : FileUtil.cpp.s + +LogFile.o: LogFile.cpp.o + +.PHONY : LogFile.o + +# target to build an object file +LogFile.cpp.o: + cd /my_project/WebServer && $(MAKE) -f WebServer/base/CMakeFiles/libserver_base.dir/build.make WebServer/base/CMakeFiles/libserver_base.dir/LogFile.cpp.o +.PHONY : LogFile.cpp.o + +LogFile.i: LogFile.cpp.i + +.PHONY : LogFile.i + +# target to preprocess a source file +LogFile.cpp.i: + cd /my_project/WebServer && $(MAKE) -f WebServer/base/CMakeFiles/libserver_base.dir/build.make WebServer/base/CMakeFiles/libserver_base.dir/LogFile.cpp.i +.PHONY : LogFile.cpp.i + +LogFile.s: LogFile.cpp.s + +.PHONY : LogFile.s + +# target to generate assembly for a file +LogFile.cpp.s: + cd /my_project/WebServer && $(MAKE) -f WebServer/base/CMakeFiles/libserver_base.dir/build.make WebServer/base/CMakeFiles/libserver_base.dir/LogFile.cpp.s +.PHONY : LogFile.cpp.s + +LogStream.o: LogStream.cpp.o + +.PHONY : LogStream.o + +# target to build an object file +LogStream.cpp.o: + cd /my_project/WebServer && $(MAKE) -f WebServer/base/CMakeFiles/libserver_base.dir/build.make WebServer/base/CMakeFiles/libserver_base.dir/LogStream.cpp.o +.PHONY : LogStream.cpp.o + +LogStream.i: LogStream.cpp.i + +.PHONY : LogStream.i + +# target to preprocess a source file +LogStream.cpp.i: + cd /my_project/WebServer && $(MAKE) -f WebServer/base/CMakeFiles/libserver_base.dir/build.make WebServer/base/CMakeFiles/libserver_base.dir/LogStream.cpp.i +.PHONY : LogStream.cpp.i + +LogStream.s: LogStream.cpp.s + +.PHONY : LogStream.s + +# target to generate assembly for a file +LogStream.cpp.s: + cd /my_project/WebServer && $(MAKE) -f WebServer/base/CMakeFiles/libserver_base.dir/build.make WebServer/base/CMakeFiles/libserver_base.dir/LogStream.cpp.s +.PHONY : LogStream.cpp.s + +Logging.o: Logging.cpp.o + +.PHONY : Logging.o + +# target to build an object file +Logging.cpp.o: + cd /my_project/WebServer && $(MAKE) -f WebServer/base/CMakeFiles/libserver_base.dir/build.make WebServer/base/CMakeFiles/libserver_base.dir/Logging.cpp.o +.PHONY : Logging.cpp.o + +Logging.i: Logging.cpp.i + +.PHONY : Logging.i + +# target to preprocess a source file +Logging.cpp.i: + cd /my_project/WebServer && $(MAKE) -f WebServer/base/CMakeFiles/libserver_base.dir/build.make WebServer/base/CMakeFiles/libserver_base.dir/Logging.cpp.i +.PHONY : Logging.cpp.i + +Logging.s: Logging.cpp.s + +.PHONY : Logging.s + +# target to generate assembly for a file +Logging.cpp.s: + cd /my_project/WebServer && $(MAKE) -f WebServer/base/CMakeFiles/libserver_base.dir/build.make WebServer/base/CMakeFiles/libserver_base.dir/Logging.cpp.s +.PHONY : Logging.cpp.s + +Thread.o: Thread.cpp.o + +.PHONY : Thread.o + +# target to build an object file +Thread.cpp.o: + cd /my_project/WebServer && $(MAKE) -f WebServer/base/CMakeFiles/libserver_base.dir/build.make WebServer/base/CMakeFiles/libserver_base.dir/Thread.cpp.o +.PHONY : Thread.cpp.o + +Thread.i: Thread.cpp.i + +.PHONY : Thread.i + +# target to preprocess a source file +Thread.cpp.i: + cd /my_project/WebServer && $(MAKE) -f WebServer/base/CMakeFiles/libserver_base.dir/build.make WebServer/base/CMakeFiles/libserver_base.dir/Thread.cpp.i +.PHONY : Thread.cpp.i + +Thread.s: Thread.cpp.s + +.PHONY : Thread.s + +# target to generate assembly for a file +Thread.cpp.s: + cd /my_project/WebServer && $(MAKE) -f WebServer/base/CMakeFiles/libserver_base.dir/build.make WebServer/base/CMakeFiles/libserver_base.dir/Thread.cpp.s +.PHONY : Thread.cpp.s + +# Help Target +help: + @echo "The following are some of the valid targets for this Makefile:" + @echo "... all (the default if no target is provided)" + @echo "... clean" + @echo "... depend" + @echo "... rebuild_cache" + @echo "... edit_cache" + @echo "... libserver_base" + @echo "... AsyncLogging.o" + @echo "... AsyncLogging.i" + @echo "... AsyncLogging.s" + @echo "... CountDownLatch.o" + @echo "... CountDownLatch.i" + @echo "... CountDownLatch.s" + @echo "... FileUtil.o" + @echo "... FileUtil.i" + @echo "... FileUtil.s" + @echo "... LogFile.o" + @echo "... LogFile.i" + @echo "... LogFile.s" + @echo "... LogStream.o" + @echo "... LogStream.i" + @echo "... LogStream.s" + @echo "... Logging.o" + @echo "... Logging.i" + @echo "... Logging.s" + @echo "... Thread.o" + @echo "... Thread.i" + @echo "... Thread.s" +.PHONY : help + + + +#============================================================================= +# Special targets to cleanup operation of make. + +# Special rule to run CMake to check the build system integrity. +# No rule that depends on this can have commands that come from listfiles +# because they might be regenerated. +cmake_check_build_system: + cd /my_project/WebServer && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 +.PHONY : cmake_check_build_system + diff --git a/WebServer/base/cmake_install.cmake b/WebServer/base/cmake_install.cmake new file mode 100644 index 0000000..e553ee1 --- /dev/null +++ b/WebServer/base/cmake_install.cmake @@ -0,0 +1,45 @@ +# Install script for directory: /my_project/WebServer/WebServer/base + +# Set the install prefix +if(NOT DEFINED CMAKE_INSTALL_PREFIX) + set(CMAKE_INSTALL_PREFIX "/usr/local") +endif() +string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") + +# Set the install configuration name. +if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + if(BUILD_TYPE) + string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + else() + set(CMAKE_INSTALL_CONFIG_NAME "Debug") + endif() + message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +endif() + +# Set the component getting installed. +if(NOT CMAKE_INSTALL_COMPONENT) + if(COMPONENT) + message(STATUS "Install component: \"${COMPONENT}\"") + set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + else() + set(CMAKE_INSTALL_COMPONENT) + endif() +endif() + +# Install shared libraries without execute permission? +if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) + set(CMAKE_INSTALL_SO_NO_EXE "1") +endif() + +# Is this installation the result of a crosscompile? +if(NOT DEFINED CMAKE_CROSSCOMPILING) + set(CMAKE_CROSSCOMPILING "FALSE") +endif() + +if(NOT CMAKE_INSTALL_LOCAL_ONLY) + # Include the install script for each subdirectory. + include("/my_project/WebServer/WebServer/base/tests/cmake_install.cmake") + +endif() + diff --git a/WebServer/base/tests/CMakeFiles/CMakeDirectoryInformation.cmake b/WebServer/base/tests/CMakeFiles/CMakeDirectoryInformation.cmake new file mode 100644 index 0000000..b61e7c8 --- /dev/null +++ b/WebServer/base/tests/CMakeFiles/CMakeDirectoryInformation.cmake @@ -0,0 +1,16 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.16 + +# Relative path conversion top directories. +set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/my_project/WebServer") +set(CMAKE_RELATIVE_PATH_TOP_BINARY "/my_project/WebServer") + +# Force unix paths in dependencies. +set(CMAKE_FORCE_UNIX_PATHS 1) + + +# The C and CXX include file regular expressions for this directory. +set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") +set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") +set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) +set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) diff --git a/WebServer/base/tests/CMakeFiles/LoggingTest.dir/CXX.includecache b/WebServer/base/tests/CMakeFiles/LoggingTest.dir/CXX.includecache new file mode 100644 index 0000000..fa36647 --- /dev/null +++ b/WebServer/base/tests/CMakeFiles/LoggingTest.dir/CXX.includecache @@ -0,0 +1,98 @@ +#IncludeRegexLine: ^[ ]*[#%][ ]*(include|import)[ ]*[<"]([^">]+)([">]) + +#IncludeRegexScan: ^.*$ + +#IncludeRegexComplain: ^$ + +#IncludeRegexTransform: + +/my_project/WebServer/WebServer/base/Condition.h +errno.h +- +pthread.h +- +pthread.h +- +time.h +- +cstdint +- +MutexLock.h +/my_project/WebServer/WebServer/base/MutexLock.h +noncopyable.h +/my_project/WebServer/WebServer/base/noncopyable.h + +/my_project/WebServer/WebServer/base/CountDownLatch.h +Condition.h +/my_project/WebServer/WebServer/base/Condition.h +MutexLock.h +/my_project/WebServer/WebServer/base/MutexLock.h +noncopyable.h +/my_project/WebServer/WebServer/base/noncopyable.h + +/my_project/WebServer/WebServer/base/LogStream.h +assert.h +- +string.h +- +string +- +noncopyable.h +/my_project/WebServer/WebServer/base/noncopyable.h + +/my_project/WebServer/WebServer/base/Logging.h +pthread.h +- +stdio.h +- +string.h +- +string +- +LogStream.h +/my_project/WebServer/WebServer/base/LogStream.h + +/my_project/WebServer/WebServer/base/MutexLock.h +pthread.h +- +cstdio +- +noncopyable.h +/my_project/WebServer/WebServer/base/noncopyable.h + +/my_project/WebServer/WebServer/base/Thread.h +pthread.h +- +sys/syscall.h +- +unistd.h +- +functional +- +memory +- +string +- +CountDownLatch.h +/my_project/WebServer/WebServer/base/CountDownLatch.h +noncopyable.h +/my_project/WebServer/WebServer/base/noncopyable.h + +/my_project/WebServer/WebServer/base/noncopyable.h + +/my_project/WebServer/WebServer/base/tests/LoggingTest.cpp +../Logging.h +/my_project/WebServer/WebServer/base/Logging.h +../Thread.h +/my_project/WebServer/WebServer/base/Thread.h +string +- +unistd.h +- +vector +- +memory +- +iostream +- + diff --git a/WebServer/base/tests/CMakeFiles/LoggingTest.dir/DependInfo.cmake b/WebServer/base/tests/CMakeFiles/LoggingTest.dir/DependInfo.cmake new file mode 100644 index 0000000..cdcff8f --- /dev/null +++ b/WebServer/base/tests/CMakeFiles/LoggingTest.dir/DependInfo.cmake @@ -0,0 +1,22 @@ +# The set of languages for which implicit dependencies are needed: +set(CMAKE_DEPENDS_LANGUAGES + "CXX" + ) +# The set of files for implicit dependencies of each language: +set(CMAKE_DEPENDS_CHECK_CXX + "/my_project/WebServer/WebServer/base/tests/LoggingTest.cpp" "/my_project/WebServer/WebServer/base/tests/CMakeFiles/LoggingTest.dir/LoggingTest.cpp.o" + ) +set(CMAKE_CXX_COMPILER_ID "GNU") + +# The include file search paths: +set(CMAKE_CXX_TARGET_INCLUDE_PATH + "base" + ) + +# Targets to which this target links. +set(CMAKE_TARGET_LINKED_INFO_FILES + "/my_project/WebServer/WebServer/base/CMakeFiles/libserver_base.dir/DependInfo.cmake" + ) + +# Fortran module output directory. +set(CMAKE_Fortran_TARGET_MODULE_DIR "") diff --git a/WebServer/base/tests/CMakeFiles/LoggingTest.dir/build.make b/WebServer/base/tests/CMakeFiles/LoggingTest.dir/build.make new file mode 100644 index 0000000..65f8036 --- /dev/null +++ b/WebServer/base/tests/CMakeFiles/LoggingTest.dir/build.make @@ -0,0 +1,99 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.16 + +# Delete rule output on recipe failure. +.DELETE_ON_ERROR: + + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + + +# Remove some rules from gmake that .SUFFIXES does not remove. +SUFFIXES = + +.SUFFIXES: .hpux_make_needs_suffix_list + + +# Suppress display of executed commands. +$(VERBOSE).SILENT: + + +# A target that is always out of date. +cmake_force: + +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /usr/bin/cmake + +# The command to remove a file. +RM = /usr/bin/cmake -E remove -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /my_project/WebServer + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /my_project/WebServer + +# Include any dependencies generated for this target. +include WebServer/base/tests/CMakeFiles/LoggingTest.dir/depend.make + +# Include the progress variables for this target. +include WebServer/base/tests/CMakeFiles/LoggingTest.dir/progress.make + +# Include the compile flags for this target's objects. +include WebServer/base/tests/CMakeFiles/LoggingTest.dir/flags.make + +WebServer/base/tests/CMakeFiles/LoggingTest.dir/LoggingTest.cpp.o: WebServer/base/tests/CMakeFiles/LoggingTest.dir/flags.make +WebServer/base/tests/CMakeFiles/LoggingTest.dir/LoggingTest.cpp.o: WebServer/base/tests/LoggingTest.cpp + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/my_project/WebServer/CMakeFiles --progress-num=$(CMAKE_PROGRESS_1) "Building CXX object WebServer/base/tests/CMakeFiles/LoggingTest.dir/LoggingTest.cpp.o" + cd /my_project/WebServer/WebServer/base/tests && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/LoggingTest.dir/LoggingTest.cpp.o -c /my_project/WebServer/WebServer/base/tests/LoggingTest.cpp + +WebServer/base/tests/CMakeFiles/LoggingTest.dir/LoggingTest.cpp.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/LoggingTest.dir/LoggingTest.cpp.i" + cd /my_project/WebServer/WebServer/base/tests && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /my_project/WebServer/WebServer/base/tests/LoggingTest.cpp > CMakeFiles/LoggingTest.dir/LoggingTest.cpp.i + +WebServer/base/tests/CMakeFiles/LoggingTest.dir/LoggingTest.cpp.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/LoggingTest.dir/LoggingTest.cpp.s" + cd /my_project/WebServer/WebServer/base/tests && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /my_project/WebServer/WebServer/base/tests/LoggingTest.cpp -o CMakeFiles/LoggingTest.dir/LoggingTest.cpp.s + +# Object files for target LoggingTest +LoggingTest_OBJECTS = \ +"CMakeFiles/LoggingTest.dir/LoggingTest.cpp.o" + +# External object files for target LoggingTest +LoggingTest_EXTERNAL_OBJECTS = + +WebServer/base/tests/LoggingTest: WebServer/base/tests/CMakeFiles/LoggingTest.dir/LoggingTest.cpp.o +WebServer/base/tests/LoggingTest: WebServer/base/tests/CMakeFiles/LoggingTest.dir/build.make +WebServer/base/tests/LoggingTest: WebServer/base/libserver_base.a +WebServer/base/tests/LoggingTest: WebServer/base/tests/CMakeFiles/LoggingTest.dir/link.txt + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --bold --progress-dir=/my_project/WebServer/CMakeFiles --progress-num=$(CMAKE_PROGRESS_2) "Linking CXX executable LoggingTest" + cd /my_project/WebServer/WebServer/base/tests && $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/LoggingTest.dir/link.txt --verbose=$(VERBOSE) + +# Rule to build all files generated by this target. +WebServer/base/tests/CMakeFiles/LoggingTest.dir/build: WebServer/base/tests/LoggingTest + +.PHONY : WebServer/base/tests/CMakeFiles/LoggingTest.dir/build + +WebServer/base/tests/CMakeFiles/LoggingTest.dir/clean: + cd /my_project/WebServer/WebServer/base/tests && $(CMAKE_COMMAND) -P CMakeFiles/LoggingTest.dir/cmake_clean.cmake +.PHONY : WebServer/base/tests/CMakeFiles/LoggingTest.dir/clean + +WebServer/base/tests/CMakeFiles/LoggingTest.dir/depend: + cd /my_project/WebServer && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /my_project/WebServer /my_project/WebServer/WebServer/base/tests /my_project/WebServer /my_project/WebServer/WebServer/base/tests /my_project/WebServer/WebServer/base/tests/CMakeFiles/LoggingTest.dir/DependInfo.cmake --color=$(COLOR) +.PHONY : WebServer/base/tests/CMakeFiles/LoggingTest.dir/depend + diff --git a/WebServer/base/tests/CMakeFiles/LoggingTest.dir/cmake_clean.cmake b/WebServer/base/tests/CMakeFiles/LoggingTest.dir/cmake_clean.cmake new file mode 100644 index 0000000..5daa69e --- /dev/null +++ b/WebServer/base/tests/CMakeFiles/LoggingTest.dir/cmake_clean.cmake @@ -0,0 +1,10 @@ +file(REMOVE_RECURSE + "CMakeFiles/LoggingTest.dir/LoggingTest.cpp.o" + "LoggingTest" + "LoggingTest.pdb" +) + +# Per-language clean rules from dependency scanning. +foreach(lang CXX) + include(CMakeFiles/LoggingTest.dir/cmake_clean_${lang}.cmake OPTIONAL) +endforeach() diff --git a/WebServer/base/tests/CMakeFiles/LoggingTest.dir/depend.internal b/WebServer/base/tests/CMakeFiles/LoggingTest.dir/depend.internal new file mode 100644 index 0000000..e683546 --- /dev/null +++ b/WebServer/base/tests/CMakeFiles/LoggingTest.dir/depend.internal @@ -0,0 +1,12 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.16 + +WebServer/base/tests/CMakeFiles/LoggingTest.dir/LoggingTest.cpp.o + /my_project/WebServer/WebServer/base/Condition.h + /my_project/WebServer/WebServer/base/CountDownLatch.h + /my_project/WebServer/WebServer/base/LogStream.h + /my_project/WebServer/WebServer/base/Logging.h + /my_project/WebServer/WebServer/base/MutexLock.h + /my_project/WebServer/WebServer/base/Thread.h + /my_project/WebServer/WebServer/base/noncopyable.h + /my_project/WebServer/WebServer/base/tests/LoggingTest.cpp diff --git a/WebServer/base/tests/CMakeFiles/LoggingTest.dir/depend.make b/WebServer/base/tests/CMakeFiles/LoggingTest.dir/depend.make new file mode 100644 index 0000000..1ba4471 --- /dev/null +++ b/WebServer/base/tests/CMakeFiles/LoggingTest.dir/depend.make @@ -0,0 +1,12 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.16 + +WebServer/base/tests/CMakeFiles/LoggingTest.dir/LoggingTest.cpp.o: WebServer/base/Condition.h +WebServer/base/tests/CMakeFiles/LoggingTest.dir/LoggingTest.cpp.o: WebServer/base/CountDownLatch.h +WebServer/base/tests/CMakeFiles/LoggingTest.dir/LoggingTest.cpp.o: WebServer/base/LogStream.h +WebServer/base/tests/CMakeFiles/LoggingTest.dir/LoggingTest.cpp.o: WebServer/base/Logging.h +WebServer/base/tests/CMakeFiles/LoggingTest.dir/LoggingTest.cpp.o: WebServer/base/MutexLock.h +WebServer/base/tests/CMakeFiles/LoggingTest.dir/LoggingTest.cpp.o: WebServer/base/Thread.h +WebServer/base/tests/CMakeFiles/LoggingTest.dir/LoggingTest.cpp.o: WebServer/base/noncopyable.h +WebServer/base/tests/CMakeFiles/LoggingTest.dir/LoggingTest.cpp.o: WebServer/base/tests/LoggingTest.cpp + diff --git a/WebServer/base/tests/CMakeFiles/LoggingTest.dir/flags.make b/WebServer/base/tests/CMakeFiles/LoggingTest.dir/flags.make new file mode 100644 index 0000000..cb57489 --- /dev/null +++ b/WebServer/base/tests/CMakeFiles/LoggingTest.dir/flags.make @@ -0,0 +1,10 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.16 + +# compile CXX with g++ +CXX_FLAGS = -g -Wall -std=c++11 -D_PTHREADS -Wno-unused-parameter -O0 + +CXX_DEFINES = + +CXX_INCLUDES = -I/my_project/WebServer/base + diff --git a/WebServer/base/tests/CMakeFiles/LoggingTest.dir/link.txt b/WebServer/base/tests/CMakeFiles/LoggingTest.dir/link.txt new file mode 100644 index 0000000..efcf9c7 --- /dev/null +++ b/WebServer/base/tests/CMakeFiles/LoggingTest.dir/link.txt @@ -0,0 +1 @@ +g++ -g -Wall -std=c++11 -D_PTHREADS -Wno-unused-parameter -O0 -rdynamic CMakeFiles/LoggingTest.dir/LoggingTest.cpp.o -o LoggingTest ../libserver_base.a -lpthread -lrt diff --git a/WebServer/base/tests/CMakeFiles/LoggingTest.dir/progress.make b/WebServer/base/tests/CMakeFiles/LoggingTest.dir/progress.make new file mode 100644 index 0000000..8c8fb6f --- /dev/null +++ b/WebServer/base/tests/CMakeFiles/LoggingTest.dir/progress.make @@ -0,0 +1,3 @@ +CMAKE_PROGRESS_1 = 3 +CMAKE_PROGRESS_2 = 4 + diff --git a/WebServer/base/tests/CMakeFiles/progress.marks b/WebServer/base/tests/CMakeFiles/progress.marks new file mode 100644 index 0000000..f599e28 --- /dev/null +++ b/WebServer/base/tests/CMakeFiles/progress.marks @@ -0,0 +1 @@ +10 diff --git a/WebServer/base/tests/LoggingTest b/WebServer/base/tests/LoggingTest new file mode 100755 index 0000000..f57d967 Binary files /dev/null and b/WebServer/base/tests/LoggingTest differ diff --git a/WebServer/base/tests/Makefile b/WebServer/base/tests/Makefile new file mode 100644 index 0000000..c17ddf0 --- /dev/null +++ b/WebServer/base/tests/Makefile @@ -0,0 +1,180 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.16 + +# Default target executed when no arguments are given to make. +default_target: all + +.PHONY : default_target + +# Allow only one "make -f Makefile2" at a time, but pass parallelism. +.NOTPARALLEL: + + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + + +# Remove some rules from gmake that .SUFFIXES does not remove. +SUFFIXES = + +.SUFFIXES: .hpux_make_needs_suffix_list + + +# Suppress display of executed commands. +$(VERBOSE).SILENT: + + +# A target that is always out of date. +cmake_force: + +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /usr/bin/cmake + +# The command to remove a file. +RM = /usr/bin/cmake -E remove -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /my_project/WebServer + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /my_project/WebServer + +#============================================================================= +# Targets provided globally by CMake. + +# Special rule for the target rebuild_cache +rebuild_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..." + /usr/bin/cmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : rebuild_cache + +# Special rule for the target rebuild_cache +rebuild_cache/fast: rebuild_cache + +.PHONY : rebuild_cache/fast + +# Special rule for the target edit_cache +edit_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "No interactive CMake dialog available..." + /usr/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available. +.PHONY : edit_cache + +# Special rule for the target edit_cache +edit_cache/fast: edit_cache + +.PHONY : edit_cache/fast + +# The main all target +all: cmake_check_build_system + cd /my_project/WebServer && $(CMAKE_COMMAND) -E cmake_progress_start /my_project/WebServer/CMakeFiles /my_project/WebServer/WebServer/base/tests/CMakeFiles/progress.marks + cd /my_project/WebServer && $(MAKE) -f CMakeFiles/Makefile2 WebServer/base/tests/all + $(CMAKE_COMMAND) -E cmake_progress_start /my_project/WebServer/CMakeFiles 0 +.PHONY : all + +# The main clean target +clean: + cd /my_project/WebServer && $(MAKE) -f CMakeFiles/Makefile2 WebServer/base/tests/clean +.PHONY : clean + +# The main clean target +clean/fast: clean + +.PHONY : clean/fast + +# Prepare targets for installation. +preinstall: all + cd /my_project/WebServer && $(MAKE) -f CMakeFiles/Makefile2 WebServer/base/tests/preinstall +.PHONY : preinstall + +# Prepare targets for installation. +preinstall/fast: + cd /my_project/WebServer && $(MAKE) -f CMakeFiles/Makefile2 WebServer/base/tests/preinstall +.PHONY : preinstall/fast + +# clear depends +depend: + cd /my_project/WebServer && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 +.PHONY : depend + +# Convenience name for target. +WebServer/base/tests/CMakeFiles/LoggingTest.dir/rule: + cd /my_project/WebServer && $(MAKE) -f CMakeFiles/Makefile2 WebServer/base/tests/CMakeFiles/LoggingTest.dir/rule +.PHONY : WebServer/base/tests/CMakeFiles/LoggingTest.dir/rule + +# Convenience name for target. +LoggingTest: WebServer/base/tests/CMakeFiles/LoggingTest.dir/rule + +.PHONY : LoggingTest + +# fast build rule for target. +LoggingTest/fast: + cd /my_project/WebServer && $(MAKE) -f WebServer/base/tests/CMakeFiles/LoggingTest.dir/build.make WebServer/base/tests/CMakeFiles/LoggingTest.dir/build +.PHONY : LoggingTest/fast + +LoggingTest.o: LoggingTest.cpp.o + +.PHONY : LoggingTest.o + +# target to build an object file +LoggingTest.cpp.o: + cd /my_project/WebServer && $(MAKE) -f WebServer/base/tests/CMakeFiles/LoggingTest.dir/build.make WebServer/base/tests/CMakeFiles/LoggingTest.dir/LoggingTest.cpp.o +.PHONY : LoggingTest.cpp.o + +LoggingTest.i: LoggingTest.cpp.i + +.PHONY : LoggingTest.i + +# target to preprocess a source file +LoggingTest.cpp.i: + cd /my_project/WebServer && $(MAKE) -f WebServer/base/tests/CMakeFiles/LoggingTest.dir/build.make WebServer/base/tests/CMakeFiles/LoggingTest.dir/LoggingTest.cpp.i +.PHONY : LoggingTest.cpp.i + +LoggingTest.s: LoggingTest.cpp.s + +.PHONY : LoggingTest.s + +# target to generate assembly for a file +LoggingTest.cpp.s: + cd /my_project/WebServer && $(MAKE) -f WebServer/base/tests/CMakeFiles/LoggingTest.dir/build.make WebServer/base/tests/CMakeFiles/LoggingTest.dir/LoggingTest.cpp.s +.PHONY : LoggingTest.cpp.s + +# Help Target +help: + @echo "The following are some of the valid targets for this Makefile:" + @echo "... all (the default if no target is provided)" + @echo "... clean" + @echo "... depend" + @echo "... rebuild_cache" + @echo "... edit_cache" + @echo "... LoggingTest" + @echo "... LoggingTest.o" + @echo "... LoggingTest.i" + @echo "... LoggingTest.s" +.PHONY : help + + + +#============================================================================= +# Special targets to cleanup operation of make. + +# Special rule to run CMake to check the build system integrity. +# No rule that depends on this can have commands that come from listfiles +# because they might be regenerated. +cmake_check_build_system: + cd /my_project/WebServer && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 +.PHONY : cmake_check_build_system + diff --git a/WebServer/base/tests/cmake_install.cmake b/WebServer/base/tests/cmake_install.cmake new file mode 100644 index 0000000..ffc6d81 --- /dev/null +++ b/WebServer/base/tests/cmake_install.cmake @@ -0,0 +1,39 @@ +# Install script for directory: /my_project/WebServer/WebServer/base/tests + +# Set the install prefix +if(NOT DEFINED CMAKE_INSTALL_PREFIX) + set(CMAKE_INSTALL_PREFIX "/usr/local") +endif() +string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") + +# Set the install configuration name. +if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + if(BUILD_TYPE) + string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + else() + set(CMAKE_INSTALL_CONFIG_NAME "Debug") + endif() + message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +endif() + +# Set the component getting installed. +if(NOT CMAKE_INSTALL_COMPONENT) + if(COMPONENT) + message(STATUS "Install component: \"${COMPONENT}\"") + set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + else() + set(CMAKE_INSTALL_COMPONENT) + endif() +endif() + +# Install shared libraries without execute permission? +if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) + set(CMAKE_INSTALL_SO_NO_EXE "1") +endif() + +# Is this installation the result of a crosscompile? +if(NOT DEFINED CMAKE_CROSSCOMPILING) + set(CMAKE_CROSSCOMPILING "FALSE") +endif() + diff --git a/WebServer/cmake_install.cmake b/WebServer/cmake_install.cmake new file mode 100644 index 0000000..b5d13c5 --- /dev/null +++ b/WebServer/cmake_install.cmake @@ -0,0 +1,46 @@ +# Install script for directory: /my_project/WebServer/WebServer + +# Set the install prefix +if(NOT DEFINED CMAKE_INSTALL_PREFIX) + set(CMAKE_INSTALL_PREFIX "/usr/local") +endif() +string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") + +# Set the install configuration name. +if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + if(BUILD_TYPE) + string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + else() + set(CMAKE_INSTALL_CONFIG_NAME "Debug") + endif() + message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +endif() + +# Set the component getting installed. +if(NOT CMAKE_INSTALL_COMPONENT) + if(COMPONENT) + message(STATUS "Install component: \"${COMPONENT}\"") + set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + else() + set(CMAKE_INSTALL_COMPONENT) + endif() +endif() + +# Install shared libraries without execute permission? +if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) + set(CMAKE_INSTALL_SO_NO_EXE "1") +endif() + +# Is this installation the result of a crosscompile? +if(NOT DEFINED CMAKE_CROSSCOMPILING) + set(CMAKE_CROSSCOMPILING "FALSE") +endif() + +if(NOT CMAKE_INSTALL_LOCAL_ONLY) + # Include the install script for each subdirectory. + include("/my_project/WebServer/WebServer/base/cmake_install.cmake") + include("/my_project/WebServer/WebServer/tests/cmake_install.cmake") + +endif() + diff --git a/WebServer/tests/CMakeFiles/CMakeDirectoryInformation.cmake b/WebServer/tests/CMakeFiles/CMakeDirectoryInformation.cmake new file mode 100644 index 0000000..b61e7c8 --- /dev/null +++ b/WebServer/tests/CMakeFiles/CMakeDirectoryInformation.cmake @@ -0,0 +1,16 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.16 + +# Relative path conversion top directories. +set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/my_project/WebServer") +set(CMAKE_RELATIVE_PATH_TOP_BINARY "/my_project/WebServer") + +# Force unix paths in dependencies. +set(CMAKE_FORCE_UNIX_PATHS 1) + + +# The C and CXX include file regular expressions for this directory. +set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") +set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") +set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) +set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) diff --git a/WebServer/tests/CMakeFiles/HTTPClient.dir/CXX.includecache b/WebServer/tests/CMakeFiles/HTTPClient.dir/CXX.includecache new file mode 100644 index 0000000..84e5d29 --- /dev/null +++ b/WebServer/tests/CMakeFiles/HTTPClient.dir/CXX.includecache @@ -0,0 +1,34 @@ +#IncludeRegexLine: ^[ ]*[#%][ ]*(include|import)[ ]*[<"]([^">]+)([">]) + +#IncludeRegexScan: ^.*$ + +#IncludeRegexComplain: ^$ + +#IncludeRegexTransform: + +/my_project/WebServer/WebServer/tests/HTTPClient.cpp +arpa/inet.h +- +fcntl.h +- +netinet/in.h +- +stdio.h +- +stdlib.h +- +string.h +- +sys/epoll.h +- +sys/socket.h +- +sys/types.h +- +time.h +- +unistd.h +- +iostream +- + diff --git a/WebServer/tests/CMakeFiles/HTTPClient.dir/DependInfo.cmake b/WebServer/tests/CMakeFiles/HTTPClient.dir/DependInfo.cmake new file mode 100644 index 0000000..20f2dd8 --- /dev/null +++ b/WebServer/tests/CMakeFiles/HTTPClient.dir/DependInfo.cmake @@ -0,0 +1,21 @@ +# The set of languages for which implicit dependencies are needed: +set(CMAKE_DEPENDS_LANGUAGES + "CXX" + ) +# The set of files for implicit dependencies of each language: +set(CMAKE_DEPENDS_CHECK_CXX + "/my_project/WebServer/WebServer/tests/HTTPClient.cpp" "/my_project/WebServer/WebServer/tests/CMakeFiles/HTTPClient.dir/HTTPClient.cpp.o" + ) +set(CMAKE_CXX_COMPILER_ID "GNU") + +# The include file search paths: +set(CMAKE_CXX_TARGET_INCLUDE_PATH + "base" + ) + +# Targets to which this target links. +set(CMAKE_TARGET_LINKED_INFO_FILES + ) + +# Fortran module output directory. +set(CMAKE_Fortran_TARGET_MODULE_DIR "") diff --git a/WebServer/tests/CMakeFiles/HTTPClient.dir/build.make b/WebServer/tests/CMakeFiles/HTTPClient.dir/build.make new file mode 100644 index 0000000..53650e5 --- /dev/null +++ b/WebServer/tests/CMakeFiles/HTTPClient.dir/build.make @@ -0,0 +1,98 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.16 + +# Delete rule output on recipe failure. +.DELETE_ON_ERROR: + + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + + +# Remove some rules from gmake that .SUFFIXES does not remove. +SUFFIXES = + +.SUFFIXES: .hpux_make_needs_suffix_list + + +# Suppress display of executed commands. +$(VERBOSE).SILENT: + + +# A target that is always out of date. +cmake_force: + +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /usr/bin/cmake + +# The command to remove a file. +RM = /usr/bin/cmake -E remove -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /my_project/WebServer + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /my_project/WebServer + +# Include any dependencies generated for this target. +include WebServer/tests/CMakeFiles/HTTPClient.dir/depend.make + +# Include the progress variables for this target. +include WebServer/tests/CMakeFiles/HTTPClient.dir/progress.make + +# Include the compile flags for this target's objects. +include WebServer/tests/CMakeFiles/HTTPClient.dir/flags.make + +WebServer/tests/CMakeFiles/HTTPClient.dir/HTTPClient.cpp.o: WebServer/tests/CMakeFiles/HTTPClient.dir/flags.make +WebServer/tests/CMakeFiles/HTTPClient.dir/HTTPClient.cpp.o: WebServer/tests/HTTPClient.cpp + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/my_project/WebServer/CMakeFiles --progress-num=$(CMAKE_PROGRESS_1) "Building CXX object WebServer/tests/CMakeFiles/HTTPClient.dir/HTTPClient.cpp.o" + cd /my_project/WebServer/WebServer/tests && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/HTTPClient.dir/HTTPClient.cpp.o -c /my_project/WebServer/WebServer/tests/HTTPClient.cpp + +WebServer/tests/CMakeFiles/HTTPClient.dir/HTTPClient.cpp.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/HTTPClient.dir/HTTPClient.cpp.i" + cd /my_project/WebServer/WebServer/tests && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /my_project/WebServer/WebServer/tests/HTTPClient.cpp > CMakeFiles/HTTPClient.dir/HTTPClient.cpp.i + +WebServer/tests/CMakeFiles/HTTPClient.dir/HTTPClient.cpp.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/HTTPClient.dir/HTTPClient.cpp.s" + cd /my_project/WebServer/WebServer/tests && g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /my_project/WebServer/WebServer/tests/HTTPClient.cpp -o CMakeFiles/HTTPClient.dir/HTTPClient.cpp.s + +# Object files for target HTTPClient +HTTPClient_OBJECTS = \ +"CMakeFiles/HTTPClient.dir/HTTPClient.cpp.o" + +# External object files for target HTTPClient +HTTPClient_EXTERNAL_OBJECTS = + +WebServer/tests/HTTPClient: WebServer/tests/CMakeFiles/HTTPClient.dir/HTTPClient.cpp.o +WebServer/tests/HTTPClient: WebServer/tests/CMakeFiles/HTTPClient.dir/build.make +WebServer/tests/HTTPClient: WebServer/tests/CMakeFiles/HTTPClient.dir/link.txt + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --bold --progress-dir=/my_project/WebServer/CMakeFiles --progress-num=$(CMAKE_PROGRESS_2) "Linking CXX executable HTTPClient" + cd /my_project/WebServer/WebServer/tests && $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/HTTPClient.dir/link.txt --verbose=$(VERBOSE) + +# Rule to build all files generated by this target. +WebServer/tests/CMakeFiles/HTTPClient.dir/build: WebServer/tests/HTTPClient + +.PHONY : WebServer/tests/CMakeFiles/HTTPClient.dir/build + +WebServer/tests/CMakeFiles/HTTPClient.dir/clean: + cd /my_project/WebServer/WebServer/tests && $(CMAKE_COMMAND) -P CMakeFiles/HTTPClient.dir/cmake_clean.cmake +.PHONY : WebServer/tests/CMakeFiles/HTTPClient.dir/clean + +WebServer/tests/CMakeFiles/HTTPClient.dir/depend: + cd /my_project/WebServer && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /my_project/WebServer /my_project/WebServer/WebServer/tests /my_project/WebServer /my_project/WebServer/WebServer/tests /my_project/WebServer/WebServer/tests/CMakeFiles/HTTPClient.dir/DependInfo.cmake --color=$(COLOR) +.PHONY : WebServer/tests/CMakeFiles/HTTPClient.dir/depend + diff --git a/WebServer/tests/CMakeFiles/HTTPClient.dir/cmake_clean.cmake b/WebServer/tests/CMakeFiles/HTTPClient.dir/cmake_clean.cmake new file mode 100644 index 0000000..61184eb --- /dev/null +++ b/WebServer/tests/CMakeFiles/HTTPClient.dir/cmake_clean.cmake @@ -0,0 +1,10 @@ +file(REMOVE_RECURSE + "CMakeFiles/HTTPClient.dir/HTTPClient.cpp.o" + "HTTPClient" + "HTTPClient.pdb" +) + +# Per-language clean rules from dependency scanning. +foreach(lang CXX) + include(CMakeFiles/HTTPClient.dir/cmake_clean_${lang}.cmake OPTIONAL) +endforeach() diff --git a/WebServer/tests/CMakeFiles/HTTPClient.dir/depend.internal b/WebServer/tests/CMakeFiles/HTTPClient.dir/depend.internal new file mode 100644 index 0000000..0fa30c5 --- /dev/null +++ b/WebServer/tests/CMakeFiles/HTTPClient.dir/depend.internal @@ -0,0 +1,5 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.16 + +WebServer/tests/CMakeFiles/HTTPClient.dir/HTTPClient.cpp.o + /my_project/WebServer/WebServer/tests/HTTPClient.cpp diff --git a/WebServer/tests/CMakeFiles/HTTPClient.dir/depend.make b/WebServer/tests/CMakeFiles/HTTPClient.dir/depend.make new file mode 100644 index 0000000..4cefca3 --- /dev/null +++ b/WebServer/tests/CMakeFiles/HTTPClient.dir/depend.make @@ -0,0 +1,5 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.16 + +WebServer/tests/CMakeFiles/HTTPClient.dir/HTTPClient.cpp.o: WebServer/tests/HTTPClient.cpp + diff --git a/WebServer/tests/CMakeFiles/HTTPClient.dir/flags.make b/WebServer/tests/CMakeFiles/HTTPClient.dir/flags.make new file mode 100644 index 0000000..cb57489 --- /dev/null +++ b/WebServer/tests/CMakeFiles/HTTPClient.dir/flags.make @@ -0,0 +1,10 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.16 + +# compile CXX with g++ +CXX_FLAGS = -g -Wall -std=c++11 -D_PTHREADS -Wno-unused-parameter -O0 + +CXX_DEFINES = + +CXX_INCLUDES = -I/my_project/WebServer/base + diff --git a/WebServer/tests/CMakeFiles/HTTPClient.dir/link.txt b/WebServer/tests/CMakeFiles/HTTPClient.dir/link.txt new file mode 100644 index 0000000..f1721b4 --- /dev/null +++ b/WebServer/tests/CMakeFiles/HTTPClient.dir/link.txt @@ -0,0 +1 @@ +g++ -g -Wall -std=c++11 -D_PTHREADS -Wno-unused-parameter -O0 -rdynamic CMakeFiles/HTTPClient.dir/HTTPClient.cpp.o -o HTTPClient diff --git a/WebServer/tests/CMakeFiles/HTTPClient.dir/progress.make b/WebServer/tests/CMakeFiles/HTTPClient.dir/progress.make new file mode 100644 index 0000000..abadeb0 --- /dev/null +++ b/WebServer/tests/CMakeFiles/HTTPClient.dir/progress.make @@ -0,0 +1,3 @@ +CMAKE_PROGRESS_1 = 1 +CMAKE_PROGRESS_2 = 2 + diff --git a/WebServer/tests/CMakeFiles/progress.marks b/WebServer/tests/CMakeFiles/progress.marks new file mode 100644 index 0000000..0cfbf08 --- /dev/null +++ b/WebServer/tests/CMakeFiles/progress.marks @@ -0,0 +1 @@ +2 diff --git a/WebServer/tests/HTTPClient b/WebServer/tests/HTTPClient new file mode 100755 index 0000000..a7b4356 Binary files /dev/null and b/WebServer/tests/HTTPClient differ diff --git a/WebServer/tests/Makefile b/WebServer/tests/Makefile new file mode 100644 index 0000000..85a4b45 --- /dev/null +++ b/WebServer/tests/Makefile @@ -0,0 +1,180 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.16 + +# Default target executed when no arguments are given to make. +default_target: all + +.PHONY : default_target + +# Allow only one "make -f Makefile2" at a time, but pass parallelism. +.NOTPARALLEL: + + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + + +# Remove some rules from gmake that .SUFFIXES does not remove. +SUFFIXES = + +.SUFFIXES: .hpux_make_needs_suffix_list + + +# Suppress display of executed commands. +$(VERBOSE).SILENT: + + +# A target that is always out of date. +cmake_force: + +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /usr/bin/cmake + +# The command to remove a file. +RM = /usr/bin/cmake -E remove -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /my_project/WebServer + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /my_project/WebServer + +#============================================================================= +# Targets provided globally by CMake. + +# Special rule for the target rebuild_cache +rebuild_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..." + /usr/bin/cmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : rebuild_cache + +# Special rule for the target rebuild_cache +rebuild_cache/fast: rebuild_cache + +.PHONY : rebuild_cache/fast + +# Special rule for the target edit_cache +edit_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "No interactive CMake dialog available..." + /usr/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available. +.PHONY : edit_cache + +# Special rule for the target edit_cache +edit_cache/fast: edit_cache + +.PHONY : edit_cache/fast + +# The main all target +all: cmake_check_build_system + cd /my_project/WebServer && $(CMAKE_COMMAND) -E cmake_progress_start /my_project/WebServer/CMakeFiles /my_project/WebServer/WebServer/tests/CMakeFiles/progress.marks + cd /my_project/WebServer && $(MAKE) -f CMakeFiles/Makefile2 WebServer/tests/all + $(CMAKE_COMMAND) -E cmake_progress_start /my_project/WebServer/CMakeFiles 0 +.PHONY : all + +# The main clean target +clean: + cd /my_project/WebServer && $(MAKE) -f CMakeFiles/Makefile2 WebServer/tests/clean +.PHONY : clean + +# The main clean target +clean/fast: clean + +.PHONY : clean/fast + +# Prepare targets for installation. +preinstall: all + cd /my_project/WebServer && $(MAKE) -f CMakeFiles/Makefile2 WebServer/tests/preinstall +.PHONY : preinstall + +# Prepare targets for installation. +preinstall/fast: + cd /my_project/WebServer && $(MAKE) -f CMakeFiles/Makefile2 WebServer/tests/preinstall +.PHONY : preinstall/fast + +# clear depends +depend: + cd /my_project/WebServer && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 +.PHONY : depend + +# Convenience name for target. +WebServer/tests/CMakeFiles/HTTPClient.dir/rule: + cd /my_project/WebServer && $(MAKE) -f CMakeFiles/Makefile2 WebServer/tests/CMakeFiles/HTTPClient.dir/rule +.PHONY : WebServer/tests/CMakeFiles/HTTPClient.dir/rule + +# Convenience name for target. +HTTPClient: WebServer/tests/CMakeFiles/HTTPClient.dir/rule + +.PHONY : HTTPClient + +# fast build rule for target. +HTTPClient/fast: + cd /my_project/WebServer && $(MAKE) -f WebServer/tests/CMakeFiles/HTTPClient.dir/build.make WebServer/tests/CMakeFiles/HTTPClient.dir/build +.PHONY : HTTPClient/fast + +HTTPClient.o: HTTPClient.cpp.o + +.PHONY : HTTPClient.o + +# target to build an object file +HTTPClient.cpp.o: + cd /my_project/WebServer && $(MAKE) -f WebServer/tests/CMakeFiles/HTTPClient.dir/build.make WebServer/tests/CMakeFiles/HTTPClient.dir/HTTPClient.cpp.o +.PHONY : HTTPClient.cpp.o + +HTTPClient.i: HTTPClient.cpp.i + +.PHONY : HTTPClient.i + +# target to preprocess a source file +HTTPClient.cpp.i: + cd /my_project/WebServer && $(MAKE) -f WebServer/tests/CMakeFiles/HTTPClient.dir/build.make WebServer/tests/CMakeFiles/HTTPClient.dir/HTTPClient.cpp.i +.PHONY : HTTPClient.cpp.i + +HTTPClient.s: HTTPClient.cpp.s + +.PHONY : HTTPClient.s + +# target to generate assembly for a file +HTTPClient.cpp.s: + cd /my_project/WebServer && $(MAKE) -f WebServer/tests/CMakeFiles/HTTPClient.dir/build.make WebServer/tests/CMakeFiles/HTTPClient.dir/HTTPClient.cpp.s +.PHONY : HTTPClient.cpp.s + +# Help Target +help: + @echo "The following are some of the valid targets for this Makefile:" + @echo "... all (the default if no target is provided)" + @echo "... clean" + @echo "... depend" + @echo "... rebuild_cache" + @echo "... edit_cache" + @echo "... HTTPClient" + @echo "... HTTPClient.o" + @echo "... HTTPClient.i" + @echo "... HTTPClient.s" +.PHONY : help + + + +#============================================================================= +# Special targets to cleanup operation of make. + +# Special rule to run CMake to check the build system integrity. +# No rule that depends on this can have commands that come from listfiles +# because they might be regenerated. +cmake_check_build_system: + cd /my_project/WebServer && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 +.PHONY : cmake_check_build_system + diff --git a/WebServer/tests/cmake_install.cmake b/WebServer/tests/cmake_install.cmake new file mode 100644 index 0000000..b02f46f --- /dev/null +++ b/WebServer/tests/cmake_install.cmake @@ -0,0 +1,39 @@ +# Install script for directory: /my_project/WebServer/WebServer/tests + +# Set the install prefix +if(NOT DEFINED CMAKE_INSTALL_PREFIX) + set(CMAKE_INSTALL_PREFIX "/usr/local") +endif() +string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") + +# Set the install configuration name. +if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + if(BUILD_TYPE) + string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + else() + set(CMAKE_INSTALL_CONFIG_NAME "Debug") + endif() + message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +endif() + +# Set the component getting installed. +if(NOT CMAKE_INSTALL_COMPONENT) + if(COMPONENT) + message(STATUS "Install component: \"${COMPONENT}\"") + set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + else() + set(CMAKE_INSTALL_COMPONENT) + endif() +endif() + +# Install shared libraries without execute permission? +if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) + set(CMAKE_INSTALL_SO_NO_EXE "1") +endif() + +# Is this installation the result of a crosscompile? +if(NOT DEFINED CMAKE_CROSSCOMPILING) + set(CMAKE_CROSSCOMPILING "FALSE") +endif() + diff --git a/build.sh b/build.sh index a979aa5..8c71314 100755 --- a/build.sh +++ b/build.sh @@ -3,7 +3,7 @@ set -x SOURCE_DIR=`pwd` -BUILD_DIR=${BUILD_DIR:-../build} +BUILD_DIR=${BUILD_DIR:-./build} BUILD_TYPE=${BUILD_TYPE:-Debug} mkdir -p $BUILD_DIR/$BUILD_TYPE \ diff --git a/cmake_install.cmake b/cmake_install.cmake new file mode 100644 index 0000000..006c258 --- /dev/null +++ b/cmake_install.cmake @@ -0,0 +1,55 @@ +# Install script for directory: /my_project/WebServer + +# Set the install prefix +if(NOT DEFINED CMAKE_INSTALL_PREFIX) + set(CMAKE_INSTALL_PREFIX "/usr/local") +endif() +string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") + +# Set the install configuration name. +if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + if(BUILD_TYPE) + string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + else() + set(CMAKE_INSTALL_CONFIG_NAME "Debug") + endif() + message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +endif() + +# Set the component getting installed. +if(NOT CMAKE_INSTALL_COMPONENT) + if(COMPONENT) + message(STATUS "Install component: \"${COMPONENT}\"") + set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + else() + set(CMAKE_INSTALL_COMPONENT) + endif() +endif() + +# Install shared libraries without execute permission? +if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) + set(CMAKE_INSTALL_SO_NO_EXE "1") +endif() + +# Is this installation the result of a crosscompile? +if(NOT DEFINED CMAKE_CROSSCOMPILING) + set(CMAKE_CROSSCOMPILING "FALSE") +endif() + +if(NOT CMAKE_INSTALL_LOCAL_ONLY) + # Include the install script for each subdirectory. + include("/my_project/WebServer/WebServer/cmake_install.cmake") + +endif() + +if(CMAKE_INSTALL_COMPONENT) + set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt") +else() + set(CMAKE_INSTALL_MANIFEST "install_manifest.txt") +endif() + +string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT + "${CMAKE_INSTALL_MANIFEST_FILES}") +file(WRITE "/my_project/WebServer/${CMAKE_INSTALL_MANIFEST}" + "${CMAKE_INSTALL_MANIFEST_CONTENT}")