diff options
| author | ruki <[email protected]> | 2020-02-11 23:06:04 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-02-11 12:36:24 +0800 |
| commit | 94c19e101325c6a6a63a281ae6f6fee1ed230298 (patch) | |
| tree | 8563d7d0184cba06f2ab233eccf43ed7428ab1f5 /core/src/xmake | |
| parent | a0ff9f3cf3e5a425e8f7b4313e8b42a08effda42 (diff) | |
add msys and cygwin makefile
Diffstat (limited to 'core/src/xmake')
| -rw-r--r-- | core/src/xmake/makefile | 13 | ||||
| -rw-r--r-- | core/src/xmake/xmake.lua | 2 |
2 files changed, 13 insertions, 2 deletions
diff --git a/core/src/xmake/makefile b/core/src/xmake/makefile index 26915fa39..aa3a88ff6 100644 --- a/core/src/xmake/makefile +++ b/core/src/xmake/makefile @@ -113,7 +113,18 @@ xmake_C_FILES += \ readline/add_history \ readline/clear_history -ifeq ($(PLAT),mingw) +iswin = +ifeq ($(PLAT),windows) + iswin = yes +endif +ifeq ($(PLAT),msys) + iswin = yes +endif +ifeq ($(PLAT),cygwin) + iswin = yes +endif + +ifdef iswin xmake_C_FILES += \ winos/ansi \ winos/logical_drives \ diff --git a/core/src/xmake/xmake.lua b/core/src/xmake/xmake.lua index 6063a5fcb..36f8131e1 100644 --- a/core/src/xmake/xmake.lua +++ b/core/src/xmake/xmake.lua @@ -23,7 +23,7 @@ target("xmake") -- add the common source files add_files("**.c|winos/*.c") - if is_plat("windows") then + if is_plat("windows", "msys", "cygwin") then add_files("winos/*.c") end |
