Remove OGLCompiler and HLSL stub libraries from build

Fixes ranlib warnings complaining about empty archive libraries.

Simplifie build/code.
This commit is contained in:
Juan Ramos 2023-11-28 12:56:32 -07:00 committed by arcady-lunarg
parent c59b876ca0
commit 6be56e45e5
16 changed files with 17 additions and 392 deletions

View file

@ -31,15 +31,19 @@
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
set(SOURCES ossource.cpp ../osinclude.h)
add_library(OSDependent STATIC)
target_sources(OSDependent PRIVATE
../osinclude.h
ossource.cpp
)
add_library(OSDependent STATIC ${SOURCES})
set_property(TARGET OSDependent PROPERTY FOLDER glslang)
set_property(TARGET OSDependent PROPERTY POSITION_INDEPENDENT_CODE ON)
# MinGW GCC complains about function pointer casts to void*.
# Turn that off with -fpermissive.
if(${CMAKE_CXX_COMPILER_ID} MATCHES "GNU")
if(MINGW AND ${CMAKE_CXX_COMPILER_ID} MATCHES "GNU")
target_compile_options(OSDependent PRIVATE -fpermissive)
endif()