Make previous check in compile correctly on linux.
authorJohn Kessenich <cepheus@frii.com>
Wed, 31 Jul 2013 23:19:17 +0000 (23:19 +0000)
committerJohn Kessenich <cepheus@frii.com>
Wed, 31 Jul 2013 23:19:17 +0000 (23:19 +0000)
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@22568 e7fa87d3-cd2b-0410-9028-fcbf551c1848

BuildLinux.sh
StandAlone/Makefile
StandAlone/StandAlone.cpp
StandAlone/Worklist.h
glslang/OSDependent/Linux/osinclude.h

index 44f655f..b53578a 100755 (executable)
@@ -1,6 +1,6 @@
 #! /bin/bash
 
-rm StandAlone/StandAlone
+rm -f StandAlone/StandAlone
 
 # build the StandAlone app and all it's dependencies
 make -C StandAlone
index 4337237..793086a 100644 (file)
@@ -10,14 +10,13 @@ default: all
 all: StandAlone
 
 StandAlone: $(TARGETOBJECT) SHAREDOBJECT
-       $(CC) -g -o $@ $(TARGETOBJECT) -L $(LIBPATH) -lglslang -lpthread \
-       -lm -lstdc++
+       $(CC) -g -o $@ $(TARGETOBJECT) -L $(LIBPATH) -lglslang -lpthread -lm -lstdc++ 
 
 SHAREDOBJECT:
        cd $(OBJECTPATH); make all
 
 %.o : %.cpp
-       $(CC) -g -c $<
+       $(CC) -g -c -I../glslang/OSDependent/Linux $<
 
 #
 # Cleanup
@@ -37,4 +36,4 @@ StandAlone.o: ./../glslang/Public/ShaderLang.h
 StandAlone.o: ./../glslang/Include/InfoSink.h ./../glslang/Include/Common.h
 StandAlone.o: ./../glslang/Include/PoolAlloc.h
 StandAlone.o: ./../glslang/Public/ShaderLang.h
-
+StandAlone.o: Worklist.h
index fdf7490..00644c5 100644 (file)
@@ -149,7 +149,11 @@ bool ProcessArguments(int argc, char* argv[])
 }
 
 // Thread entry point
-unsigned int __stdcall CompileShaders(void*)
+unsigned int
+#ifdef _WIN32
+    __stdcall
+#endif
+    CompileShaders(void*)
 {
     ShHandle compiler;
 
index 0c9a4ee..9776f1f 100644 (file)
@@ -36,6 +36,7 @@
 #define WORKLIST_H_INCLUDED
 
 #include "osinclude.h"
+#include <string>
 #include <list>
 
 namespace glslang {
index 4de9977..f7888d0 100644 (file)
@@ -43,8 +43,6 @@
 #include <semaphore.h>
 #include <assert.h>
 #include <errno.h>
-#include "Include/InitializeGlobals.h"
-#include "Include/PoolAlloc.h"
 
 #define _vsnprintf vsnprintf