mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 10:35:43 -05:00
Fixed premake scripts.
This commit is contained in:
parent
c3667bad05
commit
135846717b
10 changed files with 32 additions and 10 deletions
|
@ -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 {
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue