-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxmake.lua
43 lines (41 loc) · 1.78 KB
/
xmake.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
set_project( "Aria" )
set_version( "1.1.0" )
set_config("buildir", "build/xmake")
if is_plat( "windows" ) then
add_syslinks( "DbgHelp", "User32", "Ole32", "Comdlg32", "Shell32", "Gdi32", "Rpcrt4", "Comctl32", "Winspool", "Advapi32", "OleAut32" )
add_requires( "wxwidgets", "libpng", "tiff", "libjpeg-turbo", "zlib", "liblzma" )
elseif is_plat( "linux" ) then
add_syslinks( "X11", "dl" )
end
target( "Aria" )
set_kind( "binary" )
set_languages( "c++17" )
add_defines("Aria_VERSION_MAJOR=1", "Aria_VERSION_MINOR=1", "Aria_VERSION_BUILD=0")
set_targetdir( "./binaries/$(mode)/$(arch)/bin" )
add_includedirs( "source/Aria" )
if is_plat( "windows" ) then
set_configvar( "ProjectName", "Aria" )
set_configvar( "Project_VERSION_MAJOR", "1" )
set_configvar( "Project_VERSION_MINOR", "1" )
set_configvar( "Project_VERSION_BUILD", "0" )
set_configvar( "Project_VERSION_YEAR", "2021" )
set_configvar( "Project_DESCRIPTION", "Aria - Render tests manager" )
add_packages( "wxwidgets", "libpng", "tiff", "libjpeg-turbo", "zlib", "liblzma" )
set_configdir( "$(buildir)/source/Aria/Win32" )
add_includedirs( "$(projectdir)/source/Aria/Win32" )
add_configfiles( "xmake/Executable.rc.in", {filename="Aria.rc"})
add_configfiles( "xmake/resource.h.in")
add_files( "$(buildir)/source/Aria/Win32/Aria.rc" )
else
add_cxxflags( "$(shell wx-config --cppflags)" )
set_policy("check.auto_ignore_flags", false)
add_ldflags( "$(shell wx-config --libs)" )
add_ldflags( "$(shell wx-config --optional-libs stc)" )
add_ldflags( "$(shell wx-config --optional-libs aui)" )
end
add_files( "source/Aria/*.cpp" )
add_files( "source/Aria/Aui/*.cpp" )
add_files( "source/Aria/Database/*.cpp" )
add_files( "source/Aria/Editor/*.cpp" )
add_files( "source/Aria/Model/*.cpp" )
add_files( "source/Aria/sqlite/*.c" )