-
Notifications
You must be signed in to change notification settings - Fork 5
/
buildfile
34 lines (29 loc) · 1.15 KB
/
buildfile
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
import pkgs = libimgui/
import pkgs_docking = libimgui-docking/
libimgui = [dir_path] $pkgs
libimgui_docking = [dir_path] $pkgs_docking
import pkgs += libimgui-platform-glfw/ libimgui-render-opengl2/ libimgui-render-opengl3/ libimgui-render-vulkan/ libimgui-examples/
import pkgs_docking += libimgui-platform-glfw-docking/ libimgui-render-opengl2-docking/ libimgui-render-opengl3-docking/ libimgui-render-vulkan-docking/ libimgui-examples-docking/
switch $($libimgui/ cxx.target.class)
{
case 'windows'
{
import pkgs += {libimgui-platform-win32/ libimgui-render-dx9/ libimgui-render-dx10/ libimgui-render-dx11/ libimgui-render-dx12/}
}
case 'macos'
{
import pkgs += {libimgui-platform-osx/ libimgui-render-metal/}
}
}
switch $($libimgui_docking/ cxx.target.class)
{
case 'windows'
{
import pkgs_docking += {libimgui-platform-win32-docking/ libimgui-render-dx9-docking/ libimgui-render-dx10-docking/ libimgui-render-dx11-docking/ libimgui-render-dx12-docking/}
}
case 'macos'
{
import pkgs_docking += {libimgui-platform-osx-docking/ libimgui-render-metal-docking/}
}
}
./: $pkgs $pkgs_docking