forked from doitsujin/dxvk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[build] Initial support for winegcc MinGW Compatible Compiler
* x86_64 only (winebuild bug: always uses lib64 in paths) * Installed libd3dcompiler_47.def and libvulkan-1.def required
- Loading branch information
pchome
committed
Feb 15, 2018
1 parent
8ebffc1
commit e7102cc
Showing
19 changed files
with
171 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[binaries] | ||
c = '/usr/bin/winegcc' | ||
cpp = '/usr/bin/wineg++' | ||
ar = '/usr/bin/ar' | ||
strip = '/usr/bin/strip' | ||
exe_wrapper = 'sh' | ||
|
||
[properties] | ||
c_args = ['-march=native'] | ||
c_link_args = [] | ||
|
||
cpp_args = ['-march=native', '-DNOMINMAX'] | ||
cpp_link_args = [] | ||
|
||
[host_machine] | ||
system = 'linux' | ||
cpu_family = 'x86_64' | ||
cpu = 'x86_64' | ||
endian = 'little' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# -*- mode: meson -*- | ||
|
||
option('wine-build', type : 'boolean', value : 'false', | ||
description : 'build with winebuild wrapper') | ||
|
||
|
||
option('hud', type : 'boolean', value : 'true', | ||
description : 'HUD support') | ||
|
||
option('logger', type : 'boolean', value : 'true', | ||
description : 'builtin logger support') | ||
|
||
option('env', type : 'boolean', value : 'true', | ||
description : 'support environment variables to interract with libraries') | ||
|
||
|
||
option('utils', type : 'boolean', value : 'true', | ||
description : 'build utils') | ||
|
||
option('install-utils', type : 'boolean', value : 'false', | ||
description : 'install utils') | ||
|
||
|
||
option('tests', type : 'boolean', value : 'true', | ||
description : 'build test executables') | ||
|
||
option('install-tests', type : 'boolean', value : 'false', | ||
description : 'install test executables') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@ stdcall D3D11CreateDevice(ptr long ptr long ptr long long ptr ptr ptr) | ||
@ stdcall D3D11CreateDeviceAndSwapChain(ptr long ptr long ptr long long ptr ptr ptr ptr ptr) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@ stdcall CreateDXGIFactory(ptr ptr) | ||
@ stdcall CreateDXGIFactory1(ptr ptr) | ||
@ stdcall DXGICreateDevicePrivate(ptr ptr ptr) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,14 @@ | ||
if (get_option('wine-build')) | ||
test_d3d11_deps = [ util_dep, lib_dxgi, lib_d3d11, lib_d3dcompiler_47, declare_dependency(link_args : ['-mwindows']) ] | ||
|
||
executable('d3d11-compute', files('test_d3d11_compute.cpp'), dependencies : test_d3d11_deps, name_suffix: 'exe', install : true) | ||
executable('d3d11-triangle', files('test_d3d11_triangle.cpp'), dependencies : test_d3d11_deps, name_suffix: 'exe', install : true) | ||
|
||
executable('d3d11-compute.exe', build_by_default: false, name_suffix: 'so', install : true) | ||
executable('d3d11-triangle.exe', build_by_default: false, name_suffix: 'so', install : true) | ||
else | ||
test_d3d11_deps = [ util_dep, lib_dxgi, lib_d3d11, lib_d3dcompiler_47 ] | ||
|
||
executable('d3d11-compute', files('test_d3d11_compute.cpp'), dependencies : test_d3d11_deps, install : true) | ||
executable('d3d11-triangle', files('test_d3d11_triangle.cpp'), dependencies : test_d3d11_deps, install : true) | ||
executable('d3d11-triangle', files('test_d3d11_triangle.cpp'), dependencies : test_d3d11_deps, install : true) | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,17 @@ | ||
if (get_option('wine-build')) | ||
test_dxbc_deps = [ dxbc_dep, dxvk_dep, declare_dependency(link_args : ['-mwindows']) ] | ||
|
||
executable('dxbc-compiler', files('test_dxbc_compiler.cpp'), dependencies : test_dxbc_deps, name_suffix: 'exe', install : true) | ||
executable('dxbc-disasm', files('test_dxbc_disasm.cpp'), dependencies : [ test_dxbc_deps, lib_d3dcompiler_47 ], name_suffix: 'exe', install : true) | ||
executable('hlsl-compiler', files('test_hlsl_compiler.cpp'), dependencies : [ test_dxbc_deps, lib_d3dcompiler_47 ], name_suffix: 'exe', install : true) | ||
|
||
executable('dxbc-compiler.exe', build_by_default: false, name_suffix: 'so', install : true) | ||
executable('dxbc-disasm.exe', build_by_default: false, name_suffix: 'so', install : true) | ||
executable('hlsl-compiler.exe', build_by_default: false, name_suffix: 'so', install : true) | ||
else | ||
test_dxbc_deps = [ dxbc_dep, dxvk_dep ] | ||
|
||
executable('dxbc-compiler', files('test_dxbc_compiler.cpp'), dependencies : test_dxbc_deps, install : true) | ||
executable('dxbc-disasm', files('test_dxbc_disasm.cpp'), dependencies : [ test_dxbc_deps, lib_d3dcompiler_47 ], install : true) | ||
executable('hlsl-compiler', files('test_hlsl_compiler.cpp'), dependencies : [ test_dxbc_deps, lib_d3dcompiler_47 ], install : true) | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
if (get_option('wine-build')) | ||
test_dxgi_deps = [ util_dep, lib_dxgi, declare_dependency(link_args : ['-mwindows']) ] | ||
|
||
executable('dxgi-factory', files('test_dxgi_factory.cpp'), dependencies : test_dxgi_deps, name_suffix: 'exe', install: true) | ||
|
||
executable('dxgi-factory.exe', build_by_default: false, name_suffix: 'so', install : true) | ||
else | ||
test_dxgi_deps = [ util_dep, lib_dxgi ] | ||
|
||
executable('dxgi-factory', files('test_dxgi_factory.cpp'), dependencies : test_dxgi_deps, install: true) | ||
executable('dxgi-factory', files('test_dxgi_factory.cpp'), dependencies : test_dxgi_deps, install: true) | ||
endif |