]> git.cworth.org Git - apitrace/blobdiff - wrappers/d3d11trace.py
Don't link glxtrace against Xlib. It is unnecessary.
[apitrace] / wrappers / d3d11trace.py
index 12eec869404f858a0f9780220e478cdb1bbf3a76..80e855fe18bbff13579bdc433b3533513e4d283d 100644 (file)
@@ -24,6 +24,8 @@
 ##########################################################################/
 
 
+import sys
+
 from dlltrace import DllTracer
 from specs.d3d11 import d3d11
 
@@ -34,13 +36,13 @@ if __name__ == '__main__':
     print '#include "trace_writer_local.hpp"'
     print '#include "os.hpp"'
     print
-    print '#include <windows.h>'
-    print '#include <tchar.h>'
-    print
-    print '#include "compat.h"'
-    print
-    print '#include <d3d11.h>'
-    print '#include <d3dx11.h>'
+    print '#include "d3d11imports.hpp"'
     print
+
+    if int(sys.argv[1]):
+        import specs.d3d11_1
+        print '#include <d3d11_1.h>'
+        print
+
     tracer = DllTracer('d3d11.dll')
     tracer.traceApi(d3d11)