编译优化
This commit is contained in:
+7
-1
@@ -58,6 +58,12 @@ log/
|
||||
project/dl_test/res/dl_test
|
||||
project/dl_console/res/dl_console
|
||||
/project/dl_unit_test/res/dl_unit_test.pdb
|
||||
/hs_build.log
|
||||
project/dl_unit_test/res/dl_unit_test
|
||||
|
||||
compile_commands.json
|
||||
|
||||
*.log
|
||||
*.ilk
|
||||
*.pdb
|
||||
*.user
|
||||
*.idea
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
cmake_minimum_required (VERSION 3.10)
|
||||
cmake_minimum_required (VERSION 3.16)
|
||||
|
||||
# 使MT设置生效
|
||||
if (POLICY CMP0091)
|
||||
|
||||
+1
-1
@@ -38,7 +38,7 @@ endif()
|
||||
file(GLOB_RECURSE
|
||||
SRC_LIST
|
||||
${CMAKE_SOURCE_DIR}/dl/*.cpp
|
||||
${CMAKE_SOURCE_DIR}/dl/*.h
|
||||
#${CMAKE_SOURCE_DIR}/dl/*.h
|
||||
)
|
||||
|
||||
# 第三方库源文件
|
||||
|
||||
@@ -18,7 +18,8 @@
|
||||
#include <dl_io.h>
|
||||
#include <dl_type.h>
|
||||
#include <dl_range.h>
|
||||
|
||||
#include <io/dl_json.h>
|
||||
#include <io/dl_json_imp.h>
|
||||
#include <memory/dl_memory.h>
|
||||
#include <memory/dl_crypto.h>
|
||||
#include <memory/dl_stream_input.h>
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
#include <nlohmann/json_fwd.hpp>
|
||||
using json = nlohmann::json;
|
||||
|
||||
#include "io/dl_log.h"
|
||||
#include "base/dl_array.h"
|
||||
#include "memory/dl_buffer.h"
|
||||
#include "base/dl_pimpl.h"
|
||||
|
||||
+45
-17
@@ -20,23 +20,51 @@ namespace dl
|
||||
namespace Cpt
|
||||
{
|
||||
//! ------------------------------具体组件-------------------------------------
|
||||
using IsPickup = Function<std::function<bool()>, str_uid("IsPickup")>;//!< 拾取
|
||||
using IsSelect = Function<std::function<bool()>, str_uid("IsSelect")>;//!< 选择
|
||||
using IsClick = Function<std::function<bool()>, str_uid("IsClick")>;//!< 点击
|
||||
using IsDown = Function<std::function<bool()>, str_uid("IsDown")>;//!< 按下状态
|
||||
using GetCoor = Function<std::function<dl::Coor* ()>, str_uid("GetCoor")>;//!< 返回坐标系
|
||||
using GetOrder = Function<std::function<float()>, str_uid("GetOrder")>;//!< 返回order
|
||||
using Update = Function<std::function<void()>, str_uid("Update")>;//!< 逻辑
|
||||
using Render = Function<std::function<void()>, str_uid("Render")>;//!< 绘制
|
||||
using SetOrder = Function<std::function<void(float)>, str_uid("SetOrder")>;//!< 设置order
|
||||
using SetSelect = Function<std::function<void(bool)>, str_uid("SetSelect")>;//!< 设置是否选择
|
||||
using DeleteThis = Function<std::function<void()>, str_uid("DeleteThis")>;//!< 删除自身
|
||||
using Clone = Function<std::function<Components* ()>, str_uid("Clone")>;//!< 克隆
|
||||
using RenderDebug = Function<std::function<void()>, str_uid("RenderD")>;//!< 调试绘图
|
||||
using SetSize = Function<std::function<void(const Position& size)>, str_uid("SetSize")>;//!< 设置大小
|
||||
using GetSize = Function<std::function<Position(void)>, str_uid("GetSize")>;//!< 获取大小
|
||||
using CustomTag = Variable<int, str_uid("CustomTag")>;
|
||||
using CustomName = Variable<std::string, str_uid("CustomName")>;
|
||||
//using IsPickup = Function<std::function<bool()>, str_uid("IsPickup")>;//!< 拾取
|
||||
//using IsSelect = Function<std::function<bool()>, str_uid("IsSelect")>;//!< 选择
|
||||
//using IsClick = Function<std::function<bool()>, str_uid("IsClick")>;//!< 点击
|
||||
//using IsDown = Function<std::function<bool()>, str_uid("IsDown")>;//!< 按下状态
|
||||
//using GetCoor = Function<std::function<dl::Coor* ()>, str_uid("GetCoor")>;//!< 返回坐标系
|
||||
//using GetOrder = Function<std::function<float()>, str_uid("GetOrder")>;//!< 返回order
|
||||
//using Update = Function<std::function<void()>, str_uid("Update")>;//!< 逻辑
|
||||
//using Render = Function<std::function<void()>, str_uid("Render")>;//!< 绘制
|
||||
//using SetOrder = Function<std::function<void(float)>, str_uid("SetOrder")>;//!< 设置order
|
||||
//using SetSelect = Function<std::function<void(bool)>, str_uid("SetSelect")>;//!< 设置是否选择
|
||||
//using DeleteThis = Function<std::function<void()>, str_uid("DeleteThis")>;//!< 删除自身
|
||||
//using Clone = Function<std::function<Components* ()>, str_uid("Clone")>;//!< 克隆
|
||||
//using RenderDebug = Function<std::function<void()>, str_uid("RenderD")>;//!< 调试绘图
|
||||
//using SetSize = Function<std::function<void(const Position& size)>, str_uid("SetSize")>;//!< 设置大小
|
||||
//using GetSize = Function<std::function<Position(void)>, str_uid("GetSize")>;//!< 获取大小
|
||||
//using CustomTag = Variable<int, str_uid("CustomTag")>;
|
||||
//using CustomName = Variable<std::string, str_uid("CustomName")>;
|
||||
|
||||
using Update = Function<std::function<void()>, 0>;//!< 逻辑
|
||||
using Render = Function<std::function<void()>, 1>;//!< 绘制
|
||||
using DeleteThis = Function<std::function<void()>, 3>;//!< 删除自身
|
||||
using RenderDebug = Function<std::function<void()>, 4>;//!< 调试绘图
|
||||
|
||||
using IsPickup = Function<std::function<bool()>, 0>;//!< 拾取
|
||||
using IsSelect = Function<std::function<bool()>, 1>;//!< 选择
|
||||
using IsClick = Function<std::function<bool()>, 2>;//!< 点击
|
||||
using IsDown = Function<std::function<bool()>, 3>;//!< 按下状态
|
||||
|
||||
using GetOrder = Function<std::function<float()>, 0>;//!< 返回order
|
||||
|
||||
using GetCoor = Function<std::function<dl::Coor* ()>, 0>;//!< 返回坐标系
|
||||
using Clone = Function<std::function<Components* ()>, 0>;//!< 克隆
|
||||
using GetSize = Function<std::function<Position()>, 0>;//!< 获取大小
|
||||
|
||||
using SetOrder = Function<std::function<void(float)>, 0>;//!< 设置order
|
||||
|
||||
using SetSelect = Function<std::function<void(bool)>, 0>;//!< 设置是否选择
|
||||
|
||||
using SetSize = Function<std::function<void(const Position& size)>, 0>;//!< 设置大小
|
||||
|
||||
|
||||
using CustomTag = Variable<int, 0>;
|
||||
using CustomName = Variable<std::string, 0>;
|
||||
|
||||
|
||||
|
||||
//! 语言本地化
|
||||
class Lang
|
||||
|
||||
@@ -4,4 +4,7 @@ project ("dl_test")
|
||||
set (PATH_SRC ${PROJECT_SOURCE_DIR})
|
||||
set (PATH_RES ${PROJECT_SOURCE_DIR}/res)
|
||||
set (USE_RENDER ON)
|
||||
include ("../project.cmake")
|
||||
include ("../project.cmake")
|
||||
|
||||
# 直接的命令似乎不得行,以后再研究
|
||||
target_precompile_headers(${PROJECT_NAME} PRIVATE head.h)
|
||||
+1
-1
Submodule project/hs updated: 0324b58a3b...0c5cab90ef
Reference in New Issue
Block a user