Rémi Verschelde 
							
						 
					 
					
						
						
						
						
							
						
						
							48a467b413 
							
						 
					 
					
						
						
							
							CMake: Use set_target_properties instead of set_property  
						
						... 
						
						
						
						This makes the cmake code a bit cleaner and more consistent. 
						
						
					 
					
						2023-05-25 14:34:34 -06:00 
						 
				 
			
				
					
						
							
							
								Chuang Zhu 
							
						 
					 
					
						
						
						
						
							
						
						
							dfc97740ff 
							
						 
					 
					
						
						
							
							Use CMAKE_INSTALL_FULL_LIBDIR in compat cmake files  
						
						... 
						
						
						
						According to
https://cmake.org/cmake/help/v3.25/module/GNUInstallDirs.html ,
CMAKE_INSTALL_LIBDIR can be an absolute path. For instance, Nixpkgs
[defined it to an absolute path in /nix/store](3d17b4c305/pkgs/development/tools/build-managers/cmake/setup-hook.sh (L101) 
						
						
					 
					
						2023-05-02 15:46:45 -06:00 
						 
				 
			
				
					
						
							
							
								Jan Engelhardt 
							
						 
					 
					
						
						
						
						
							
						
						
							4386679bcd 
							
						 
					 
					
						
						
							
							build: set SOVERSION on all libraries  
						
						... 
						
						
						
						Commit fbe9a23baf2cb020fe3f80d68d972e2a97d9b954 erroneously
only added SOVERSION to libglslang.so, but none of the others
that are produced.
Signed-off-by: Jan Engelhardt <jengelh@inai.de> 
						
						
					 
					
						2023-02-03 15:19:35 -07:00 
						 
				 
			
				
					
						
							
							
								Sven-Hendrik Haase 
							
						 
					 
					
						
						
						
						
							
						
						
							88fd417b0b 
							
						 
					 
					
						
						
							
							Fix locations of cmake files in side compat shims  
						
						... 
						
						
						
						In https://github.com/KhronosGroup/glslang/pull/3027 , the installed cmake files were
stuck into a /cmake subdir but this isn't reflected in these compatibility shims. 
						
						
					 
					
						2022-11-16 16:54:09 -07:00 
						 
				 
			
				
					
						
							
							
								Andrea Pappacoda 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							1b32fc8eb2 
							
						 
					 
					
						
						
							
							build: install glslang-config.cmake to libdir  
						
						... 
						
						
						
						As glslang ships architecture dependant files, the Config file should be
installed to libdir, not datadir. See
https://github.com/KhronosGroup/glslang/pull/2989#discussion_r955367103 
for more details.
Here's the diff between the install tree before and after this patch:
    $ diff <(tree install-datadir) <(tree install)
    1c1
    < install-datadir
    ---
    > install
    74,99c74,98
    <         ├── lib
    <         │   ├── cmake
    <         │   │   ├── glslang-default-resource-limitsTargets.cmake
    <         │   │   ├── glslangTargets.cmake
    <         │   │   ├── glslangValidatorTargets.cmake
    <         │   │   ├── HLSLTargets.cmake
    <         │   │   ├── OGLCompilerTargets.cmake
    <         │   │   ├── OSDependentTargets.cmake
    <         │   │   ├── spirv-remapTargets.cmake
    <         │   │   ├── SPIRVTargets.cmake
    <         │   │   └── SPVRemapperTargets.cmake
    <         │   ├── libGenericCodeGen.a
    <         │   ├── libglslang.a
    <         │   ├── libglslang-default-resource-limits.a
    <         │   ├── libHLSL.a
    <         │   ├── libMachineIndependent.a
    <         │   ├── libOGLCompiler.a
    <         │   ├── libOSDependent.a
    <         │   ├── libSPIRV.a
    <         │   └── libSPVRemapper.a
    <         └── share
    <             └── glslang
    <                 ├── glslang-config.cmake
    <                 ├── glslang-config-version.cmake
    <                 ├── glslang-targets.cmake
    <                 └── glslang-targets-debug.cmake
    ---
    >         └── lib
    >             ├── cmake
    >             │   ├── glslang-default-resource-limitsTargets.cmake
    >             │   ├── glslangTargets.cmake
    >             │   ├── glslangValidatorTargets.cmake
    >             │   ├── HLSLTargets.cmake
    >             │   ├── OGLCompilerTargets.cmake
    >             │   ├── OSDependentTargets.cmake
    >             │   ├── spirv-remapTargets.cmake
    >             │   ├── SPIRVTargets.cmake
    >             │   └── SPVRemapperTargets.cmake
    >             ├── glslang
    >             │   ├── glslang-config.cmake
    >             │   ├── glslang-config-version.cmake
    >             │   ├── glslang-targets.cmake
    >             │   └── glslang-targets-debug.cmake
    >             ├── libGenericCodeGen.a
    >             ├── libglslang.a
    >             ├── libglslang-default-resource-limits.a
    >             ├── libHLSL.a
    >             ├── libMachineIndependent.a
    >             ├── libOGLCompiler.a
    >             ├── libOSDependent.a
    >             ├── libSPIRV.a
    >             └── libSPVRemapper.a
    101c100
    < 15 directories, 83 files
    ---
    > 14 directories, 83 files 
						
						
					 
					
						2022-08-25 23:15:14 +02:00 
						 
				 
			
				
					
						
							
							
								MACHIZAUD Andréa 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							fb64704060 
							
						 
					 
					
						
						
							
							Add unified glslang CMake config collecting glslang-targets targets ( #2989 )  
						
						
						
						
					 
					
						2022-08-02 18:16:03 -06:00 
						 
				 
			
				
					
						
							
							
								Nathaniel Cesario 
							
						 
					 
					
						
						
						
						
							
						
						
							c8ef4f8a9f 
							
						 
					 
					
						
						
							
							cmake: Remove "conditions" from endif  
						
						... 
						
						
						
						See https://cmake.org/cmake/help/latest/command/endif.html  and
https://cmake.org/cmake/help/latest/command/if.html .
If the else/endif condition does not match the if condition verbatim,
an error is produced on some versions of cmake. This change removes
these "legacy conditions." 
						
						
					 
					
						2021-09-30 11:00:09 -06:00 
						 
				 
			
				
					
						
							
							
								Ben Clayton 
							
						 
					 
					
						
						
						
						
							
						
						
							cb261e3c21 
							
						 
					 
					
						
						
							
							License headers: s/Google/The Khronos Group  
						
						... 
						
						
						
						This was a copy-paste screwup, where the first line of the copyright had the company name was updated, but the company name mid way though was not. 
						
						
					 
					
						2020-07-03 12:21:01 +01:00 
						 
				 
			
				
					
						
							
							
								Ben Clayton 
							
						 
					 
					
						
						
						
						
							
						
						
							1d21270ebf 
							
						 
					 
					
						
						
							
							Add missing copyright headers  
						
						... 
						
						
						
						Add copyright headers to build files and scripts.
Simplifies automated scanning for bad license headers. 
						
						
					 
					
						2020-07-02 16:03:48 +01:00 
						 
				 
			
				
					
						
							
							
								Ben Clayton 
							
						 
					 
					
						
						
						
						
							
						
						
							f49820dd6b 
							
						 
					 
					
						
						
							
							Move hlsl/ source to glslang/HLSL/  
						
						... 
						
						
						
						Now that the HLSL source files are part of the `glslang` target (#2271 ), it makes sense for these to sit in the `glslang` directory.
Changed the case of the directory from `hlsl` to `HLSL` to better match the sibling directories. 
						
						
					 
					
						2020-06-16 11:55:28 +01:00 
						 
				 
			
				
					
						
							
							
								Ben Clayton 
							
						 
					 
					
						
						
						
						
							
						
						
							dcad9ad056 
							
						 
					 
					
						
						
							
							CMake: Fold HLSL source into glslang  
						
						... 
						
						
						
						... and stub the HLSL target.
Fixes the building of shared libraries.
This breaks the cyclic dependency between the `glslang` and `hlsl` targets (by essentially removing the `hlsl` target).
The `BUILD.gn` and `BUILD.bazel` build rules already pull the `HLSL` source into the `glslang` target.
`Android.mk` is the only remaining build config that has a dedicated `HLSL` target, but this is explicity static and does not suffer the same link-time issues with the cyclic dependency (we may wish to stub this target too).
Related issue: #1484 , #2147 
Related PR: #2267  
						
						
					 
					
						2020-06-16 10:46:06 +01:00 
						 
				 
			
				
					
						
							
							
								Arfrever Frehtes Taifersar Arahesis 
							
						 
					 
					
						
						
						
						
							
						
						
							bd69a4fb12 
							
						 
					 
					
						
						
							
							Respect CMAKE_INSTALL_LIBDIR in installed CMake files  
						
						... 
						
						
						
						Fixes  #1965  
					
						2019-11-18 11:11:55 -08:00 
						 
				 
			
				
					
						
							
							
								James Rumble 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							c6f7294ced 
							
						 
					 
					
						
						
							
							Handle install vs build include directories  
						
						... 
						
						
						
						Fix target_include_directories to appropriately handle build-tree and the install-tree. 
						
						
					 
					
						2019-08-06 15:29:31 +01:00 
						 
				 
			
				
					
						
							
							
								James Rumble 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							ab6d1499e1 
							
						 
					 
					
						
						
							
							Export glslang targets on installation  
						
						... 
						
						
						
						This allows the targets to be used in other cmake projects. See the following for more details:
https://cmake.org/cmake/help/latest/manual/cmake-packages.7.html#creating-packages 
https://foonathan.net/blog/2016/07/07/cmake-dependency-handling.html  
						
						
					 
					
						2019-08-06 14:47:51 +01:00 
						 
				 
			
				
					
						
							
							
								Matthew Albrecht 
							
						 
					 
					
						
						
						
						
							
						
						
							cda52d5333 
							
						 
					 
					
						
						
							
							Fixed .dll install on MSVC.  
						
						
						
						
					 
					
						2019-05-23 19:06:44 -05:00 
						 
				 
			
				
					
						
							
							
								Jeff Bolz 
							
						 
					 
					
						
						
						
						
							
						
						
							02ed310ac3 
							
						 
					 
					
						
						
							
							Rename PCH macro to glslang_pch (to avoid name collision) and update to latest spirv-tools  
						
						
						
						
					 
					
						2018-11-07 09:35:31 -06:00 
						 
				 
			
				
					
						
							
							
								Jeff Bolz 
							
						 
					 
					
						
						
						
						
							
						
						
							22d0b7cbad 
							
						 
					 
					
						
						
							
							Use precompiled headers for some glslang projects  
						
						
						
						
					 
					
						2018-10-31 15:38:08 -05:00 
						 
				 
			
				
					
						
							
							
								otakuto 
							
						 
					 
					
						
						
						
						
							
						
						
							d03da06ac1 
							
						 
					 
					
						
						
							
							Remove execute permissions  
						
						
						
						
					 
					
						2018-08-07 03:16:20 +09:00 
						 
				 
			
				
					
						
							
							
								Matthew Albrecht 
							
						 
					 
					
						
						
						
						
							
						
						
							1199cf92f7 
							
						 
					 
					
						
						
							
							Fixed install for SPIRV, glslang, and hlsl when building shared libs  
						
						
						
						
					 
					
						2018-04-26 14:07:46 -05:00 
						 
				 
			
				
					
						
							
							
								Matthew Albrecht 
							
						 
					 
					
						
						
						
						
							
						
						
							6c5f649ae8 
							
						 
					 
					
						
						
							
							Allowed for LIB_TYPE to be set to switch between static and shared libs for glslang, SPIRV, and HLSL  
						
						
						
						
					 
					
						2018-03-30 09:32:03 -05:00 
						 
				 
			
				
					
						
							
							
								John Kessenich 
							
						 
					 
					
						
						
						
						
							
						
						
							17b5f9175d 
							
						 
					 
					
						
						
							
							Merge pull request  #969  from d3x0r/patch-1  
						
						... 
						
						
						
						Add option to skip installation 
						
						
					 
					
						2017-07-04 11:00:42 -06:00 
						 
				 
			
				
					
						
							
							
								Rohith Chandran 
							
						 
					 
					
						
						
						
						
							
						
						
							6206091e63 
							
						 
					 
					
						
						
							
							Fix CMake scripts: The set_property script can be used to set only a single property, so now setting the POSITION_INDEPENDENT_CODE property correctly.  
						
						
						
						
					 
					
						2017-07-04 10:53:45 -04:00 
						 
				 
			
				
					
						
							
							
								d3x0r 
							
						 
					 
					
						
						
						
						
							
						
						
							9c6ea324cb 
							
						 
					 
					
						
						
							
							Update CMakeLists.txt  
						
						
						
						
					 
					
						2017-07-04 05:59:34 -07:00 
						 
				 
			
				
					
						
							
							
								David Seifert 
							
						 
					 
					
						
						
						
						
							
						
						
							22afc38b55 
							
						 
					 
					
						
						
							
							Modernise CMake  #2  
						
						... 
						
						
						
						This reverts commit cfc69d95afed34e1ba1371df0ddb56f2f491a5cb.
* Change CMAKE_INSTALL_PREFIX default on Windows in order
  to prevent permission denied errors when trying to install
  to "Program Files". 
						
						
					 
					
						2017-04-29 11:23:15 +02:00 
						 
				 
			
				
					
						
							
							
								John Kessenich 
							
						 
					 
					
						
						
						
						
							
						
						
							cfc69d95af 
							
						 
					 
					
						
						
							
							Revert "Modernise CMake"  
						
						
						
						
					 
					
						2017-04-28 22:04:24 -06:00 
						 
				 
			
				
					
						
							
							
								David Seifert 
							
						 
					 
					
						
						
						
						
							
						
						
							5a5699bdbd 
							
						 
					 
					
						
						
							
							Modernise CMake  
						
						... 
						
						
						
						* Use `GNUInstallDirs` in order to respect GNU conventions.
  This is especially important for multi-arch/multi-lib setups.
* Specify position independent mode building properly, without
  using the historic hack of adding `-fPIC` as a definition.
  This makes the build system more portable.
* Only detect C++ (and not C) to slightly speed up configuring.
* Specify C++11 mode using modern CMake idioms.
* Fix some whitespace issues. 
						
						
					 
					
						2017-04-28 22:46:52 +02:00 
						 
				 
			
				
					
						
							
							
								steve-lunarg 
							
						 
					 
					
						
						
						
						
							
						
						
							1868b14435 
							
						 
					 
					
						
						
							
							HLSL: implement numthreads for compute shaders  
						
						... 
						
						
						
						This PR adds handling of the numthreads attribute for compute shaders, as well as a general
infrastructure for returning attribute values from acceptAttributes, which may be needed in other
cases, e.g, unroll(x), or merely to know if some attribute without params was given.
A map of enum values from TAttributeType to TIntermAggregate nodes is built and returned.  It
can be queried with operator[] on the map.  In the future there may be a need to also handle
strings (e.g, for patchconstantfunc), and those can be easily added into the class if needed.
New test is in hlsl.numthreads.comp. 
						
						
					 
					
						2016-10-31 09:28:17 -06:00 
						 
				 
			
				
					
						
							
							
								LoopDawg 
							
						 
					 
					
						
						
						
						
							
						
						
							0ae28ea647 
							
						 
					 
					
						
						
							
							Add base class TParseables for intrinsic / builtin generation.  
						
						... 
						
						
						
						Add stubbed HLSL derivation.  GLSL derivation is still called TBuiltIns,
for historical compatibility. 
						
						
					 
					
						2016-05-23 15:44:53 -06:00 
						 
				 
			
				
					
						
							
							
								Andrew Woloszyn 
							
						 
					 
					
						
						
						
						
							
						
						
							db0eaf9887 
							
						 
					 
					
						
						
							
							Updated cmake to better organize folders and options.  
						
						... 
						
						
						
						This adds solution folders that properly group gtest/glslang/hlsl.
This also marks gtest options as advanced so they don't show up
in cmake-gui by default. 
						
						
					 
					
						2016-05-05 14:45:53 -04:00 
						 
				 
			
				
					
						
							
							
								Lei Zhang 
							
						 
					 
					
						
						
						
						
							
						
						
							3f460532cc 
							
						 
					 
					
						
						
							
							Remove duplicated cmake_minimum_required() calls.  
						
						
						
						
					 
					
						2016-05-04 17:01:36 -04:00 
						 
				 
			
				
					
						
							
							
								John Kessenich 
							
						 
					 
					
						
						
						
						
							
						
						
							34fb036a9c 
							
						 
					 
					
						
						
							
							HLSL: Add (almost) full expression grammar: Binary, unary (pre/post-fix), assign, ...  
						
						
						
						
					 
					
						2016-05-03 23:33:00 -06:00 
						 
				 
			
				
					
						
							
							
								John Kessenich 
							
						 
					 
					
						
						
						
						
							
						
						
							9c86c6ab5b 
							
						 
					 
					
						
						
							
							HLSL: Separate out token stream handling from grammar recognition.  
						
						
						
						
					 
					
						2016-05-03 22:49:24 -06:00 
						 
				 
			
				
					
						
							
							
								John Kessenich 
							
						 
					 
					
						
						
						
						
							
						
						
							e01a9bc8c0 
							
						 
					 
					
						
						
							
							HLSL: Plumb in HLSL parse context and keywords, and most basic HLSL parser and test.  
						
						
						
						
					 
					
						2016-03-12 21:40:08 -07:00