Add submitted CMake files for Linux builds. All existing ways of building remain in tact.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@25403 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
parent
6494baf371
commit
0547c2a6bb
8
BuildLinuxCMake.sh
Normal file
8
BuildLinuxCMake.sh
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
rm -rf linux_build
|
||||||
|
mkdir linux_build
|
||||||
|
pushd linux_build
|
||||||
|
cmake ..
|
||||||
|
make
|
||||||
|
./StandAlone/glslangValidator -i ../Test/sample.vert ../Test/sample.frag
|
||||||
|
popd
|
9
CMakeLists.txt
Normal file
9
CMakeLists.txt
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
cmake_minimum_required(VERSION 2.8)
|
||||||
|
|
||||||
|
add_subdirectory(glslang/MachineIndependent)
|
||||||
|
add_subdirectory(glslang/MachineIndependent/preprocessor)
|
||||||
|
add_subdirectory(glslang/GenericCodeGen)
|
||||||
|
add_subdirectory(glslang/OSDependent/Linux)
|
||||||
|
add_subdirectory(OGLCompilersDLL)
|
||||||
|
add_subdirectory(StandAlone)
|
||||||
|
|
6
OGLCompilersDLL/CMakeLists.txt
Normal file
6
OGLCompilersDLL/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
cmake_minimum_required(VERSION 2.8)
|
||||||
|
|
||||||
|
include_directories(. ../glslang ../glslang/OSDependent/Linux)
|
||||||
|
|
||||||
|
add_library(OGLCompiler STATIC InitializeDll.cpp)
|
||||||
|
|
13
StandAlone/CMakeLists.txt
Normal file
13
StandAlone/CMakeLists.txt
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
cmake_minimum_required(VERSION 2.8)
|
||||||
|
|
||||||
|
include_directories(. ../glslang/OSDependent/Linux)
|
||||||
|
|
||||||
|
add_executable(glslangValidator StandAlone.cpp)
|
||||||
|
target_link_libraries(glslangValidator
|
||||||
|
glslang
|
||||||
|
GenericCodeGen
|
||||||
|
OSDependent
|
||||||
|
Preprocessor
|
||||||
|
OGLCompiler
|
||||||
|
pthread)
|
||||||
|
|
7
glslang/GenericCodeGen/CMakeLists.txt
Normal file
7
glslang/GenericCodeGen/CMakeLists.txt
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
cmake_minimum_required(VERSION 2.8)
|
||||||
|
|
||||||
|
include_directories(. ..)
|
||||||
|
set(SOURCES CodeGen.cpp Link.cpp)
|
||||||
|
|
||||||
|
add_library(GenericCodeGen STATIC ${SOURCES})
|
||||||
|
|
29
glslang/MachineIndependent/CMakeLists.txt
Normal file
29
glslang/MachineIndependent/CMakeLists.txt
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
cmake_minimum_required(VERSION 2.8)
|
||||||
|
|
||||||
|
include_directories(. ../OSDependent/Linux ../../OGLCompilersDLL ${CMAKE_CURRENT_BINARY_DIR})
|
||||||
|
set(SOURCES
|
||||||
|
Constant.cpp
|
||||||
|
InfoSink.cpp
|
||||||
|
Initialize.cpp
|
||||||
|
IntermTraverse.cpp
|
||||||
|
Intermediate.cpp
|
||||||
|
ParseHelper.cpp
|
||||||
|
PoolAlloc.cpp
|
||||||
|
RemoveTree.cpp
|
||||||
|
Scan.cpp
|
||||||
|
ShaderLang.cpp
|
||||||
|
SymbolTable.cpp
|
||||||
|
Versions.cpp
|
||||||
|
intermOut.cpp
|
||||||
|
limits.cpp
|
||||||
|
linkValidate.cpp
|
||||||
|
parseConst.cpp
|
||||||
|
reflection.cpp)
|
||||||
|
|
||||||
|
find_package(BISON)
|
||||||
|
BISON_TARGET(GLSLParser glslang.y ${CMAKE_CURRENT_BINARY_DIR}/gen_glslang_tab.cpp
|
||||||
|
COMPILE_FLAGS
|
||||||
|
"--defines=${CMAKE_CURRENT_BINARY_DIR}/glslang_tab.cpp.h")
|
||||||
|
|
||||||
|
add_library(glslang STATIC ${BISON_GLSLParser_OUTPUT_SOURCE} ${SOURCES})
|
||||||
|
|
14
glslang/MachineIndependent/preprocessor/CMakeLists.txt
Normal file
14
glslang/MachineIndependent/preprocessor/CMakeLists.txt
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
cmake_minimum_required(VERSION 2.8)
|
||||||
|
|
||||||
|
include_directories(. ..)
|
||||||
|
set(SOURCES
|
||||||
|
Pp.cpp
|
||||||
|
PpAtom.cpp
|
||||||
|
PpContext.cpp
|
||||||
|
PpMemory.cpp
|
||||||
|
PpScanner.cpp
|
||||||
|
PpSymbols.cpp
|
||||||
|
PpTokens.cpp)
|
||||||
|
|
||||||
|
add_library(Preprocessor STATIC ${SOURCES})
|
||||||
|
|
6
glslang/OSDependent/Linux/CMakeLists.txt
Normal file
6
glslang/OSDependent/Linux/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
cmake_minimum_required(VERSION 2.8)
|
||||||
|
|
||||||
|
include_directories(. ../../../OGLCompilersDLL)
|
||||||
|
|
||||||
|
add_library(OSDependent STATIC ossource.cpp)
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user