adjust file location

This commit is contained in:
an-tao 2018-05-02 18:28:33 +08:00
parent ecfea6f713
commit 2e80c2b132
10 changed files with 23 additions and 12 deletions

View File

@ -38,7 +38,7 @@ SET(CMAKE_INSTALL_PREFIX /usr/local)
install(TARGETS drogon DESTINATION lib)
file(GLOB trantor_net_headers "${CMAKE_CURRENT_SOURCE_DIR}/lib/inc/*.h")
file(GLOB trantor_net_headers "${CMAKE_CURRENT_SOURCE_DIR}/lib/inc/drogon/*.h")
install(FILES ${trantor_net_headers} DESTINATION include/drogon)
add_dependencies(drogon trantor)

View File

@ -1,4 +1,4 @@
#include <HttpAppFramework.h>
#include <drogon/HttpAppFramework.h>
int main()
{
drogon::HttpAppFramework framework("0.0.0.0",12345);

View File

@ -1,7 +1,13 @@
//
// Copyright 2018, An Tao. All rights reserved.
//
// Use of this source code is governed by a MIT license
// that can be found in the License file.
#pragma once
#include <HttpRequest.h>
#include <HttpResponse.h>
#include <drogon/HttpRequest.h>
#include <drogon/HttpResponse.h>
#include <trantor/utils/NonCopyable.h>
#include <string>
#include <set>
@ -30,7 +36,7 @@ namespace drogon
//tool funs
//tool funcs
#ifdef USE_UUID
std::string getUuid();
std::string stringToHex(unsigned char* ptr, long long length);

View File

@ -1,4 +1,9 @@
#include "HttpAppFramework.h"
// Copyright 2018, An Tao. All rights reserved.
//
// Use of this source code is governed by a MIT license
// that can be found in the License file.
#include <drogon/HttpAppFramework.h>
#include "HttpServer.h"
#include <sys/stat.h>
#include <iostream>

View File

@ -17,8 +17,8 @@
#ifndef MUDUO_NET_HTTP_HTTPCONTEXT_H
#define MUDUO_NET_HTTP_HTTPCONTEXT_H
#include "HttpRequest.h"
#include "HttpResponse.h"
#include <drogon/HttpRequest.h>
#include <drogon/HttpResponse.h>
#include <trantor/utils/MsgBuffer.h>
using namespace trantor;

View File

@ -14,7 +14,7 @@
// Use of this source code is governed by a MIT license
// that can be found in the License file.
#include "HttpRequest.h"
#include <drogon/HttpRequest.h>
//解url编码实现
#include <iostream>
static int urldecode(const char* encd,char* decd)

View File

@ -14,7 +14,7 @@
// Use of this source code is governed by a MIT license
// that can be found in the License file.
#include "HttpResponse.h"
#include <drogon/HttpResponse.h>
#include <trantor/utils/Logger.h>
#include <stdio.h>

View File

@ -18,8 +18,8 @@
#include <trantor/utils/Logger.h>
#include "HttpContext.h"
#include "HttpRequest.h"
#include "HttpResponse.h"
#include <drogon/HttpRequest.h>
#include <drogon/HttpResponse.h>
#include <functional>
using namespace std::placeholders;