Skip to content

Commit

Permalink
Add Vulkan graphics output/drivers
Browse files Browse the repository at this point in the history
  • Loading branch information
Warblefly committed Jun 12, 2018
1 parent d35a646 commit 38c3b93
Show file tree
Hide file tree
Showing 11 changed files with 1,609 additions and 11 deletions.
71 changes: 71 additions & 0 deletions 0000-build-fix.patch
@@ -0,0 +1,71 @@
diff --git a/src/angle.gyp b/src/angle.gyp
index 4095547..3db4840 100644
--- a/src/angle.gyp
+++ b/src/angle.gyp
@@ -76,7 +76,7 @@
[
{
'destination': '<(angle_gen_path)',
- 'files': [ 'copy_compiler_dll.bat', '<(angle_id_script_base)' ],
+ 'files': [ '<(angle_id_script_base)' ],
},
],
'conditions':
@@ -206,10 +206,10 @@
'outputs': [ '<(PRODUCT_DIR)/d3dcompiler_47.dll' ],
'action':
[
- "<(angle_gen_path)/copy_compiler_dll.bat",
- "$(PlatformName)",
- "<(windows_sdk_path)",
- "<(PRODUCT_DIR)"
+# "<(angle_gen_path)/copy_compiler_dll.bat",
+# "$(PlatformName)",
+# "<(windows_sdk_path)",
+# "<(PRODUCT_DIR)"
],
},
], #actions
diff --git a/src/common/mathutil.h b/src/common/mathutil.h
index e096b1a..716aeb6 100644
--- a/src/common/mathutil.h
+++ b/src/common/mathutil.h
@@ -16,6 +16,7 @@
#include <string.h>
#include <algorithm>
#include <limits>
+#include <intrin.h>

#include <anglebase/numerics/safe_math.h>

