Fixed premake scripts.

This commit is contained in:
bkaradzic 2013-01-16 23:02:53 -08:00
parent c3667bad05
commit 135846717b
10 changed files with 32 additions and 10 deletions

View file

@ -25,6 +25,11 @@ project "bgfx"
"$(DXSDK_DIR)/include",
}
configuration { "macosx" }
files {
BGFX_DIR .. "src/**.mm",
}
configuration { "not nacl" }
includedirs {
--nacl has GLES2 headers modified...
@ -41,7 +46,6 @@ project "bgfx"
BGFX_DIR .. "include/**.h",
BGFX_DIR .. "src/**.cpp",
BGFX_DIR .. "src/**.h",
BGFX_DIR .. "src/**.mm",
}
excludes {

View file

@ -10,7 +10,6 @@ project "example-00-helloworld"
files {
BGFX_DIR .. "examples/common/**.cpp",
BGFX_DIR .. "examples/common/**.h",
BGFX_DIR .. "examples/common/**.mm",
BGFX_DIR .. "examples/00-helloworld/**.cpp",
BGFX_DIR .. "examples/00-helloworld/**.h",
}
@ -38,6 +37,9 @@ project "example-00-helloworld"
}
configuration { "macosx" }
files {
BGFX_DIR .. "examples/common/**.mm",
}
links {
"Cocoa.framework",
"OpenGL.framework",

View file

@ -12,7 +12,6 @@ project "example-01-cubes"
files {
BGFX_DIR .. "examples/common/**.cpp",
BGFX_DIR .. "examples/common/**.h",
BGFX_DIR .. "examples/common/**.mm",
BGFX_DIR .. "examples/01-cubes/**.cpp",
BGFX_DIR .. "examples/01-cubes/**.h",
}
@ -40,6 +39,9 @@ project "example-01-cubes"
}
configuration { "macosx" }
files {
BGFX_DIR .. "examples/common/**.mm",
}
links {
"Cocoa.framework",
"OpenGL.framework",

View file

@ -12,7 +12,6 @@ project "example-02-metaballs"
files {
BGFX_DIR .. "examples/common/**.cpp",
BGFX_DIR .. "examples/common/**.h",
BGFX_DIR .. "examples/common/**.mm",
BGFX_DIR .. "examples/02-metaballs/**.cpp",
BGFX_DIR .. "examples/02-metaballs/**.h",
}
@ -40,6 +39,9 @@ project "example-02-metaballs"
}
configuration { "macosx" }
files {
BGFX_DIR .. "examples/common/**.mm",
}
links {
"Cocoa.framework",
"OpenGL.framework",

View file

@ -12,7 +12,6 @@ project "example-03-raymarch"
files {
BGFX_DIR .. "examples/common/**.cpp",
BGFX_DIR .. "examples/common/**.h",
BGFX_DIR .. "examples/common/**.mm",
BGFX_DIR .. "examples/03-raymarch/**.cpp",
BGFX_DIR .. "examples/03-raymarch/**.h",
}
@ -40,6 +39,9 @@ project "example-03-raymarch"
}
configuration { "macosx" }
files {
BGFX_DIR .. "examples/common/**.mm",
}
links {
"Cocoa.framework",
"OpenGL.framework",

View file

@ -12,7 +12,6 @@ project "example-04-mesh"
files {
BGFX_DIR .. "examples/common/**.cpp",
BGFX_DIR .. "examples/common/**.h",
BGFX_DIR .. "examples/common/**.mm",
BGFX_DIR .. "examples/04-mesh/**.cpp",
BGFX_DIR .. "examples/04-mesh/**.h",
}
@ -40,6 +39,9 @@ project "example-04-mesh"
}
configuration { "macosx" }
files {
BGFX_DIR .. "examples/common/**.mm",
}
links {
"Cocoa.framework",
"OpenGL.framework",

View file

@ -12,7 +12,6 @@ project "example-05-instancing"
files {
BGFX_DIR .. "examples/common/**.cpp",
BGFX_DIR .. "examples/common/**.h",
BGFX_DIR .. "examples/common/**.mm",
BGFX_DIR .. "examples/05-instancing/**.cpp",
BGFX_DIR .. "examples/05-instancing/**.h",
}
@ -40,6 +39,9 @@ project "example-05-instancing"
}
configuration { "macosx" }
files {
BGFX_DIR .. "examples/common/**.mm",
}
links {
"Cocoa.framework",
"OpenGL.framework",

View file

@ -12,7 +12,6 @@ project "example-06-bump"
files {
BGFX_DIR .. "examples/common/**.cpp",
BGFX_DIR .. "examples/common/**.h",
BGFX_DIR .. "examples/common/**.mm",
BGFX_DIR .. "examples/06-bump/**.cpp",
BGFX_DIR .. "examples/06-bump/**.h",
}
@ -37,6 +36,9 @@ project "example-06-bump"
}
configuration { "macosx" }
files {
BGFX_DIR .. "examples/common/**.mm",
}
links {
"Cocoa.framework",
"OpenGL.framework",

View file

@ -12,7 +12,6 @@ project "example-07-callback"
files {
BGFX_DIR .. "examples/common/**.cpp",
BGFX_DIR .. "examples/common/**.h",
BGFX_DIR .. "examples/common/**.mm",
BGFX_DIR .. "examples/07-callback/**.cpp",
BGFX_DIR .. "examples/07-callback/**.h",
}
@ -37,6 +36,9 @@ project "example-07-callback"
}
configuration { "macosx" }
files {
BGFX_DIR .. "examples/common/**.mm",
}
links {
"Cocoa.framework",
"OpenGL.framework",

View file

@ -12,7 +12,6 @@ project "example-08-update"
files {
BGFX_DIR .. "examples/common/**.cpp",
BGFX_DIR .. "examples/common/**.h",
BGFX_DIR .. "examples/common/**.mm",
BGFX_DIR .. "examples/08-update/**.cpp",
BGFX_DIR .. "examples/08-update/**.h",
}
@ -40,6 +39,9 @@ project "example-08-update"
}
configuration { "macosx" }
files {
BGFX_DIR .. "examples/common/**.mm",
}
links {
"Cocoa.framework",
"OpenGL.framework",