diff options
| author | OpportunityLiu <[email protected]> | 2019-06-08 13:34:02 +0800 |
|---|---|---|
| committer | OpportunityLiu <[email protected]> | 2019-06-08 13:34:02 +0800 |
| commit | 1af88102687e493cab40e62b0a2b8b7d42417ae6 (patch) | |
| tree | 272a80b424e68024a9ecda138159864d9659fe5a /core/src | |
| parent | e165a8e43abed4eb2eca64c3b5adefb57cd65600 (diff) | |
improve test lib
Diffstat (limited to 'core/src')
| -rw-r--r-- | core/src/demo/xmake.lua | 14 | ||||
| -rw-r--r-- | core/src/demo/xmake.rc | 44 |
2 files changed, 50 insertions, 8 deletions
diff --git a/core/src/demo/xmake.lua b/core/src/demo/xmake.lua index 3184c0240..fd4abbe1f 100644 --- a/core/src/demo/xmake.lua +++ b/core/src/demo/xmake.lua @@ -20,22 +20,22 @@ target("demo") add_includedirs("$(projectdir)", "$(projectdir)/src") -- add the common source files - add_files("**.c") - + add_files("**.c") + -- add the resource files (it will be enabled after publishing new version) if is_plat("windows") then add_files("*.rc") end - + -- add links if is_plat("windows") then - add_links("ws2_32", "advapi32") - elseif is_plat("android") then - add_links("m", "c") + add_links("ws2_32", "advapi32") + elseif is_plat("android") then + add_links("m", "c") elseif is_plat("macosx") then add_ldflags("-all_load", "-pagezero_size 10000", "-image_base 100000000") else - add_links("pthread", "dl", "m", "c") + add_links("pthread", "dl", "m", "c") end -- copy target to the build directory diff --git a/core/src/demo/xmake.rc b/core/src/demo/xmake.rc index 1f3a7dbf8..0b5b17fbe 100644 --- a/core/src/demo/xmake.rc +++ b/core/src/demo/xmake.rc @@ -1 +1,43 @@ -IDI_APP ICON DISCARDABLE "xmake.ico"
+#include "xmake.config.h" +#include "winres.h" + +#define _STR(x) #x +#define STR(x) _STR(x) + +VS_VERSION_INFO VERSIONINFO + FILEVERSION XM_CONFIG_VERSION_MAJOR, XM_CONFIG_VERSION_MINOR, XM_CONFIG_VERSION_ALTER, 0 + PRODUCTVERSION XM_CONFIG_VERSION_MAJOR, XM_CONFIG_VERSION_MINOR, XM_CONFIG_VERSION_ALTER, 0 + FILEFLAGSMASK VS_FFI_FILEFLAGSMASK +#ifdef _DEBUG + FILEFLAGS VS_FF_DEBUG +#else + FILEFLAGS 0x0L +#endif + FILEOS VOS_NT_WINDOWS32 + FILETYPE VFT_APP + FILESUBTYPE VFT2_UNKNOWN +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "000004B0" + BEGIN + VALUE "Comments", "A cross-platform build utility based on Lua\nwebsite: https://xmake.io" + VALUE "CompanyName", "The TBOOX Open Source Group" + VALUE "FileDescription", "XMake build utility" + VALUE "FileVersion", XM_CONFIG_VERSION "+" STR(XM_CONFIG_VERSION_BUILD) + VALUE "InternalName", "xmake" + VALUE "LegalCopyright", "Copyright (C) 2015-2019 Ruki Wang, tboox.org, xmake.io\nCopyright (C) 2005-2015 Mike Pall, luajit.org" + VALUE "LegalTrademarks", "" + VALUE "OriginalFilename", "xmake.exe" + VALUE "ProductName", "XMake" + VALUE "ProductVersion", XM_CONFIG_VERSION "+" STR(XM_CONFIG_VERSION_BUILD) + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x0, 1200 + END +END + + +IDI_APP ICON DISCARDABLE "xmake.ico" |