diff --git a/src/libANGLE/renderer/gl/wgl/functionswgl_typedefs.h b/src/libANGLE/renderer/gl/wgl/functionswgl_typedefs.h
index c4b79ee..f22609b 100644
--- a/src/libANGLE/renderer/gl/wgl/functionswgl_typedefs.h
+++ b/src/libANGLE/renderer/gl/wgl/functionswgl_typedefs.h
@@ -23,7 +23,7 @@ typedef HGLRC(WINAPI *PFNWGLCREATELAYERCONTEXTPROC)(HDC, int);
typedef BOOL(WINAPI *PFNWGLDELETECONTEXTPROC)(HGLRC);
typedef HGLRC(WINAPI *PFNWGLGETCURRENTCONTEXTPROC)(VOID);
typedef HDC(WINAPI *PFNWGLGETCURRENTDCPROC)(VOID);
-typedef PROC(WINAPI *PFNWGLGETPROCADDRESSPROC)(LPCSTR);
+typedef void*(WINAPI *PFNWGLGETPROCADDRESSPROC)(LPCSTR);
typedef BOOL(WINAPI *PFNWGLMAKECURRENTPROC)(HDC, HGLRC);
typedef BOOL(WINAPI *PFNWGLSHARELISTSPROC)(HGLRC, HGLRC);
typedef BOOL(WINAPI *PFNWGLUSEFONTBITMAPSAPROC)(HDC, DWORD, DWORD, DWORD);
diff --git a/util/util.gyp b/util/util.gyp
index bda8a0530..2a87e57e7 100644
--- a/util/util.gyp
+++ b/util/util.gyp
@@ -118,6 +118,13 @@
[
'<@(util_win32_sources)',
],
+ 'link_settings':
+ {
+ 'libraries':
+ [
+ '-lgdi32',
+ ]
+ },
}],
['OS=="win" and angle_build_winrt==1',
{
21 changes: 21 additions & 0 deletions SPIRV-Tools-shared.patch
@@ -0,0 +1,21 @@
--- CMakeLists.txt.orig 2018-06-04 20:56:55.854029300 +0100
+++ CMakeLists.txt 2018-06-04 20:58:02.399678900 +0100
@@ -142,12 +142,12 @@

# For MinGW cross compile, statically link to the C++ runtime.
# But it still depends on MSVCRT.dll.
- if (${CMAKE_SYSTEM_NAME} MATCHES "Windows")
- if (${CMAKE_CXX_COMPILER_ID} MATCHES "GNU")
- set_target_properties(${TARGET} PROPERTIES
- LINK_FLAGS -static -static-libgcc -static-libstdc++)
- endif()
- endif()
+ #if (${CMAKE_SYSTEM_NAME} MATCHES "Windows")
+ # if (${CMAKE_CXX_COMPILER_ID} MATCHES "GNU")
+ # set_target_properties(${TARGET} PROPERTIES
+ # LINK_FLAGS -static -static-libgcc -static-libstdc++)
+ # endif()
+ #endif()
endfunction()

if(NOT COMMAND find_host_package)
4 changes: 2 additions & 2 deletions build-mingw-updates.patch
Expand Up @@ -51,8 +51,8 @@
- --enable-static --disable-multilib --prefix="$prefix" \
- --enable-languages=c,c++ --disable-nls || error_exit
+ "../../src/gcc-$v_gcc/configure" --target="$host" --enable-shared \
+ --disable-static --disable-multilib --prefix="$prefix" \
+ --enable-languages=c,c++,fortran --disable-nls || error_exit
+ --enable-static --disable-multilib --prefix="$prefix" \
+ --enable-languages=c,c++,fortran --enable-libstdcxx-threads --disable-nls || error_exit
echo "running 'make-gcc' for gcc" >&3
make -j $cpus all-gcc || error_exit
echo "running 'install-gcc' for gcc" >&3
Expand Down
112 changes: 103 additions & 9 deletions cross_compile_ffmpeg_shared.sh
Expand Up @@ -488,6 +488,8 @@ do_cmake() {
echo cmake $source_dir $extra_args -DBUILD_SHARED_LIB=1 -DBUILD_STATIC_LIBS=0 -DENABLE_STATIC_RUNTIME=0 -DENABLE_SHARED_RUNTIME=1 -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_RANLIB=${cross_prefix}ranlib -DCMAKE_C_COMPILER=${cross_prefix}gcc -DCMAKE_CXX_COMPILER=${cross_prefix}g++ -DCMAKE_Fortran_COMPILER:FILEPATH=${cross_prefix}gfortran -DCMAKE_RC_COMPILER=${cross_prefix}windres -DCMAKE_INSTALL_PREFIX=$mingw_w64_x86_64_prefix || exit 1
cmake $source_dir $extra_args -DBUILD_SHARED_LIBS=1 -DBUILD_STATIC_LIBS=0 -DENABLE_STATIC_RUNTIME=0 -DENABLE_SHARED_RUNTIME=1 -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_RANLIB=${cross_prefix}ranlib -DCMAKE_C_COMPILER=${cross_prefix}gcc -DCMAKE_CXX_COMPILER=${cross_prefix}g++ -DCMAKE_RC_COMPILER=${cross_prefix}windres -DCMAKE_INSTALL_PREFIX=$mingw_w64_x86_64_prefix || exit 1
touch $touch_name || exit 1
unset CMAKE_INCLUDE_PATH
unset CMAKE_PREFIX_PATH
fi
}

Expand Down Expand Up @@ -653,11 +655,28 @@ do_ninja_and_ninja_install() {
local touch_name=$(get_small_touchfile_name already_ran_make_install "$extra_ninja_options")
if [ ! -f $touch_name ]; then
echo "ninja installing $(pwd) as $ PATH=$PATH ninja -C build install $extra_make_options"
ninja -C build install || exit 1
ninja install || exit 1
touch $touch_name || exit 1
fi
}


do_ninja() {
local extra_make_options=" -j $cpu_count"
local cur_dir2=$(pwd)
local touch_name=$(get_small_touchfile_name already_ran_make "${extra_make_options}")

if [ ! -f $touch_name ]; then
echo
echo "ninja-ing $cur_dir2 as $ PATH=$PATH ninja "${extra_make_options}"
echo
ninja "${extra_make_options} || exit 1
touch $touch_name || exit 1 # only touch if the build was OK
else
echo "already did ninja $(basename "$cur_dir2")"
fi
}

do_make_and_make_install() {
local extra_make_options="$1"
do_make "$extra_make_options"
Expand Down Expand Up @@ -1987,7 +2006,8 @@ build_libbluray() {
# Overcome invalid detection of MSVC when using MinGW
apply_patch file://${top_dir}/libudfread-udfread-c.patch
cd ../..
generic_configure_make_install #"--disable-bdjava"
#apply_patch file://${top_dir}/libbluray-java.patch
generic_configure_make_install "--disable-silent-rules" #"--disable-bdjava"

cd ..
sed -i.bak 's/-lbluray.*$/-lbluray -lxml2 -lws2_32/' "$PKG_CONFIG_PATH/libbluray.pc" # This is for mpv not linking against the right libraries
Expand Down Expand Up @@ -2016,6 +2036,7 @@ build_icu() {
cd icu_native
#apply_patch file://${top_dir}/icu_native-xlocale.patch
cd source
env
# These might be set. They shouldn't be.
unset AR
unset LD
Expand Down Expand Up @@ -2879,7 +2900,7 @@ build_mpv() {
unset CC
unset LD
env
do_configure "configure -v -pp --prefix=${mingw_w64_x86_64_prefix} --enable-dvdread --enable-dvdnav --enable-cdda --enable-win32-internal-pthreads --disable-x11 --disable-debug-build --enable-sdl2 --enable-libmpv-shared --disable-libmpv-static" "./waf"
do_configure "configure -v -pp --prefix=${mingw_w64_x86_64_prefix} --enable-dvdread --enable-dvdnav --enable-cdda --disable-x11 --disable-debug-build --enable-sdl2 --enable-libmpv-shared --disable-libmpv-static" "./waf"
# In this cross-compile for Windows, we keep the Python script up-to-date and therefore
# must call it directly by its full name, because mpv can only explore for executables
# with the .exe suffix.
Expand Down Expand Up @@ -3358,7 +3379,7 @@ build_boost() {
# ./b2 --prefix=${mingw_w64_x86_64_prefix} -j 2 --ignore-site-config --user-config=user-config.jam address-model=64 architecture=x86 binary-format=pe link=shared --runtime-link=shared --target-os=windows threadapi=win32 threading=multi toolset=gcc-mingw --layout=tagged --disable-icu cxxflags='-std=c++11' --with-system --with-filesystem --with-regex --with-date_time install || exit 1
# ./b2 -a -d+2 --debug-configuration --prefix=${mingw_w64_x86_64_prefix} variant=release target-os=windows toolset=gcc-mingw address-model=64 link=shared runtime-link=shared threading=multi threadapi=win32 architecture=x86 binary-format=pe --with-system --with-filesystem --with-regex --with-date_time --with-thread --with-test --user-config=user-config.jam install || exit 1
# ./b2 -a -d+2 --debug-configuration --prefix=${mingw_w64_x86_64_prefix} variant=debug target-os=windows toolset=gcc-mingw address-model=64 link=shared runtime-link=shared threading=multi threadapi=win32 architecture=x86 binary-format=pe boost.locale.winapi=on boost.locale.std=on boost.locale.icu=on boost.locale.iconv=on boost.locale.posix=off --with-locale --user-config=user-config.jam install || exit 1
./b2 -a -j ${cpu_count} --prefix=${mingw_w64_x86_64_prefix} variant=release target-os=windows toolset=gcc-mingw abi=ms address-model=64 link=shared runtime-link=shared threading=multi threadapi=win32 architecture=x86 binary-format=pe --without-python --without-serialization --layout=tagged --user-config=user-config.jam install || exit 1 # boost.locale.winapi=on boost.locale.std=on boost.locale.icu=on boost.locale.iconv=on boost.locale.posix=off --user-config=user-config.jam install || exit 1
./b2 -a -j ${cpu_count} --prefix=${mingw_w64_x86_64_prefix} variant=release target-os=windows toolset=gcc-mingw abi=ms address-model=64 link=shared,static runtime-link=shared threading=multi threadapi=win32 architecture=x86 binary-format=pe --without-python --without-serialization --layout=tagged --user-config=user-config.jam install || exit 1 # boost.locale.winapi=on boost.locale.std=on boost.locale.icu=on boost.locale.iconv=on boost.locale.posix=off --user-config=user-config.jam install || exit 1
touch -- "$touch_name"
else
echo "Already built and installed Boost libraries"
Expand Down Expand Up @@ -4131,7 +4152,7 @@ build_loudness-scanner() {
# Rename internal copy of libebur128 because of slight differences
# update some code for latest FFmpeg
apply_patch file://${top_dir}/ebur128-CMakeLists.txt-private.patch
apply_patch file://${top_dir}/loudness-scanner-ffmpeg.patch
#apply_patch file://${top_dir}/loudness-scanner-ffmpeg.patch
sed -i.bak 's/avcodec_alloc_frame/av_frame_alloc/' scanner/inputaudio/ffmpeg/input_ffmpeg.c
do_cmake_static "-DENABLE_INTERNAL_QUEUE_H=ON -DCMAKE_VERBOSE_MAKEFILE=1 -DCMAKE_POLICY_DEFAULT_CMP0020=NEW -DGTK2_GDKCONFIG_INCLUDE_DIR=${mingw_w64_x86_64_prefix}/include/gtk-2.0/ -DDISABLE_QT5=ON"
sed -i.bak 's/-isystem /-I/g' scanner/scanner-tag/CMakeFiles/scanner-tag.dir/includes_CXX.rsp
Expand Down Expand Up @@ -4732,7 +4753,7 @@ build_mimedb() {
}

build_qjackctl() {
do_git_checkout https://github.com/rncbc/qjackctl.git qjackctl 568b076f1ddd0fcb18a78828e0e5b833e52fd7a1
do_git_checkout https://github.com/rncbc/qjackctl.git qjackctl # 568b076f1ddd0fcb18a78828e0e5b833e52fd7a1
cd qjackctl
apply_patch file://${top_dir}/qjackctl-MainForm.patch
generic_configure_make_install "LIBS=-lportaudio --enable-xunique=no" # enable-jack-version=yes
Expand All @@ -4742,12 +4763,79 @@ build_qjackctl() {
cd ..
}

build_spirvtools() {
do_git_checkout https://github.com/KhronosGroup/SPIRV-Headers.git SPIRV-Headers # 3ce3e49d73b8abbf2ffe33f829f941fb2a40f552
do_git_checkout https://github.com/KhronosGroup/SPIRV-Tools.git SPIRV-Tools # fe2fbee294a8ad4434f828a8b4d99eafe9aac88c
cd SPIRV-Tools
ln -svf ../../SPIRV-Headers external
# apply_patch file://${top_dir}/SPIRV-Tools-shared.patch
do_cmake_static "-DCMAKE_BUILD_TYPE=Release -DCMAKE_VERBOSE_MAKEFILE=ON"
do_make
do_make_install
cd ..
}

build_glslang() {
do_git_checkout https://github.com/KhronosGroup/glslang.git glslang 32d3ec319909fcad0b2b308fe1635198773e8316
#download_and_unpack_file https://github.com/KhronosGroup/glslang/archive/6.2.2596.tar.gz glslang-6.2.2596
cd glslang #-6.2.2596
#apply_patch_p1 https://raw.githubusercontent.com/Alexpux/MINGW-packages/master/mingw-w64-glslang/001-install-missing-dll.patch
apply_patch file://${top_dir}/glslang-threads.patch
# apply_patch file://${top_dir}/glslang-shared.patch
do_cmake_static "-DCMAKE_BUILD_TYPE=Release -DCMAKE_VERBOSE_MAKEFILE=YES"
do_make "V=1"
do_make_install
cd ..
}

build_shaderc() {
do_git_checkout https://github.com/google/shaderc.git shaderc # be8e0879750303a1de09385465d6b20ecb8b380d
cd shaderc
export spirv-tools_SOURCE_DIR=${top_dir}/x86_64/SPIRV-Tools/
export glslang_SOURCE_DIR=${top_dir}/x86_64/glslang/
export shaderc_SOURCE_DIR=${top_dir}/x86_64/shaderc/
apply_patch file://${top_dir}/shaderc.patch
mkdir build
do_cmake_static "-GNinja -DSHADERC_SKIP_TESTS=ON -DCMAKE_VERBOSE_MAKEFILE=YES " #-DSHADERC_ENABLE_SHARED_CRT=ON" # -DSHADERC_ENABLE_SHARED_CRT=ON"
apply_patch file://${top_dir}/shaderc-build.patch
do_ninja_and_ninja_install "V=1"
# do_make_install
cd ..
}


build_vulkan() {
download_and_unpack_file https://github.com/KhronosGroup/Vulkan-Loader/archive/sdk-1.1.73.0.tar.gz Vulkan-Loader-sdk-1.1.73.0
cd Vulkan-Loader-sdk-1.1.73.0
apply_patch_p1 https://raw.githubusercontent.com/Alexpux/MINGW-packages/master/mingw-w64-vulkan/001-build-fix.patch
apply_patch_p1 https://raw.githubusercontent.com/Alexpux/MINGW-packages/master/mingw-w64-vulkan/002-proper-def-files-for-32bit.patch
apply_patch_p1 https://raw.githubusercontent.com/Alexpux/MINGW-packages/master/mingw-w64-vulkan/003-generate-pkgconfig-files.patch
apply_patch_p1 https://raw.githubusercontent.com/Alexpux/MINGW-packages/master/mingw-w64-vulkan/004-installation-commands.patch
apply_patch_p1 https://raw.githubusercontent.com/Alexpux/MINGW-packages/master/mingw-w64-vulkan/005-mingw-dll-name.patch
apply_patch_p1 https://raw.githubusercontent.com/Alexpux/MINGW-packages/master/mingw-w64-vulkan/006-skip-commit-create.patch
echo "#define SPIRV_TOOLS_COMMIT_ID \"8d8a71278bf9e83dd0fb30d5474386d30870b74d\"" > spirv_tools_commit_id.h
cp -fv spirv_tools_commit_id.h loader/
# Missing defines are already added to MinGW by our scripts earlier in the build process.
export CFLAGS="-D_WIN32_WINNT=0x0A00 -D__STDC_FORMAT_MACROS"
export CPPFLAGS="-D_WIN32_WINNT=0x0A00 -D__STDC_FORMAT_MACROS"
export CXXFLAGS="-D_WIN32_WINNT=0x0600 -D__USE_MINGW_ANSI_STDIO -D__STDC_FORMAT_MACROS -fpermissive"
do_cmake "-DCMAKE_BUILD_TYPE=Release -DBUILD_DEMOS=OFF -DBUILD_TESTS=OFF -DDISABLE_BUILD_PATH_DECORATION=ON -DDISABLE_BUILDTGT_DIR_DECORATION=ON"
apply_patch file://${top_dir}/vulkan-threads.patch
do_make
do_make_install
unset CFLAGS
unset CPPFLAGS
unset CXXFLAGS
cd ..
}


build_angle() {
# do_git_checkout https://chromium.googlesource.com/angle/angle angle dd1b0c485561e0ce825a9426d7e223b4e158a358 # 57ce9ea23e54e7beb0526502bdf9094d1ddfde68 # 9f09037b073a7481bc5d94984a26b7c9d3427b16
# do_git_checkout https://chromium.googlesource.com/angle/angle angle # dd1b0c485561e0ce825a9426d7e223b4e158a358 # 57ce9ea23e54e7beb0526502bdf9094d1ddfde68 # 9f09037b073a7481bc5d94984a26b7c9d3427b16
# If Angle has been built, then skip the whole process because Git barfs
if [[ ! -f "angle/already_built_angle" ]]; then
echo "Angle not built: building from scratch."
do_git_checkout https://github.com/google/angle.git angle #9f10b775c9b17f901d940157e43e5a74b75c2708 # 57ce9ea23e
do_git_checkout https://github.com/google/angle.git angle fa7cc9da878b1eba4df568084b97a981e046709c
cd angle
# remove .git directory to prevent: No rule to make target '../build-x86_64/.git/index', needed by 'out/Debug/obj/gen/angle/id/commit.h'.
rm -rvf .git || exit 1
Expand All @@ -4769,7 +4857,7 @@ build_angle() {
# provide a file to export symbols declared in ShaderLang.h as part of libGLESv2.dll
# (required to build Qt WebKit which uses shader interface)
# cp ${top_dir}/angle-entry_points_shader.cpp src/libGLESv2/entry_points_shader.cpp
apply_patch_p1 https://raw.githubusercontent.com/Alexpux/MINGW-packages/master/mingw-w64-angleproject-git/0000-build-fix.patch
apply_patch_p1 file://${top_dir}/0000-build-fix.patch
apply_patch_p1 https://raw.githubusercontent.com/Alexpux/MINGW-packages/master/mingw-w64-angleproject-git/angleproject-include-import-library-and-use-def-file.patch
apply_patch_p1 https://raw.githubusercontent.com/Alexpux/MINGW-packages/master/mingw-w64-angleproject-git/0001-static-build-workaround.patch
apply_patch_p1 https://raw.githubusercontent.com/Alexpux/MINGW-packages/master/mingw-w64-angleproject-git/0002-redist.patch
Expand Down Expand Up @@ -5537,6 +5625,10 @@ build_dependencies() {
build_libssh
build_sdl2_image
# build_mmcommon
build_spirvtools
build_glslang
build_shaderc
build_vulkan
build_angle
build_cairo
build_cairomm
Expand Down Expand Up @@ -5766,6 +5858,8 @@ install_cross_compiler
# the header Windows.h needs to appear
cd ${cur_dir}/x86_64-w64-mingw32/x86_64-w64-mingw32/include
ln -s windows.h Windows.h
ln -s winsock2.h WinSock2.h
ln -s cfgmgr32.h Cfgmgr32.h
ln -s devpkey.h Devpkey.h
ln -s uiviewsettingsinterop.h UIViewSettingsInterop.h
cd -
Expand Down
14 changes: 14 additions & 0 deletions glslang-install-missing-dll.patch
@@ -0,0 +1,14 @@
--- StandAlone/CMakeLists.txt.orig 2018-06-04 21:21:02.304015300 +0100
+++ StandAlone/CMakeLists.txt 2018-06-04 21:21:31.345615600 +0100
@@ -44,9 +44,9 @@

install(TARGETS spirv-remap
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
-
+
if(BUILD_SHARED_LIBS)
install(TARGETS glslang-default-resource-limits
- LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
endif()
endif(ENABLE_GLSLANG_INSTALL)
42 changes: 42 additions & 0 deletions glslang-shared.patch
@@ -0,0 +1,42 @@
--- CMakeLists.txt.orig 2018-06-07 12:17:32.435758800 +0100
+++ CMakeLists.txt 2018-06-07 12:18:27.861816500 +0100
@@ -79,10 +79,11 @@
function(glslang_set_link_args TARGET)
# For MinGW compiles, statically link against the GCC and C++ runtimes.
# This avoids the need to ship those runtimes as DLLs.
- if(WIN32 AND ${CMAKE_CXX_COMPILER_ID} MATCHES "GNU")
- set_target_properties(${TARGET} PROPERTIES
- LINK_FLAGS "-static -static-libgcc -static-libstdc++")
- endif()
+ # JW addition: we are happy to ship DLLs.
+ #if(WIN32 AND ${CMAKE_CXX_COMPILER_ID} MATCHES "GNU")
+ # set_target_properties(${TARGET} PROPERTIES
+ # LINK_FLAGS "-static -static-libgcc -static-libstdc++")
+ #endif()
endfunction(glslang_set_link_args)

# We depend on these for later projects, so they should come first.
@@@--- StandAlone/CMakeLists.txt.orig 2018-06-09 09:36:48.489868600 +0100
@@@+++ StandAlone/CMakeLists.txt 2018-06-09 09:37:10.333816200 +0100
@@@@@ -44,9 +44,9 @@
@@@
@@@ install(TARGETS spirv-remap
@@@ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
@@@-
@@@+
@@@ if(BUILD_SHARED_LIBS)
@@@ install(TARGETS glslang-default-resource-limits
@@@- LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
@@@+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
@@@ endif()
@@@ endif(ENABLE_GLSLANG_INSTALL)
--- hlsl/CMakeLists.txt.orig 2018-06-09 09:48:49.042537000 +0100
+++ hlsl/CMakeLists.txt 2018-06-09 09:49:19.293688500 +0100
@@ -20,6 +20,7 @@
add_library(HLSL ${LIB_TYPE} ${SOURCES} ${HEADERS})
set_property(TARGET HLSL PROPERTY FOLDER hlsl)
set_property(TARGET HLSL PROPERTY POSITION_INDEPENDENT_CODE ON)
+target_link_libraries(glslang)

if(WIN32 AND BUILD_SHARED_LIBS)
set_target_properties(HLSL PROPERTIES PREFIX "")

0 comments on commit 38c3b93

Please sign in to comment.