glslang rebuild
This commit is contained in:
@@ -15,22 +15,32 @@ pisitools.cxxflags.add("-std=gnu++11")
|
|||||||
def setup():
|
def setup():
|
||||||
|
|
||||||
if get.buildTYPE() == "emul32":
|
if get.buildTYPE() == "emul32":
|
||||||
cmaketools.configure("-DCMAKE_INSTALL_LIBDIR=lib32 \
|
cmaketools.configure("-Bbuild-shared -DCMAKE_INSTALL_PREFIX='/usr' \
|
||||||
-DBUILD_SHARED_LIBS=ON \
|
-DCMAKE_INSTALL_LIBDIR='lib32' \
|
||||||
-DALLOW_EXTERNAL_SPIRV_TOOLS=ON")
|
-DBUILD_SHARED_LIBS='ON' \
|
||||||
|
-DCMAKE_INSTALL_BINDIR=bin32 \
|
||||||
|
-DALLOW_EXTERNAL_SPIRV_TOOLS='ON'")
|
||||||
# -DENABLE_GLSLANG_BINARIES=OFF
|
# -DENABLE_GLSLANG_BINARIES=OFF
|
||||||
else:
|
else:
|
||||||
cmaketools.configure("-DCMAKE_INSTALL_LIBDIR=lib \
|
cmaketools.configure("-Bbuild-shared -DCMAKE_INSTALL_PREFIX='/usr' \
|
||||||
-DALLOW_EXTERNAL_SPIRV_TOOLS=ON \
|
-DCMAKE_INSTALL_LIBDIR='lib' \
|
||||||
-DBUILD_SHARED_LIBS=ON")
|
-DALLOW_EXTERNAL_SPIRV_TOOLS='ON' \
|
||||||
|
-DBUILD_SHARED_LIBS='ON'")
|
||||||
|
|
||||||
|
|
||||||
def build():
|
def build():
|
||||||
|
shelltools.cd("build-shared")
|
||||||
cmaketools.make()
|
cmaketools.make()
|
||||||
|
|
||||||
|
|
||||||
def install():
|
def install():
|
||||||
autotools.rawInstall("DESTDIR=%s" %get.installDIR())
|
shelltools.cd("build-shared")
|
||||||
|
autotools.rawInstall("DESTDIR=%s" %get.installDIR())
|
||||||
|
|
||||||
|
if get.buildTYPE() == "emul32":
|
||||||
|
pisitools.removeDir("/usr/bin32")
|
||||||
|
for f in shelltools.ls("%s/usr/lib32/cmake" % get.installDIR()):
|
||||||
|
pisitools.dosed("%s/usr/lib32/cmake/%s" % (get.installDIR(), f), "bin32", "bin")
|
||||||
|
|
||||||
#for tool in ["glslangValidator", "spirv-remap"]:
|
#for tool in ["glslangValidator", "spirv-remap"]:
|
||||||
#pisitools.domove("/usr/bin32/%s" %tool, "/usr/bin", "%s-32" %tool)
|
#pisitools.domove("/usr/bin32/%s" %tool, "/usr/bin", "%s-32" %tool)
|
||||||
|
|||||||
Reference in New Issue
Block a user